/* Nosotros (scrollytelling). Depende de base.css y pages.css (pg-head). */
/* ==========================================================================
   NOSOTROS · scrollytelling
   ========================================================================== */
.about main > section { position: relative; }
.gsap-ready .mw { opacity: 0.18; }

/* 1 · Hero */
.ab-hero { background: var(--teal); color: var(--choco-950); }
.ab-hero__pin { position: relative; height: var(--screen); min-height: 640px; overflow: hidden; }
.ab-hero__head {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 7vh); z-index: 3;
  display: grid; justify-items: center; gap: 16px; text-align: center; padding: 0 20px;
}
.ab-hero__head h1 { font-size: clamp(3rem, 8vw, 6rem); }
.ab-hero__head .lead { max-width: 36ch; font-weight: 500; }
.ab-hero__photo { position: absolute; inset: 0; margin: 0; z-index: 2; clip-path: inset(54% 27% 7% 27% round 36px); will-change: clip-path; }
.ab-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; will-change: transform; }
.ab-hero__scrim { position: absolute; inset: 0; background: rgba(61, 31, 22, 0.62); opacity: 0; }
.ab-purpose {
  position: absolute; inset: 0; z-index: 4;
  display: grid; align-content: center; justify-items: center; gap: 22px;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  text-align: center; color: var(--cream);
}
.ab-purpose h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); color: var(--yellow); }
.ab-purpose p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 4vw, 3.6rem); line-height: 1.08; max-width: 24ch; text-wrap: balance; }
.gsap-ready .ab-purpose { opacity: 0; }
@media (max-width: 900px) {
  .ab-hero__photo { clip-path: inset(56% 8% 6% 8% round 28px); }
  .ab-hero__head { top: calc(var(--nav-h) + 5vh); }
}

/* Entrada del hero en CSS: arranca en el primer pintado, sin esperar a JS.
   La foto (elemento LCP) nunca está en opacity 0: solo se desplaza (translate) y GSAP
   anima su clip-path con el scroll. El titular sube desde su máscara (.line). */
