/* === APP PAGE === */

/* =================== HERO =================== */
.app-hero {
  min-height: 50vh;
  background: rgba(10, 22, 40, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height, 70px) + 2rem) 1.5rem 3rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.app-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.app-hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-gold);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.app-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.8vw, 2.8rem);
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.app-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 300;
}

.app-hero-btn {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

/* =================== SECCIÓN 1: HERRAMIENTAS =================== */
.tools {
  background: #050D1A;
  padding: 100px 1.5rem;
  position: relative;
  z-index: 2;
}

.tools-container {
  max-width: 1300px;
  margin: 0 auto;
}

.tools h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 600;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.tool-card {
  background: #0A1628;
  border: 2px solid var(--color-gold);
  padding: 48px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 50px rgba(212, 175, 55, 0.2);
}

.tool-icon {
  margin-bottom: 1.5rem;
}

.tool-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.tool-subtitle {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.tool-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Lista con línea dorada izquierda */
.tool-list {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.tool-list li {
  border-left: 2px solid var(--color-gold);
  padding: 6px 0 6px 14px;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  line-height: 1.5;
}

.tool-italic {
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-top: auto;
}

.tool-free {
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.85rem;
}

/* =================== SECCIÓN 2: BENEFICIOS (override) =================== */
.app-benefits {
  background: #0A1628 !important;
}

/* =================== SECCIÓN 3: PLANES =================== */
.app-plans-section {
  background: #050D1A;
  padding: 100px 1.5rem;
  position: relative;
  z-index: 2;
}

.app-plans-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* =================== SECCIÓN 4: FAQ =================== */
.faq-section {
  background: #0A1628;
  padding: 100px 1.5rem;
  position: relative;
  z-index: 2;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 600;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item.active {
  border-color: var(--color-gold);
}

.faq-question {
  width: 100%;
  background: #050D1A;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #0A1628;
}

.faq-arrow {
  color: var(--color-gold);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #0A1F33;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 24px;
}

.faq-answer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =================== SECCIÓN 5: CTA FINAL =================== */
.app-cta-final {
  background: #050D1A;
  padding: 100px 1.5rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.app-cta-container {
  max-width: 700px;
  margin: 0 auto;
}

.app-cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.app-cta-final p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.app-cta-btn {
  font-size: 1.05rem;
  padding: 1.1rem 3rem;
}

.app-cta-note {
  color: rgba(212, 175, 55, 0.6);
  font-size: 0.85rem;
  margin-top: 1.5rem;
  font-style: normal !important;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tool-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .app-hero h1 {
    font-size: 1.5rem;
  }

  .app-hero-subtitle {
    font-size: 1rem;
  }
}

/* =================== LIGHT THEME =================== */
body[data-theme="light"] .app-hero {
  background: rgba(245, 243, 238, 0.86);
}

body[data-theme="light"] .app-hero h1 {
  color: var(--color-cosmos);
}

body[data-theme="light"] .app-hero-subtitle {
  color: rgba(42, 42, 42, 0.6);
}

body[data-theme="light"] .tools {
  background: #F5F3EE;
}

body[data-theme="light"] .tools h2 {
  color: var(--color-gold);
}

body[data-theme="light"] .tool-card {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .tool-subtitle {
  color: var(--color-cosmos);
}

body[data-theme="light"] .tool-text {
  color: rgba(42, 42, 42, 0.7);
}

body[data-theme="light"] .tool-list li {
  color: rgba(42, 42, 42, 0.75);
}

body[data-theme="light"] .tool-italic {
  color: rgba(42, 42, 42, 0.5);
}

body[data-theme="light"] .app-benefits {
  background: #F0EBE0 !important;
}

body[data-theme="light"] .app-plans-section {
  background: #F5F3EE;
}

body[data-theme="light"] .faq-section {
  background: #F0EBE0;
}

body[data-theme="light"] .faq-question {
  background: #FFFFFF;
  color: var(--color-cosmos);
}

body[data-theme="light"] .faq-question:hover {
  background: #F9F6F0;
}

body[data-theme="light"] .faq-answer {
  background: #F9F6F0;
}

body[data-theme="light"] .faq-answer p {
  color: rgba(42, 42, 42, 0.7);
}

body[data-theme="light"] .app-cta-final {
  background: #F5F3EE;
}

body[data-theme="light"] .app-cta-final h2 {
  color: var(--color-cosmos);
}

body[data-theme="light"] .app-cta-final p {
  color: rgba(42, 42, 42, 0.6);
}
