/* ==========================================================================
   aewën — Home
   Sistema visual: blanco clínico, tipografía 350, azul señal como único acento.
   ========================================================================== */

:root {
  --black: #000;
  --off-black: #0f1012;
  --pure-black: #020201;
  --grey-dark: #1d1e20;
  --grey-light: #efefef;
  --off-white: #f2f2f4;
  --white: #fdfdfd;
  --steel: #5e5e5e;
  --ash: #8f8f8f;
  --blue: #0071e3;

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.65, 0, .35, 1);       /* power3.inOut */
  --ease-out: cubic-bezier(.215, .61, .355, 1); /* power3.out */

  --cols: 5;
  --gutter: 2.564vw;
  --outer: 5.128vw;
}
@media (min-width: 834px) {
  :root { --gutter: 2.398vw; --outer: 4.796vw; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 350;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--off-black);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 400; }
sup { font-size: .6em; vertical-align: top; position: relative; top: .1em; }

.container { padding: 0 var(--outer); width: 100%; }
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  column-gap: var(--gutter);
}
.e { font-feature-settings: normal; }

/* Elementos que se revelan con JS: ocultos hasta que GSAP los muestra.
   Si JS no carga, .no-js los deja visibles. */
.js [data-reveal], .js [data-split], .js .hero-image, .js #heroHead,
.js #heroMark, .js #heroTagline, .js #heroCats, .js #scrollIndicator { visibility: hidden; }

/* ==========================================================================
   Pill (etiqueta con rollo de texto al hover)
   ========================================================================== */
.pill {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 5.4rem;
  padding: .21rem 1.1rem .36rem;
  font-size: 1.6rem;
  transition: background-color .3s, color .3s;
}
@media (min-width: 834px) { .pill { font-size: 1.4rem; } }
@media (min-width: 1440px) { .pill { font-size: 1.6rem; } }
.pill:not(.filled) { border: .72px solid; }
.pill.blue:not(.filled) { color: var(--blue); }
.pill.blue.filled { background: var(--blue); color: #fff; border: .72px solid var(--blue); }
.pill .label { display: block; transition: transform .5s var(--ease); }
.pill .label + .label { position: absolute; left: 1.1rem; top: .21rem; transform: translateY(130%); }
.pill:hover .label:first-child { transform: translateY(-130%); }
.pill:hover .label + .label { transform: translateY(0); }
.pill.blue:not(.filled):hover { background: rgba(0, 113, 227, .06); }

/* ==========================================================================
   Arrow link (flecha que se desliza + parpadeo de desenfoque)
   ========================================================================== */
.arrow-link {
  display: inline-flex;
  align-items: center;
  column-gap: 1.9rem;
  font-size: 1.6rem;
}
@media (min-width: 834px) { .arrow-link { font-size: 1.4rem; column-gap: 2.1rem; } }
@media (min-width: 1440px) { .arrow-link { font-size: 1.6rem; } }
.arrow-link.blue { color: var(--blue); }
.arrow-link.offwhite { color: var(--off-white); }
.arrow-link.large { font-size: 1.8rem; }
@media (min-width: 1440px) { .arrow-link.large { font-size: 2rem; } }

.arrow-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
  width: 3.4rem;
  height: 2rem;
  border: 1px solid;
  border-radius: 6.3rem;
}
.arrow-icon svg { width: 1.2rem; height: .8rem; transition: transform .5s var(--ease); }
.arrow-icon svg + svg { position: absolute; transform: translateX(-2.5rem); }
.arrow-link:hover .arrow-icon svg:first-child { transform: translateX(2.5rem); }
.arrow-link:hover .arrow-icon svg + svg { transform: translateX(0); }
.arrow-link:hover .arrow-text { animation: blur-flicker .8s linear; }

.arrow-link.down { flex-direction: column; row-gap: 2.5rem; text-align: center; }
@media (min-width: 834px) { .arrow-link.down { flex-direction: row; column-gap: 3.5rem; text-align: left; } }
.arrow-link.down .arrow-icon { width: 2.4rem; height: 5.1rem; border-radius: 3.4rem; }
.arrow-link.down .arrow-icon svg { width: .8rem; height: 1.2rem; }
.arrow-link.down .arrow-icon svg + svg { transform: translateY(-3.5rem); }
.arrow-link.down:hover .arrow-icon svg:first-child { transform: translateY(3.5rem); }
.arrow-link.down:hover .arrow-icon svg + svg { transform: translateY(0); }

@keyframes blur-flicker {
  0% { filter: blur(0); }
  50% { filter: blur(1px); }
  100% { filter: blur(0); }
}

/* ==========================================================================
   Menú
   ========================================================================== */
.menu {
  position: fixed;
  top: 2.4rem;
  left: var(--outer);
  right: var(--outer);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 4.5rem;
  pointer-events: none;
}
.js .menu { opacity: 0; }
.menu > * { pointer-events: auto; }
@media (min-width: 834px) { .menu { top: 3.4rem; } }

/* Barra de navegación: vidrio casi transparente que difumina lo que pasa por detrás */
.menu-nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  height: 4.5rem;
  padding: 0 3rem;
  border-radius: 1rem;
  background: rgba(120, 120, 120, .1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--off-black);
  transition: background-color .2s, color .2s;
}
.menu-nav ul { display: flex; align-items: center; column-gap: 5rem; height: 100%; }
.menu-nav a { display: block; font-size: 1.4rem; white-space: nowrap; transition: opacity .3s; }
@media (min-width: 1440px) { .menu-nav a { font-size: 1.6rem; } }
.menu-nav a .idx { display: none; }
/* Al pasar el ratón por un enlace, los demás se atenúan */
.menu-nav li:has(~ li:hover) a,
.menu-nav li:hover ~ li a { opacity: .3; }

@media (min-width: 1080px) { .menu-nav { display: block; } }

/* Sobre secciones oscuras o azules: vidrio blanco al 10% y texto claro */
.menu.on-dark .menu-nav,
.menu.on-blue .menu-nav { background: rgba(255, 255, 255, .1); color: #fff; }
.menu.on-dark .burger,
.menu.on-blue .burger { background: rgba(255, 255, 255, .1); color: #fff; }

.burger {
  position: relative;
  width: 4.9rem;
  height: 4.9rem;
  border-radius: 1rem;
  background: rgba(120, 120, 120, .1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--off-black);
  transition: background-color .2s, color .2s;
}
.burger span {
  position: absolute;
  left: 1.5rem;
  width: 1.9rem;
  height: 1px;
  background: currentColor;
  transition: transform .5s var(--ease);
}
.burger span:first-child { top: 2.05rem; }
.burger span:last-child { top: 2.85rem; }
.menu-open .burger span:first-child { transform: translateY(.4rem) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-.4rem) rotate(-45deg); }
@media (min-width: 1080px) { .burger { display: none; } }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(242, 242, 244, .96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 12rem var(--outer) 4rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
}
.mobile-nav-title { font-size: 1.4rem; opacity: .5; margin-bottom: 3rem; }
.mobile-nav ul { display: flex; flex-direction: column; row-gap: 1.6rem; margin-bottom: 4rem; }
.mobile-nav li { display: flex; align-items: baseline; gap: 1.2rem; font-size: 3.2rem; }
.mobile-nav .idx { font-size: 1.2rem; opacity: .4; width: 2rem; }
.mobile-nav .pill { align-self: flex-start; }
@media (min-width: 1080px) { .mobile-nav { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 22%;
  background: linear-gradient(0deg, #fdfdfe, rgba(253, 253, 254, 0));
  opacity: .78;
  z-index: 1;
  pointer-events: none;
}
@media (min-width: 834px) { .hero::before { height: 55%; } }

.hero-image {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 52%;
  z-index: 0;
  will-change: filter, transform;
}
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
@media (max-width: 833px) {
  .hero-image { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%); }
}
@media (min-width: 834px) {
  .hero-image { top: 0; height: 100%; }
  .hero-image img { object-position: 50% 50%; }
}

.hero-container {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  column-gap: var(--gutter);
  padding-top: 9rem;
  padding-bottom: 3rem;
}
@media (min-width: 834px) {
  .hero-container { padding-top: 9.4rem; padding-bottom: 4.3rem; }
}

.hero-head { display: none; }
@media (min-width: 834px) {
  .hero-head { display: block; grid-column: 1 / -1; }
}
.hero-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-width: 30rem;
  width: max-content;
  height: 3rem;
  padding: 0 4rem 0 1.6rem;
  border-radius: 1rem;
  background: rgba(117, 117, 117, .1);
  color: rgba(0, 0, 0, .6);
  font-size: 1.2rem;
  transition: background-color .3s;
}
.hero-link:hover { background: rgba(117, 117, 117, .16); }
.hero-link-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 1.3rem;
  border: 1px solid;
  border-radius: 6.3rem;
  color: var(--blue);
}
.hero-link-icon svg { width: .9rem; height: .6rem; }

.hero-content {
  grid-column: 1 / -1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 2rem;
}
@media (min-width: 834px) {
  .hero-content { grid-column: 1 / 3; align-self: end; height: auto; padding-top: 6rem; }
}
.hero-content-inner { text-align: center; }
@media (min-width: 834px) { .hero-content-inner { text-align: left; } }

