/* ============================================================
   SECTIONS.CSS — Estilos de las secciones del funnel
   CICA LIFE — Planes de ahorro
   Mobile-first. Solo usa tokens definidos en variables.css.
   ============================================================ */

/* ------------------------------------------------------------
   SECCIÓN: HERO
   ------------------------------------------------------------ */

.section-hero {
  background-color: var(--color-bg-dark);
  background-image: linear-gradient(var(--color-overlay), var(--color-overlay));
  background-size: cover;
  background-position: center;
  color: var(--color-text-light);
  padding-block: var(--section-padding-mobile);
  display: flex;
  align-items: center;
  min-height: 100svh;
}

.section-hero__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.section-hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-brand-turquoise-light);
  margin: 0;
}

.section-hero__headline {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1-mobile);
  line-height: var(--line-height-heading);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-light);
  margin: 0;
}

.section-hero__subheadline {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-on-dark);
  margin: 0;
}

.section-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.section-hero__cta-secondary {
  border-color: var(--color-text-light);
  color: var(--color-text-light);
}

.section-hero__cta-secondary:hover,
.section-hero__cta-secondary:focus-visible {
  background-color: var(--color-text-light);
  color: var(--color-bg-dark);
}

.section-hero__trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding: 0;
}

.section-hero__trust-item {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  color: var(--color-text-on-dark);
}

.section-hero__badge {
  align-self: flex-start;
  margin-top: var(--space-2);
}

@media (min-width: 1024px) {
  .section-hero__headline {
    font-size: var(--font-size-h1-desktop);
  }

  .section-hero__container {
    max-width: var(--container-reading);
  }

  .section-hero__ctas {
    flex-direction: row;
  }
}

/* ------------------------------------------------------------
   SECCIÓN: GANCHO EMOCIONAL (HOOK)
   ------------------------------------------------------------ */

.section-hook {
  background-color: var(--color-bg-alt);
  padding-block: var(--section-padding-mobile);
}

.section-hook__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
}

.section-hook__headline {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2-mobile);
  line-height: var(--line-height-heading);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0;
}

.section-hook__paragraph {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  margin: 0;
}

.section-hook__divider {
  border: none;
  border-top: var(--border-width) solid var(--color-border);
  margin: var(--space-4) 0;
}

.section-hook__transition {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0;
}

.section-hook__cta {
  align-self: center;
  margin-top: var(--space-2);
}

@media (min-width: 1024px) {
  .section-hook__headline {
    font-size: var(--font-size-h2-desktop);
  }

  .section-hook__container {
    max-width: var(--container-reading);
    margin-inline: auto;
  }
}

/* ------------------------------------------------------------
   SECCIÓN: BENEFICIOS
   ------------------------------------------------------------ */

.section-benefits {
  background-color: var(--color-bg);
  padding-block: var(--section-padding-mobile);
}

.section-benefits__headline {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2-mobile);
  line-height: var(--line-height-heading);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0 0 var(--space-3);
}

.section-benefits__subheadline {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  margin: 0;
}

.section-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.section-benefits__card {
  background-color: var(--color-bg);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.section-benefits__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-10);
  height: var(--space-10);
  border-radius: var(--border-radius-full);
  background-color: var(--color-trust-light);
  color: var(--color-trust);
}

.section-benefits__icon svg {
  width: var(--space-6);
  height: var(--space-6);
}

.section-benefits__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  line-height: var(--line-height-heading);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0;
}

.section-benefits__description {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  margin: 0;
}

.section-benefits__cta-wrapper {
  text-align: center;
  margin-top: var(--space-8);
}

@media (min-width: 1024px) {
  .section-benefits__headline {
    font-size: var(--font-size-h2-desktop);
  }

  .section-benefits__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ------------------------------------------------------------
   SECCIÓN: PRUEBA SOCIAL
   ------------------------------------------------------------ */

.section-proof {
  background-color: var(--color-bg-alt);
  padding-block: var(--section-padding-mobile);
}

.section-proof__headline {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2-mobile);
  line-height: var(--line-height-heading);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0 0 var(--space-3);
  text-align: center;
}

.section-proof__subheadline {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  margin: 0;
  text-align: center;
}

.section-proof__metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  text-align: center;
  margin-top: var(--space-8);
}

.section-proof__metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.section-proof__metric-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-trust);
  line-height: 1;
}

.section-proof__metric-label {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.section-proof__testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.section-proof__testimonial-card {
  background-color: var(--color-bg);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.section-proof__testimonial-text {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  font-style: italic;
  margin: 0;
}

.section-proof__testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-proof__testimonial-name {
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-small);
  color: var(--color-text);
}

.section-proof__testimonial-location {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

.section-proof__badges {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-8);
}

.section-proof__badge {
  background-color: var(--color-trust-light);
  color: var(--color-trust);
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius-full);
  text-align: center;
}

@media (min-width: 1024px) {
  .section-proof {
    padding-block: var(--section-padding-desktop);
  }

  .section-proof__headline {
    font-size: var(--font-size-h2-desktop);
  }

  .section-proof__metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-proof__testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-proof__badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ------------------------------------------------------------
   SECCIÓN: CÓMO FUNCIONA
   ------------------------------------------------------------ */

.section-how {
  background-color: var(--color-bg);
  padding-block: var(--section-padding-mobile);
}

.section-how__headline {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2-mobile);
  line-height: var(--line-height-heading);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0 0 var(--space-3);
  text-align: center;
}