@keyframes ab-line-in { from { transform: translateY(112%); } to { transform: none; } }
@keyframes ab-lead-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ab-photo-in { from { translate: 0 12%; } to { translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  .js .ab-hero__head .line > span { animation: ab-line-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
  .js .ab-hero__head .line + .line > span { animation-delay: 0.19s; }
  .js .ab-hero__head .lead { animation: ab-lead-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
  .js .ab-hero__photo { animation: ab-photo-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
}

/* 2 · Hitos */
.ab-hitos { --hito-bg: var(--teal); background: var(--hito-bg); color: var(--choco-950); }
.ab-hitos__pin {
  position: relative; height: var(--screen); min-height: 640px; overflow: hidden;
  max-width: 1400px; margin: 0 auto;
  padding: calc(var(--nav-h) + 36px) var(--gutter) 36px;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px;
}
.ab-hitos__title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.ab-hitos__stage { position: relative; }
.ab-hito {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto;
  align-content: center; column-gap: clamp(20px, 4vw, 64px); row-gap: 6px;
}
.ab-hito__fig { grid-column: 1; font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 15vw, 14rem); line-height: 0.82; letter-spacing: -0.02em; will-change: transform; }
.ab-hito__text strong { font-weight: 800; }
.ab-hito__text { grid-column: 1; font-size: clamp(1.15rem, 1.8vw, 1.6rem); font-weight: 550; max-width: 30ch; line-height: 1.25; }
.ab-hito__img { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: center; max-height: 100%; will-change: transform; }
.ab-hito__img--cake { width: min(100%, 62vh); }
.ab-hito__img--photo { width: min(86%, 56vh); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.ab-hitos__track { position: relative; height: 58px; display: grid; align-items: start; padding-top: 8px; }
.ab-hitos__line { top: 15px; }
.ab-hitos__dots li { position: relative; }
.ab-hitos__dots span { position: absolute; left: 50%; top: 26px; translate: -50% 0; font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0.55; transition: opacity 300ms ease; }
.ab-hitos__dots li.is-on span { opacity: 1; }
.ab-hitos__dots li:first-child span { left: 0; translate: 0 0; }
.ab-hitos__dots li:last-child span { left: auto; right: 0; translate: 0 0; }
.ab-hitos__line { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--choco-950) 18%, transparent); overflow: hidden; }
.ab-hitos__fill { position: absolute; inset: 0; background: var(--choco-950); transform: scaleX(0); transform-origin: 0 50%; }
.ab-hitos__dots { position: relative; list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
.ab-hitos__dots li { width: 18px; height: 18px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--choco-950) 30%, transparent); transition: box-shadow 300ms ease, transform 300ms var(--ease-out); }
.ab-hitos__dots li.is-on { box-shadow: inset 0 0 0 9px var(--choco-950); transform: scale(1.25); }
@media (max-width: 900px) {
  .ab-hitos__pin { min-height: 0; padding: calc(var(--nav-h) + 26px) 20px calc(26px + env(safe-area-inset-bottom)); }
  .ab-hito { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; align-content: stretch; row-gap: 4px; }
  .ab-hito__img { grid-column: 1; grid-row: 1; min-height: 0; }
  .ab-hito__img--cake { width: auto; max-width: 86vw; max-height: 100%; object-fit: contain; }
  .ab-hito__img--photo { width: min(70vw, 40vh); height: auto; }
  .ab-hitos__track { margin-right: 72px; }
  .ab-hito__fig { grid-row: 2; font-size: clamp(4rem, 24vw, 6.4rem); }
  .ab-hito__text { grid-row: 3; font-size: 1.05rem; min-height: 6.4em; max-width: none; }
  .ab-hitos__dots span { font-size: 0.68rem; }
  .ab-hitos__dots li:first-child span, .ab-hitos__dots li:last-child span { left: 50%; right: auto; translate: -50% 0; }
  .ab-hitos__track { margin-left: 8px; }
}

/* 3 · Valores */
.ab-valores { background: var(--choco-900); color: var(--cream); }
.ab-valores__pin {
  position: relative; height: var(--screen); min-height: 640px; overflow: hidden;
  max-width: 1300px; margin: 0 auto;
  padding: calc(var(--nav-h) + 36px) var(--gutter) 40px;
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 20px; align-items: center;
}
.ab-valores h2 { text-align: center; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.ab-valores__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); align-self: center; justify-items: center; }
.ab-val {
  width: min(100%, 23vh); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 2px;
  text-align: center; padding: 10%;
  color: var(--choco-950);
  will-change: transform, opacity;
}
.ab-val strong { font-family: var(--font-display); font-size: clamp(1.1rem, 1.9vw, 1.7rem); line-height: 1; }
.ab-val span { font-size: clamp(0.72rem, 1vw, 0.95rem); font-weight: 600; line-height: 1.15; }
.ab-val__icon { font-size: clamp(1.3rem, 2vw, 1.9rem); margin-bottom: 4px; }
.ab-val--teal { background: var(--teal); }
.ab-val--yellow { background: var(--yellow); }
.ab-val--pink { background: var(--pink); }
@media (max-width: 900px) {
  .ab-valores__pin { min-height: 0; padding: calc(var(--nav-h) + 26px) 16px 26px; }
  .ab-valores__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ab-val { width: min(100%, 17vh); }
  .ab-val strong { font-size: 1.05rem; }
  .ab-val span { font-size: 0.7rem; }
}

/* 4 · Misión y visión: hojas apiladas */
.about main > .ab-sheet { position: sticky; top: min(0px, calc(var(--screen) - var(--sh, var(--screen)))); min-height: var(--screen); }
.st-refreshing .about main > .ab-sheet { position: relative; top: auto; }
.ab-sheet--mision { background: var(--yellow); color: var(--choco-950); }
.ab-sheet--vision { background: var(--teal); color: var(--choco-950); border-radius: 44px 44px 0 0; box-shadow: 0 -24px 60px -30px rgba(61, 31, 22, 0.35); }
.ab-sheet__inner {
  max-width: 1300px; margin: 0 auto; min-height: var(--screen);
  padding: calc(var(--nav-h) + 48px) var(--gutter) 64px;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); align-items: center;
}
.ab-sheet__fig { margin: 0; border-radius: 36px; overflow: hidden; aspect-ratio: 1; }
.ab-sheet__fig img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.ab-sheet--vision .ab-sheet__fig { order: 2; }
.ab-sheet__copy { display: grid; gap: 18px; }
.ab-sheet__copy h2 { font-size: clamp(3rem, 7vw, 6rem); }
.ab-sheet__copy p { font-size: clamp(1.15rem, 1.75vw, 1.6rem); font-weight: 550; line-height: 1.38; max-width: 34ch; }
@media (max-width: 900px) {
  .ab-sheet--vision { border-radius: 32px 32px 0 0; }
  .ab-sheet__inner { grid-template-columns: minmax(0, 1fr); padding: calc(var(--nav-h) + 30px) 20px 100px; gap: 18px; align-content: center; }
  .ab-sheet__fig { aspect-ratio: var(--ar, 1100 / 1010); border-radius: 28px; }
  .ab-sheet--vision .ab-sheet__fig { order: 0; }
  .ab-sheet__copy p { font-size: 1.08rem; }
}