.hero-mark {
  display: inline-flex;
  align-items: flex-end;
  line-height: 1;
}
.hero-mark .logo { display: block; height: 1.8rem; width: auto; align-self: flex-end; }
.hero-mark sup { font-size: .7rem; top: -.2em; margin-left: .2rem; align-self: flex-start; }
.hero-mark-sub {
  font-size: 1.2rem;
  font-style: italic;
  letter-spacing: -.01em;
  margin-left: .8rem;
  opacity: .5;
}
.hero-tagline {
  font-size: 2.2rem;
  font-weight: 350;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin-top: 1.2rem;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 350;
  max-width: 24rem;
  margin: 1.2rem auto 0;
}
@media (min-width: 834px) { .hero-title { margin: 1.2rem 0 0; } }
@media (min-width: 1440px) { .hero-title { font-size: 2.7rem; max-width: 26rem; } }

.hero-cats { margin-top: 2.6rem; }
@media (min-width: 834px) { .hero-cats { display: flex; align-items: center; column-gap: .6rem; } }
.hero-cats-label { display: none; }
@media (min-width: 834px) {
  .hero-cats-label { display: inline-block; font-size: 1.4rem; opacity: .5; margin-right: .4rem; }
}
.hero-cats-list { display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem; }

.scroll-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 2.4rem;
  height: 5.1rem;
  margin: 0 auto;
  border-radius: 3.4rem;
  background: rgba(12, 13, 15, .05);
  color: var(--pure-black);
}
.scroll-indicator svg { width: .8rem; height: 1.2rem; transition: transform .6s var(--ease); }
.scroll-indicator svg + svg { position: absolute; transform: translateY(-3.5rem); }
.scroll-indicator:hover svg:first-child { transform: translateY(3.5rem); }
.scroll-indicator:hover svg + svg { transform: translateY(0); }
@media (min-width: 834px) {
  .scroll-indicator { width: 1.8rem; height: 4rem; border-radius: 2.6rem; margin: 7.2rem 0 0; }
}

/* ==========================================================================
   Secciones
   ========================================================================== */
.section.dark { background: var(--off-black); color: var(--off-white); }

.small-title { font-size: 1.6rem; font-weight: 350; }
@media (min-width: 834px) { .small-title { font-size: 1.4rem; } }
@media (min-width: 1440px) { .small-title { font-size: 1.6rem; } }
.small-title > span { display: block; }
.two-tone > span:first-child { opacity: .5; }
.accent-second > span:nth-child(2) { color: var(--blue); }

/* --- Intro --- */
.intro { background: var(--grey-light); padding: 23vw 0; }
@media (min-width: 834px) { .intro { padding: 15.28vw 0; } }
.intro-head { grid-column: 1 / -1; text-align: center; }
@media (min-width: 834px) { .intro-head { grid-column: 2 / 3; text-align: left; } }
.intro-content {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 834px) { .intro-content { grid-column: 3 / 5; align-items: flex-start; } }
.intro-copy {
  font-size: 2.5rem;
  margin-top: 18vw;
  text-align: center;
  max-width: 50rem;
}
@media (min-width: 834px) { .intro-copy { margin-top: 0; text-align: left; } }
@media (min-width: 1440px) { .intro-copy { font-size: 2.7rem; } }
.rotator {
  position: relative;
  width: 100%;
  height: 3.4rem;
  font-size: 2.5rem;
  color: var(--blue);
}
@media (min-width: 1440px) { .rotator { font-size: 2.7rem; height: 3.6rem; } }
.rotator-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  text-align: center;
  opacity: 0;
}
@media (min-width: 834px) { .rotator-line { text-align: left; right: auto; } }
.intro .arrow-link { margin-top: 16.7vw; }
@media (min-width: 834px) { .intro .arrow-link { margin-top: 4.44vw; } }

/* --- Detalles (oscuro) --- */
.details-top { background: rgba(29, 30, 32, .5); padding: 21vw 0; }
@media (min-width: 834px) { .details-top { padding: 7.85vw 0; } }
.details-bottom { padding: 23vw 0 19.2vw; }
@media (min-width: 834px) { .details-bottom { padding: 5.2vw 0 7.64vw; } }
.details-head { grid-column: 1 / -1; }
@media (min-width: 834px) { .details-head { grid-column: 3 / 5; } }

.top-items {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  row-gap: 5.7rem;
  margin-top: 7rem;
}
@media (min-width: 834px) { .top-items { grid-column: 2 / 6; margin-top: 8.2rem; row-gap: 4.2rem; } }
.top-item { display: flex; flex-direction: column; row-gap: 2.4rem; }
@media (min-width: 834px) {
  .top-item {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: var(--gutter);
  }
}
.item-head { display: flex; flex-direction: column; font-size: 1.6rem; }
@media (min-width: 834px) { .item-head { grid-column: 1 / 2; font-size: 1.2rem; } }
@media (min-width: 1440px) { .item-head { font-size: 1.4rem; } }
.item-num { display: block; margin-bottom: .5rem; opacity: .5; }
.item-title {
  position: relative;
  font-size: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 834px) { .item-title { grid-column: 2 / 5; padding-bottom: 2rem; } }
@media (min-width: 1440px) { .item-title { font-size: 2.7rem; } }
.hairline {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: .5px;
  background: rgba(255, 255, 255, .1);
  transform-origin: left center;
}

.bottom-items {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  row-gap: 4.5rem;
  margin-bottom: 8.5rem;
}
@media (min-width: 834px) {
  .bottom-items {
    grid-column: 3 / 6;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--gutter);
    row-gap: 0;
  }
}
.bottom-item { display: flex; flex-direction: column; }
.bottom-item::before {
  content: "";
  width: .72rem;
  height: 1px;
  margin-bottom: 1rem;
  background: var(--blue);
}
.bottom-item-title { font-size: 1.6rem; opacity: .5; }
@media (min-width: 834px) { .bottom-item-title { font-size: 1.2rem; } }
@media (min-width: 1440px) { .bottom-item-title { font-size: 1.4rem; } }
.bottom-item-copy { margin-top: 2rem; font-size: 1.8rem; }
@media (min-width: 1440px) { .bottom-item-copy { font-size: 2rem; } }
.bottom-item-copy span { display: block; }
.bottom-item-copy span + span { opacity: .5; }

.bottom-line {
  grid-column: 1 / -1;
  height: .5px;
  background: rgba(255, 255, 255, .2);
  transform-origin: left center;
}
@media (min-width: 834px) { .bottom-line { grid-column: 2 / 6; } }

.bottom-services {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  row-gap: 5.2rem;
  padding-top: 5.6rem;
}
@media (min-width: 834px) {
  .bottom-services {
    grid-column: 2 / 6;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: var(--gutter);
    padding-top: 4.2rem;
  }
  .bottom-services .item-head { grid-column: 1 / 2; }
}
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 2rem;
}
@media (min-width: 834px) {
  .services { grid-column: 2 / 5; grid-template-columns: repeat(4, 1fr); column-gap: var(--gutter); }
}
.bracket {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  font-size: 1.8rem;
  white-space: nowrap;
}
@media (min-width: 1440px) { .bracket { font-size: 2rem; } }
.bracket::before { content: "["; color: var(--blue); }
.bracket::after { content: "]"; color: var(--blue); }
.bracket sup { font-size: 1.1rem; top: -.4rem; margin-left: .1rem; }
.service-name { margin-top: 2.8rem; font-size: 1.6rem; max-width: 14rem; }
@media (min-width: 834px) { .service-name { font-size: 1.2rem; } }
@media (min-width: 1440px) { .service-name { font-size: 1.4rem; } }

/* --- Fórmula (imagen de producto) --- */
.formula { background: var(--off-white); overflow: hidden; }
.formula-container { padding-top: 22.5vw; padding-bottom: 21.8vw; row-gap: 0; }
@media (min-width: 834px) { .formula-container { padding-top: 10vw; padding-bottom: 5.9vw; } }

.section-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.4rem;
}
.section-head-icon {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 .4rem rgba(0, 113, 227, .12);
}

.formula-media {
  position: relative;
  grid-column: 1 / -1;
  margin-top: 12vw;
  aspect-ratio: 4 / 5;
  border-radius: 2.6rem;
  overflow: hidden;
  background: #e9e9ea;
  transform-origin: center center;
}
@media (min-width: 834px) {
  .formula-media {
    margin-top: 6.25vw;
    aspect-ratio: 16 / 9;
    max-height: 86svh;
    width: 100%;
    border-radius: 5.4rem;
  }
}
.formula-media-inner { position: absolute; inset: -8% 0; will-change: transform; }
.formula-media-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 50%;
}
.formula-caption {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1rem 1.4rem;
  border-radius: 1rem;
  background: rgba(253, 253, 253, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 1.2rem;
}
.formula-caption span:first-child { color: var(--blue); }
@media (min-width: 834px) { .formula-caption { left: 3.4rem; bottom: 3.4rem; font-size: 1.3rem; } }

.formula-content { grid-column: 1 / -1; margin: 12vw auto 0; text-align: center; }
@media (min-width: 834px) { .formula-content { grid-column: 2 / 4; margin: 6.9rem 0 0; text-align: left; } }
.formula-copy { font-size: 1.8rem; max-width: 33rem; }
.formula-copy > span:first-child { opacity: .5; }
.formula-sub { display: block; margin-top: 2rem; }
@media (min-width: 834px) { .formula-copy { font-size: 1.6rem; } }
@media (min-width: 1440px) { .formula-copy { font-size: 1.8rem; } }

.formula-links {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 2.6rem;
  margin-top: 6.9rem;
}
@media (min-width: 834px) {
  .formula-links { grid-column: 4 / 6; align-items: flex-end; justify-content: flex-end; row-gap: 2.2rem; margin-top: 6.9rem; }
}
.links-label { font-size: 1.6rem; }
@media (min-width: 834px) { .links-label { font-size: 1.2rem; } }
@media (min-width: 1440px) { .links-label { font-size: 1.4rem; } }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }

/* --- About (oscuro) --- */
.about { padding: 20.5vw 0; }
@media (min-width: 834px) { .about { padding: 9.03vw 0; } }
.about-item {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  column-gap: var(--gutter);
  row-gap: 5rem;
}
.about-item + .about-item { padding-top: 10.26vw; }
@media (min-width: 834px) {
  .about-item { grid-column: 2 / 6; grid-template-columns: repeat(4, 1fr); row-gap: 3.19vw; }
  .about-item + .about-item { padding-top: 4.86vw; }
}
.about-label { grid-column: 1 / -1; font-size: 1.6rem; font-weight: 350; }
@media (min-width: 834px) { .about-label { grid-column: 1 / 3; font-size: 1.2rem; } }
@media (min-width: 1440px) { .about-label { font-size: 1.4rem; } }
.about-head { grid-column: 1 / 6; }
@media (min-width: 834px) { .about-head { grid-column: 1 / 2; } }
.about-subtitle { font-size: 2.5rem; font-weight: 350; max-width: 19rem; }
@media (min-width: 1440px) { .about-subtitle { font-size: 2.7rem; } }
.about-link { margin-top: 2.5rem; }
@media (min-width: 834px) { .about-link { margin-top: 2.1rem; } }
.about-copy {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  max-width: 35rem;
  font-size: 1.6rem;
}
@media (min-width: 834px) { .about-copy { grid-column: 2 / 4; max-width: 30rem; font-size: 1.4rem; } }
@media (min-width: 1440px) { .about-copy { font-size: 1.6rem; } }
.about-copy h3 { font-size: inherit; font-weight: 350; }
.about-copy p { opacity: .5; }
.about-copy p strong { opacity: 1; color: var(--off-white); }
.about-sub {
  grid-column: 1 / 4;
  max-width: 22rem;
  font-size: 1.6rem;
  opacity: .4;
}
@media (min-width: 834px) { .about-sub { grid-column: 4 / 5; max-width: 17rem; font-size: 1.2rem; } }
@media (min-width: 1440px) { .about-sub { font-size: 1.4rem; } }
.about-line {
  grid-column: 1 / -1;
  height: .5px;
  background: rgba(255, 255, 255, .1);
  transform-origin: left center;
}
@media (min-width: 834px) { .about-line { margin-top: 4.86vw; } }

/* --- Bloques numerados (azul / blanco) --- */
.plan { background: var(--blue); color: var(--off-white); padding: 23vw 0; }
@media (min-width: 834px) { .plan { padding: 8.125vw 0 9.72vw; } }
.text-block { background: var(--off-white); color: var(--blue); padding: 23vw 0; }
@media (min-width: 834px) { .text-block { padding: 8.125vw 0 9.72vw; } }
.text-block .grid { row-gap: 16vw; }
@media (min-width: 834px) { .text-block .grid { row-gap: 6.9vw; } }

.numbered {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}
@media (min-width: 834px) { .numbered { grid-column: 2 / 5; flex-direction: row; } }
.numbered-num { font-size: 1.8rem; margin: 0 auto 3rem; }
@media (min-width: 834px) { .numbered-num { margin: .5rem 0 0; min-width: 3.6rem; } }
@media (min-width: 1440px) { .numbered-num { font-size: 2rem; } }
.numbered-inner { text-align: center; }
@media (min-width: 834px) { .numbered-inner { margin-left: 6rem; text-align: left; } }
.numbered-title { font-size: 3.5rem; font-weight: 350; max-width: 60rem; }
@media (min-width: 1440px) { .numbered-title { font-size: 3.8rem; } }
.numbered-copy {
  margin: 3.4rem auto 0;
  max-width: 24rem;
  font-size: 1.6rem;
  opacity: .7;
}
@media (min-width: 834px) { .numbered-copy { margin: 2.8rem 0 0; max-width: 22rem; font-size: 1.4rem; } }
@media (min-width: 1440px) { .numbered-copy { font-size: 1.6rem; max-width: 26rem; } }
.numbered .arrow-link { margin-top: 8.6rem; }
@media (min-width: 834px) { .numbered .arrow-link { margin-top: 6.5rem; } }
.text-block .numbered .arrow-link { margin-top: 4rem; }

/* --- Logo fijo (volver arriba) --- */
.sticky-logo {
  position: fixed;
  right: var(--outer);
  bottom: 2.4rem;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.4rem;
  padding: 0 1.4rem;
  border-radius: 1rem;
  background: var(--blue);
  color: var(--off-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility .5s;
}
.sticky-logo.is-visible { opacity: 1; visibility: visible; transform: none; }
.sticky-logo .logo { display: block; height: 1.4rem; width: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--off-black);
  color: var(--off-white);
  padding-top: 12rem;
  overflow: hidden;
}
@media (min-width: 834px) { .footer { padding-top: 6.9vw; } }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem var(--gutter);
}
@media (min-width: 834px) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.footer-brand { grid-column: 1 / -1; max-width: 30rem; font-size: 1.4rem; }
@media (min-width: 834px) { .footer-brand { grid-column: 1 / 3; } }
.footer-brand p { opacity: .5; }
.footer-badges { margin-top: 1.6rem; color: var(--blue); opacity: 1 !important; }
.links-group-label { font-size: 1.2rem; opacity: .5; margin-bottom: 2rem; }
.links-group-label span { margin-right: .6rem; }
.links-group ul { display: flex; flex-direction: column; row-gap: .8rem; }
.links-group a { font-size: 1.6rem; transition: color .3s; }
@media (min-width: 834px) { .links-group a { font-size: 1.4rem; } }
.links-group a:hover { color: var(--blue); }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  margin-top: 10rem;
  border-top: .5px solid rgba(255, 255, 255, .1);
  font-size: 1.2rem;
  opacity: .5;
}
@media (min-width: 834px) {
  .footer-legal { flex-direction: row; justify-content: space-between; gap: 4rem; }
  .footer-legal span:nth-child(2) { max-width: 44rem; }
}

/* Franja legal del pie: empresa + enlaces a legal.html y al Libro de Reclamaciones */
.footer-policies {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 10rem;
  padding-top: 3rem;
  border-top: .5px solid rgba(255, 255, 255, .1);
  font-size: 1.3rem;
}
.footer-policies > span { opacity: .5; }
.footer-policies nav { display: flex; flex-wrap: wrap; gap: .8rem 2.4rem; }
.footer-policies a { opacity: .7; transition: color .3s, opacity .3s; }
.footer-policies a:hover { color: var(--blue); opacity: 1; }
.footer-policies nav { padding-right: 11rem; } /* deja libre el sitio del logo fijo (.sticky-logo) */
.footer-policies .footer-book { opacity: 1; color: var(--off-white); }
.footer-book span, .legal-nav-book span { text-decoration: underline; text-underline-offset: .3rem; }
.footer-book, .legal-nav .legal-nav-book { display: inline-flex; align-items: center; gap: .6rem; }
.book-icon { flex: none; width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.footer-policies + .footer-legal { margin-top: 3rem; }
@media (min-width: 834px) {
  .footer-policies { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 4rem; }
}

/* ==========================================================================
   Páginas internas
   ========================================================================== */

/* Enlace de la página actual en el menú */
.menu-nav a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: .5rem;
  height: .5rem;
  margin-right: .7rem;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: middle;
  transform: translateY(-.1em);
}
.menu.on-dark .menu-nav a[aria-current="page"]::before,
.menu.on-blue .menu-nav a[aria-current="page"]::before { background: currentColor; }
.mobile-nav a[aria-current="page"] { color: var(--blue); }

/* Pill gris (categorías de la cabecera) */
.pill.grey { background: rgba(12, 13, 15, .07); border-color: transparent; color: var(--off-black); }
.pill.grey:hover { background: rgba(12, 13, 15, .13); }