.section-how__subheadline {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  margin: 0;
  text-align: center;
}

.section-how__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.section-how__step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.section-how__step-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-brand-turquoise-pale);
  color: var(--color-trust);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: var(--font-weight-extrabold);
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-width) solid var(--color-trust);
}

.section-how__step-badge--complete {
  background-color: var(--color-trust);
  color: var(--color-text-light);
  border-color: var(--color-trust);
}

.section-how__step-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  line-height: var(--line-height-heading);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.section-how__step-desc {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  margin: 0;
}

.section-how__connector {
  display: none;
}

.section-how__cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

@media (min-width: 1024px) {
  .section-how {
    padding-block: var(--section-padding-desktop);
  }

  .section-how__headline {
    font-size: var(--font-size-h2-desktop);
  }

  .section-how__steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .section-how__step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
    padding: 0 var(--space-4);
  }

  .section-how__connector {
    display: block;
    flex: 0 0 40px;
    height: 2px;
    background-color: var(--color-border);
    margin-top: 26px;
    position: relative;
  }

  .section-how__connector::after {
    content: '→';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-muted);
    font-size: 18px;
    background-color: var(--color-bg);
    padding: 0 4px;
  }
}

/* ------------------------------------------------------------
   SECCIÓN: FAQ / OBJECIONES
   ------------------------------------------------------------ */

.section-faq {
  background-color: var(--color-bg-alt);
  padding-block: var(--section-padding-mobile);
}

.section-faq__headline {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2-mobile);
  line-height: var(--line-height-heading);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0 0 var(--space-3);
  text-align: center;
}

.section-faq__subheadline {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  margin: 0;
  text-align: center;
}

.section-faq__accordion {
  margin-top: var(--space-8);
  border-top: var(--border-width) solid var(--color-border);
  max-width: var(--container-reading);
  margin-inline: auto;
}

.section-faq__item {
  border-bottom: var(--border-width) solid var(--color-border);
}

.section-faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.section-faq__question:hover,
.section-faq__question[aria-expanded="true"] {
  color: var(--color-trust);
}

.section-faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-trust-light);
  color: var(--color-trust);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.section-faq__question[aria-expanded="true"] .section-faq__icon {
  transform: rotate(45deg);
  background-color: var(--color-trust);
  color: var(--color-text-light);
}

.section-faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.section-faq__answer:not([hidden]) {
  max-height: 500px;
}

.section-faq__answer[hidden] {
  display: block;
  max-height: 0;
  visibility: hidden;
}

.section-faq__answer p {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--color-text-muted);
  line-height: var(--line-height-body);
  margin: 0;
  padding-bottom: var(--space-5);
}

.section-faq__cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  margin-top: var(--space-8);
}

.section-faq__cta-text {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--color-text-muted);
  margin: 0;
}

@media (min-width: 1024px) {
  .section-faq {
    padding-block: var(--section-padding-desktop);
  }

  .section-faq__headline {
    font-size: var(--font-size-h2-desktop);
  }
}

/* ------------------------------------------------------------
   SECCIÓN: CTA DE CIERRE
   ------------------------------------------------------------ */

.section-cta-close {
  background-color: var(--color-brand-green-dark);
  padding-block: var(--section-padding-mobile);
}

.section-cta-close__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  text-align: center;
}

.section-cta-close__headline {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2-mobile);
  line-height: var(--line-height-heading);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-light);
  margin: 0;
  max-width: var(--container-reading);
}

.section-cta-close__contrast {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  width: 100%;
  max-width: 720px;
}

.section-cta-close__contrast-col {
  border-radius: var(--border-radius-card);
  padding: var(--space-6);
  text-align: left;
}

.section-cta-close__contrast-col--yes {
  background-color: rgba(29, 158, 117, 0.15);
  border: var(--border-width) solid rgba(29, 158, 117, 0.4);
}

.section-cta-close__contrast-col--no {
  background-color: rgba(255, 255, 255, 0.06);
  border: var(--border-width) solid var(--color-border-dark);
}

.section-cta-close__contrast-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-4);
}

.section-cta-close__contrast-col--yes .section-cta-close__contrast-title {
  color: var(--color-trust-light);
}

.section-cta-close__contrast-col--no .section-cta-close__contrast-title {
  color: var(--color-text-on-dark);
  opacity: 0.7;
}

.section-cta-close__contrast-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.section-cta-close__contrast-col--yes .section-cta-close__contrast-list li {
  color: var(--color-text-on-dark);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.5;
}

.section-cta-close__contrast-col--no .section-cta-close__contrast-list li {
  color: var(--color-text-on-dark);
  opacity: 0.55;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.5;
}

.section-cta-close__secondary-headline {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-on-dark);
  line-height: 1.5;
  max-width: var(--container-reading);
  margin: 0;
}

.section-cta-close__cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.section-cta-close__cta {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.section-cta-close__microtext {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  color: var(--color-text-on-dark);
  opacity: 0.7;
  line-height: 1.6;
  margin: 0;
}

.section-cta-close__trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.section-cta-close__trust-item {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  color: var(--color-text-on-dark);
  opacity: 0.75;
}

@media (min-width: 1024px) {
  .section-cta-close {
    padding-block: var(--section-padding-desktop);
  }

  .section-cta-close__headline {
    font-size: var(--font-size-h2-desktop);
  }

  .section-cta-close__contrast {
    grid-template-columns: 1fr 1fr;
  }
}