/* Pausa de lectura: la hoja siguiente tarda en llegar, así la anterior queda fija
   y completa en pantalla antes de que la cubran. */
.gsap-ready .ab-sheet--vision, .gsap-ready .ab-end { margin-top: 70vh; }

/* 5 · Cierre */
.ab-end { background: var(--cream); color: var(--choco-950); border-radius: 44px 44px 0 0; overflow: clip; box-shadow: 0 -24px 60px -30px rgba(61, 31, 22, 0.35); }
.ab-end__inner { max-width: 1100px; margin: 0 auto; min-height: var(--screen); padding: calc(var(--nav-h) + 56px) var(--gutter) 0; display: grid; justify-items: center; align-content: start; gap: 28px; text-align: center; }
.ab-pols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; margin-bottom: clamp(24px, 6vw, 72px); }
.ab-pol { display: grid; grid-template-columns: 40px 1fr 24px; gap: 14px; align-items: center; text-align: left; padding: 22px; border-radius: var(--r-surface); background: #fff5e4; text-decoration: none; font-weight: 650; font-size: 1.1rem; box-shadow: 0 20px 40px -32px rgba(61, 31, 22, 0.6); transition: transform var(--dur-ui) var(--ease-out); }
.ab-pol i:first-child { font-size: 34px; color: var(--teal-800); }
.ab-pol i:last-child { font-size: 22px; }
@media (hover: hover) and (pointer: fine) { .ab-pol:hover { transform: translateY(-3px); } }
.ab-end h2 { font-size: clamp(3rem, 8vw, 6rem); }
.ab-end__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ab-end__cake { width: min(520px, 80vw); margin-top: 12px; margin-bottom: -22%; will-change: transform; }
@media (max-width: 760px) { .ab-pols { grid-template-columns: 1fr; } }
/* Una sola política: tarjeta centrada (también está en calidad.css, que aquí no se carga). */
.ab-pols--one { grid-template-columns: minmax(0, 520px); justify-content: center; }

/* Movimiento reducido o sin GSAP: todo visible, sin escenas fijas */
.no-gsap .ab-hero__pin, .no-gsap .ab-hitos__pin, .no-gsap .ab-valores__pin { height: auto; overflow: visible; }
.no-gsap .ab-hero__photo, .no-gsap .ab-purpose, .no-gsap .ab-hero__head, .no-gsap .ab-hito { position: relative; inset: auto; clip-path: none; }
.no-gsap .ab-purpose { background: var(--choco-900); }
@media (prefers-reduced-motion: reduce) {
  .ab-hero__pin, .ab-hitos__pin, .ab-valores__pin { height: auto; overflow: visible; }
  .ab-hero__photo, .ab-purpose, .ab-hero__head, .ab-hito { position: relative; inset: auto; clip-path: none; }
  .ab-hero__head { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 32px; }
  .ab-purpose, .gsap-ready .ab-purpose { background: var(--choco-900); opacity: 1; }
  .ab-hito { padding: 28px 0; }
  .gsap-ready .mw { opacity: 1; }
  .about main > .ab-sheet { position: relative; top: auto; }
}

/* ==========================================================================
   NOSOTROS · diseño de oct 2026 (Nosotros.pdf)
   Medidas en px de la mesa de 1864.8 (--u). Las escenas de nosotros.js no cambian:
   solo cambian colores, tipografía, posiciones y las imágenes.
   ========================================================================== */
.about { --nos-teal: #41bbbe; --nos-yellow: #ffca6c; --nos-brown: #3d1f16; --nos-orange: #f78b16; }
.ab-brand__torta { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.ab-brand__mania { display: inline-block; height: 0.74em; vertical-align: -0.02em; margin-left: 0.02em; }
.ab-brand__mania svg { display: block; height: 100%; width: auto; }

/* ---------- 1 · Portada y propósito ---------- */
.ab-hero { --u: min(calc(100vw / 1864.8), calc(var(--screen) / 985)); background: var(--nos-teal); color: var(--nos-brown); }
.ab-hero__head { top: calc(var(--nav-h) + 40 * var(--u)); gap: calc(10 * var(--u)); }
.ab-hero__head h1 { display: grid; justify-items: center; font-size: inherit; line-height: 1; }
.ab-hero__somos { font-size: clamp(2.6rem, calc(69.2 * var(--u)), 84px); font-weight: 700; color: var(--nos-brown); }
.ab-hero__brand { font-size: clamp(3.2rem, calc(96 * var(--u)), 116px); color: #fff; line-height: 1.05; }
.ab-hero__head .lead { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.1rem, calc(32.3 * var(--u)), 39px); line-height: 1.18; max-width: 16.5em; color: var(--nos-brown); margin-top: calc(14 * var(--u)); }
.ab-hero__photo {
  inset: auto; clip-path: none; overflow: hidden;
  top: calc(473 * var(--u)); left: calc(50% - 437 * var(--u)); width: calc(874 * var(--u)); height: calc(379 * var(--u));
  border-radius: calc(48 * var(--u));
}
.ab-hero__scrim { background: rgba(255, 245, 228, 0.66); }
.ab-hero__photo img { object-position: 50% 40%; transform-origin: 50% 13.5%; }
.ab-purpose { color: var(--nos-brown); gap: calc(30 * var(--u)); }
.ab-purpose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, calc(79.2 * var(--u)), 96px); color: var(--nos-brown); line-height: 1.05; }
.ab-purpose h2 strong { font-weight: 700; }
.ab-purpose p { font-weight: 400; font-size: clamp(1.25rem, calc(41.6 * var(--u)), 50px); line-height: 1.2; max-width: 20em; }
.ab-hero__deco { position: absolute; display: block; pointer-events: none; }
.ab-hero__deco img { display: block; width: 100%; height: auto; will-change: transform; }
.ab-hero__deco--hearts { z-index: 1; left: 65%; top: 47%; width: calc(497 * var(--u)); }
.ab-hero__deco--cake { z-index: 3; left: 68.6%; top: 58.5%; width: calc(329 * var(--u)); }
@media (max-width: 900px) {
  .ab-hero__deco--hearts { left: auto; right: -6vw; top: auto; bottom: 20%; width: 44vw; }
  .ab-hero__deco--cake { left: auto; right: 2vw; top: auto; bottom: 2%; width: 30vw; }
  .ab-hero__photo { clip-path: none; top: 56%; left: 8%; width: 84%; height: 38%; border-radius: 28px; }
}

/* ---------- 2 · Hitos ---------- */
.ab-hitos { --u: min(calc(100vw / 1864.8), calc(var(--screen) / 935)); --hito-ink: var(--nos-brown); --hito-line: #fff; --hito-on: var(--nos-brown); color: var(--hito-ink); }
.ab-hitos[data-tone="dark"] { --hito-ink: #fff; --hito-line: rgba(255, 255, 255, 0.85); --hito-on: var(--nos-yellow); }
.ab-hitos__title, .ab-hito__fig, .ab-hito__text, .ab-hitos__dots span { transition: color 360ms var(--ease-out); color: var(--hito-ink); }
@media (min-width: 901px) {
  .ab-hitos__pin { max-width: none; padding: max(calc(var(--nav-h) + 24px), calc(100 * var(--u))) calc(273 * var(--u)) calc(34 * var(--u)) calc(296 * var(--u)); gap: 0; }
  .ab-hitos__title { font-size: clamp(1.6rem, calc(43.7 * var(--u)), 52px); font-weight: 700; }
  .ab-hito { grid-template-columns: minmax(0, 1fr) calc(760 * var(--u)); column-gap: 0; row-gap: calc(150 * var(--u)); align-content: center; }
  .ab-hito__fig { font-size: clamp(6rem, calc(212.2 * var(--u)), 256px); line-height: 0.78; letter-spacing: -0.01em; align-self: end; }
  .ab-hito__text { font-family: var(--font-display); font-size: clamp(1rem, calc(26.9 * var(--u)), 32px); font-weight: 500; line-height: 1.1; max-width: 17em; align-self: start; }
  .ab-hito__img { width: 100%; height: 100%; display: grid; place-items: center; position: relative; left: calc(90 * var(--u)); top: calc(-36 * var(--u)); }
  .ab-hito__text { max-width: 13.5em; }
}
.ab-hito__media { position: relative; display: grid; place-items: center; }
.ab-hito__circle { position: relative; display: block; width: calc(560 * var(--u)); aspect-ratio: 1; }
.ab-hito__circle::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--ring, transparent); translate: var(--rx, -5%) var(--ry, 6%);
}
.ab-hito__circle.ring-brown { --rx: 7%; --ry: -4%; }
.ab-hito__circle.ring-teal { --rx: -5%; --ry: -5%; }
.ab-hito__circle--2.ring-brown { --rx: -5%; --ry: -5%; }
.ab-hito__pic { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ab-hito__media--cake .ab-hito__circle { width: calc(720 * var(--u)); aspect-ratio: auto; }
.ab-hito__media--cake .ab-hito__pic { height: auto; object-fit: contain; border-radius: 0; }
.ab-hito__media--two .ab-hito__circle { width: calc(440 * var(--u)); position: absolute; left: 4%; top: 2%; }
.ab-hito__media--two .ab-hito__circle--2 { width: calc(470 * var(--u)); left: auto; top: auto; right: 0; bottom: 0; }
.ab-hito__media--two { width: calc(660 * var(--u)); height: calc(660 * var(--u)); }
.ab-hito__deco { position: absolute; z-index: 2; width: calc(310 * var(--u)); pointer-events: none; }
.ab-hito__deco img { display: block; width: 100%; height: auto; will-change: transform; }
.ab-hito__deco--abajo-izq { left: calc(50% - 400 * var(--u)); bottom: calc(50% - 280 * var(--u)); }
.ab-hito__deco--arriba-der { right: calc(50% - 420 * var(--u)); top: calc(50% - 340 * var(--u)); }
/* Línea de tiempo: puntos sobre la línea, años debajo */
.ab-hitos__line { height: 3px; background: var(--hito-line); }
.ab-hitos__fill { background: var(--hito-on); }
.ab-hitos__dots li { width: 13px; height: 13px; background: #fff; box-shadow: inset 0 0 0 2px var(--hito-line); }
.ab-hitos__dots li.is-on { box-shadow: inset 0 0 0 10px var(--hito-on); transform: scale(1.4); }
.ab-hitos__dots span { opacity: 1; font-size: clamp(0.7rem, calc(19.5 * var(--u)), 23px); top: 24px; }
.ab-hitos__dots li:first-child span, .ab-hitos__dots li:last-child span { left: 50%; right: auto; translate: -50% 0; }
@media (max-width: 900px) {
  .ab-hitos { --u: calc(100vw / 760); }
  .ab-hito__media--two { width: 76vw; height: 76vw; }
}

/* ---------- 3 · Valores ---------- */
.ab-valores {
  --u: min(calc(100vw / 1864.8), calc(var(--screen) / 1000));
  color: #623427;
  background:
    radial-gradient(circle at 5% 2%, #ffd47e 0 14%, transparent 14.2%),
    radial-gradient(circle at 98% 100%, #ffc565 0 16%, transparent 16.2%),
    linear-gradient(100deg, #ffd27a 0%, #febe5f 55%, #fea94a 100%);
}
.ab-valores__pin { max-width: none; padding: calc(var(--nav-h) + 20 * var(--u)) 0 calc(40 * var(--u)); gap: calc(40 * var(--u)); }
.ab-valores h2 { font-weight: 400; font-size: clamp(2.4rem, calc(108 * var(--u)), 130px); color: #623427; }
.ab-valores h2 strong { font-weight: 700; }
.ab-val { color: #fff; padding: 12%; }
.ab-val strong { font-weight: 700; }
.ab-val span { font-family: var(--font-display); font-weight: 400; }
.ab-val--orange { background: var(--nos-orange); }
.ab-val--teal { background: #00afaf; }
.ab-val--brown { background: #623427; }
@media (min-width: 901px) {
  .ab-valores__net { position: relative; width: calc(1865 * var(--u)); height: calc(735 * var(--u)); justify-self: center; }
  .ab-valores__lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--nos-orange); stroke-width: 6; stroke-dasharray: 16 14; stroke-linecap: round; }
  .ab-valores__lines path, .ab-valores__lines ellipse { vector-effect: non-scaling-stroke; stroke-width: max(2px, calc(6 * var(--u))); }
  .is-net .ab-valores__grid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; margin: 0; }
  .is-net .ab-val { position: absolute; width: calc(270 * var(--u)); padding: 0 calc(24 * var(--u)); gap: 0; }
  .is-net .ab-val strong, .is-net .ab-val span { font-size: clamp(0.9rem, calc(30 * var(--u)), 36px); line-height: 1.17; }
  .is-net .ab-val:nth-child(1) { left: calc(183 * var(--u)); top: calc(232 * var(--u)); }
  .is-net .ab-val:nth-child(2) { left: calc(477 * var(--u)); top: calc(67 * var(--u)); }
  .is-net .ab-val:nth-child(3) { left: calc(802 * var(--u)); top: calc(67 * var(--u)); }
  .is-net .ab-val:nth-child(4) { left: calc(1127 * var(--u)); top: calc(67 * var(--u)); }
  .is-net .ab-val:nth-child(5) { left: calc(477 * var(--u)); top: calc(398 * var(--u)); }
  .is-net .ab-val:nth-child(6) { left: calc(802 * var(--u)); top: calc(398 * var(--u)); }
  .is-net .ab-val:nth-child(7) { left: calc(1127 * var(--u)); top: calc(398 * var(--u)); }
  .is-net .ab-val:nth-child(8) { left: calc(1420 * var(--u)); top: calc(232 * var(--u)); }
}
@media (max-width: 900px) { .ab-valores__lines { display: none; } }

/* ---------- 4 · Misión y visión ---------- */
.ab-sheet--mv { --u: min(calc(100vw / 1864.8), calc(var(--screen) / 1000)); background: var(--nos-brown); color: #fff; overflow: clip; }
.ab-mv__box { border: 1.5px solid rgba(255, 245, 228, 0.7); border-radius: calc(32 * var(--u)); }
.ab-sheet--mv h2 { color: #fff; font-weight: 700; }
.ab-mv__link { fill: none; stroke: var(--nos-orange); }
.ab-mv__link path { stroke-width: 5; stroke-dasharray: 12 11; stroke-linecap: round; }
.ab-mv__link circle { fill: var(--nos-orange); stroke: none; }
.ab-mv__brand { position: absolute; margin: 0; white-space: nowrap; color: transparent; pointer-events: none; line-height: 1; }
.ab-mv__brand .ab-brand__torta { -webkit-text-stroke: 1.5px rgba(255, 245, 228, 0.85); font-weight: 400; }
.ab-mv__brand svg path { fill: none; stroke: rgba(255, 245, 228, 0.85); stroke-width: 0.45; }
@media (min-width: 901px) {
  .ab-sheet--mv .ab-sheet__inner { display: block; position: relative; max-width: none; height: calc(1212 * var(--u)); min-height: 0; padding: 0; }
  .ab-mv__texts { position: absolute; inset: 0; }
  .ab-mv__block { position: absolute; width: calc(690 * var(--u)); gap: calc(40 * var(--u)); }
  .ab-mv__block--mision { left: calc(170 * var(--u)); top: calc(76 * var(--u)); }
  .ab-mv__block--vision { left: calc(350 * var(--u)); top: calc(582 * var(--u)); }
  .ab-sheet--mv h2 { font-size: clamp(2.4rem, calc(79.2 * var(--u)), 96px); line-height: 1; }
  .ab-mv__box { padding: calc(40 * var(--u)) calc(44 * var(--u)); font-family: var(--font-display); font-weight: 400; font-size: clamp(0.95rem, calc(26.9 * var(--u)), 32px) !important; line-height: 1.1 !important; max-width: none !important; }
  .ab-mv__link { position: absolute; left: calc(906 * var(--u)); top: calc(392 * var(--u)); width: calc(120 * var(--u)); height: calc(270 * var(--u)); }
  .ab-mv__fig { position: absolute; left: calc(1170 * var(--u)); top: calc(256 * var(--u)); width: calc(550 * var(--u)); border-radius: 0; overflow: visible; aspect-ratio: auto; margin: 0; }
  .ab-mv__fig img { height: auto; object-fit: contain; }
  .ab-mv__brand { left: calc(716 * var(--u)); top: calc(1030 * var(--u)); font-size: calc(250 * var(--u)); }
}
@media (max-width: 900px) {
  .ab-sheet--mv .ab-sheet__inner { grid-template-columns: minmax(0, 1fr); padding: calc(var(--nav-h) + 24px) 20px 140px; }
  .ab-mv__texts { display: grid; gap: 28px; }
  .ab-mv__block { gap: 14px; }
  .ab-sheet--mv h2 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .ab-mv__box { padding: 20px; font-size: 1rem !important; line-height: 1.35 !important; max-width: none !important; }
  .ab-mv__link { display: none; }
  .ab-mv__fig { width: min(70vw, 320px); justify-self: center; aspect-ratio: auto; border-radius: 0; overflow: visible; }
  .ab-mv__fig img { height: auto; object-fit: contain; }
  .ab-mv__brand { left: 50%; bottom: -0.18em; translate: -50% 0; font-size: 24vw; }
}
.ab-sheet__copy .ab-mv__box { font-weight: 400; }

/* Cierre: la torta se ve completa (antes asomaba cortada desde abajo) */
.ab-end__inner { padding-bottom: clamp(48px, 7vw, 96px); }
.ab-end__cake { margin-bottom: 0; }

/* ==========================================================================
   Nosotros · celular (corrección 16 oct)
   ========================================================================== */
/* Línea de tiempo: el punto activo cambia de color sin agrandarse (antes desalineaba su año) */
.ab-hitos__dots li.is-on { transform: none; }
@media (max-width: 900px) {
  /* Portada: la foto queda justo bajo el texto (--photo-top lo mide nosotros.js); torta y corazones la siguen */
  .ab-hero__photo { top: var(--photo-top, 46%); height: min(55vw, calc(100% - var(--photo-top, 46%) - 40px)); }
  .ab-hero__deco--hearts { top: calc(var(--photo-top, 46%) + 30vw); bottom: auto; right: -8vw; width: 40vw; }
  .ab-hero__deco--cake { top: calc(var(--photo-top, 46%) + 32vw); bottom: auto; right: 2vw; width: 28vw; }

  /* Hitos: el círculo se ajusta al alto que queda sobre el año, nunca lo tapa */
  .ab-hito__media { width: 100%; height: 100%; min-height: 0; }
  .ab-hito__circle { width: auto; height: min(100%, 74vw); aspect-ratio: 1; }
  .ab-hito__media--cake .ab-hito__circle { height: auto; max-height: 100%; width: min(86vw, 100%); aspect-ratio: auto; display: grid; place-items: center; }
  .ab-hito__media--cake .ab-hito__pic { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
  .ab-hito__media--two { width: auto; height: min(100%, 80vw); aspect-ratio: 1; justify-self: center; }
  .ab-hito__media--two .ab-hito__circle { height: auto; width: 66%; }
  .ab-hito__media--two .ab-hito__circle--2 { width: 71%; }
  .ab-hito__deco { width: min(34vw, 150px); }
  .ab-hito__deco--abajo-izq { left: 2vw; bottom: 0; }
  .ab-hito__deco--arriba-der { right: 2vw; top: 0; }
  .ab-hito__img { left: 0; top: 0; }
}
@media (max-width: 900px) {
  .ab-hito__media { container-type: size; }
  .ab-hito__media:not(.ab-hito__media--cake):not(.ab-hito__media--two) .ab-hito__circle { width: min(100cqh, 74vw); height: auto; aspect-ratio: 1; }
  .ab-hito__media--two { width: 100%; height: 100%; aspect-ratio: auto; }
  .ab-hito__media--two .ab-hito__circle { width: min(66cqh, 50vw); left: calc(50% - min(50cqh, 38vw)); top: 0; }
  .ab-hito__media--two .ab-hito__circle--2 { width: min(71cqh, 54vw); left: auto; right: calc(50% - min(50cqh, 38vw)); top: auto; bottom: 0; }
}