/* --- Cabecera de página (estilo "Programs") --- */
.p-hero { background: var(--off-white); }
.p-hero-container {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: 9rem;
  padding-bottom: 3rem;
}
@media (min-width: 834px) { .p-hero-container { padding-top: 9.4rem; padding-bottom: 4.3rem; } }
.p-hero-middle { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6rem 0; }
.p-hero-tagline { font-size: 2.5rem; text-align: center; }
.p-hero-steps { display: grid; width: 100%; }
.p-hero-step { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.p-hero-question { font-size: 3.2rem; font-weight: 350; line-height: 1.15; color: var(--blue); }
.p-hero-answer { max-width: 60rem; margin-top: 3rem; font-size: 2.2rem; line-height: 1.4; color: var(--off-black); }
.p-hero-answer .is-blue { color: var(--blue); }
.p-hero-logo { display: block; height: 3.4rem; width: auto; color: var(--off-black); }
@media (min-width: 834px) {
  .p-hero-question { font-size: 4.2rem; }
  .p-hero-answer { font-size: 2.6rem; max-width: 68rem; }
  .p-hero-logo { height: 4.2rem; }
}
@media (min-width: 1440px) {
  .p-hero-question { font-size: 4.8rem; }
  .p-hero-answer { font-size: 2.8rem; max-width: 74rem; }
}
.js [data-hero-steps] > * { visibility: hidden; }
@media (min-width: 1440px) { .p-hero-tagline { font-size: 2.7rem; } }

.p-hero-bottom { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 834px) {
  .p-hero-bottom {
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: end;
  }
}
.p-hero-center { order: -1; text-align: center; }
@media (min-width: 834px) { .p-hero-center { grid-column: 2 / 5; grid-row: 1; } }
.p-hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 1.6rem;
  font-size: 3.8rem;
  font-weight: 350;
  line-height: 1;
  color: var(--blue);
}
@media (min-width: 834px) { .p-hero-title { font-size: 4.2rem; } }
@media (min-width: 1440px) { .p-hero-title { font-size: 4.8rem; } }
/* Cápsula azul y blanca como icono */
.p-hero-icon { display: inline-flex; flex-direction: column; width: 1.3rem; height: 2.9rem; transform: rotate(35deg); }
.p-hero-icon span { flex: 1; border: 1.5px solid var(--blue); }
.p-hero-icon span:first-child { background: var(--blue); border-radius: 1rem 1rem 0 0; }
.p-hero-icon span:last-child { border-top: 0; border-radius: 0 0 1rem 1rem; }
.p-hero-sub { max-width: 24rem; margin: 3.2rem auto 0; font-size: 1.6rem; color: rgba(15, 16, 18, .45); }
@media (min-width: 1440px) { .p-hero-sub { font-size: 1.8rem; max-width: 26rem; } }
.p-hero-scroll { margin: 4rem auto 0; }
@media (min-width: 834px) { .p-hero-scroll { grid-column: 1; grid-row: 1; justify-self: start; margin: 0; } }
.p-hero-cats { display: none; }
@media (min-width: 834px) {
  .p-hero-cats { grid-column: 5; grid-row: 1; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; row-gap: 1.4rem; }
}
.p-hero-cats-label { display: flex; align-items: center; column-gap: .8rem; font-size: 1.2rem; }
.p-hero-cats-dot { width: 1.6rem; height: 1.6rem; border-radius: .3rem; background: var(--blue); position: relative; }
.p-hero-cats-dot::after { content: ""; position: absolute; inset: .5rem; border-radius: 50%; background: var(--off-white); }
.p-hero-cats-list { display: flex; gap: .6rem; white-space: nowrap; }

