*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  width: 100%;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  text-wrap: pretty;
}

p,
.chapter__lead,
.story-chapter p,
.outcomes p,
.resources p,
.video-section p,
.faq-item__body p,
.faq-item__body li,
.legal-card p,
.legal-card li,
.contact-card p,
.disclaimer-modal__body p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.footer__bottom,
.footer__bottom p,
.site-footer p {
  text-align: left;
}

h1,
h2,
h3 {
  font-weight: 600;
}

main {
  display: block;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* Keep the sticky navigation compact once the page moves past its top edge. */
.site-header[data-scrolled="true"] {
  height: calc(var(--header-height) - 12px);
  background: var(--white);
}

.site-header {
  transition: transform 180ms var(--ease-out);
}

.site-header[data-hidden="true"] {
  transform: translateY(-100%);
}

.site-header .header__brands,
.site-header .nav__list,
.site-header .nav-toggle {
  transition: transform 180ms var(--ease-out);
  transform-origin: center;
}

.site-header[data-scrolled="true"] .header__brands {
  transform: scale(0.96);
}

@media (min-width: 781px) {
  .site-header[data-scrolled="true"] .nav__list {
    transform: scale(0.96);
  }
}

@media (max-width: 780px) {
  .site-header[data-scrolled="true"] .nav-toggle {
    transform: scale(0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header .header__brands,
  .site-header .nav__list,
  .site-header .nav-toggle {
    transition-duration: 1ms;
  }
}

/* Hero Section: La imagen de la web y del celu se ubica donde se ve la casa en escritorio */
.hero-section {
  position: relative;
  isolation: isolate;
  display: block;
  padding: clamp(3rem, 5.5vw, 5.5rem) max(var(--gutter), calc((100vw - var(--page-width)) / 2 + var(--gutter))) clamp(3.5rem, 6.5vw, 6rem);
  color: var(--white);
  background:
    radial-gradient(ellipse at 80% 25%, rgb(76 116 97 / 22%), transparent 45%),
    linear-gradient(135deg, var(--pine), var(--deep));
  border-bottom: 1px solid rgb(212 233 226 / 15%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}

@media (min-width: 1200px) {
  .hero__inner .hero-devices {
    width: 100%;
    max-width: clamp(540px, 47vw, 680px);
  }

  .hero__inner .device-frame--mobile {
    right: -14px;
    bottom: -20px;
    width: clamp(160px, 12vw, 188px);
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__content h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero__content .chapter__lead {
  max-width: 44ch;
  margin: 1.4rem 0 0;
  color: var(--mint);
  font-size: clamp(1.03rem, 1.2vw, 1.2rem);
  line-height: 1.65;
}

.solar-story {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.95fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
  padding: clamp(2.25rem, 4.5vw, 4.5rem) max(var(--gutter), calc((100vw - var(--page-width)) / 2 + var(--gutter))) clamp(4rem, 8vw, 8rem);
  color: var(--white);
  background:
    radial-gradient(ellipse at 18% 18%, rgb(76 116 97 / 18%), transparent 35%),
    linear-gradient(135deg, var(--pine), var(--deep));
}

.hero-section::before,
.solar-story::before,
.final-cta::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("../assets/images/isolineas-hero.svg");
  background-position: center;
  background-size: cover;
  content: "";
  opacity: 0.14;
  pointer-events: none;
}

.solar-scene {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: grid;
  height: min(78svh, 760px);
  min-height: 540px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-self: start;
  margin: 0;
  padding: clamp(1rem, 1.8vw, 1.65rem);
  overflow: hidden;
  border: 1px solid rgb(212 233 226 / 15%);
  background: linear-gradient(145deg, #24483f, #102820);
  box-shadow: 0 28px 90px rgb(0 0 0 / 17%);
}

.scene__art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.scene__sun {
  transform-box: view-box;
  transform-origin: center;
  transition: transform 850ms var(--ease-in-out);
}

.scene__sun-path--active {
  stroke-dasharray: 1;
  stroke-dashoffset: 0.92;
  transition: stroke-dashoffset 850ms var(--ease-in-out);
}

.scene__beam {
  opacity: 0.15;
  transition: opacity 650ms var(--ease-out);
}

.scene__energy-line {
  opacity: 0.15;
  stroke-dashoffset: 34;
  transition: opacity 600ms var(--ease-out), stroke-dashoffset 900ms var(--ease-out);
}

.scene__energy {
  opacity: 0.25;
  transition: opacity 500ms var(--ease-out);
}

.scene__halo {
  opacity: 0.55;
  transition: opacity 750ms var(--ease-out);
}

.solar-scene[data-stage="0"] .scene__sun {
  transform: translate(100px, 349px);
}

.solar-scene[data-stage="1"] .scene__sun {
  transform: translate(250px, 206px);
}

.solar-scene[data-stage="2"] .scene__sun {
  transform: translate(440px, 130px);
}

.solar-scene[data-stage="3"] .scene__sun {
  transform: translate(625px, 202px);
}

.solar-scene[data-stage="4"] .scene__sun {
  transform: translate(798px, 354px);
}

.solar-scene[data-stage="0"] .scene__sun-path--active {
  stroke-dashoffset: 0.92;
}

.solar-scene[data-stage="1"] .scene__sun-path--active {
  stroke-dashoffset: 0.73;
}

.solar-scene[data-stage="2"] .scene__sun-path--active {
  stroke-dashoffset: 0.5;
}

.solar-scene[data-stage="3"] .scene__sun-path--active {
  stroke-dashoffset: 0.27;
}

.solar-scene[data-stage="4"] .scene__sun-path--active {
  stroke-dashoffset: 0;
}

.solar-scene[data-stage="2"] .scene__beam,
.solar-scene[data-stage="3"] .scene__beam,
.solar-scene[data-stage="4"] .scene__beam {
  opacity: 0.75;
}

.solar-scene[data-stage="4"] .scene__energy-line {
  opacity: 0.95;
  stroke-dashoffset: 0;
}

.solar-scene[data-stage="4"] .scene__energy {
  opacity: 1;
}

.solar-scene[data-stage="2"] .scene__halo,
.solar-scene[data-stage="3"] .scene__halo {
  opacity: 1;
}

.mobile-story-stepper {
  display: none;
}

.story__chapters {
  min-width: 0;
}

.story-chapter {
  display: flex;
  min-height: clamp(520px, 80svh, 820px);
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.5rem, 5vh, 4rem);
  border-bottom: 1px solid rgb(212 233 226 / 19%);
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.story-chapter:last-of-type {
  border-bottom: 0;
}

.story-chapter--intro {
  min-height: min(78svh, 760px);
  padding-top: 1rem;
}

.story-chapter h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.story-chapter h2 {
  max-width: 16ch;
  margin: 0 0 0.65rem;
  color: var(--white);
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.chapter__lead,
.story-chapter > p:not(.eyebrow, .chapter__index, .chapter__note) {
  max-width: 48ch;
  margin: 0 0 1.85rem;
  color: rgb(237 246 241 / 85%);
  font-size: clamp(1.03rem, 1.2vw, 1.2rem);
  line-height: 1.65;
}

.chapter__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.7rem;
  margin-top: 2.1rem;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: auto 0 0;
  padding-top: 3rem;
  color: rgb(212 233 226 / 68%);
  font-size: 0.79rem;
  letter-spacing: 0.035em;
}

.scroll-cue span {
  position: relative;
  width: 24px;
  height: 35px;
  border: 1px solid rgb(212 233 226 / 54%);
  border-radius: 16px;
}

.scroll-cue span::after {
  position: absolute;
  top: 6px;
  left: 10px;
  width: 2px;
  height: 6px;
  background: var(--sun-light);
  content: "";
  opacity: 0.85;
}

.chapter__index {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  color: var(--sun-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.chapter__index span {
  color: rgb(212 233 226 / 45%);
}

.chapter__note {
  max-width: 45ch;
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--sun);
  color: var(--mint);
  font-size: 0.9rem;
  line-height: 1.55;
}

.story-chapter > .text-link {
  align-self: flex-start;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.chapter-media-pair {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.chapter-media,
.app-screen {
  min-width: 0;
  margin: 0;
}

.chapter-media {
  overflow: hidden;
  border: 1px solid rgb(212 233 226 / 22%);
  border-radius: 6px;
  background: #102820;
  box-shadow: 0 16px 44px rgb(0 0 0 / 22%);
}

@media (min-width: 1051px) {
  .chapter-media {
    width: min(100%, clamp(400px, 35vw, 480px));
  }
}

.chapter-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.chapter-media picture {
  display: block;
}

.chapter-media figcaption,
.app-screen figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  line-height: 1.4;
}

.media-badge {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chapter-media .media-badge {
  color: var(--sun-light);
}

.app-screen .media-badge {
  color: var(--leaf);
}

.media-caption {
  font-weight: 400;
}

.chapter-media .media-caption {
  color: rgb(237 246 241 / 82%);
}

.app-screen .media-caption {
  color: var(--muted);
}

.outcomes {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 4.5rem);
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding: clamp(4.5rem, 8vw, 7.5rem) var(--gutter);
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.outcomes__header {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: start;
}

.outcomes__intro h2,
.resources__heading h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--pine);
  font-size: clamp(2.5rem, 3.8vw, 3.85rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.outcomes > .outcomes__intro h2 {
  max-width: 28ch;
}

.outcomes__intro > p:last-child,
.resources__heading > p:last-child {
  max-width: 48ch;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.outcomes > .outcomes__intro > p:last-child {
  max-width: 84ch;
}

.outcomes__details {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.outcomes__register {
  border-top: 1px solid rgb(30 57 50 / 24%);
}

.register-row {
  display: grid;
  grid-template-columns: 2.8rem minmax(10rem, 0.7fr) minmax(15rem, 1fr);
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgb(30 57 50 / 20%);
}

.register-row__number {
  color: var(--leaf);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.register-row h3 {
  margin: 0;
  color: var(--pine);
  font-size: 1.22rem;
  line-height: 1.3;
}

.register-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.novedades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.15rem 1.5rem;
}

@media (min-width: 781px) {
  .novedades-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.novedad-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.15rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgb(30 57 50 / 4%);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.novedad-card:hover {
  transform: translateY(-2px);
  border-color: var(--leaf);
  box-shadow: 0 8px 24px rgb(30 57 50 / 8%);
}

.novedad-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mint);
  color: var(--leaf);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.novedad-card__body h3 {
  margin: 0;
  color: var(--pine);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.38;
}

.outcomes__divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(30 57 50 / 18%), transparent);
  margin-block: clamp(0.75rem, 2vw, 1.5rem);
}

/* ==========================================================================
   PÁGINAS INTERNAS: LEGISLACIÓN Y PREGUNTAS FRECUENTES
   ========================================================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--leaf);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.legal-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(3.5rem, 6vw, 5rem) var(--gutter);
}

.legal-hero__inner {
  width: min(100%, var(--page-width));
  margin-inline: auto;
}

.legal-hero h1 {
  margin: 0.5rem 0 1rem;
  color: var(--pine);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.legal-hero__lead {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
  text-align: left;
  text-justify: auto;
  hyphens: none;
  overflow-wrap: normal;
}

.legal-content,
.faq-content {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding: clamp(3.5rem, 6vw, 6rem) var(--gutter);
}

.legal-content__container,
.faq-content__container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  max-width: 1040px;
  margin-inline: auto;
}

/* Grupos y Tarjetas Legales */
.legal-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legal-group__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgb(30 57 50 / 18%);
}

.legal-group__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--leaf);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
}

.legal-group__header h2 {
  margin: 0;
  color: var(--pine);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.legal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.legal-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgb(30 57 50 / 4%);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.legal-card:hover {
  transform: translateY(-2px);
  border-color: var(--leaf);
  box-shadow: 0 8px 24px rgb(30 57 50 / 8%);
}

.legal-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.legal-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
  background: var(--mint);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.legal-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sun);
}

.legal-card h3 {
  margin: 0 0 0.5rem;
  color: var(--pine);
  font-size: 1.15rem;
  line-height: 1.3;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.legal-card__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.2rem;
}

.legal-download {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgb(30 57 50 / 18%);
  border-radius: 4px;
  color: var(--pine);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.legal-download:hover {
  border-color: var(--leaf);
  color: var(--leaf);
  background: var(--mint);
}

.legal-download:focus-visible {
  outline-offset: 3px;
}

/* Cuadro de Contacto Oficial */
.contact-box {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: #edf6f2;
  border: 1px solid rgb(30 57 50 / 14%);
  border-radius: 8px;
}

.contact-box__intro h3 {
  margin: 0 0 0.4rem;
  color: var(--pine);
  font-size: 1.35rem;
}

.contact-box__intro p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
}

.contact-card > div {
  min-width: 0;
  flex: 1;
}

.contact-card__icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.contact-card h4 {
  margin: 0 0 0.25rem;
  color: var(--pine);
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-card a,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-card a {
  color: var(--leaf);
  font-weight: 500;
}

.contact-card .contact-card__email {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  font-size: 0.72rem;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Banner de Llamada a la Acción */
.legal-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(115deg, var(--pine), #102820);
  border-radius: 8px;
  color: var(--white);
  box-shadow: 0 16px 40px rgb(0 0 0 / 18%);
}

.legal-cta__content h3 {
  margin: 0 0 0.5rem;
  color: var(--white);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.2;
}

.legal-cta__content p {
  margin: 0;
  color: var(--mint);
  font-size: 0.98rem;
  max-width: 52ch;
}

/* Acordeón de Preguntas Frecuentes */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 4px 16px rgb(30 57 50 / 4%);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq-item[open] {
  border-color: var(--leaf);
  box-shadow: 0 8px 28px rgb(30 57 50 / 8%);
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.35rem 1.6rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-item__trigger::-webkit-details-marker {
  display: none;
}

.faq-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--leaf);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.faq-item__trigger h3 {
  margin: 0;
  flex: 1;
  color: var(--pine);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
}

.faq-item__chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--leaf);
  border-bottom: 2px solid var(--leaf);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.faq-item[open] .faq-item__chevron {
  transform: rotate(-135deg);
}

.faq-item__body {
  padding: 0 1.6rem 1.6rem calc(1.6rem + 2.1rem + 1.15rem);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .faq-item__body {
    padding-left: 1.6rem;
  }
}

.faq-item__body p {
  margin: 0 0 0.85rem;
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

.faq-item__body ul,
.faq-item__body ol {
  margin: 0.5rem 0;
  padding-left: 1.35rem;
}

.faq-item__body li {
  margin-bottom: 0.45rem;
}

.video-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(5rem, 8vw, 8rem) max(var(--gutter), calc((100vw - var(--page-width)) / 2 + var(--gutter)));
  color: var(--white);
  background: var(--pine);
}

.video-section__copy h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.5rem, 3.8vw, 3.9rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.video-section__copy > p:not(.eyebrow, .video-section__credit) {
  max-width: 44ch;
  margin: 1.5rem 0 0;
  color: var(--mint);
  font-size: 1.02rem;
  line-height: 1.7;
}

.video-section__credit {
  margin: 2rem 0 0;
  color: rgb(212 233 226 / 72%);
  font-size: 0.84rem;
}

.video-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgb(0 0 0 / 28%);
  border: 1px solid rgb(212 233 226 / 15%);
}

.resources {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding: clamp(3.5rem, 5.5vw, 5.5rem) var(--gutter);
  align-items: center;
}

.resources > span {
  display: none !important;
}

.resources__heading h2 {
  max-width: 14ch;
}

.resource-links {
  align-self: center;
}

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(115deg, var(--pine), #102820);
}

.final-cta__orbit {
  position: absolute;
  top: 50%;
  right: max(-12rem, calc((100vw - 1500px) / 2));
  width: min(55vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgb(212 233 226 / 14%);
  border-radius: 50%;
  transform: translateY(-50%);
}

.final-cta__orbit::before,
.final-cta__orbit::after {
  position: absolute;
  inset: 11%;
  border: 1px solid rgb(212 233 226 / 10%);
  border-radius: 50%;
  content: "";
}

.final-cta__orbit::after {
  inset: 25%;
}

.final-cta__inner {
  position: relative;
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
}

.final-cta__inner h2 {
  max-width: 14ch;
  margin: 0 0 2rem;
  color: var(--white);
  font-size: clamp(2.8rem, 5.8vw, 6rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.site-footer {
  color: var(--mint);
  background: #0b211b;
}

.footer__bar {
  background: #ffffff;
  border-top: 1px solid rgb(0 0 0 / 6%);
  border-bottom: 1px solid rgb(0 0 0 / 8%);
  width: 100%;
}

.footer__top {
  display: flex;
  width: min(100%, var(--page-width));
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-inline: auto;
  padding: 1.25rem var(--gutter);
}

.footer__brand,
.footer__partner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer__identity {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.footer__brand:hover,
.footer__partner-link:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.footer__brand img {
  display: block;
  width: auto;
  height: 38px;
  object-fit: contain;
}

.footer__identity .footer__partner-link img {
  display: block;
  width: auto;
  max-width: 140px;
  height: 34px;
  object-fit: contain;
}

.footer__partners {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer__partners img {
  display: block;
  width: auto;
  max-width: 140px;
  height: 34px;
  object-fit: contain;
}

.footer__bottom {
  display: flex;
  width: min(100%, var(--page-width));
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-inline: auto;
  padding: 1.5rem var(--gutter);
  min-height: 64px;
  color: rgb(212 233 226 / 64%);
  font-size: 0.78rem;
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer__bottom a {
  color: var(--mint);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--sun-light);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 1440px) {
  .solar-story {
    grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.78fr);
  }
}

@media (max-width: 1050px) {
  :root {
    --header-height: 72px;
  }

  .header__brands {
    gap: 0.5rem;
  }

  .brand img {
    height: 28px;
    max-width: 120px;
  }

  .brand--epre img {
    height: 26px;
    max-width: 58px;
  }

  .brand--iee img {
    height: 22px;
    max-width: 80px;
  }

  .brand--gob img {
    height: 22px;
    max-width: 70px;
  }

  .header__divider {
    height: 18px;
    margin-inline: 0.15rem;
  }

  .nav__list {
    gap: 1.1rem;
  }

  .solar-story {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
    gap: 3rem;
  }

  .solar-scene {
    min-height: 470px;
  }

  .story-chapter h1 {
    font-size: clamp(3rem, 6vw, 4.7rem);
  }

  .story-chapter h2 {
    font-size: clamp(2.45rem, 4.7vw, 3.55rem);
  }

  .outcomes,
  .resources {
    gap: 3.5rem;
  }

  .outcomes__header {
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    gap: 2.5rem;
  }

  .app-screens__gallery {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.5rem;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 60px;
    --gutter: 1.15rem;
  }

  .header__inner {
    padding-inline: 0.75rem;
    gap: 0.35rem;
  }

  .header__brands {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
  }

  .brand img {
    height: 22px;
    max-width: 80px;
    object-fit: contain;
  }

  .brand--epre img {
    height: 20px;
    max-width: 44px;
    object-fit: contain;
  }

  .brand--iee img {
    height: 17px;
    max-width: 60px;
    object-fit: contain;
  }

  .brand--gob img {
    height: 17px;
    max-width: 54px;
    object-fit: contain;
  }

  .header__divider {
    height: 15px;
    margin-inline: 0.1rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 0 var(--gutter) 1.25rem;
    background: rgb(255 255 255 / 98%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 32px rgb(30 57 50 / 16%);
  }

  .site-header[data-open="true"] .nav {
    display: block;
    animation: nav-enter 220ms var(--ease-out) both;
  }

  @keyframes nav-enter {
    from { opacity: 0; transform: translateY(-7px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav__list {
    display: grid;
    gap: 0.25rem;
  }

  .nav__link {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    font-weight: 500;
  }

  .nav__link::after {
    display: none;
  }

  .nav__list li:last-child {
    padding-top: 0.75rem;
  }

  .btn--nav {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.92rem;
  }

  .hero-section {
    padding: 1.5rem var(--gutter) 2.25rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .hero__inner .hero-devices {
    order: 2;
    margin: 0.5rem 0 1.25rem;
  }

  .hero__content {
    order: 1;
  }

  .hero__content h1 {
    font-size: clamp(1.85rem, 6.5vw, 2.35rem);
    line-height: 1.15;
    word-break: break-word;
    letter-spacing: -0.03em;
  }

  .hero__content .chapter__lead {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.85rem;
  }

  .solar-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 1rem var(--gutter) 2.5rem;
  }

  /* En móvil se elimina la visualización de la cinemática 3D por solicitud de Gerardo */
  .solar-scene {
    display: none !important;
  }

  .mobile-story-stepper {
    display: none !important;
  }

  .story__chapters {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
  }

  .story-chapter {
    min-height: auto;
    padding: 1.75rem 0 2.5rem;
    scroll-margin-top: calc(var(--header-height) + 1.25rem);
    border-bottom: 1px solid rgb(212 233 226 / 15%);
  }

  .story-chapter:last-of-type {
    border-bottom: none;
  }

  .story-chapter h2 {
    max-width: 100%;
    font-size: clamp(1.35rem, 5vw, 1.7rem);
    line-height: 1.25;
    word-break: break-word;
    letter-spacing: -0.025em;
    text-wrap: balance;
    margin-bottom: 0.5rem;
  }

  .chapter__lead,
  .story-chapter > p:not(.eyebrow, .chapter__index, .chapter__note) {
    max-width: 100%;
    margin: 0 0 1.35rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgb(237 246 241 / 88%);
  }

  .chapter__index {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
  }

  .chapter-media {
    margin-top: 0;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgb(0 0 0 / 35%);
    overflow: hidden;
  }

  .chapter-media-pair {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .scroll-cue {
    padding-top: 1.5rem;
  }

  .outcomes {
    padding-block: 3.5rem;
    gap: 2rem;
  }

  .outcomes__header {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .resources {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    padding-block: 3.5rem;
  }

  .outcomes__intro h2,
  .resources__heading h2 {
    max-width: 100%;
    font-size: clamp(1.5rem, 6vw, 1.95rem);
    line-height: 1.22;
    text-wrap: balance;
  }

  .novedades-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .novedad-card {
    padding: 0.9rem 1.1rem;
    gap: 0.85rem;
  }

  .novedad-card__badge {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.85rem;
  }

  .novedad-card__body h3 {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .register-row {
    grid-template-columns: 2rem 1fr;
    gap: 0.4rem 0.8rem;
    padding-block: 1rem;
  }

  .register-row h3 {
    font-size: 1.02rem;
  }

  .register-row p {
    grid-column: 2;
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
  }

  .app-screens__heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .app-screens__heading .eyebrow {
    margin-bottom: 0;
  }

  .app-screens__gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .app-screen--mobile {
    width: min(100%, 280px);
    justify-self: center;
  }

  .video-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    padding-block: 3.5rem;
  }

  .video-section__copy h2 {
    max-width: 100%;
    font-size: clamp(1.5rem, 6vw, 1.95rem);
    line-height: 1.22;
    text-wrap: balance;
  }

  .video-section__copy > p:not(.eyebrow, .video-section__credit) {
    max-width: 100%;
  }

  .resource-link {
    min-height: 140px;
  }

  .final-cta__inner {
    padding-block: 3.5rem;
  }

  .final-cta__inner h2 {
    max-width: 100%;
    font-size: clamp(1.6rem, 6.5vw, 2.15rem);
    line-height: 1.2;
    text-wrap: balance;
  }

  .final-cta__orbit {
    top: 56%;
    right: -15%;
    width: 75vw;
    opacity: 0.4;
  }

  .footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding-block: 1.5rem;
  }

  .footer__identity {
    justify-content: center;
  }

  .footer__partners {
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    min-height: 0;
    padding-block: 1.25rem 1.85rem;
  }

  .footer__bottom nav {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .header__inner {
    padding-inline: 0.5rem;
    gap: 0.25rem;
  }

  .header__brands {
    gap: 0.25rem;
  }

  .brand img {
    height: 19px;
    max-width: 72px;
  }

  .brand--epre img {
    height: 18px;
    max-width: 38px;
  }

  .brand--iee img {
    height: 15px;
    max-width: 50px;
  }

  .brand--gob img {
    height: 15px;
    max-width: 46px;
  }

  .header__divider {
    height: 13px;
    margin-inline: 0.05rem;
  }

  .mobile-step-chip {
    font-size: 0.68rem;
    padding: 0.28rem 0.55rem;
  }

  .register-row {
    grid-template-columns: 1.8rem 1fr;
  }

  .register-row p {
    grid-column: 2;
  }

  .scene__gis-coords {
    max-width: 48%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .solar-scene .scene__sun,
  .solar-scene .scene__sun-path--active,
  .solar-scene .scene__beam,
  .solar-scene .scene__energy-line,
  .solar-scene .scene__energy,
  .solar-scene .scene__halo {
    transition-duration: 1ms;
  }

  .site-header[data-open="true"] .nav {
    animation: none;
  }
}