/* --- Intro --- */
.p-intro { background: #f7f7f8; padding: 23vw 0; }
@media (min-width: 834px) { .p-intro { padding: 12rem 0 9.6rem; } }
.p-intro-label { grid-column: 1 / -1; }
@media (min-width: 834px) { .p-intro-label { grid-column: 2 / 3; } }
.p-intro-content { grid-column: 1 / -1; margin-top: 6rem; }
@media (min-width: 834px) { .p-intro-content { grid-column: 3 / 5; margin-top: 0; } }
.p-intro-copy { max-width: 44rem; font-size: 2.5rem; }
@media (min-width: 1440px) { .p-intro-copy { font-size: 2.7rem; } }
.p-intro-pills { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 4.6rem; }
.p-intro-sub { max-width: 24rem; margin-top: 4.6rem; font-size: 1.6rem; color: rgba(15, 16, 18, .5); }
/* Distribuidores: la intro va dentro de la cabecera, con «Lidera la longevidad…» al lado */
.p-hero-middle-intro { align-items: stretch; }
.p-hero-intro { width: 100%; row-gap: 4rem; }
.p-hero-lead { grid-column: 1 / -1; font-size: 3.2rem; font-weight: 350; line-height: 1.1; letter-spacing: -.02em; color: var(--blue); }
.p-hero-intro .p-intro-content { margin-top: 0; }
@media (min-width: 834px) {
  /* dos mitades iguales: la división cae justo en el centro de la pantalla */
  .p-hero-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-hero-lead { grid-column: 1 / 2; justify-self: end; max-width: 52rem; font-size: 4.2rem; text-align: right; padding-right: 2rem; }
  .p-hero-intro .p-intro-content { grid-column: 2 / 3; }
}
@media (min-width: 1440px) { .p-hero-lead { font-size: 4.8rem; } }

/* --- Bloques de programa (azul) con acordeón --- */
.program { background: var(--blue); color: var(--off-white); padding: 20vw 0 24vw; }
.program-deep { background: #0064cc; }
@media (min-width: 834px) {
  .program { padding: 12rem 0 16rem; }
  .program .container > * { margin-left: calc((100% - 4 * var(--gutter)) / 5 + var(--gutter)); }
}
.program-title {
  display: flex;
  align-items: center;
  column-gap: 1.4rem;
  padding-bottom: 2.6rem;
  border-bottom: .5px solid rgba(255, 255, 255, .25);
  font-size: 3.8rem;
  font-weight: 350;
  line-height: 1;
}
@media (min-width: 834px) { .program-title { column-gap: 2rem; font-size: 4.2rem; } }
@media (min-width: 1440px) { .program-title { font-size: 4.6rem; } }
.program-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--blue);
}
.program-deep .program-icon { color: #0064cc; }
@media (min-width: 834px) { .program-icon { width: 3.2rem; height: 3.2rem; } }
.program-icon svg { width: 1.4rem; height: 1.4rem; }

.program-row { display: grid; grid-template-columns: 1fr; }
@media (min-width: 834px) { .program-row { grid-template-columns: repeat(4, 1fr); column-gap: var(--gutter); } }
.program-desc { row-gap: 3rem; padding: 4rem 0 10rem; border-bottom: .5px solid rgba(255, 255, 255, .25); }
@media (min-width: 834px) { .program-desc { padding: 4rem 0 12rem; } }
.program-subtitle { max-width: 18rem; font-size: 2.5rem; font-weight: 350; }
@media (min-width: 1440px) { .program-subtitle { font-size: 2.7rem; } }
.program-copy { max-width: 26rem; font-size: 1.6rem; color: rgba(255, 255, 255, .6); }
@media (min-width: 834px) { .program-copy { font-size: 1.4rem; } }
@media (min-width: 1440px) { .program-copy { font-size: 1.6rem; } }
.program-copy span, .acc-copy span { color: #fff; }

.acc-item { border-bottom: .5px solid rgba(255, 255, 255, .25); }
.acc-head {
  width: 100%;
  grid-template-columns: 4rem 1fr;
  align-items: center;
  padding: 4rem 0;
  text-align: left;
}
@media (min-width: 834px) { .acc-head { grid-template-columns: repeat(4, 1fr); padding: 4.4rem 0; } }
.acc-icon { position: relative; width: 1.8rem; height: 1.8rem; }
.acc-icon span { position: absolute; background: currentColor; transition: transform .5s var(--ease); }
.acc-icon span:first-child { left: 0; top: 50%; width: 100%; height: 1px; }
.acc-icon span:last-child { left: 50%; top: 0; width: 1px; height: 100%; }
.acc-head[aria-expanded="true"] .acc-icon span:last-child { transform: scaleY(0); }
.acc-title { display: flex; flex-direction: column; row-gap: 1rem; font-size: 2.5rem; }
@media (min-width: 834px) {
  .acc-title { grid-column: 2 / 5; flex-direction: row; align-items: baseline; column-gap: 0; }
}
@media (min-width: 1440px) { .acc-title { font-size: 2.7rem; } }
.acc-title > span { font-size: 1.6rem; opacity: .6; }
@media (min-width: 834px) { .acc-title > span { min-width: 8rem; font-size: 1.8rem; } }
.acc-body { overflow: hidden; }
.acc-item:not(.is-open) > .acc-body { height: 0; }
[data-acc-click-body] .acc-body { cursor: pointer; }
.acc-content { row-gap: 4rem; padding: 1rem 0 8rem; }
@media (min-width: 834px) { .acc-content { padding: 2rem 0 9rem; } }
.acc-copy { display: flex; flex-direction: column; row-gap: 2rem; max-width: 40rem; font-size: 1.6rem; color: rgba(255, 255, 255, .6); }
@media (min-width: 834px) {
  .acc-copy { grid-column: 2 / 4; padding-left: 8rem; }
  .acc-link { grid-column: 2 / 4; justify-self: start; margin-left: 8rem; }
}
/* Acordeón de «Lo que se nota» (Ciencia): sin números, texto más grande y alineado con el título */
[data-acc-click-body] .acc-copy { max-width: 56rem; font-size: 2rem; line-height: 1.4; color: rgba(255, 255, 255, .75); }
@media (min-width: 834px) { [data-acc-click-body] .acc-copy { grid-column: 2 / 5; padding-left: 0; font-size: 2.1rem; } }
@media (min-width: 1440px) { [data-acc-click-body] .acc-copy { font-size: 2.3rem; } }
/* Menos aire entre el título y el texto desplegado (~30 %) */
[data-acc-click-body] .acc-content { padding-top: 0; margin-top: -.5rem; }
@media (min-width: 834px) { [data-acc-click-body] .acc-content { padding-top: 0; margin-top: 0; } }

/* --- Dos columnas: formulario / WhatsApp --- */
.p-duo { background: var(--off-white); color: var(--blue); padding: 23vw 0; }
@media (min-width: 834px) { .p-duo { padding: 12rem 0 14rem; } }
.p-duo .grid { row-gap: 16vw; }
.p-duo-item { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; }
@media (min-width: 834px) {
  .p-duo-item { flex-direction: row; align-items: flex-start; text-align: left; }
  .p-duo-item:first-child { grid-column: 2 / 4; }
  .p-duo-item:last-child { grid-column: 4 / 6; }
}
.p-duo-inner { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 834px) { .p-duo-inner { align-items: flex-start; margin-left: 1.4rem; } }
.p-duo-title { max-width: 26rem; font-size: 2.5rem; font-weight: 350; }
@media (min-width: 1440px) { .p-duo-title { font-size: 2.7rem; } }
.p-duo-copy { max-width: 24rem; margin-top: 2.8rem; font-size: 1.6rem; color: rgba(15, 16, 18, .45); }
@media (min-width: 834px) { .p-duo-copy { font-size: 1.4rem; } }
@media (min-width: 1440px) { .p-duo-copy { font-size: 1.6rem; } }
.p-duo .arrow-link { margin-top: 4rem; }

/* --- Fórmula: cabecera con foto a sangre --- */
.fm-hero { position: relative; overflow: hidden; background: #fff; }
.fm-hero-media {
  position: absolute;
  inset: 10rem 0 30rem;
  z-index: 0;
  will-change: filter, transform;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
}
@media (min-width: 834px) {
  /* El recuadro toma la proporción de la foto para que el difuminado caiga sobre sus bordes */
  .fm-hero-media {
    inset: 11rem 0 auto;
    height: calc(100% - 33rem);
    width: auto;
    max-width: 100%;
    aspect-ratio: 2800 / 1604;
    margin: 0 auto;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 52% 50%, #000 38%, transparent 78%);
    mask-image: radial-gradient(ellipse 50% 50% at 52% 50%, #000 38%, transparent 78%);
  }
}
.fm-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 53% 50%; }
.fm-hero::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
  z-index: 0;
  pointer-events: none;
}
.fm-hero .p-hero-container { position: relative; z-index: 1; }
.fm-hero-kicker { text-align: center; font-size: 1.2rem; color: rgba(15, 16, 18, .45); }

/* --- Declaración grande que se enfoca al hacer scroll --- */
.fm-statement { background: var(--white); padding: 24vw 0; text-align: center; }
@media (min-width: 834px) { .fm-statement { padding: 14rem 0 12rem; } }
.fm-statement-label { font-size: 1.4rem; color: var(--blue); margin-bottom: 3rem; }
.fm-statement-title { font-size: 4.2rem; font-weight: 350; line-height: 1.05; letter-spacing: -.03em; }
@media (min-width: 834px) { .fm-statement-title { font-size: 6.4vw; } }
@media (min-width: 1680px) { .fm-statement-title { font-size: 10.8rem; } }
.fm-statement-line { display: block; color: var(--ash); }
.fm-statement-line.is-blue { color: var(--blue); }
.fm-statement-copy { max-width: 40rem; margin: 5rem auto 0; font-size: 1.6rem; color: rgba(15, 16, 18, .5); }
@media (min-width: 1440px) { .fm-statement-copy { font-size: 1.8rem; } }
.fm-statement-copy strong { font-weight: inherit; color: var(--off-black); }
.fm-statement-pills { justify-content: center; }

/* --- Pilares con índice lateral fijo (oscuro) --- */
.feat { background: var(--off-black); color: var(--off-white); padding: 20vw 0; }
@media (min-width: 834px) { .feat { padding: 12rem 0; } }
.feat-aside { grid-column: 1 / -1; }
@media (min-width: 834px) { .feat-aside { grid-column: 1 / 3; } }
.feat-aside-inner { position: sticky; top: 30vh; }
.feat-aside-label { font-size: 1.4rem; }
@media (min-width: 834px) { .feat-aside-label { font-size: 1.2rem; margin-left: calc(50% + var(--gutter) / 2); } }
@media (min-width: 1440px) { .feat-aside-label { font-size: 1.4rem; } }
.feat-aside-label span { display: block; }
.feat-aside-label span + span { color: var(--blue); }
.feat-nav { display: none; }
@media (min-width: 834px) {
  .feat-nav { display: flex; flex-direction: column; row-gap: 1.6rem; margin: 4rem 0 0 calc(50% + var(--gutter) / 2); }
}
.feat-nav a { display: flex; align-items: center; column-gap: 1rem; font-size: 1.2rem; }
.feat-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: .5px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background-color .4s, border-color .4s;
}
.feat-nav-text { opacity: 0; transform: translateX(-.6rem); transition: opacity .4s, transform .4s var(--ease-out); }
.feat-nav a.is-active .feat-dot { background: var(--blue); border-color: var(--blue); }
.feat-nav a.is-active .feat-nav-text,
.feat-nav a:hover .feat-nav-text { opacity: 1; transform: none; }

.feat-list { grid-column: 1 / -1; margin-top: 6rem; }
@media (min-width: 834px) { .feat-list { grid-column: 3 / 6; margin-top: 0; } }
.feat-item {
  display: grid;
  row-gap: 3rem;
  padding: 6rem 0;
  border-bottom: .5px solid rgba(255, 255, 255, .12);
}
.feat-item:first-child { padding-top: 0; }
.feat-item:last-child { border-bottom: 0; }
@media (min-width: 834px) {
  .feat-item { grid-template-columns: 1fr 2fr; column-gap: var(--gutter); padding: 8rem 0; min-height: 60vh; }
}
.feat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.2rem;
  padding: 0 .8rem;
  border-radius: 1rem;
  background: var(--blue);
  font-size: 1.2rem;
}
.feat-name { margin-top: 1.4rem; font-size: 2.5rem; font-weight: 350; }
@media (min-width: 1440px) { .feat-name { font-size: 2.7rem; } }
.feat-body { max-width: 44rem; }
.feat-spec span { display: block; }
.feat-spec span:first-child { font-size: 1.6rem; }
.feat-spec span + span { margin-top: .4rem; font-size: 1.4rem; opacity: .5; }
@media (min-width: 834px) { .feat-spec span + span { font-size: 1.2rem; } }
@media (min-width: 1440px) { .feat-spec span + span { font-size: 1.4rem; } }
.feat-title { margin-top: 4rem; font-size: 1.6rem; font-weight: 350; color: var(--blue); }
.feat-body p { margin-top: 1.2rem; font-size: 1.6rem; opacity: .6; }
@media (min-width: 834px) { .feat-body p { font-size: 1.4rem; } }
@media (min-width: 1440px) { .feat-body p { font-size: 1.6rem; } }

/* --- Franja azul --- */
.fm-band { background: var(--blue); color: var(--off-white); padding: 22vw 0; text-align: center; }
@media (min-width: 834px) { .fm-band { padding: 11rem 0; } }
.fm-band-title { font-size: 3.8rem; font-weight: 350; line-height: 1.05; }
@media (min-width: 834px) { .fm-band-title { font-size: 5rem; } }
@media (min-width: 1440px) { .fm-band-title { font-size: 5.6rem; } }
.fm-band-copy { max-width: 36rem; margin: 3rem auto 0; font-size: 1.6rem; opacity: .75; }

/* --- Ficha del producto (oscuro) --- */
.spec { background: var(--off-black); color: var(--off-white); padding: 20vw 0; }
@media (min-width: 834px) { .spec { padding: 12rem 0; } }
.spec .grid { row-gap: 6rem; }
.spec-heading { grid-column: 1 / -1; font-size: 4.4rem; font-weight: 350; line-height: 1; color: rgba(242, 242, 244, .3); text-align: center; }
@media (min-width: 834px) { .spec-heading { font-size: 7vw; margin-bottom: 2rem; } }
@media (min-width: 1680px) { .spec-heading { font-size: 11.6rem; } }
.spec-card { grid-column: 1 / -1; }
@media (min-width: 834px) { .spec-card { grid-column: 1 / 3; } }
.spec-card-media { position: relative; aspect-ratio: 4 / 5; border-radius: 1.6rem; overflow: hidden; background: var(--grey-dark); }
.spec-card-media img { width: 100%; height: 100%; object-fit: cover; }
.spec-card-tag { position: absolute; right: 1.4rem; bottom: 1.4rem; background: rgba(242, 242, 244, .85) !important; }
.spec-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; margin-top: 2.4rem; }
.spec-name { display: flex; align-items: center; column-gap: 1rem; font-size: 2.2rem; color: var(--blue); }
@media (min-width: 1440px) { .spec-name { font-size: 2.5rem; } }
.spec-name-dot { width: .9rem; height: .9rem; border-radius: 50%; background: var(--blue); flex: none; }
.spec-brand { font-size: 1.4rem; text-align: right; }
.spec-brand span { display: block; font-size: 1.1rem; opacity: .5; }
.spec-table { grid-column: 1 / -1; }
@media (min-width: 834px) { .spec-table { grid-column: 3 / 6; align-self: start; } }
.spec-table-label { padding-bottom: 1.6rem; border-bottom: .5px solid rgba(255, 255, 255, .12); font-size: 1.4rem; opacity: .5; }
@media (min-width: 834px) { .spec-table-label { font-size: 1.2rem; } }
@media (min-width: 1440px) { .spec-table-label { font-size: 1.4rem; } }
.spec-row { display: grid; grid-template-columns: 1fr 2fr; column-gap: var(--gutter); padding: 2.2rem 0; border-bottom: .5px solid rgba(255, 255, 255, .12); }
.spec-row span:first-child { font-size: 1.4rem; opacity: .5; }
.spec-row span + span { font-size: 1.6rem; }
@media (min-width: 1440px) { .spec-row span + span { font-size: 1.8rem; } }
.spec-link { margin-top: 4rem; }

/* --- Evidencia: cabecera oscura con horizonte de luz --- */
.ev-hero { position: relative; overflow: hidden; background: #000; color: var(--off-white); }
.js .ev-arc { visibility: hidden; }
.ev-arc {
  position: absolute;
  top: 26%;
  left: 50%;
  width: 320vw;
  height: 320vw;
  margin-left: -160vw;
  border-radius: 50%;
  background: #000;
  box-shadow:
    0 -1px 0 rgba(190, 220, 255, .85),
    0 -.6rem 2.4rem rgba(80, 160, 255, .55),
    0 -3rem 10rem rgba(0, 113, 227, .45),
    0 -8rem 24rem rgba(0, 113, 227, .25);
  z-index: 0;
  pointer-events: none;
}
@media (min-width: 834px) { .ev-arc { top: 17%; width: 360vw; height: 360vw; margin-left: -180vw; } }
.ev-hero .p-hero-container { position: relative; z-index: 1; }
.ev-hero .fm-hero-kicker { color: rgba(242, 242, 244, .35); }
.ev-hero .p-hero-tagline { color: var(--off-white); }
.ev-hero .p-hero-sub { color: rgba(242, 242, 244, .45); }
.ev-hero .scroll-indicator { background: rgba(255, 255, 255, .08); color: var(--off-white); }
.ev-hero .p-hero-cats-dot::after { background: #000; }
.ev-ring { width: 1.8rem; height: 1.8rem; border: 1.5px solid var(--blue); border-radius: 50%; flex: none; }
@media (min-width: 834px) { .ev-ring { width: 2rem; height: 2rem; } }

/* Pill oscura (sobre fondos negros) */
.pill.dark { background: rgba(255, 255, 255, .1); border-color: transparent; color: var(--off-white); }
.pill.dark:hover { background: rgba(255, 255, 255, .16); }
.pill.small { padding: .2rem .9rem .3rem; font-size: 1.2rem; }
@media (min-width: 834px) { .pill.small { font-size: 1.1rem; } }
.pill.small .label + .label { left: .9rem; top: .2rem; }

/* --- Evidencia científica: lista de estudios --- */
.news { background: #161618; color: var(--off-white); padding: 20vw 0 24vw; }
@media (min-width: 834px) { .news { padding: 12rem 0 16rem; } }
.news-head { grid-column: 1 / -1; }
@media (min-width: 834px) { .news-head { grid-column: 2 / 3; } }
.news-title { font-size: 2.5rem; font-weight: 350; color: rgba(242, 242, 244, .5); max-width: 22rem; }
@media (min-width: 1440px) { .news-title { font-size: 2.7rem; } }
.news-intro { max-width: 24rem; margin-top: 2.4rem; font-size: 1.4rem; color: rgba(242, 242, 244, .4); }
@media (min-width: 834px) { .news-intro { font-size: 1.2rem; } }
@media (min-width: 1440px) { .news-intro { font-size: 1.4rem; } }
.news-list { grid-column: 1 / -1; margin-top: 6rem; }
@media (min-width: 834px) { .news-list { grid-column: 3 / 6; margin-top: 0; } }

.news-item { display: grid; grid-template-columns: 1fr; border-top: .5px solid rgba(255, 255, 255, .22); }
.news-item:last-child { border-bottom: .5px solid rgba(255, 255, 255, .22); }
@media (min-width: 834px) { .news-item { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); } }
.news-bar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  column-gap: 2rem;
  width: 100%;
  padding-top: 1.8rem;
  text-align: left;
}
.news-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.news-bar .acc-icon { color: var(--blue); margin-top: .4rem; }
.news-item-title {
  padding: 3.4rem 0 4rem;
  max-width: 28rem;
  font-size: 1.6rem;
  color: rgba(242, 242, 244, .7);
  cursor: pointer;
  transition: color .3s;
}
.news-item-title:hover { color: var(--off-white); }
@media (min-width: 834px) { .news-item-title { padding: 3.6rem 0 7rem; } }
@media (min-width: 1440px) { .news-item-title { font-size: 1.8rem; } }
@media (min-width: 834px) { .news-item .acc-body { grid-column: 2; grid-row: 2; } }
.news-copy { padding-bottom: 6rem; max-width: 32rem; }
@media (min-width: 834px) { .news-copy { padding: 3.6rem 0 10rem; } }
.news-copy h4 { font-size: 1.6rem; font-weight: 350; color: var(--off-white); }
@media (min-width: 1440px) { .news-copy h4 { font-size: 1.8rem; } }
.news-copy p { margin-top: 2rem; font-size: 1.6rem; color: rgba(242, 242, 244, .5); }
@media (min-width: 834px) { .news-copy p { font-size: 1.4rem; } }
@media (min-width: 1440px) { .news-copy p { font-size: 1.6rem; } }
#sellos .details-bottom { padding-top: 0; }
#sellos { background: #161618; }

/* --- Formulario --- */
.dist-form-section { background: #f7f7f8; padding: 23vw 0; }
@media (min-width: 834px) { .dist-form-section { padding: 8.125vw 0 9.72vw; } }
.dist-form-head { grid-column: 1 / -1; text-align: center; }
@media (min-width: 834px) {
  /* título (alineado a la derecha) + formulario, centrados juntos en la pantalla */
  .dist-form-section .grid { grid-template-columns: auto minmax(0, 64rem); justify-content: center; column-gap: 6rem; }
  .dist-form-head { grid-column: 1 / 2; text-align: right; }
}
.dist-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 3.6rem var(--gutter);
  margin-top: 7rem;
}
@media (min-width: 834px) { .dist-form { grid-column: 2 / 3; grid-template-columns: repeat(2, 1fr); margin-top: 0; } }
.field { display: flex; flex-direction: column; row-gap: .8rem; }
.field-full { grid-column: 1 / -1; }
.field-label { font-size: 1.4rem; opacity: .5; }
@media (min-width: 834px) { .field-label { font-size: 1.2rem; } }
@media (min-width: 1440px) { .field-label { font-size: 1.4rem; } }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .6rem 0 1rem;
  border: 0;
  border-bottom: .5px solid rgba(15, 16, 18, .25);
  border-radius: 0;
  background: transparent;
  color: var(--off-black);
  font: inherit;
  font-size: 1.8rem;
  letter-spacing: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s;
}
@media (min-width: 1440px) {
  .field input, .field select, .field textarea { font-size: 2rem; }
}
.field textarea { resize: vertical; min-height: 11rem; line-height: 1.3; }
.field ::placeholder { color: rgba(15, 16, 18, .3); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--blue); }
.field select {
  padding-right: 2.4rem;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230071e3'/%3E%3C/svg%3E") no-repeat right .2rem center / 1.2rem .8rem;
}
.field select:has(option[value=""]:checked) { color: rgba(15, 16, 18, .3); }
.dist-form.was-validated :invalid { border-bottom-color: #d4351c; }
.dist-form-status.is-error { color: #d4351c; }
/* Verificación con imagen */
.dist-captcha { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: .4rem; }
.dist-captcha img { display: block; width: 26rem; max-width: 100%; height: auto; border-radius: .6rem; background: #f2f2f4; }
.dist-captcha-new { padding: 0; border: 0; background: none; font: inherit; font-size: 1.4rem; color: var(--blue); text-decoration: underline; text-underline-offset: .3rem; cursor: pointer; }
.dist-captcha-error { font-size: 1.4rem; color: #d4351c; }

.dist-form-submit {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 2rem;
  margin-top: 1.6rem;
}
@media (min-width: 834px) { .dist-form-submit { align-items: flex-start; } }
.dist-form-submit .pill { padding: .7rem 1.8rem .85rem; font-size: 1.6rem; }
.dist-form-submit .pill .label + .label { left: 1.8rem; top: .7rem; }
.dist-form-status { max-width: 40rem; font-size: 1.4rem; color: var(--blue); text-align: center; }
@media (min-width: 834px) { .dist-form-status { text-align: left; } }

/* --- Pedidos (pedidos.html): foto del pack + hoja de pedido + resumen --- */
.order-section { background: #f2f2f4; padding: 10.4rem 0 8rem; }
@media (min-width: 834px) { .order-section { padding: 13rem 0 10rem; } }
.order-layout { display: grid; row-gap: 3.2rem; }
@media (min-width: 1080px) {
  .order-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 1.6rem; align-items: start; }
}
.order-aside { display: grid; row-gap: 1.6rem; }
@media (min-width: 1080px) { .order-aside { position: sticky; top: 11rem; } }
/* El título «Pedidos» no se ve (lo leen buscadores y lectores de pantalla) */
.order-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* «Elige tu pack…»: azul y del ancho del formulario (la letra crece con la hoja) */
.order-sheet { container-type: inline-size; }
.order-lead { font-size: max(1.8rem, calc(100cqi / 25.6)); line-height: 1.25; letter-spacing: -.01em; color: var(--blue); }
.order-photo { width: 92%; } /* tamaño de la foto del pack respecto a su columna */
@media (min-width: 1080px) { .order-photo { justify-self: end; } } /* pegada al formulario */
.order-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.2rem;
  background: #e6e6e9;
  transition: opacity .35s;
}
@media (min-width: 1080px) { .order-photo img { aspect-ratio: 4 / 5; max-height: calc(100vh - 30rem); } }
.order-photo img.is-swapping { opacity: 0; }
.order-photo figcaption { margin-top: 1.2rem; font-size: 1.4rem; color: rgba(15, 16, 18, .5); }

.order-sheet {
  padding: 2.8rem 2rem 3.2rem;
  border-radius: 1.2rem;
  background: #fdfdfd;
}
@media (min-width: 834px) { .order-sheet { padding: 4.8rem 5rem 5rem; } }
.order-sheet-label,
.order-summary-label { font-size: 1.4rem; color: var(--blue); }
.order-form { display: grid; gap: 3rem 2.4rem; margin-top: 3rem; }
@media (min-width: 640px) { .order-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.order-form select:disabled { cursor: default; opacity: .4; }
/* Pack + contador de cantidad a la derecha */
.order-pack-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2.4rem; align-items: end; }
.order-pack:only-child { grid-column: 1 / -1; } /* sin contador (desactivado), el pack ocupa toda la fila */
.order-qty-total { grid-column: 1 / -1; margin-top: 1rem; font-size: 1.4rem; color: var(--blue); }
.qty { display: flex; align-items: center; border-bottom: .5px solid rgba(15, 16, 18, .25); }
.qty-btn { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: rgba(12, 13, 15, .07); font-size: 1.8rem; line-height: 1; color: var(--blue); transition: background .3s; }
.qty-btn:hover { background: rgba(0, 113, 227, .14); }
.qty-btn:disabled { opacity: .35; cursor: default; background: rgba(12, 13, 15, .07); }
.field .qty input { width: 4.4rem; padding: .6rem 0 1rem; border-bottom: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty { padding-bottom: .4rem; }
@media (max-width: 639px) { /* móvil: contador más compacto para que el pack se lea entero */
  .order-pack-row { column-gap: 1.2rem; }
  .order-pack select { font-size: 1.5rem; padding-right: 2rem; }
  .qty-btn { width: 2.6rem; height: 2.6rem; font-size: 1.6rem; }
  .field .qty input { width: 3.2rem; font-size: 1.6rem; }
}
.order-form.was-validated :invalid { border-bottom-color: #d4351c; }
.order-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.order-submit { grid-column: 1 / -1; margin-top: 1rem; }
.order-submit .pill,
.order-summary-actions .pill,
.order-wa { padding: .7rem 1.8rem .85rem; font-size: 1.6rem; }
.order-submit .pill .label + .label,
.order-summary-actions .pill .label + .label,
.order-wa .label + .label { left: 1.8rem; top: .7rem; }
@media (max-width: 639px) { .order-submit .pill { width: 100%; justify-content: center; } }

.order-summary-list { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; margin-top: 2.4rem; }
.order-summary-list dt,
.order-summary-list dd { padding: 1.2rem 0; border-bottom: .5px solid rgba(15, 16, 18, .12); font-size: 1.6rem; line-height: 1.3; }
.order-summary-list dt { padding-right: 2rem; color: rgba(15, 16, 18, .5); }
.order-summary-list dd { overflow-wrap: anywhere; }
.order-summary-list .is-total { font-size: 2rem; }
@media (min-width: 1440px) { .order-summary-list dt, .order-summary-list dd { font-size: 1.8rem; } .order-summary-list .is-total { font-size: 2.2rem; } }
.order-summary-pay { margin-top: 2.4rem; font-size: 1.5rem; line-height: 1.4; color: var(--blue); }
.order-summary-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3.2rem; }
.order-summary-actions .pill[disabled] { opacity: .5; pointer-events: none; }
.order-summary .dist-form-status { margin-top: 2.4rem; text-align: left; }
.order-summary .dist-form-status.is-error { color: #d4351c; }

.order-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem 2.4rem;
  margin-top: 4rem;
  padding-top: 2.8rem;
  border-top: .5px solid rgba(15, 16, 18, .12);
}
.order-contact p { flex: 1 1 28rem; font-size: 1.6rem; line-height: 1.4; color: rgba(15, 16, 18, .7); }
.order-contact p a { color: var(--blue); white-space: nowrap; }
.order-contact p a:hover { text-decoration: underline; }
.order-disclaimer { margin-top: 2.4rem; font-size: 1.3rem; line-height: 1.45; color: rgba(15, 16, 18, .5); }

/* --- Resumen del pedido tipo factura (resumen-pedido.html) --- */
.inv { max-width: 88rem; margin: 0 auto; }
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3.2rem; padding-bottom: 3.2rem; border-bottom: .5px solid rgba(15, 16, 18, .12); }
.inv-logo { width: 13rem; color: #0f1012; }
.inv-meta { min-width: 26rem; }
@media (min-width: 640px) { .inv-meta { text-align: right; } }
.inv-title { font-size: 2.8rem; font-weight: 350; line-height: 1.1; letter-spacing: -.02em; }
@media (min-width: 834px) { .inv-title { font-size: 3.6rem; } }
.inv-state { display: inline-block; margin-top: 1.2rem; padding: .3rem 1.1rem .4rem; border-radius: 10rem; background: rgba(12, 13, 15, .07); font-size: 1.3rem; color: rgba(15, 16, 18, .7); }
.inv.is-confirmed .inv-state { background: var(--blue); color: #fff; }
/* Pagado: sin título y la etiqueta «Pagado» un 40% más grande */
.inv.is-paid .inv-title { display: none; }
.inv.is-paid .inv-state { margin-top: 0; padding: .42rem 1.54rem .56rem; font-size: 1.82rem; }
/* Pago en curso: tres puntos en secuencia + aviso */
.inv-dots { display: inline-flex; gap: .45rem; margin-left: .8rem; vertical-align: middle; }
.inv-dots i { width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; animation: invDot 1.2s infinite ease-in-out; }
.inv-dots i:nth-child(2) { animation-delay: .2s; }
.inv-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes invDot { 0%, 80%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-.3rem); } }
@media (prefers-reduced-motion: reduce) { .inv-dots i { animation-name: invDotFade; } }
@keyframes invDotFade { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.inv-wait { display: block; margin-top: .8rem; font-size: 1.5rem; color: #0f1012; }
.inv-meta-list { display: grid; grid-template-columns: auto auto; justify-content: start; gap: .6rem 1.6rem; margin-top: 1.6rem; font-size: 1.4rem; }
@media (min-width: 640px) { .inv-meta-list { justify-content: end; } }
.inv-meta-list dt { color: rgba(15, 16, 18, .5); }
.inv-meta-list dd { color: #0f1012; }
.inv-parties { display: grid; gap: 2.4rem 4rem; padding: 3.2rem 0; }
@media (min-width: 640px) { .inv-parties { grid-template-columns: 1fr 1fr; } }
.inv-parties p { font-size: 1.5rem; line-height: 1.5; color: rgba(15, 16, 18, .7); overflow-wrap: anywhere; }
.inv-label { margin-bottom: 1rem; font-size: 1.3rem; color: var(--blue); }
.inv-strong { color: #0f1012; }
.inv-parties .inv-strong { font-size: 1.7rem; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 1.5rem; }
.inv-table th { padding: 1rem 0; border-bottom: .5px solid rgba(15, 16, 18, .25); font-size: 1.3rem; font-weight: 400; text-align: left; color: rgba(15, 16, 18, .5); }
.inv-table td { padding: 1.6rem 0; border-bottom: .5px solid rgba(15, 16, 18, .12); vertical-align: top; line-height: 1.35; }
.inv-table th:nth-child(n+2), .inv-table td:nth-child(n+2) { width: 1%; padding-left: 2.4rem; white-space: nowrap; text-align: right; }
.inv-table td .inv-strong { display: block; font-size: 1.7rem; }
.inv-item { display: flex; align-items: flex-start; gap: 1.6rem; }
.inv-thumb { flex: none; width: 6.4rem; height: 6.4rem; object-fit: cover; border-radius: .6rem; background: #e6e6e9; }
@media (min-width: 834px) { .inv-thumb { width: 8rem; height: 8rem; } }
.inv-sub { display: block; margin-top: .4rem; font-size: 1.4rem; color: rgba(15, 16, 18, .5); }
.inv-totals { display: grid; grid-template-columns: 1fr auto; row-gap: 1rem; max-width: 36rem; margin: 2.4rem 0 0 auto; font-size: 1.5rem; }
.inv-totals dt { color: rgba(15, 16, 18, .5); }
.inv-totals dd { padding-left: 2.4rem; text-align: right; }
.inv-totals .is-total { padding-top: 1.2rem; border-top: .5px solid rgba(15, 16, 18, .25); font-size: 2.2rem; color: #0f1012; }
.inv-pay-note { margin-top: 3.2rem; font-size: 1.5rem; line-height: 1.4; color: var(--blue); }
.inv-mail { margin-top: 1rem; font-size: 1.5rem; line-height: 1.4; color: rgba(15, 16, 18, .7); }
.inv-actions { margin-top: 2.8rem; }
.inv [hidden] { display: none !important; }
.inv .dist-form-status { margin-top: 2rem; max-width: none; text-align: left; }
.inv .dist-form-status.is-error { color: #d4351c; }
.inv-actions .pill[disabled] { opacity: .5; pointer-events: none; }
.inv-wa { padding: .7rem 1.8rem .85rem; font-size: 1.6rem; }
.inv-wa .label + .label { left: 1.8rem; top: .7rem; }
.inv-pay { margin-top: 4rem; padding: 2.4rem 1.8rem; border-radius: 1.2rem; background: #f2f2f4; }
@media (min-width: 834px) { .inv-pay { padding: 3.6rem 4rem; } }
.inv-pay-amount { font-size: 1.6rem; line-height: 1.45; color: rgba(15, 16, 18, .7); }
.inv-pay-amount strong { font-weight: 450; color: #0f1012; }
.inv-tabs { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }
.inv-tabs [role=tab] { padding: .7rem 1.6rem .8rem; border-radius: 10rem; background: rgba(12, 13, 15, .07); font: inherit; font-size: 1.5rem; color: #0f1012; cursor: pointer; transition: background .3s, color .3s; }
.inv-tabs [role=tab][aria-selected=true] { background: var(--blue); color: #fff; }
.inv-tab-panel { margin-top: 2.4rem; }
.inv-pay-data { display: grid; grid-template-columns: minmax(12rem, auto) 1fr; }
.inv-pay-data dt, .inv-pay-data dd { padding: 1rem 0; border-bottom: .5px solid rgba(15, 16, 18, .12); font-size: 1.6rem; }
.inv-pay-data dt { padding-right: 2rem; color: rgba(15, 16, 18, .5); }
.inv-pay-data dd { overflow-wrap: anywhere; }
.inv-pay-text { max-width: 52rem; margin-bottom: 2rem; font-size: 1.6rem; line-height: 1.45; color: rgba(15, 16, 18, .7); }
.inv-pay-text.inv-test { margin: 1.6rem 0 0; font-size: 1.3rem; color: #9a5b00; }
#invCardStatus { margin-top: 1.6rem; }
@media (max-width: 639px) { .inv-pay .inv-actions .pill { width: 100%; justify-content: center; } }
.inv-qr { display: block; width: 18rem; height: auto; margin-bottom: 2rem; }
.inv-foot { margin-top: 4rem; padding-top: 2.4rem; border-top: .5px solid rgba(15, 16, 18, .12); font-size: 1.3rem; line-height: 1.5; color: rgba(15, 16, 18, .5); }
.inv-foot a { color: var(--blue); }
.order-done-title { margin-top: 1.6rem; font-size: 3.2rem; font-weight: 350; line-height: 1.1; letter-spacing: -.02em; }
@media (min-width: 834px) { .order-done-title { font-size: 4.4rem; } }
/* --- Información legal (legal.html) y Libro de Reclamaciones (libro-reclamaciones.html) --- */
.page-legal [hidden] { display: none !important; }
.legal-layout { display: grid; row-gap: 3.2rem; }
@media (min-width: 1080px) {
  .legal-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 1.6rem; align-items: start; }
  .legal-aside { position: sticky; top: 11rem; }
}
.legal-title { font-size: 3.2rem; font-weight: 350; line-height: 1.05; letter-spacing: -.03em; color: var(--blue); }
@media (min-width: 834px) { .legal-title { font-size: 4.4rem; } }
.legal-aside-text { max-width: 36rem; margin-top: 2rem; font-size: 1.5rem; line-height: 1.4; color: rgba(15, 16, 18, .7); }
.legal-nav { display: flex; flex-direction: column; row-gap: 1rem; margin-top: 3.2rem; font-size: 1.5rem; }
.legal-nav a { color: rgba(15, 16, 18, .6); transition: color .3s; }
.legal-nav a:hover { color: var(--blue); }
.legal-nav .legal-nav-book { margin-top: .8rem; color: var(--off-black); }
.legal-docs { display: grid; row-gap: 1.6rem; min-width: 0; }
.legal-doc { scroll-margin-top: 9rem; }
.legal-doc h2 { font-size: 2.8rem; font-weight: 350; line-height: 1.1; letter-spacing: -.02em; }
@media (min-width: 834px) { .legal-doc h2 { font-size: 3.6rem; } }
.legal-sub { margin-top: 1rem; font-size: 1.4rem; color: rgba(15, 16, 18, .5); }
.legal-doc h3 { margin-top: 3.2rem; font-size: 1.6rem; font-weight: 400; color: var(--blue); }
.legal-doc p, .legal-doc li { font-size: 1.6rem; line-height: 1.5; color: rgba(15, 16, 18, .8); }
.legal-doc p { margin-top: 1rem; }
.legal-doc ul { margin-top: 1rem; display: grid; row-gap: .6rem; }
.legal-doc li { position: relative; padding-left: 1.6rem; }
.legal-doc li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--blue); }
.legal-doc a, .legal-company a, .lr-notes a, .lr-check a { color: var(--blue); }
.legal-doc a:hover, .legal-company a:hover, .lr-notes a:hover, .lr-check a:hover { text-decoration: underline; }
.legal-company { display: grid; grid-template-columns: minmax(11rem, auto) 1fr; font-size: 1.5rem; line-height: 1.4; }
.legal-company dt, .legal-company dd { padding: 1rem 0; border-bottom: .5px solid rgba(15, 16, 18, .12); }
.legal-company dt { padding-right: 2rem; color: rgba(15, 16, 18, .5); }
.legal-company dd { overflow-wrap: anywhere; }
.legal-company dt:last-of-type, .legal-company dd:last-of-type { border-bottom: 0; }

/* Casillas (términos en pedidos.html, Libro de Reclamaciones) */
.lr-check { display: flex; align-items: flex-start; gap: 1.2rem; font-size: 1.5rem; line-height: 1.4; color: rgba(15, 16, 18, .8); cursor: pointer; }
.lr-check input { flex: none; width: 1.8rem; height: 1.8rem; margin-top: .1rem; accent-color: var(--blue); cursor: pointer; }
.was-validated .lr-check input:invalid + span { color: #d4351c; }
.order-terms { margin-top: .4rem; }

.lr-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2.4rem; }
.lr-number { font-size: 2.4rem; line-height: 1.1; letter-spacing: -.02em; }
.lr-meta { margin-top: 0; }
.lr-company { margin-bottom: 1rem; }
.lr-form { margin-top: 2rem; }
.lr-step { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; margin-top: 2.4rem; padding-top: 2.4rem; border-top: .5px solid rgba(15, 16, 18, .12); font-size: 1.8rem; font-weight: 350; }
.lr-step span { flex: none; display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.3rem; }
.lr-type { display: grid; row-gap: 1.2rem; border: 0; }
.lr-type legend { margin-bottom: 1.2rem; }
.lr-form.is-sent :disabled { opacity: 1; color: var(--off-black); -webkit-text-fill-color: var(--off-black); cursor: default; }
.lr-status { margin-top: 2.4rem; max-width: none; text-align: left !important; font-size: 1.6rem; line-height: 1.4; }
.lr-notes { margin-top: 4rem; padding-top: 2.4rem; border-top: .5px solid rgba(15, 16, 18, .12); display: grid; row-gap: 1rem; font-size: 1.3rem; line-height: 1.5; color: rgba(15, 16, 18, .55); }

@media print {
  .page-resumen-pedido .menu, .page-resumen-pedido .mobile-nav, .page-resumen-pedido .footer,
  .page-resumen-pedido .sticky-logo, .page-resumen-pedido .inv-actions, .page-resumen-pedido .inv-tabs,
  .page-resumen-pedido .dist-form-status { display: none !important; }
  .page-resumen-pedido .order-section { padding: 0; background: #fff; }
  .page-resumen-pedido .inv-tab-panel[hidden] { display: block !important; }
  .page-libro .menu, .page-libro .mobile-nav, .page-libro .footer, .page-libro .sticky-logo,
  .page-libro .legal-aside, .page-libro #lrDone { display: none !important; }
  .page-libro .order-section { padding: 0; background: #fff; }
  .page-libro .legal-layout { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Logo vectorial (proporción del archivo original) */
.logo { aspect-ratio: 460.79 / 112.7; fill: currentColor; }

/* «¿» con aire antes de la mayúscula (main.js lo envuelve) */
.q-word { white-space: nowrap; }
.q-open { display: inline-block; margin-right: .1em; }
