/* Naturalpharma — hoja de estilos compartida
   Marca: azules #045484 / #1363a5, verde #5cbb54, verde pálido #dcecd5, amarillo #fbf305
   Tipografía: Castle T (archivos de la marca) */

@font-face { font-family: "Castle T"; src: url("../fonts/CastleTOT-Lig.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Castle T"; src: url("../fonts/CastleTOT-Boo.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Castle T"; src: url("../fonts/CastleTOT-Bol.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Castle T"; src: url("../fonts/CastleTOT-Ult.otf") format("opentype"); font-weight: 900; font-display: swap; }

:root {
  /* colour roles */
  --bg: #fbfdf9;
  --surface: #dcecd5;        /* verde pálido de la paleta */
  --ink: #045484;            /* azul profundo de la paleta */
  --ink-deep: #033a5c;
  --muted: #2f6ea8;
  --field: #045484;          /* azul principal: campos invertidos */
  --on-field: #ffffff;
  --accent: #5cbb54;         /* verde de la hoja: acción principal */
  --accent-strong: #4aa743;
  --on-accent: #032f4c;
  --sun: #fbf305;            /* amarillo del logo, un único detalle */

  /* type */
  --font: "Castle T", "Futura", "Trebuchet MS", system-ui, sans-serif;
  --t-xl: clamp(52px, 7vw, 132px);
  --t-l: clamp(34px, 4.2vw, 68px);
  --t-m: clamp(23px, 2.3vw, 34px);
  --t-s: 18px;
  --t-xs: 15px;
  /* los cuatro tamaños de letra de todo el sitio: títulos principales, títulos, subtítulos y texto.
     Los títulos también se ajustan a la altura de la pantalla para que cada bloque quepa completo. */
  --fs-1: clamp(36px, min(5.4vw, 10svh), 88px);
  --fs-2: clamp(30px, min(3.4vw, 6.6svh), 54px);
  --fs-3: clamp(21px, min(1.8vw, 3.8svh), 27px);
  --fs-4: 18px;

  /* space */
  --margin: clamp(16px, 3vw, 44px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(56px, min(7vw, 10svh), 120px);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--fs-4); line-height: 1.55; font-weight: 400; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50; }
.skip:focus { top: 12px; }

/* layout */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: var(--section); }
.field { background: var(--field); color: var(--on-field); }
.surface { background: var(--surface); }

/* type helpers */
.display { font-size: var(--fs-1); font-weight: 700; line-height: 0.96; letter-spacing: -0.035em; }
.h2 { font-size: var(--fs-2); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.statement { font-size: var(--fs-3); font-weight: 400; line-height: 1.22; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-4); line-height: 1.5; }
.small { font-size: var(--fs-4); line-height: 1.5; }
.muted { color: var(--muted); }
.h2 .muted { display: block; }

/* buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 52px; padding: 14px 26px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: var(--fs-4); font-weight: 700; letter-spacing: 0; text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--ink { background: var(--ink); color: #fff; }
.button--light { background: #fff; color: var(--ink); }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button--ink:hover { background: var(--ink-deep); }
  .button--light:hover { background: var(--surface); }
  .link:hover { text-decoration-color: currentColor; }
}

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); transition: transform var(--t-ui) var(--ease-out); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav__links { display: flex; gap: clamp(16px, 2vw, 34px); }
.nav__links a { font-size: var(--fs-4); padding-block: 8px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.nav__links a[aria-current="page"] { font-weight: 700; text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { text-decoration-color: currentColor; } }
.nav .button { min-height: 44px; padding: 10px 20px; font-size: var(--fs-4); }
.nav-toggle { display: none; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: var(--fs-4); }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--margin) 24px; background: var(--bg); box-shadow: 0 18px 30px -18px rgba(3, 47, 76, 0.35); display: none; } /* taste-skill-ignore: open menu overlay */
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { font-size: var(--fs-4); padding-block: 12px; }
  .nav__links a[aria-current="page"] { color: var(--field); }
  .nav .button { margin-top: 12px; min-height: 52px; }
  .brand img { height: 40px; }
}

/* sentence with a photograph inside it (the page's grammar) */
.sentence { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.22em; }
.sentence__frame { display: inline-block; width: 2.3em; height: 0.74em; overflow: hidden; align-self: baseline; position: relative; border-radius: 0.08em; background: var(--surface); }
.sentence__frame img { width: 100%; height: 100%; object-fit: cover; }
.sentence__word { white-space: nowrap; }

/* hero */
.hero { background: var(--surface); min-height: calc(100svh - 76px); display: grid; grid-template-rows: 1fr auto; padding-bottom: clamp(24px, 4vw, 48px); }
.hero__title { align-self: center; padding-block: 8vh; font-size: var(--fs-1); }
.hero__foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; row-gap: 24px; }
.hero__foot p { grid-column: 1 / span 6; font-size: var(--fs-4); max-width: 44ch; }
.hero__actions { grid-column: 8 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 14px 28px; }
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero__title { padding-block: 40px 32px; }
  .hero .sentence { flex-direction: column; align-items: flex-start; font-size: var(--fs-1); row-gap: 14px; }
  .hero .sentence__frame { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 6px; }
  .hero__foot p, .hero__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* intro statement with inline thumbnails */
.intro { padding-block: clamp(56px, 10svh, 120px); }
.intro p { max-width: 44ch; margin-inline: auto; text-align: center; font-size: var(--fs-3); line-height: 1.3; font-weight: 400; }
.thumb { display: inline-block; height: 0.85em; width: 1.25em; vertical-align: -0.1em; margin-inline: 0.1em; border-radius: 0.14em; overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .intro p { text-align: left; font-size: var(--fs-3); } }

/* ledger of figures */
.ledger { align-items: center; }
.ledger__head { grid-column: 1 / span 6; display: grid; gap: 32px; align-content: center; }
.ledger__head img { width: min(100%, 360px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.ledger__rows { grid-column: 7 / -1; display: grid; gap: 20px; }
.ledger__row { display: grid; grid-template-columns: 3.1em 1fr; column-gap: 0.4em; align-items: baseline; font-size: var(--fs-1); }
.ledger__fig { font-weight: 700; line-height: 1; letter-spacing: -0.04em; text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.ledger__cap { font-size: var(--fs-4); line-height: 1.4; max-width: 30ch; }
@media (max-width: 860px) {
  .ledger__head, .ledger__rows { grid-column: 1 / -1; }
  .ledger__rows { margin-top: 56px; gap: 28px; }
  .ledger__row { grid-template-columns: 1fr; font-size: var(--fs-1); }
  .ledger__fig { text-align: left; }
  .ledger__cap { font-size: var(--fs-4); margin-top: 6px; }
}

/* object in front of type */
.stack { position: relative; overflow: hidden; }
.stack__type { font-size: var(--fs-1); font-weight: 700; line-height: 0.9; letter-spacing: -0.04em; white-space: nowrap; }
.stack__type span { display: block; }
.stack__object { position: absolute; right: var(--margin); top: clamp(60px, 7vw, 120px); width: clamp(260px, 40vw, 640px); transform: rotate(-4deg); border-radius: 10px; overflow: hidden; z-index: 2; }
.stack__object img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.stack__facts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(48px, 6vw, 96px); }
.stack__facts > div { grid-column: 1 / span 6; display: grid; gap: 18px; font-size: var(--fs-4); }
.stack__facts .button { justify-self: start; margin-top: 8px; }
@media (max-width: 860px) {
  .stack__type { font-size: var(--fs-1); }
  .stack__object { position: relative; right: auto; top: auto; width: 78vw; margin: 32px 0 0 auto; }
  .stack__facts > div { grid-column: 1 / -1; font-size: var(--fs-4); }
}

/* one verb at a time */
.verbs__intro { padding-block: clamp(96px, 10vw, 160px); background: var(--field); color: #fff; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.verbs__intro .h2 { grid-column: 1 / span 7; }
.verbs__intro p { grid-column: 9 / -1; }
@media (max-width: 860px) { .verbs__intro .h2, .verbs__intro p { grid-column: 1 / -1; } }
.verbs__intro .h2 { max-width: 18ch; }
.verbs__intro p { margin-top: 28px; max-width: 46ch; font-size: var(--fs-4); }
.verb { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; }
.verb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verb::before { content: ""; position: absolute; inset: 0; background: rgba(2, 38, 62, 0.42); z-index: 1; }
.verb__word { position: sticky; top: 50%; z-index: 2; transform: translateY(-50%); text-align: center; font-size: clamp(84px, 15vw, 260px); font-weight: 900; line-height: 0.9; letter-spacing: -0.04em; }
.verb__word-wrap { position: absolute; inset: 0; z-index: 2; }
.verb__text { position: absolute; left: var(--margin); bottom: clamp(24px, 4vw, 56px); z-index: 3; max-width: 44ch; font-size: var(--fs-4); line-height: 1.5; }
.verb__text strong { display: block; font-size: var(--fs-3); line-height: 1.15; margin-bottom: 8px; }
.verb__text .link { display: inline-block; margin-top: 12px; }
@media (max-width: 760px) {
  .verb__word { font-size: 22vw; }
  .verb__text { right: var(--margin); font-size: var(--fs-4); }
}

/* quotation spread edge to edge */
.spread { padding-block: clamp(64px, 10svh, 140px); }
.spread__quote { font-size: var(--fs-2); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.spread__line { display: flex; justify-content: space-between; gap: 0.3em; margin-bottom: 0.35em; }
.spread__by { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; font-size: var(--fs-4); }
.voices { margin-top: clamp(80px, 9vw, 140px); }
.voices li { grid-column: span 4; display: grid; gap: 18px; align-content: start; font-size: var(--fs-4); }
.voices blockquote { font-size: var(--fs-4); line-height: 1.5; }
.voices cite { font-style: normal; font-weight: 700; }
.stars { color: var(--ink); letter-spacing: 0.15em; }
@media (max-width: 860px) {
  .spread__quote { font-size: var(--fs-2); }
  .spread__by { flex-direction: column; gap: 4px; }
  .voices li { grid-column: 1 / -1; margin-bottom: 40px; }
}

/* footer — invitation over a cropped name */
.site-footer { position: relative; overflow: hidden; background: var(--ink-deep); color: #fff; padding-top: clamp(80px, 10vw, 150px); }
.site-footer__top { align-items: start; row-gap: 48px; }
.site-footer__invite { grid-column: 1 / span 8; }
.site-footer__invite p { font-size: var(--fs-2); font-weight: 700; line-height: 1; letter-spacing: -0.03em; margin-bottom: 36px; }
.site-footer__links { grid-column: 9 / -1; display: grid; gap: 14px; font-size: var(--fs-4); }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: clamp(72px, 8vw, 120px); font-size: var(--fs-4); }
.site-footer__legal a { color: #fff; }
.credits { max-width: 70ch; font-size: var(--fs-4); line-height: 1.5; margin-top: 16px; color: #e6f0f8; }
.credits a { color: #fff; }
.site-footer__name { font-size: var(--fs-1); font-weight: 700; line-height: 0.8; letter-spacing: -0.045em; white-space: nowrap; transform: translateY(18%); margin-top: 20px; margin-left: -0.04em; color: var(--surface); user-select: none; }
@media (max-width: 860px) {
  .site-footer__invite, .site-footer__links { grid-column: 1 / -1; }
  .site-footer__invite p { font-size: var(--fs-2); }
  .site-footer__invite .button { width: 100%; }
}

/* whatsapp: the one thing that truly floats */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(3, 47, 76, 0.5); /* taste-skill-ignore: floating button */ transition: transform var(--t-press) var(--ease-out); }
.wa:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .wa:hover { transform: scale(1.06); } }
.wa svg { width: 30px; height: 30px; }

/* page hero for inner pages */
.page-hero { padding-block: clamp(64px, 12vh, 140px) clamp(48px, 8vh, 96px); }
.page-hero .sentence { font-size: var(--fs-1); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.page-hero__foot { margin-top: clamp(40px, 6vw, 80px); align-items: end; row-gap: 24px; }
.page-hero__foot p { grid-column: 1 / span 6; font-size: var(--fs-4); max-width: 46ch; }
.page-hero__foot .hero__actions { grid-column: 8 / -1; }
@media (max-width: 760px) {
  .page-hero .sentence { flex-direction: column; align-items: flex-start; font-size: var(--fs-1); row-gap: 14px; }
  .page-hero .sentence__frame { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 6px; }
  .page-hero__foot p, .page-hero__foot .hero__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* product catalogue */
.finder { padding-block: 18px; }
.finder__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.finder__label { font-weight: 700; margin-right: 6px; }
.chip { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: var(--fs-4); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chip:hover:not([aria-pressed="true"]) { background: #c9e2bf; } }
.finder__ingredients { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.finder__ingredients .chip { flex: none; min-height: 40px; font-size: var(--fs-4); padding: 6px 14px; }
.finder__status { margin-top: 10px; font-size: var(--fs-4); }
.line-block { padding-top: clamp(64px, 7vw, 112px); }
.line-block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 3vw, 48px); }
.line-block__head p { max-width: 46ch; font-size: var(--fs-4); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) var(--gap); }
.product { text-decoration: none; display: grid; gap: 10px; align-content: start; text-align: left; padding: 0; border: 0; background: none; color: inherit; }
.product__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--surface); }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .product:hover .product__img img { transform: scale(1.04); } }
.product__name { font-size: var(--fs-3); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.product__desc { font-size: var(--fs-4); line-height: 1.4; }
.product__meta { font-size: var(--fs-4); color: var(--muted); }
.tag { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: var(--fs-4); font-weight: 700; }
.tag--new { background: var(--sun); color: var(--ink-deep); }
.product[hidden] { display: none; }
.empty { padding: 48px 0; font-size: var(--fs-4); }
/* en el catálogo caben 5 por fila en el computador; las fichas se achican un poco para que el texto siga cómodo */
@media (min-width: 1181px) {
  #catalogo .products { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(28px, 2.6vw, 44px) clamp(14px, 1.4vw, 22px); }
  #catalogo .product__name { font-size: var(--fs-4); }
  #catalogo .product__desc { font-size: var(--fs-4); }
}
@media (max-width: 1100px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product__name { font-size: var(--fs-4); }
  .product__desc { font-size: var(--fs-4); }
  .line-block { padding-top: 112px; }
}

/* dialog */
.sheet { width: min(1080px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(3, 47, 76, 0.55); } /* taste-skill-ignore: dialog */
.sheet::backdrop { background: rgba(3, 38, 62, 0.6); }
.sheet[open] { animation: sheet-in 320ms var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
.sheet__inner { display: grid; grid-template-columns: 1.15fr 1fr; min-height: min(640px, calc(100svh - 24px)); }
/* fotos de la vista rápida: una a la vez, se pasan con las flechas o deslizando */
.sheet__media { position: relative; display: grid; background: var(--surface); padding: 8px; min-height: 0; height: min(640px, calc(100svh - 24px)); }
.sheet__track { display: flex; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 8px; outline: 0; }
.sheet__track::-webkit-scrollbar { display: none; }
.sheet__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; scroll-snap-stop: always; }
.sheet__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--bg); color: var(--ink); transform: translateY(-50%); transition: transform var(--t-press) var(--ease-out), opacity var(--t-hover) ease, background-color var(--t-hover) ease; }
.sheet__nav--prev { left: 16px; }
.sheet__nav--next { right: 16px; }
.sheet__nav:active { transform: translateY(-50%) scale(0.92); }
.sheet__nav:disabled { opacity: 0.35; }
.sheet__nav[hidden], .sheet__count[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .sheet__nav:not(:disabled):hover { background: var(--surface); } }
.sheet__count { position: absolute; left: 50%; bottom: 18px; padding: 4px 12px; border-radius: 999px; background: var(--bg); font-size: var(--fs-4); font-weight: 700; transform: translateX(-50%); }
.sheet__body { padding: clamp(24px, 3vw, 44px); display: grid; gap: 18px; align-content: start; }
.sheet__body h2 { font-size: var(--fs-2); line-height: 1; letter-spacing: -0.03em; }
.sheet__close { justify-self: end; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--surface); font-weight: 700; }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sheet__buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sheet__buy .button { flex: 1 1 auto; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: var(--fs-4); }
.facts dt { font-weight: 700; }
@media (max-width: 900px) {
  .sheet__inner { grid-template-columns: 1fr; }
  .sheet__body { order: -1; }
  .sheet__media { height: min(70svh, 560px); }
  .sheet { overflow: auto; }
}

/* two services, two fields */
.services { display: grid; grid-template-columns: 1fr 1fr; }
.service { padding: clamp(48px, 6vw, 96px) var(--margin); display: grid; gap: 24px; align-content: start; }
.service h3 { font-size: var(--fs-3); line-height: 1.15; }
.service > p { font-size: var(--fs-4); max-width: 46ch; }
.service h4 { font-size: var(--fs-4); font-weight: 700; margin-top: 8px; }
.service ul { display: grid; gap: 10px; font-size: var(--fs-4); }
.service ul li { padding-left: 1.2em; position: relative; }
.service ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; }
.service--field { background: var(--field); color: #fff; }
.service--surface { background: var(--surface); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* capacity selector */
.capacity { align-items: start; row-gap: 48px; }
.capacity__head { grid-column: 1 / span 5; display: grid; gap: 24px; }
.capacity__head p { font-size: var(--fs-4); }
.capacity__tool { grid-column: 7 / -1; display: grid; gap: 24px; }
.forms { display: flex; flex-wrap: wrap; gap: 10px; }
.result { padding: clamp(24px, 3vw, 40px); border-radius: 14px; background: var(--field); color: #fff; display: grid; gap: 14px; min-height: 260px; align-content: start; }
.result__verdict { font-size: var(--fs-3); font-weight: 700; line-height: 1.15; }
.result p { font-size: var(--fs-4); }
.result .button { justify-self: start; }
table.capacity-table { width: 100%; border-collapse: collapse; font-size: var(--fs-4); }
.capacity-table th, .capacity-table td { padding: 14px 10px; text-align: left; border-bottom: 1px solid #b9d4ad; }
.capacity-table thead th { font-size: var(--fs-4); }
.capacity-table td.yes, .capacity-table td.no { text-align: center; font-weight: 700; }
.capacity-table td.no { color: var(--muted); font-weight: 400; }
.capacity-table tr.is-active { background: var(--surface); }
@media (max-width: 860px) { .capacity__head, .capacity__tool { grid-column: 1 / -1; } }

/* list with large words */
.big-list { display: grid; gap: clamp(28px, 3vw, 48px); }
.big-list li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; }
.big-list h3 { grid-column: 1 / span 6; font-size: var(--fs-2); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.big-list p { grid-column: 7 / -1; font-size: var(--fs-4); max-width: 48ch; }
@media (max-width: 860px) { .big-list h3, .big-list p { grid-column: 1 / -1; } .big-list p { margin-top: 12px; } }

/* split with photograph */
.split { align-items: center; row-gap: 40px; }
.split__media { grid-column: 1 / span 6; overflow: hidden; border-radius: 12px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text { grid-column: 8 / -1; display: grid; gap: 22px; font-size: var(--fs-4); }
.split--rev .split__media { grid-column: 7 / -1; order: 2; }
.split--rev .split__text { grid-column: 1 / span 5; order: 1; }
@media (max-width: 860px) { .split__media, .split__text, .split--rev .split__media, .split--rev .split__text { grid-column: 1 / -1; order: initial; } }

/* values set large */
.values li { font-size: var(--fs-2); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; padding-block: 6px; }
.values li:nth-child(even) { padding-left: clamp(0px, 16vw, 280px); color: var(--muted); }
@media (max-width: 760px) { .values li { font-size: var(--fs-2); } .values li:nth-child(even) { padding-left: 0; } }

/* map */
.map { grid-column: 1 / span 7; min-height: 460px; border-radius: 12px; overflow: hidden; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; }
.place { grid-column: 9 / -1; display: grid; gap: 28px; align-content: start; }
.place dt { font-weight: 700; font-size: var(--fs-4); }
.place dd { font-size: var(--fs-4); line-height: 1.35; }
@media (max-width: 860px) { .map, .place { grid-column: 1 / -1; } .map, .map iframe { min-height: 340px; } }

/* contact: the email as display type */
.mailbox { min-height: calc(100svh - 76px); display: grid; grid-template-rows: auto 1fr auto; gap: 32px; padding-block: clamp(32px, 5vw, 64px); }
.mailbox h1 { max-width: 30ch; font-size: var(--fs-3); line-height: 1.4; font-weight: 400; }
.mailbox__address { align-self: end; font-size: var(--fs-2); font-weight: 400; line-height: 0.98; letter-spacing: -0.035em; text-decoration: none; transition: color var(--t-hover) ease; overflow-wrap: anywhere; }
.mailbox__address span { display: block; }
@media (hover: hover) and (pointer: fine) { .mailbox__address:hover { color: var(--sun); } }
.mailbox__corners { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: var(--fs-4); }
.mailbox__corners a { color: #fff; }
@media (max-width: 760px) { .mailbox__address { font-size: var(--fs-2); } .mailbox { min-height: 86svh; } }

.form { display: grid; gap: 22px; }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: var(--fs-4); }
.form input, .form textarea, .form select { width: 100%; min-height: 54px; padding: 14px 16px; border: 2px solid #b9d4ad; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: var(--fs-4); font-weight: 400; transition: border-color var(--t-hover) ease; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--field); }
.form .button { justify-self: start; }
.form__note { font-size: var(--fs-4); }

/* entrances — content stays visible without script */
.shutter { overflow: hidden; }
/* opacity always (gentle under reduced motion); travel only when motion is welcome */
.js [data-reveal] > * { opacity: 0; transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); }
.js [data-reveal].is-in > * { opacity: 1; transform: none; }
.js [data-reveal].is-in > *:nth-child(2) { transition-delay: 80ms; }
.js [data-reveal].is-in > *:nth-child(3) { transition-delay: 160ms; }
.js [data-reveal].is-in > *:nth-child(4) { transition-delay: 240ms; }
.js [data-reveal].is-in > *:nth-child(5) { transition-delay: 320ms; }
.js [data-reveal].is-in > *:nth-child(6) { transition-delay: 400ms; }
.js [data-reveal].is-in > *:nth-child(n+7) { transition-delay: 460ms; }
.js .shutter img { opacity: 0; transition: opacity 900ms ease, transform 1500ms var(--ease-soft); }
.js .shutter.is-in img { opacity: 1; }
.js .rise-line > span { opacity: 0; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.js .rise-line.is-in > span { opacity: 1; transform: none; }
.js .rise-line.is-in > span:nth-child(2) { transition-delay: 90ms; }
.js .rise-line.is-in > span:nth-child(3) { transition-delay: 180ms; }
.js .cycle img { opacity: 0; }
.js .cycle.is-in img.is-on { opacity: 1; }
@media all {
  .js [data-reveal] > * { transform: translateY(26px); }
  .js [data-reveal].is-in > * { transform: none; }

  .js .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.12); transition: opacity 900ms ease, transform 1500ms var(--ease-soft); }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }

  .drift { animation: drift 22s var(--ease-in-out) infinite alternate; }
  @keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }

  .js .rise-line > span { transform: translateY(0.4em); }
  .js .rise-line.is-in > span { transform: none; }
}
/* cycling photograph inside the products headline */
.cycle { position: relative; }
.cycle img { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; }
.cycle img.is-on { opacity: 1; }
.cycle-caption { margin-top: 18px; font-size: var(--fs-4); min-height: 1.6em; }
.site-footer__invite p span, .spread__line { white-space: nowrap; }
.site-footer__invite p span { display: block; }
@media (max-width: 860px) { .spread .wrap { padding-right: 88px; } }
.js .cycle.is-in img:not(.is-on), .cycle img:not(.is-on) { opacity: 0; }

/* =========================================================
   Ronda 2: fotografía de fondo, menos vacío, espaciado normal
   ========================================================= */
:root { --section: clamp(56px, min(7vw, 10svh), 120px); }

/* sección con foto de fondo y velo de color de marca */
.photo { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ink-deep); }
.photo__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100% !important; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(3, 46, 76, 0.5); pointer-events: none; }
.photo--strong::after { background: rgba(3, 46, 76, 0.72); }
.photo--pale { color: var(--ink); }
.photo--pale::after { background: rgba(244, 250, 241, 0.88); }
.photo .muted { color: #cfe6c6; }
.photo .link { color: #fff; }
.photo--pale .link, .photo--pale .muted { color: var(--muted); }
.button--ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.85); }
@media (hover: hover) and (pointer: fine) { .button--ghost:hover { background: rgba(255, 255, 255, 0.14); } }

/* portada */
.hero { background: var(--ink-deep); min-height: calc(100svh - 76px); display: flex; align-items: flex-end; padding: 0; }
.hero::after { background: rgba(3, 40, 66, 0.5); }
.hero__inner { width: 100%; padding-block: clamp(96px, 16vh, 180px) clamp(40px, 7vh, 72px); }
.hero__kicker { font-size: var(--fs-4); font-weight: 700; margin-bottom: 18px; color: #e7f3e2; }
.hero__title { font-size: var(--fs-1); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; max-width: 14ch; padding: 0; }
.hero__title > span { display: block; }
.hero__foot { margin-top: clamp(28px, 4vw, 48px); }
.hero__foot p { color: #f2f8ef; }
.hero__actions { justify-content: flex-end; }
@media (max-width: 760px) {
  .hero { min-height: 88svh; }
  .hero__title { font-size: var(--fs-1); max-width: none; }
  .hero__actions { justify-content: flex-start; }
}

/* introducción con collage de fotos de la empresa */
.intro { padding-block: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: center; }
.intro__text { grid-column: 1 / span 6; display: grid; gap: 22px; }
.intro__text .statement { max-width: 32ch; text-align: left; }
.intro__text p:not(.statement) { max-width: 52ch; }
.collage { grid-column: 8 / -1; position: relative; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.collage figure { overflow: hidden; border-radius: 14px; }
.collage img { width: 100%; height: 100% !important; object-fit: cover; }
.collage__a { grid-row: 1 / span 2; aspect-ratio: 3 / 4.4; }
.collage__b { aspect-ratio: 4 / 3.4; }
.collage__b img { object-position: 50% 70%; }
.collage__c { aspect-ratio: 1; border-radius: 50% !important; width: 78%; justify-self: center; }
@media (max-width: 860px) { .intro__text, .collage { grid-column: 1 / -1; } }

/* cifras sobre foto */
.ledger__head img { background: #fff; }
.ledger__fig { color: #fff; }

/* líneas propias: texto + fotos de producto, sin solaparse */
.stack { overflow: visible; }
.stack__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: center; }
.stack__text { grid-column: 1 / span 6; }
.stack__type { font-size: var(--fs-1); white-space: normal; }
.stack__type span { display: block; }
.stack__facts { display: grid; gap: 18px; margin-top: 32px; font-size: var(--fs-4); max-width: 52ch; }
.stack__facts > * { grid-column: auto; }
.stack__facts .button { justify-self: start; margin-top: 8px; }
.stack__shots { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack__object { position: static; grid-column: 1 / -1; width: auto; transform: none; margin: 0; border-radius: 14px; }
.stack__object img { aspect-ratio: 16 / 11; height: auto !important; object-fit: cover; }
.stack__small { overflow: hidden; border-radius: 14px; }
.stack__small img { aspect-ratio: 1; object-fit: cover; height: auto !important; }
@media (max-width: 860px) { .stack__text, .stack__shots { grid-column: 1 / -1; } .stack__type { font-size: var(--fs-1); } }


/* intro de las tres formas, más compacto */
.verbs__intro { padding-block: clamp(56px, 8svh, 112px); }

/* testimonios: espaciado de palabras normal */
.spread { padding-block: var(--section); }
.spread__main { margin-top: clamp(32px, 4vw, 56px); }
.spread__quote { font-size: var(--fs-2); line-height: 1.05; letter-spacing: -0.03em; max-width: 20ch; }
.spread__line { display: inline; }
.spread__by { display: block; margin-top: 20px; font-size: var(--fs-4); font-weight: 700; }
.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(48px, 6vw, 88px); }
.voices li { grid-column: auto; padding: 28px; border-radius: 16px; background: rgba(255, 255, 255, 0.8); }
.spread__note { margin-top: 40px; max-width: 56ch; }
@media (max-width: 860px) { .voices { grid-template-columns: 1fr; } .voices li { margin-bottom: 0; } .spread .wrap { padding-right: var(--margin); } .spread__quote { font-size: var(--fs-3); } }

/* encabezados de páginas internas con foto */
.page-hero { padding: 0; min-height: min(78svh, 760px); display: flex; align-items: flex-end; }
.page-hero__inner { width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: end; padding-block: clamp(80px, 12vh, 140px) clamp(40px, 6vh, 64px); }
.page-hero__text { grid-column: 1 / span 7; display: grid; gap: 24px; }
.page-hero__text p { font-size: var(--fs-4); max-width: 46ch; color: #f2f8ef; }
.page-hero__text .hero__actions { justify-content: flex-start; margin-top: 8px; }
.page-hero__title { font-size: var(--fs-1); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; }
.page-hero__title > span { display: block; }
.page-hero__photo { grid-column: 9 / -1; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 5; max-height: 520px; }
.page-hero__photo img { width: 100%; height: 100% !important; object-fit: cover; }
.page-hero__shots { grid-column: 8 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.page-hero__shots img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; height: auto !important; }
.page-hero__shots img:last-child { transform: translateY(32px); }
@media (max-width: 860px) {
  .page-hero__text, .page-hero__photo, .page-hero__shots { grid-column: 1 / -1; }
  .page-hero__photo { max-height: 360px; aspect-ratio: 4 / 3; }
  .page-hero__shots img:last-child { transform: none; }
  .page-hero__title { font-size: var(--fs-1); }
}

/* pie con foto */
.site-footer { isolation: isolate; }
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(3, 38, 62, 0.86); }
.site-footer .photo__bg { z-index: -2; }

/* contacto sobre foto */
.mailbox { min-height: calc(86svh - 76px); }
.mailbox h1 { color: #fff; font-size: var(--fs-3); }
.hero__title { max-width: none; }
.intro__text p { font-size: var(--fs-4); line-height: 1.55; text-align: left; margin: 0; max-width: 52ch; }
.intro__text p.statement { font-size: var(--fs-3); line-height: 1.25; max-width: 30ch; }
.spread__quote { max-width: none; }
.mailbox h1 { max-width: 24ch; line-height: 1.3; }
.mailbox__lead { margin-top: 10px; font-size: var(--fs-4); color: #e7f3e2; max-width: 40ch; }
@media (max-width: 760px) {
  .hero__title { font-size: var(--fs-1); }
  .spread__quote { font-size: var(--fs-3); }
}
.stack__facts { grid-template-columns: 1fr; }
@media (max-width: 860px) { .split > .split__text, .split > .split__media, .split > div { grid-column: 1 / -1 !important; } }
@media (max-width: 760px) { .verb__word { font-size: 17vw; } .hero__title { font-size: var(--fs-1); } }

/* Ronda 3: título verde, enlaces como botones, nombre del pie más pequeño */
:root { --leaf-deep: #2f7a2b; }
.h2--leaf { color: var(--leaf-deep); }
.button--outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.button--light { background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .button--outline:hover { background: var(--ink); color: #fff; }
}
.intro__text .button, .split__text .button { justify-self: start; }
.verb__text .button { margin-top: 16px; min-height: 46px; padding: 10px 22px; font-size: var(--fs-4); }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; }
.verbs__intro.photo { background: var(--ink-deep); }
.verbs__intro .photo__bg { grid-column: auto; }
.site-footer__name { font-size: var(--fs-1); transform: translateY(14%); }

/* Ronda 4: recuadros de la introducción y cifras alineadas */
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.box { border-radius: 16px; padding: clamp(20px, 2vw, 28px); display: grid; gap: 10px; align-content: start; }
.box h3 { font-size: var(--fs-3); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.intro__text .box p { font-size: var(--fs-4); line-height: 1.5; max-width: none; }
.box--pale { background: var(--surface); color: var(--ink); }
.box--pale h3 { color: var(--leaf-deep); }
.box--ink { background: var(--ink); color: #fff; }
.box--ink h3 { color: #cfe6c6; }
.intro__text .box--ink p { color: #f2f8ef; }
@media (max-width: 560px) { .boxes { grid-template-columns: 1fr; } }

.ledger__row { align-items: center; grid-template-columns: 3.4em 1fr; column-gap: 0.5em; }
.ledger__fig { line-height: 0.9; }
.ledger__cap { align-self: center; }
@media (max-width: 860px) { .ledger__row { grid-template-columns: 1fr; } }
/* portada más viva: velo ligero arriba, oscurece solo donde va el texto */
.hero::after { background: linear-gradient(to top, rgba(3, 40, 66, 0.78) 0%, rgba(3, 40, 66, 0.35) 45%, rgba(3, 40, 66, 0.08) 100%); } /* taste-skill-ignore: neutral scrim under text on a photo */
.hero .photo__bg { filter: saturate(1.15); }

/* Ronda 5: índice de las tres formas, conectado con los paneles */
.verbs__intro p { align-self: end; }
.verbs__index { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 4vw, 56px); }
.verbs__index a { height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.8); background: rgba(3, 46, 76, 0.45); color: #fff; text-decoration: none; font-size: var(--fs-4); line-height: 1.35; transition: background-color 200ms ease, color 200ms ease, transform 160ms ease-out; }
.verbs__index strong { display: block; font-size: var(--fs-4); line-height: 1.2; margin-bottom: 2px; }
.verbs__arrow { font-size: 22px; transition: transform 200ms ease-out; }
.verbs__index a:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .verbs__index a:hover { background: #fff; color: var(--ink); }
  .verbs__index a:hover .verbs__arrow { transform: translateY(4px); }
}
.verbs__num { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: var(--fs-4); font-weight: 700; line-height: 1; }
.verb__text strong { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px) { .verbs__index { grid-template-columns: 1fr; } }

/* Ronda 6 */
.site-footer { padding-bottom: clamp(32px, 4vw, 48px); }
#distribuye .verb__word { top: 45%; }
.site-footer__legal { padding-right: 76px; }

/* =========================================================
   Ronda 7: catálogo sin fotos en el titular, página de producto
   ========================================================= */
.page-hero--wide .page-hero__inner { display: grid; grid-template-columns: 1fr; row-gap: clamp(28px, 3vw, 44px); }
.page-hero--wide .page-hero__title { font-size: var(--fs-1); line-height: 0.92; letter-spacing: -0.045em; }
.page-hero__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; align-items: end; }
.page-hero__row p { grid-column: 1 / span 8; font-size: var(--fs-3); line-height: 1.3; max-width: 48ch; color: #f2f8ef; }
.page-hero__facts { grid-column: 8 / -1; display: flex; justify-content: flex-end; gap: clamp(20px, 3vw, 48px); list-style: none; margin: 0; padding: 0; font-size: var(--fs-4); color: #e7f3e2; }
.page-hero__facts li { display: grid; gap: 4px; }
.page-hero__facts strong { font-size: var(--fs-2); line-height: 0.9; letter-spacing: -0.03em; color: #fff; }
.page-hero--wide .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
@media (max-width: 860px) {
  .page-hero__row p, .page-hero__facts { grid-column: 1 / -1; }
  .page-hero__facts { justify-content: flex-start; }
  .page-hero--wide .page-hero__title { font-size: var(--fs-1); }
}

/* ruta */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-block: 20px 0; font-size: var(--fs-4); color: var(--muted); }
/* volver atrás: solo una flecha, en un círculo con borde */
.back { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: 6px; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.back:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .back:hover { background: var(--surface); } }
.pay__head .back { justify-self: start; margin: 0 0 6px; }
.button--sm { min-height: 44px; padding: 10px 22px; }
.crumbs a { color: var(--ink); text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

/* producto */
.pdp { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; padding-block: clamp(24px, 3vw, 40px) clamp(56px, 6vw, 96px); }
.pdp__gallery { grid-column: 1 / span 6; display: grid; gap: 12px; position: sticky; top: 92px; }
.pdp__main { overflow: hidden; border-radius: 16px; background: var(--surface); aspect-ratio: 1; }
.pdp__main img { width: 100%; height: 100% !important; object-fit: contain; }
.pdp__thumbs { display: flex; gap: 10px; }
.pdp__thumb { width: 88px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; transition: border-color var(--t-hover) ease, transform var(--t-press) ease-out; }
.pdp__thumb img { width: 100%; height: 100% !important; object-fit: cover; }
.pdp__thumb[aria-pressed="true"] { border-color: var(--ink); }
.pdp__thumb:active { transform: scale(0.96); }
.pdp__info { grid-column: 8 / -1; display: grid; gap: 20px; align-content: start; padding-top: clamp(0px, 2vw, 32px); }
.pdp__title { font-size: var(--fs-1); font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; }
.pdp__desc { font-size: var(--fs-3); line-height: 1.25; }
.pdp__size { font-size: var(--fs-4); color: var(--muted); }
.pdp__buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; min-height: 52px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.qty__btn { width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; transition: background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .qty__btn:hover { background: var(--surface); } }
.qty__input { width: 48px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-4); font-weight: 700; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__cart { flex: 1 1 220px; }
.pdp__notice { font-size: var(--fs-4); min-height: 0; }
.pdp__notice:empty { display: none; }
.pdp__badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.pdp__badges li { padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: var(--fs-4); font-weight: 700; }
@media (max-width: 860px) {
  .pdp__gallery, .pdp__info { grid-column: 1 / -1; }
  .pdp__gallery { position: static; }
  .pdp__title { font-size: var(--fs-1); }
}

.pdp-about { background: var(--surface); }
.pdp-about .grid { row-gap: 48px; align-items: start; }
.pdp-about__text { grid-column: 1 / span 6; display: grid; gap: 20px; }
.pdp-about__text p:not(.statement) { max-width: 56ch; }
.pdp-about__sheet { grid-column: 8 / -1; display: grid; gap: 18px; padding: clamp(24px, 2.6vw, 36px); border-radius: 16px; background: var(--bg); }
.pdp-about__sheet h3 { font-size: var(--fs-3); font-weight: 700; }
.pdp-about__sheet .facts { font-size: var(--fs-4); gap: 12px 20px; }
@media (max-width: 860px) { .pdp-about__text, .pdp-about__sheet { grid-column: 1 / -1; } }

.pdp-ings__note { margin-top: 8px; max-width: 70ch; font-size: var(--fs-4); }
.line-block__head .button { flex: none; }
.page-hero--wide .page-hero__inner > * { grid-column: 1 / -1; }
@media (max-width: 560px) { .page-hero__row p { font-size: var(--fs-4); } }

/* =========================================================
   Ronda 9: movimiento de la página de inicio (solo body.home)
   Cada elemento aparece cuando entra en pantalla (main.js le pone .rv y luego .is-in).
   Opacidad siempre; desplazamientos solo sin "reducir movimiento".
   ========================================================= */

/* aparición elemento por elemento */
.js .motion .rv { opacity: 0; transition: opacity 950ms var(--ease-out), transform 1100ms var(--ease-out); }
.js .motion .button.rv { transition: opacity 950ms var(--ease-out), transform 1100ms var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.js .motion .rv.is-in { opacity: 1; transform: none; }
.js .motion .rise-line > span { transition-duration: 950ms, 1200ms; }
.js .motion .rise-line.is-in > span:nth-child(2) { transition-delay: 130ms; }

/* titular: se mantiene la secuencia al cargar */
.js .home .hero__title.is-in > span:nth-child(1) { transition-delay: 160ms; }
.js .home .hero__title.is-in > span:nth-child(2) { transition-delay: 320ms; }
.js .home .hero__foot > p.rv.is-in { transition-delay: 570ms; }
.js .home .hero__actions > .button.rv.is-in:nth-child(1) { transition-delay: 840ms, 840ms, 0ms, 0ms; }
.js .home .hero__actions > .button.rv.is-in:nth-child(2) { transition-delay: 950ms, 950ms, 0ms, 0ms; }
.home .wa { animation: wa-in 680ms var(--ease-out) 1490ms both; }
@keyframes wa-in { from { opacity: 0; } }

/* cifras: el texto llega después de su número */
.js .home .ledger__cap { opacity: 0; transition: opacity 950ms var(--ease-out), transform 1080ms var(--ease-out); }
.js .home .ledger__row.is-in .ledger__cap { opacity: 1; transform: none; transition-delay: 240ms; }

/* cinta en movimiento */
.ribbon { overflow: hidden; background: var(--ink); color: #fff; padding-block: 16px; }
.ribbon__track { display: flex; width: max-content; }
.ribbon__run { display: flex; list-style: none; margin: 0; padding: 0; }
.ribbon__run li { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: var(--fs-4); font-weight: 700; white-space: nowrap; }
.ribbon__run li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* productos: sin efecto de apilado se ven en cuadrícula */
.deck-box { grid-column: 7 / -1; display: grid; gap: 28px; }
.deck { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.deck__card { overflow: hidden; border-radius: 16px; background: var(--surface); }
.deck__card:first-child { grid-column: 1 / -1; }
.deck__card img { width: 100%; height: auto !important; aspect-ratio: 1; object-fit: cover; }
.deck__card:first-child img { aspect-ratio: 5 / 4; object-position: 50% 30%; }
@media (max-width: 860px) { .deck-box { grid-column: 1 / -1; } }

/* línea de tiempo de las cifras (2004 → 2025) */
@media (min-width: 861px) {
  .home .ledger__row { position: relative; }
  .home .ledger__row:nth-child(n+2)::before { content: ""; position: absolute; left: calc(3.65em - 1.5px); top: -10px; bottom: -10px; width: 3px; background: var(--accent); transform-origin: top; }
  .home .ledger__row:nth-child(2)::before { top: 50%; }
  .home .ledger__row:nth-child(4)::before { bottom: 50%; }
  .home .ledger__row:nth-child(n+2)::after { content: ""; position: absolute; z-index: 1; left: calc(3.65em - 8px); top: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--sun); }
}

@media all {
  /* puntos de partida de cada aparición */
  .js .motion .rv { transform: translateY(26px); }
  .js .home .rv:where(.collage > figure) { transform: scale(0.94); }
  .js .home .rv:where(.collage__c) { transform: rotate(-14deg) scale(0.86); transition-duration: 950ms, 1350ms; }
  .js .home .rv:where(.ledger__row) { transform: translateX(-28px); }
  .js .home .rv:where(.ledger__head > .ledger__pic) { transform: rotate(-14deg) scale(0.88); transition-duration: 950ms, 1490ms; }
  .js .home .rv:where(.box) { transform: translateY(18px) scale(0.98); }
  .js .home .rv:where(.verbs__index li) { transform: translateY(16px); }
  .js .motion .rv:where(.hero__actions .button) { transform: translateY(14px); }
  .js .home .ledger__cap { transform: translateX(16px); }
  .js .home .hero__title > span { transform: translateY(0.55em); transition-duration: 1080ms, 1350ms; }
  .js .home .stack__type > span { transform: translateY(0.35em); }

  /* la foto del titular se acerca al cargar y sigue con su deriva lenta */
  .home .hero .photo__bg { animation: hero-in 2430ms var(--ease-out) both, drift 22s var(--ease-in-out) 2430ms infinite alternate; }
  @keyframes hero-in { from { opacity: 0.4; transform: scale(1.14); } to { opacity: 1; transform: scale(1.02); } }
  .home .wa { animation-name: wa-pop; }
  @keyframes wa-pop { from { opacity: 0; transform: scale(0.9) translateY(12px); } }

  /* cinta: corre sola y se detiene con el mouse encima */
  .ribbon__track { animation: ribbon 48s linear infinite; }
  @keyframes ribbon { to { transform: translateX(-50%); } }
  @media (hover: hover) and (pointer: fine) { .ribbon:hover .ribbon__track { animation-play-state: paused; } }

  @supports (animation-timeline: view()) {
    /* paneles Compra / Distribuye / Crea, ligados al scroll */
    .home .verb { view-timeline: --verb block; }
    .home .verb > img { animation: verb-pan linear both; animation-timeline: --verb; animation-range: cover; }
    @keyframes verb-pan { from { scale: 1.16; translate: 0 -6%; } to { scale: 1.16; translate: 0 6%; } }
    .home .verb__word { animation: verb-word linear both; animation-timeline: --verb; animation-range: entry 0% entry 90%; }
    @keyframes verb-word { from { opacity: 0; scale: 0.8; } to { opacity: 1; scale: 1; } }
    .home .verb__text { transform-origin: 0 100%; animation: verb-text linear both; animation-timeline: --verb; animation-range: entry 40% entry 100%; }
    @keyframes verb-text { from { opacity: 0; scale: 0.94; } to { opacity: 1; scale: 1; } }


  }

}

/* =========================================================
   Ronda 10: línea de tiempo completa y productos que se barajan solos
   ========================================================= */
@media (min-width: 861px) {
  /* cada tramo se dibuja cuando su año aparece, y queda completo */
  .js .home .ledger__row:nth-child(n+2)::before { transform: scaleY(0); transition: transform 1100ms var(--ease-in-out) 350ms; }
  .js .home .ledger__row:nth-child(n+2)::after { opacity: 0; transform: scale(0.4); transition: opacity 500ms var(--ease-out) 250ms, transform 700ms var(--ease-out) 250ms; }
  .js .home .ledger__row.is-in::before { transform: scaleY(1); }
  .js .home .ledger__row.is-in::after { opacity: 1; transform: scale(1); }
}

/* la baraja: main.js le pone .is-auto y va pasando la carta de arriba al fondo */
@media all {
  .home .stack--deck { overflow-x: clip; }
  .home .deck.is-auto { display: block; position: relative; justify-self: center; width: min(100%, 340px, 42svh); aspect-ratio: 1; }
  .home .deck.is-auto .deck__card { position: absolute; inset: 0; border: 6px solid var(--bg); border-radius: 22px; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
  .home .deck.is-auto .deck__card img { height: 100% !important; aspect-ratio: auto; object-position: 50% 50%; }
  .home .deck__card:nth-child(1) { --r: -3deg; --x: 0px; --y: 0px; }
  .home .deck__card:nth-child(2) { --r: 4deg; --x: 12px; --y: -8px; }
  .home .deck__card:nth-child(3) { --r: -5deg; --x: -14px; --y: 6px; }
  .home .deck__card:nth-child(4) { --r: 2deg; --x: 10px; --y: 10px; }
  .home .deck__card:nth-child(5) { --r: -2deg; --x: -6px; --y: -10px; }
  @media (max-width: 860px) { .home .deck.is-auto { width: min(64%, 280px); margin-top: 12px; } }
}

/* =========================================================
   Ronda 11: baraja con clic, años que cambian la foto,
   botones que se rellenan desde el mouse y subrayado del menú que se desliza
   ========================================================= */

/* baraja: nombre del producto debajo */
.deck.is-auto { cursor: pointer; }
.deck.is-auto:focus-visible { outline: 3px solid var(--accent); outline-offset: 10px; border-radius: 24px; }
.deck__caption { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; justify-self: center; width: min(100%, 340px, 42svh); }
.deck__caption p { display: grid; gap: 2px; }
.deck__name { font-size: var(--fs-3); font-weight: 700; line-height: 1.1; color: var(--ink); }
.deck__hint { font-size: var(--fs-4); color: var(--muted); }
@media (max-width: 860px) { .deck__caption { width: min(64%, 280px); } }

/* años: el disco cambia de foto y los demás años se atenúan */
.ledger__pic { display: grid; gap: 14px; justify-items: start; margin: 0; }
.ledger__disc { position: relative; width: min(100%, 360px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff; }
.ledger__head .ledger__disc img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; opacity: 0; transition: opacity 450ms ease; }
.ledger__head .ledger__disc img.is-on { opacity: 1; }
.ledger__note { font-size: var(--fs-4); font-weight: 700; color: #fff; }
@media (max-width: 860px) { .ledger__note { display: none; } }
.ledger__row { transition: opacity 300ms ease; }
.ledger__row:focus-visible { outline: 3px solid var(--sun); outline-offset: 6px; border-radius: 8px; }
.js .ledger__rows.has-active > .ledger__row:not(.is-active) { opacity: 0.38; }
@media (hover: hover) and (pointer: fine) { .js .ledger__rows .ledger__row { cursor: default; } }
@media all {
  .ledger__head .ledger__disc img { transform: scale(1.06); transition: opacity 450ms ease, transform 700ms var(--ease-out); }
  .ledger__head .ledger__disc img.is-on { transform: none; }
}

@property --fill-r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
/* botones: el color nuevo entra desde donde llega el mouse y sale por donde se va */
@media (hover: hover) and (pointer: fine) {
  .js .button { position: relative; isolation: isolate; overflow: hidden; }
  .js .button::before { content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--fill, var(--accent-strong)); clip-path: circle(var(--fill-r) at var(--mx, 50%) var(--my, 50%)); transition: --fill-r 600ms var(--ease-out); pointer-events: none; }
  .js .button:hover::before { --fill-r: 160%; }
  .js .button:hover { background: var(--accent); }
  .js .button--ink { --fill: var(--ink-deep); }
  .js .button--ink:hover { background: var(--ink); }
  .js .button--light { --fill: var(--surface); }
  .js .button--light:hover { background: #fff; }
  .js .button--outline { --fill: var(--ink); }
  .js .button--outline:hover { background: transparent; }
  .js .button--ghost { --fill: rgba(255, 255, 255, 0.16); }
  .js .button--ghost:hover { background: transparent; }
}

/* menú: una sola línea que se desliza a la opción señalada */
.nav__bar { display: none; }
@media (min-width: 961px) {
  .nav__links.has-bar { position: relative; }
  .nav__links.has-bar a, .nav__links.has-bar a:hover, .nav__links.has-bar a[aria-current="page"] { text-decoration-color: transparent; }
  .nav__bar { display: block; position: absolute; left: 0; top: 0; width: 100px; height: 2px; background: currentColor; transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity 200ms ease; }
  .nav__bar.is-ready { transition: transform 320ms var(--ease-out), opacity 200ms ease; }
}

/* título de "Líneas propias" un poco más arriba, separado del texto */
.home .stack__type { position: relative; top: -16px; }

/* =========================================================
   Ronda 12: la sección de cifras cabe entera en una pantalla, y WhatsApp se presenta
   ========================================================= */
.cifras { padding-block: clamp(36px, 6svh, 72px); }
.cifras .ledger__head { gap: 18px; }
.cifras .ledger__head .h2 { font-size: var(--fs-2); }
.cifras .ledger__disc { width: min(100%, 36svh, 320px); }
.cifras .ledger__rows { gap: 14px; }
.cifras .ledger__row { font-size: var(--fs-1); }
.cifras .ledger__cap { font-size: var(--fs-4); }
@media (min-width: 861px) {
  .home .cifras .ledger__row:nth-child(n+2)::before { top: -7px; bottom: -7px; }
  .home .cifras .ledger__row:nth-child(2)::before { top: 50%; }
  .home .cifras .ledger__row:nth-child(4)::before { bottom: 50%; }
}
@media (max-width: 860px) {
  /* en celular: texto y foto lado a lado, y cada año con su texto en la misma fila */
  .cifras .ledger__head { grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; }
  .cifras .ledger__head .h2 { grid-column: 1 / -1; font-size: var(--fs-2); }
  .cifras .ledger__head .lead { font-size: var(--fs-4); }
  .cifras .ledger__disc { width: clamp(96px, 28vw, 160px); }
  .cifras .ledger__rows { margin-top: 28px; gap: 16px; }
  .cifras .ledger__row { grid-template-columns: 2.5em 1fr; column-gap: 14px; align-items: center; font-size: var(--fs-1); }
  .cifras .ledger__cap { margin-top: 0; font-size: var(--fs-4); }
}

/* WhatsApp: al pasar el mouse el círculo se alarga y dice "Escríbenos" */
.wa { isolation: isolate; }
.wa svg { position: relative; }
.wa__label { position: absolute; z-index: -1; top: 0; right: 0; height: 100%; display: flex; align-items: center; padding: 0 72px 0 24px; border-radius: 999px; background: #25d366; color: #06301a; font-size: var(--fs-4); font-weight: 700; white-space: nowrap; clip-path: inset(0 0 0 calc(100% - 60px) round 30px); opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .wa:hover { transform: none; }
  .wa:hover .wa__label, .wa:focus-visible .wa__label { clip-path: inset(0 0 0 0 round 30px); opacity: 1; }
}
@media all {
  .wa__label { transition: clip-path 420ms var(--ease-out), opacity 200ms ease; }
}


/* =========================================================
   Ronda 14: cifras reorganizadas. La foto ocupa toda la altura a la izquierda;
   título, texto y línea de tiempo van a la derecha, con el mismo tamaño de letra
   ========================================================= */
@media (min-width: 861px) {
  .cifras .ledger { grid-template-rows: auto auto 1fr; row-gap: 0; align-items: start; }
  .cifras .ledger__head { display: contents; }
  .cifras .ledger__pic { grid-column: 1 / span 5; grid-row: 1 / span 3; align-self: stretch; display: grid; grid-template-rows: 1fr auto; gap: 12px; min-height: 0; }
  .cifras .ledger__disc { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; border-radius: 24px; }
  .cifras .ledger__head .h2 { grid-column: 6 / -1; grid-row: 1; padding-left: clamp(0px, 2vw, 32px); }
  .cifras .ledger__head .lead { grid-column: 6 / -1; grid-row: 2; margin-top: 14px; padding-left: clamp(0px, 2vw, 32px); }
  .cifras .ledger__rows { grid-column: 6 / -1; grid-row: 3; margin-top: clamp(20px, 3svh, 36px); }
  /* el sello se ve completo sobre blanco; las fotos llenan el recuadro */
  .cifras .ledger__disc img:first-child { object-fit: contain; padding: 10%; }
  .js .home .rv:where(.cifras .ledger__pic) { transform: translateY(24px) scale(0.96); }
}
@media (max-width: 860px) {
  .cifras .ledger__disc { width: clamp(110px, 33vw, 180px); }
}
@media (min-width: 861px) {
  .cifras { padding-block: clamp(30px, 5.4svh, 72px); }
  .cifras .ledger__disc, .cifras .ledger__disc img:first-child { background: #f7f7f7; } /* mismo gris claro del fondo del sello */
  .cifras .ledger__head .lead { margin-top: 10px; }
  .cifras .ledger__rows { margin-top: clamp(12px, 2svh, 36px); }
}

/* =========================================================
   Ronda 15: cifras con otra organización. Arriba el título y el texto;
   abajo la línea de tiempo a la izquierda y la foto, más pequeña, a la derecha
   ========================================================= */
@media (min-width: 861px) {
  .cifras .ledger { grid-template-rows: auto auto; row-gap: clamp(20px, 3.6svh, 48px); align-items: end; }
  .cifras .ledger__head .h2 { grid-column: 1 / span 7; grid-row: 1; padding-left: 0; }
  .cifras .ledger__head .lead { grid-column: 8 / -1; grid-row: 1; margin: 0; padding: 0 0 0.4em; align-self: end; }
  .cifras .ledger__rows { grid-column: 1 / span 7; grid-row: 2; margin-top: 0; align-self: center; }
  .cifras .ledger__pic { grid-column: 8 / -1; grid-row: 2; align-self: stretch; }
}
@media (min-width: 861px) {
  .cifras .ledger__pic, .cifras .ledger__head .lead { justify-self: end; width: min(100%, 460px); }
  .cifras .ledger__disc img:first-child { padding: 5%; }
}

/* sello: solo el círculo, sin el fondo gris, y más grande (el círculo ocupa el 84% de la imagen) */
.cifras .ledger__disc { background: transparent; }
.cifras .ledger__disc img:first-child { inset: auto; top: 50%; left: 50%; width: auto; height: 110%; max-width: none; aspect-ratio: 1; padding: 0; object-fit: cover; background: transparent; translate: -50% -50%; clip-path: circle(42%); }
@media (min-width: 861px) { .cifras .ledger__disc, .cifras .ledger__disc img:first-child { background: transparent; } }

/* Ronda 16: cifras sin el texto sobre la foto; el título va de lado a lado y un poco más grande */
.cifras .ledger__head .h2 { font-size: var(--fs-2); }
@media (min-width: 861px) {
  .cifras .ledger__head .h2 { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 860px) {
  .cifras .ledger__head { grid-template-columns: 1fr; }
  .cifras .ledger__head .h2 { font-size: var(--fs-2); }
  .cifras .ledger__pic { justify-self: start; }
}
@media (min-width: 861px) { .cifras .ledger__note { justify-self: center; } }

/* =========================================================
   Ronda 17: Productos recibe el movimiento de Inicio (body.motion)
   ========================================================= */
@media all {
  .motion .page-hero > .photo__bg.drift { animation: hero-in 2430ms var(--ease-out) both, drift 22s var(--ease-in-out) 2430ms infinite alternate; }
  .js .motion .rv:where(.product) { transform: translateY(30px) scale(0.97); }
  .js .motion .rv:where(.page-hero__facts li) { transform: translateY(18px); }
  .product__img { transform-origin: 50% 60%; }
}

/* =========================================================
   Ronda 18: Productos. Segunda foto, vista rápida que sale de la tarjeta,
   indicador de línea, cinta de nombres y foto del cafetal con el scroll
   ========================================================= */
.product__img .product__alt { position: absolute; inset: 0; opacity: 0; transition: opacity 450ms ease, transform 600ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .product:hover .product__alt { opacity: 1; } }

.sheet.is-flip { transform-origin: 0 0; }
.sheet.is-flip[open] { animation: none; }

.line-nav { display: none; }
.js .line-nav { position: fixed; z-index: 25; top: 90px; left: 50%; display: flex; gap: 4px; padding: 5px; border-radius: 14px; overflow: hidden; background: var(--ink); opacity: 0; pointer-events: none; translate: -50% -8px; transition: opacity 250ms ease, translate 400ms var(--ease-out); }
.js .line-nav.is-on { opacity: 1; pointer-events: auto; translate: -50% 0; }
.line-nav a { padding: 8px 16px 10px; border-radius: 10px; color: #fff; font-size: var(--fs-4); font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease; }
.line-nav a b { margin-left: 0.25em; color: var(--accent); }
.line-nav a.is-current { background: #fff; color: var(--ink); }
.line-nav a.is-current b { color: var(--leaf-deep); }
.line-nav__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.line-block .h2 { scroll-margin-top: 150px; }

@media all {
  .ribbon--names .ribbon__track { animation-duration: 150s; }
  @supports (animation-timeline: view()) {
  }
}

/* =========================================================
   Ronda 19: Maquila rediseñada (body.maquila)
   Titular partido, paneles que se abren, recorrido por la planta,
   la caja con tu marca y el sello que gira con el scroll
   ========================================================= */

/* titular: el texto sobre azul profundo y la planta a sangre a la derecha */
.mq-hero { background: var(--ink-deep); color: #fff; overflow: hidden; }
.mq-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); min-height: min(calc(100svh - 76px), 900px); }
.mq-hero__text { grid-column: 1 / span 6; align-self: center; display: grid; gap: clamp(24px, 3.4vh, 40px); padding-block: clamp(40px, 7vh, 96px); }
.mq-hero__title { font-size: var(--fs-1); font-weight: 700; line-height: 0.92; letter-spacing: -0.045em; }
.mq-hero__title > span { display: block; }
.mq-hero__body { display: grid; gap: clamp(22px, 3vh, 32px); }
.mq-hero__body > p:first-child { font-size: var(--fs-4); max-width: 44ch; color: #f2f8ef; }
.mq-hero .hero__actions { grid-column: auto; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; }
.mq-hero__facts { display: grid; grid-template-columns: repeat(3, max-content); gap: 20px clamp(20px, 3.4vw, 56px); font-size: var(--fs-4); line-height: 1.3; color: #d9e9f2; }
.mq-hero__facts li { display: grid; align-content: start; gap: 8px; max-width: 14ch; }
.mq-hero__facts strong { font-size: var(--fs-2); line-height: 0.9; letter-spacing: -0.03em; color: #fff; }
.mq-hero__media { grid-column: 8 / -1; position: relative; margin-right: calc(-1 * var(--margin)); }
.mq-hero__main { position: absolute; inset: 0; overflow: hidden; }
.mq-hero__main img { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 62%; }
.mq-hero__seal { position: absolute; z-index: 1; left: 0; bottom: clamp(40px, 9vh, 96px); width: clamp(132px, 11vw, 184px); max-width: none; aspect-ratio: 1; object-fit: cover; translate: -50% 0; clip-path: circle(42%); }

/* cinta con las formas: verde, para separar el titular azul del resto */
.ribbon--forms { background: var(--accent); color: var(--on-accent); }
.ribbon--forms .ribbon__run li::before { background: #fff; }

/* ¿Qué ofrecemos?: cuatro paneles con foto; el señalado se abre */
.mq-offer__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; align-items: end; margin-bottom: clamp(32px, 4vw, 60px); }
.mq-offer__head .h2 { grid-column: 1 / span 6; }
.mq-offer__head p { grid-column: 8 / -1; font-size: var(--fs-4); max-width: 46ch; }
.mq-panels { display: flex; gap: 12px; height: clamp(440px, 66svh, 640px); }
.mq-panel { position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 18px; background: var(--ink-deep); color: #fff; cursor: pointer; transition: flex-grow 700ms var(--ease-in-out); }
.mq-panel.is-open { flex-grow: 3.4; cursor: default; }
.mq-panel img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100% !important; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.mq-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(3, 46, 76, 0.58); transition: opacity 500ms ease; }
.mq-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(3, 40, 66, 0.9), rgba(3, 40, 66, 0) 62%); /* taste-skill-ignore: scrim under text on a photo */ opacity: 0; transition: opacity 500ms ease; }
.mq-panel.is-open::after { opacity: 0; }
.mq-panel.is-open::before { opacity: 1; }
.mq-panel__side { position: absolute; left: clamp(18px, 1.8vw, 28px); bottom: clamp(22px, 2.4vw, 32px); writing-mode: vertical-rl; rotate: 180deg; font-size: var(--fs-3); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; transition: opacity 260ms ease; }
.mq-panel__side::before { content: attr(data-t); }
.mq-panel.is-open .mq-panel__side { opacity: 0; visibility: hidden; transition: opacity 260ms ease, visibility 0s linear 260ms; }
.mq-panel__text { position: absolute; left: 0; bottom: 0; width: clamp(300px, 36vw, 560px); padding: clamp(24px, 2.6vw, 40px); display: grid; gap: 12px; opacity: 0; visibility: hidden; translate: 0 16px; transition: opacity 240ms ease, translate 240ms var(--ease-out), visibility 0s linear 240ms; }
.mq-panel.is-open .mq-panel__text { opacity: 1; visibility: visible; translate: 0 0; transition-duration: 500ms, 650ms, 0s; transition-delay: 300ms, 300ms, 0s; }
.mq-panel__text h3 { font-size: var(--fs-3); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.mq-panel__text p { font-size: var(--fs-4); max-width: 40ch; color: #eef6fb; }
.mq-panel:focus-visible { outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .mq-panel:not(.is-open):hover img { transform: scale(1.06); }
  .mq-panel:not(.is-open):hover::after { opacity: 0.75; }
}

/* Capacidad de producción: el recorrido del producto por la planta */
.mq-route { position: relative; background: var(--surface); }
.mq-route__pin { padding-block: var(--section); }
.mq-route__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: center; width: 100%; }
.mq-route__head { grid-column: 1 / span 4; display: grid; gap: 20px; align-content: center; }
.mq-route__head > p:first-of-type { font-size: var(--fs-4); }
/* elección del servicio: un recuadro blanco con la pregunta y dos opciones con su círculo de selección */
.mq-switch { display: grid; gap: 10px; padding: clamp(16px, 1.6vw, 22px); border-radius: 20px; background: #fff; }
.mq-switch__q { margin-bottom: 4px; font-size: var(--fs-4); font-weight: 700; line-height: 1.3; color: var(--ink); }
.mq-switch button { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; min-height: 52px; padding: 14px 18px; border: 2px solid rgba(4, 84, 132, 0.25); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.mq-switch button::before { content: ""; grid-row: 1 / span 2; width: 24px; height: 24px; box-sizing: border-box; border: 2px solid currentColor; border-radius: 50%; transition: border-width 200ms var(--ease-out), border-color 200ms ease, background-color 200ms ease; }
.mq-switch__t { font-size: var(--fs-4); font-weight: 700; line-height: 1.25; }
.mq-switch__d { font-size: var(--fs-4); line-height: 1.3; }
.mq-switch button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.mq-switch button[aria-pressed="true"]::before { border: 7px solid #fff; background: var(--accent); }
.mq-switch button:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .mq-switch button:not([aria-pressed="true"]):hover { border-color: var(--ink); background: #cbe2c1; } }
/* la primera vez que se ve la sección, la otra opción llama la atención dos veces */
@keyframes mq-call { 0%, 100% { transform: scale(1); } 25%, 75% { transform: scale(1.03); } 50% { transform: scale(1); } }
@keyframes mq-call-dot { 0%, 100% { transform: scale(1); } 25%, 75% { transform: scale(1.3); } 50% { transform: scale(1); } }
@media all {
  .mq-switch.is-call button:not([aria-pressed="true"]) { border-color: var(--accent); animation: mq-call 1.6s var(--ease-in-out) 2; }
  .mq-switch.is-call button:not([aria-pressed="true"])::before { border-color: var(--accent); animation: mq-call-dot 1.6s var(--ease-in-out) 2; }
}
.mq-route__view { grid-column: 5 / -1; min-width: 0; margin-right: calc(-1 * var(--margin)); overflow: hidden; }
.mq-route__track { display: flex; gap: clamp(16px, 1.6vw, 24px); margin: 0; padding: 0 var(--margin) 4px 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-left: 0; }
.mq-route__track::-webkit-scrollbar { display: none; }
.mq-route [hidden] { display: none !important; }
.mq-stop { flex: 0 0 auto; width: clamp(260px, 24vw, 380px); display: grid; align-content: start; gap: 10px; scroll-snap-align: start; transform-origin: 0 100%; transition: opacity 500ms ease, transform 650ms var(--ease-out); }
.mq-stop figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: var(--ink-deep); }
.mq-stop figure img { width: 100%; height: 100% !important; object-fit: cover; }
.mq-stop h3 { margin-top: 8px; font-size: var(--fs-3); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.mq-stop p { font-size: var(--fs-4); max-width: 34ch; }
.mq-stop--end { align-content: center; gap: 18px; padding: clamp(24px, 2.4vw, 40px); border-radius: 16px; background: var(--ink); color: #fff; }
.mq-stop--end h3 { margin: 0; font-size: var(--fs-3); overflow-wrap: anywhere; }
.mq-stop--end ul { display: grid; gap: 12px; font-size: var(--fs-4); line-height: 1.35; }
.mq-stop--end .button { justify-self: start; }

/* el recorrido avanza paso a paso con las flechas, los puntos, tocando la tarjeta siguiente o deslizando */
.mq-stop { cursor: pointer; }
.mq-stop.is-current { cursor: auto; }
.mq-stop:not(.is-current) { opacity: 0.5; transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .mq-stop:not(.is-current):hover { opacity: 0.8; transform: scale(0.98); } }
.mq-route__nav { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 20px); margin: 28px var(--margin) 0 0; }
.mq-route__prev { flex: none; width: 52px; padding: 0; font-size: 22px; }
.mq-route__prev:disabled { opacity: 0.35; cursor: default; }
.mq-route__next { flex: none; }
.mq-route__arrow { display: inline-block; font-size: 22px; line-height: 1; }
.mq-steps { position: relative; flex: 1; min-width: 0; }
.mq-steps::before, .mq-steps__fill { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(4, 84, 132, 0.16); }
.mq-steps__fill { background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 500ms var(--ease-out); }
.mq-steps__list { position: relative; display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.mq-steps__list button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.mq-steps__list button::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); outline: 3px solid rgba(4, 84, 132, 0.32); transition: background-color 250ms ease, outline-color 250ms ease, transform 250ms var(--ease-out); }
.mq-steps__list button.is-done::before { background: var(--accent); outline-color: var(--accent); }
.mq-steps__list button[aria-current="step"]::before { background: var(--ink); outline-color: var(--ink); transform: scale(1.35); }
@media (hover: hover) and (pointer: fine) { .mq-steps__list button:not([aria-current="step"]):hover::before { transform: scale(1.25); } }
.mq-route__count { margin: 14px var(--margin) 0 0; font-size: var(--fs-4); }
/* las fotos del recorrido se ajustan al alto de la pantalla para que tarjetas, flechas y puntos se vean juntos */
@media (min-width: 861px) {
  .mq-route { --fig: min(calc(clamp(260px, 24vw, 380px) * 1.15), max(240px, calc(100svh - 410px))); }
  .mq-stop { width: calc(var(--fig) / 1.15); }
  .mq-stop figure { aspect-ratio: auto; height: var(--fig); }
  .mq-stop--end { width: max(280px, calc(var(--fig) * 0.95)); }
  .mq-route__nav { margin: 22px max(var(--margin), 92px) 0 0; } /* deja libre la esquina del botón flotante de WhatsApp */
  .mq-route__count { margin-top: 10px; }
}
@keyframes mq-nudge { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(7px); } }
@media all { .mq-route__next.is-hint .mq-route__arrow { animation: mq-nudge 1.6s var(--ease-in-out) infinite; } }
@media (max-width: 560px) {
  .mq-route__next-t { display: none; }
  .mq-route__next { width: 52px; padding: 0; }
}

/* Capacidad por forma farmacéutica: elige, escribe tu marca y mira tu caja */
.mq-lab__grid { align-items: center; row-gap: 48px; }
.mq-lab__controls { grid-column: 1 / span 6; display: grid; gap: 22px; }
.mq-lab__controls > p { font-size: var(--fs-4); max-width: 46ch; }
.mq-forms { display: grid; gap: 8px; }
.mq-form { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px; padding: 12px 14px 12px 22px; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.mq-form:active { transform: scale(0.985); }
.mq-form__name { font-size: var(--fs-4); font-weight: 700; line-height: 1.25; }
.mq-form__tag { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: var(--fs-4); font-weight: 700; line-height: 1.3; }
.mq-form__tag--pack { background: #fff; color: var(--ink); }
.mq-form[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .mq-form:not([aria-pressed="true"]):hover { background: #cbe2c1; } }
.mq-lab__row { display: flex; flex-wrap: wrap; align-items: end; gap: 18px 28px; }
.mq-field { flex: 1 1 240px; display: grid; gap: 8px; font-size: var(--fs-4); font-weight: 700; }
.mq-field input { min-height: 56px; padding: 12px 18px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: var(--fs-4); font-weight: 700; }
.mq-field input::placeholder { color: #6f93ad; }
.mq-swatches { display: flex; gap: 10px; padding-bottom: 6px; }
.mq-swatches button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--sw); outline: 2px solid rgba(3, 58, 92, 0.22); outline-offset: -2px; transition: transform var(--t-press) var(--ease-out), outline-offset var(--t-hover) ease; }
.mq-swatches button[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 3px; }
.mq-swatches button:active { transform: scale(0.92); }

.mq-lab__stage { grid-column: 7 / -1; display: grid; gap: 24px; padding: clamp(24px, 3vw, 44px); border-radius: 24px; background: var(--surface); }
.mq-scene { --bw: clamp(180px, 16vw, 250px); --u: calc(var(--bw) / 100); position: relative; height: calc(var(--u) * 204); display: grid; place-items: center; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.mq-scene.is-grabbing { cursor: grabbing; }
.mq-scene__photo { width: auto; max-width: 100%; height: 100%; object-fit: contain; border-radius: 16px; mix-blend-mode: multiply; transition: opacity 400ms ease; }
.mq-scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 500ms ease; }
.mq-scene.is-3d .mq-scene__canvas { opacity: 1; }
.mq-scene.is-3d .mq-scene__photo { opacity: 0; }
.mq-result { display: grid; gap: 10px; }
.mq-result__verdict { font-size: var(--fs-3); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.mq-result__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.mq-result__note { font-size: var(--fs-4); color: var(--ink); }

/* ¿Por qué elegirnos?: el sello con su anillo de texto */
.mq-why__grid { row-gap: clamp(32px, 4vw, 56px); align-items: center; }
.mq-why__seal { grid-column: 1 / span 5; grid-row: 1 / span 3; position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 1; }
.mq-why__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: #fff; font-family: var(--font); font-size: var(--fs-3); font-weight: 700; }
.mq-why__seal img { position: absolute; inset: 13%; width: 74%; height: 74% !important; max-width: none; object-fit: cover; clip-path: circle(42%); }
.mq-why__text { grid-column: 7 / -1; display: grid; gap: 22px; }
.mq-why__list { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 2.6vw, 40px) var(--gap); }
.mq-why__list li { display: grid; align-content: start; gap: 8px; }
.mq-why__list h3 { font-size: var(--fs-3); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.mq-why__list p { font-size: var(--fs-4); color: #e8f1f6; }
.mq-why__cta { grid-column: 7 / -1; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .mq-hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mq-hero__text { grid-column: 1; padding-block: 44px 40px; }
  .mq-hero__title { font-size: var(--fs-1); }
  .mq-hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: var(--fs-4); }
  .mq-hero__facts strong { font-size: var(--fs-2); }
  .mq-hero__media { grid-column: 1; height: min(62svh, 520px); margin-inline: calc(-1 * var(--margin)); }
  .mq-hero__seal { left: auto; right: var(--margin); top: 0; bottom: auto; width: 112px; translate: 0 -50%; }
  .mq-offer__head { grid-template-columns: minmax(0, 1fr); }
  .mq-offer__head .h2, .mq-offer__head p { grid-column: 1; }
  .mq-panels { flex-direction: column; height: auto; }
  .mq-panel, .mq-panel.is-open { flex: none; min-height: 360px; display: flex; align-items: flex-end; cursor: default; }
  .mq-panel::after { opacity: 0; }
  .mq-panel::before { opacity: 1; }
  .mq-panel__side { display: none; }
  .mq-panel__text, .mq-panel.is-open .mq-panel__text { position: relative; width: auto; opacity: 1; visibility: visible; translate: 0 0; transition: none; }
  .mq-route__grid { grid-template-columns: minmax(0, 1fr); }
  .mq-route__head, .mq-route__view { grid-column: 1; }
  .mq-stop { width: min(76vw, 320px); }
  .mq-lab__controls, .mq-lab__stage { grid-column: 1 / -1; }
  .mq-form { flex-wrap: wrap; padding-right: 22px; }
  .mq-why__seal, .mq-why__text, .mq-why__list, .mq-why__cta { grid-column: 1 / -1; grid-row: auto; }
  .mq-why__seal { width: min(80vw, 340px); }
}
@media (max-width: 560px) {
  .mq-why__list { grid-template-columns: minmax(0, 1fr); }
  .mq-forms { grid-template-columns: 1fr 1fr; }
  .mq-form { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 0; padding: 14px 16px; }
  .mq-form[data-form="solidos"] { grid-column: 1 / -1; }
  .mq-form__name { font-size: var(--fs-4); }
  .mq-form__tag { padding: 4px 10px; font-size: var(--fs-4); }
}

@media all {
  /* titular: la foto se abre de derecha a izquierda, se acerca, y el sello llega girando */
  .js .maquila .mq-hero__main { animation: mq-wipe 1300ms var(--ease-in-out) 120ms both; }
  @keyframes mq-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
  .js .maquila .mq-hero__main img { animation: mq-zoom 2400ms var(--ease-out) 120ms both; }
  @keyframes mq-zoom { from { scale: 1.32; } to { scale: 1.14; } }
  .js .maquila .mq-hero__seal { animation: mq-seal 1100ms var(--ease-out) 1050ms both; }
  @keyframes mq-seal { from { opacity: 0; rotate: -100deg; scale: 0.7; } }
  .js .maquila .mq-hero__title.is-in > span:nth-child(2) { transition-delay: 160ms; }

  /* puntos de partida de las apariciones */
  .js .maquila .rv:where(.mq-panel) { transform: translateY(48px); transition-duration: 950ms, 1200ms; }
  .js .maquila .rv:where(.mq-why__list li) { transform: translateY(22px); }
  .js .maquila .rv:where(.mq-hero__facts li) { transform: translateY(16px); }
  .ribbon--forms .ribbon__track { animation-duration: 60s; }

  @supports (animation-timeline: view()) {
    /* la foto del titular se desliza un poco al bajar */
    .maquila .mq-hero { view-timeline: --mq-hero block; }
    .js .maquila .mq-hero__main img { animation: mq-zoom 2400ms var(--ease-out) 120ms both, mq-par linear both; animation-timeline: auto, --mq-hero; animation-range: normal, exit; }
    @keyframes mq-par { from { translate: 0 0; } to { translate: 0 9%; } }
    /* el anillo del sello gira mientras la sección pasa */
    .maquila .mq-why__seal { view-timeline: --mq-seal block; }
    .maquila .mq-why__ring { animation: mq-ring linear both; animation-timeline: --mq-seal; animation-range: cover; }
    @keyframes mq-ring { from { rotate: -70deg; } to { rotate: 70deg; } }
    .maquila .mq-why__seal img { animation: mq-seal-in linear both; animation-timeline: --mq-seal; animation-range: entry 10% cover 45%; }
    @keyframes mq-seal-in { from { scale: 0.8; rotate: -20deg; } to { scale: 1; rotate: 0deg; } }
  }
}

/* =========================================================
   Ronda 20: Nosotros rehecha (body.nosotros)
   Estado de la planta en vivo, historia con año fijo, comparador de sedes,
   cultura en pestañas, valores que se llenan con el scroll y ubicación
   ========================================================= */

/* estado de la planta (titular y ubicación) */
.ns-status { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-4); font-weight: 700; line-height: 1.25; text-decoration: none; transition: transform var(--t-press) var(--ease-out); }
a.ns-status:active { transform: scale(0.97); }
.ns-status__dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #8aa3b5; }
.ns-status.is-open .ns-status__dot { background: var(--accent-strong); }
.ns-status.is-closed .ns-status__dot { background: #d9822b; }
.ns-status__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }

/* titular: Bogotá de fondo y el título a todo lo ancho */
.ns-hero { min-height: min(84svh, 820px); display: flex; align-items: flex-end; }
.ns-hero__inner { width: 100%; display: grid; gap: clamp(24px, 3.4vh, 40px); padding-block: clamp(80px, 12vh, 140px) clamp(40px, 7vh, 72px); }
.ns-hero__title { font-size: var(--fs-1); font-weight: 700; line-height: 0.9; letter-spacing: -0.045em; }
.ns-hero__title > span { display: block; }
.ns-hero__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: end; }
.ns-hero__row > p:first-child { grid-column: 1 / span 7; font-size: var(--fs-3); line-height: 1.3; max-width: 34ch; color: #f2f8ef; }
.ns-hero .hero__actions { grid-column: 8 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

/* historia */
.ns-story__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; align-items: end; margin-bottom: clamp(40px, 5vw, 80px); }
.ns-story__head .h2 { grid-column: 1 / span 5; }
.ns-story__head .statement { grid-column: 7 / -1; max-width: 30ch; }
/* cada capítulo: primero el texto y debajo su foto; en el computador, el texto a la izquierda y la foto a la derecha, sin animación */
.ns-story__list { display: grid; gap: 64px; margin: 0; padding: 0; list-style: none; }
.ns-chapter { display: grid; align-content: start; gap: 20px; }
.ns-chapter__text { display: grid; align-content: start; gap: 14px; }
.ns-chapter__pic { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--ink-deep); }
.ns-chapter__pic img { width: 100%; height: 100% !important; object-fit: cover; }
.ns-chapter__year { font-size: var(--fs-1); font-weight: 700; line-height: 0.9; letter-spacing: -0.045em; color: var(--leaf-deep); }
.ns-chapter h3 { font-size: var(--fs-3); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.ns-chapter__text > p:not(.ns-chapter__year):not(.ns-chapter__actions) { font-size: var(--fs-4); max-width: 44ch; }
.ns-chapter__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (min-width: 961px) {
  .ns-story__list { gap: 56px; }
  .ns-chapter { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
  .ns-chapter__text { grid-column: 1 / span 5; }
  .ns-chapter__pic { grid-column: 7 / -1; aspect-ratio: auto; height: min(62svh, 480px); }
}

/* comparador de sedes */
.ns-compare__grid { align-items: center; row-gap: 40px; }
.ns-compare__text { grid-column: 1 / span 5; display: grid; gap: 20px; }
.ns-compare__text p { font-size: var(--fs-4); max-width: 42ch; }
.ns-compare__text .ns-compare__hint { font-size: var(--fs-4); font-weight: 700; }
.ns-compare__hint::after { content: " ↔"; }
.ns-compare__frame { --pos: 50%; grid-column: 7 / -1; justify-self: start; position: relative; overflow: hidden; width: min(100%, 600px); aspect-ratio: 9 / 10; border-radius: 20px; background: var(--ink-deep); }
.ns-compare__frame img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.ns-compare__after { object-position: 50% 40%; }
.ns-compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ns-compare__before img { object-position: 50% 50%; }
.ns-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.ns-compare__handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 26px; font-weight: 700; translate: -50% -50%; transition: scale var(--t-press) var(--ease-out); }
.ns-compare__frame:active .ns-compare__handle::after { scale: 0.92; }
.ns-compare__label { position: absolute; bottom: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(3, 46, 76, 0.86); color: #fff; font-size: var(--fs-4); font-weight: 700; pointer-events: none; }
.ns-compare__label--a { left: 16px; }
.ns-compare__label--b { right: 16px; }
.ns-compare__range { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ns-compare__frame:has(.ns-compare__range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }

/* cultura organizacional: pestañas */
.ns-culture__grid { align-items: center; row-gap: 40px; }
.ns-culture__head { grid-column: 1 / span 5; display: grid; gap: 28px; }
.ns-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-tabs button { position: relative; overflow: hidden; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: var(--fs-4); font-weight: 700; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.ns-tabs button:active { transform: scale(0.97); }
.ns-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .ns-tabs button[aria-selected="false"]:hover { background: rgba(255, 255, 255, 0.24); } }
.ns-tabs__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.ns-culture.is-auto [aria-selected="true"] .ns-tabs__bar { animation: ns-tab 8s linear forwards; animation-play-state: paused; }
.ns-culture.is-auto.is-running [aria-selected="true"] .ns-tabs__bar { animation-play-state: running; }
@media (hover: hover) and (pointer: fine) { .ns-culture.is-auto.is-running .ns-culture__grid:hover [aria-selected="true"] .ns-tabs__bar { animation-play-state: paused; } }
@keyframes ns-tab { to { transform: scaleX(1); } }
.ns-panels { grid-column: 7 / -1; display: grid; }
.ns-panel { grid-area: 1 / 1; font-size: var(--fs-3); line-height: 1.3; letter-spacing: -0.01em; max-width: 38ch; }
.js .ns-panel { opacity: 0; visibility: hidden; translate: 0 14px; filter: blur(6px); transition: opacity 450ms ease, translate 600ms var(--ease-out), filter 450ms ease, visibility 0s linear 450ms; }
.js .ns-panel.is-on { opacity: 1; visibility: visible; translate: 0 0; filter: blur(0); transition-delay: 120ms, 120ms, 120ms, 0s; }

/* valores: las palabras se encienden al pasar */

/* ubicación */
.ns-place__grid { align-items: stretch; row-gap: 28px; }
.ns-place__head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; align-items: end; }
.ns-place__head .h2 { grid-column: 1 / span 5; }
.ns-place__head p { grid-column: 7 / -1; font-size: var(--fs-4); max-width: 46ch; }
.ns-place__map { grid-column: 1 / span 7; min-height: 480px; overflow: hidden; border-radius: 20px; background: var(--bg); }
.ns-place__map iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; }
.ns-place__card { grid-column: 8 / -1; display: grid; align-content: start; gap: 26px; padding: clamp(28px, 3vw, 44px); border-radius: 20px; background: var(--ink); color: #fff; }
.ns-place__facts { display: grid; gap: 20px; margin: 0; }
.ns-place__facts dt { font-size: var(--fs-4); font-weight: 700; color: #cfe6c6; }
.ns-place__facts dd { margin: 4px 0 0; font-size: var(--fs-4); line-height: 1.35; }
.ns-place__facts a { color: #fff; }
.ns-place__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ns-place__note { font-size: var(--fs-4); color: #d9e9f2; }

@media (max-width: 860px) {
  .ns-hero__row > p:first-child, .ns-hero .hero__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .ns-story__head .h2, .ns-story__head .statement { grid-column: 1 / -1; }
  .ns-compare__text, .ns-compare__frame { grid-column: 1 / -1; }
  .ns-compare__frame { width: 100%; aspect-ratio: 4 / 5; }
  .ns-culture__head, .ns-panels { grid-column: 1 / -1; }
  .ns-place__head .h2, .ns-place__head p, .ns-place__map, .ns-place__card { grid-column: 1 / -1; }
  .ns-place__map, .ns-place__map iframe { min-height: 340px; }
}

@media all {
  /* el punto verde late mientras la planta está abierta */
  .ns-status.is-open .ns-status__dot::after { animation: ns-pulse 2s var(--ease-out) infinite; }
  @keyframes ns-pulse { from { opacity: 0.6; scale: 1; } to { opacity: 0; scale: 2.8; } }

  /* titular: la foto se acerca al cargar y sigue con su deriva */
  .nosotros .ns-hero .photo__bg { animation: hero-in 2430ms var(--ease-out) both, drift 22s var(--ease-in-out) 2430ms infinite alternate; }
  .js .nosotros .ns-hero__title.is-in > span:nth-child(2) { transition-delay: 160ms; }
  .js .nosotros .ns-hero .ns-status { animation: ns-chip 700ms var(--ease-out) 900ms both; }
  @keyframes ns-chip { from { opacity: 0; translate: 0 12px; } }

  .js .nosotros .rv:where(.ns-chapter__actions .button) { transform: translateY(14px); }

}

/* =========================================================
   Ronda 21: Contacto rehecho (body.contacto)
   Canales con copiar, formulario que se adapta con vista previa en vivo,
   visita con dirección grande y una mano de productos
   ========================================================= */

/* titular */
.ct-hero { min-height: min(calc(100svh - 76px), 860px); display: flex; align-items: center; }
.ct-hero__grid { width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: end; padding-block: clamp(56px, 9vh, 112px); }
.ct-hero__text { grid-column: 1 / span 6; display: grid; gap: clamp(22px, 3vh, 36px); }
.ct-hero__title { font-size: var(--fs-1); font-weight: 700; line-height: 0.88; letter-spacing: -0.05em; }
.ct-hero__title > span { display: block; }
.ct-hero__body { display: grid; gap: 24px; }
.ct-hero__body > p:first-child { font-size: var(--fs-3); line-height: 1.3; max-width: 37ch; color: #f2f8ef; }
.ct-hero .hero__actions { grid-column: auto; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; }
.ct-channels { grid-column: 8 / -1; display: grid; gap: 10px; }
.ct-channels li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 20px 22px; border-radius: 18px; background: rgba(255, 255, 255, 0.1); transition: background-color var(--t-hover) ease, transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ct-channels li:hover { background: rgba(255, 255, 255, 0.17); transform: translateX(-6px); } }
.ct-channels__k { grid-column: 1 / -1; font-size: var(--fs-4); font-weight: 700; color: #cfe6c6; }
.ct-channels__v { grid-column: 1; font-size: var(--fs-3); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.ct-channels__v:hover { text-decoration: underline; text-underline-offset: 4px; }
.ct-channels__v--2 { grid-row: 3; }
.ct-chip { grid-column: 2; grid-row: 2; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-4); font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.ct-chip:active { transform: scale(0.96); }
.ct-chip--wa { background: #25d366; color: #06301a; }

/* formulario */
.ct-form__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; align-items: end; margin-bottom: clamp(36px, 4vw, 64px); }
.ct-form__head .h2 { grid-column: 1 / span 5; }
.ct-form__head p { grid-column: 7 / -1; font-size: var(--fs-4); max-width: 46ch; }
.ct-form__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.ct-fields { grid-column: 1 / span 7; display: grid; gap: 22px; }
.ct-intents { margin: 0; padding: 0; border: 0; min-width: 0; }
.ct-intents legend { margin-bottom: 14px; padding: 0; font-size: var(--fs-3); font-weight: 700; letter-spacing: -0.01em; }
.ct-intents__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ct-intent { position: relative; display: grid; align-content: start; gap: 4px; padding: 8px 8px 14px; border-radius: 16px; background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
.ct-intent input { position: absolute; opacity: 0; pointer-events: none; }
.ct-intent__pic { display: block; overflow: hidden; margin-bottom: 8px; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--ink-deep); }
.ct-intent__pic img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 700ms var(--ease-out); }
.ct-intent__t { padding-inline: 6px; font-size: var(--fs-4); font-weight: 700; line-height: 1.2; }
.ct-intent__d { padding-inline: 6px; font-size: var(--fs-4); line-height: 1.3; }
.ct-intent::after { content: ""; position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); opacity: 0; scale: 0.6; transition: opacity 200ms ease, scale 260ms var(--ease-out); }
.ct-intent::before { content: ""; position: absolute; z-index: 1; top: 22px; right: 25px; width: 8px; height: 13px; border: solid var(--on-accent); border-width: 0 3px 3px 0; rotate: 45deg; opacity: 0; transition: opacity 200ms ease 80ms; }
.ct-intent:has(input:checked)::before { opacity: 1; }
.ct-intent:has(input:checked) { background: var(--ink); color: #fff; }
.ct-intent:has(input:checked)::after { opacity: 1; scale: 1; }
.ct-intent:has(input:checked) .ct-intent__pic img { transform: scale(1.06); }
.ct-intent:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.ct-intent:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .ct-intent:not(:has(input:checked)):hover { transform: translateY(-4px); } }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-field { display: grid; align-content: start; gap: 8px; font-size: var(--fs-4); font-weight: 700; }
.ct-field[hidden] { display: none; }
.ct-field input, .ct-field textarea { width: 100%; min-height: 56px; padding: 14px 16px; border: 2px solid #b9d4ad; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: var(--fs-4); font-weight: 400; transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease; }
.ct-field textarea { min-height: 170px; resize: vertical; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: var(--ink); }
.ct-field input[aria-invalid="true"], .ct-field textarea[aria-invalid="true"] { border-color: #c4471c; background: #fff7f3; }
.ct-error { display: none; font-size: var(--fs-4); font-weight: 700; color: #b23d14; }
.ct-error.is-on { display: block; }

/* vista previa del mensaje */
.ct-preview { grid-column: 8 / -1; display: grid; gap: 18px; padding: clamp(24px, 2.6vw, 36px); border-radius: 22px; background: var(--ink); color: #fff; }
@media (min-width: 961px) { .ct-preview { position: sticky; top: 100px; } }
.ct-preview__t { font-size: var(--fs-3); font-weight: 700; letter-spacing: -0.01em; }
.ct-mail { display: grid; gap: 2px; overflow: hidden; border-radius: 14px; background: #fff; color: var(--ink); }
.ct-mail__line { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 12px 18px; background: #f1f7ee; font-size: var(--fs-4); overflow-wrap: anywhere; }
.ct-mail__line span { font-weight: 700; color: var(--leaf-deep); }
.ct-mail__line b { border-radius: 4px; }
.ct-mail__body { min-height: 220px; max-height: 340px; overflow: auto; padding: 16px 18px 20px; font-size: var(--fs-4); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.ct-preview__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-preview__note { font-size: var(--fs-4); color: #d9e9f2; }

/* visita */
.ct-visit__grid { align-items: center; row-gap: 40px; }
.ct-visit__text { grid-column: 1 / span 6; display: grid; gap: 18px; }
.ct-visit__text > p:not(.ct-visit__addr):not(.ns-status):not(.ct-visit__actions) { font-size: var(--fs-4); }
.ct-visit__addr { font-size: var(--fs-3); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; }
.ct-visit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ct-visit__pic { grid-column: 8 / -1; overflow: hidden; aspect-ratio: 4 / 5; max-height: 620px; border-radius: 20px; }
.ct-visit__pic img { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 45%; }

/* mano de productos */
.ct-hand { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: center; margin-top: clamp(64px, 8vw, 128px); }
.ct-hand__text { grid-column: 1 / span 5; display: grid; gap: 22px; }
.ct-hand__cards { grid-column: 6 / -1; position: relative; display: flex; justify-content: center; padding-block: 24px 8px; }
.ct-card { --i: 0; --a: 0; position: relative; flex: none; width: clamp(130px, 13vw, 210px); margin-inline: calc(clamp(130px, 13vw, 210px) * -0.16); overflow: hidden; border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; transform: translateY(calc(var(--a) * 14px)) rotate(calc(var(--i) * 7deg)); transform-origin: 50% 120%; transition: transform 500ms var(--ease-out); }
.ct-card img { width: 100%; height: auto !important; aspect-ratio: 1; object-fit: cover; }
.ct-card span { display: block; padding: 10px 12px 12px; font-size: var(--fs-4); font-weight: 700; }
.ct-card:focus-visible { z-index: 6; }
@media (hover: hover) and (pointer: fine) {
  .ct-hand__cards:hover .ct-card { transform: translateY(calc(var(--a) * 8px)) rotate(calc(var(--i) * 10deg)) translateX(calc(var(--i) * 18px)); }
  .ct-hand__cards .ct-card:hover { z-index: 6; transform: translateY(-28px) rotate(calc(var(--i) * 3deg)) scale(1.06); }
}

@media (max-width: 960px) {
  .ct-intents__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ct-hero__text, .ct-channels { grid-column: 1 / -1; }
  .ct-form__head .h2, .ct-form__head p, .ct-fields, .ct-preview { grid-column: 1 / -1; }
  .ct-visit__text, .ct-visit__pic, .ct-hand__text, .ct-hand__cards { grid-column: 1 / -1; }
  .ct-visit__pic { aspect-ratio: 4 / 3; }
  .ct-hand__cards { justify-content: flex-start; overflow-x: auto; gap: 10px; padding: 8px 2px 12px; scrollbar-width: none; }
  .ct-card { width: 150px; margin: 0; transform: none; }
}
@media (max-width: 560px) {
  .ct-row { grid-template-columns: minmax(0, 1fr); }
  .ct-channels li { padding: 18px; }
}

@media all {
  .contacto .ct-hero .photo__bg { animation: hero-in 2430ms var(--ease-out) both, drift 22s var(--ease-in-out) 2430ms infinite alternate; }
  .js .contacto .rv:where(.ct-channels li) { transform: translateX(32px); }
  .js .contacto .rv:where(.ct-intent) { transform: translateY(20px) scale(0.97); }
  .js .contacto .ct-hand__cards .ct-card { animation: ct-deal 900ms var(--ease-out) backwards; animation-delay: calc((var(--i) + 2) * 90ms); animation-play-state: paused; }
  .js .contacto .ct-hand__cards.is-in .ct-card { animation-play-state: running; }
  @keyframes ct-deal { from { opacity: 0; transform: translateY(80px) rotate(0deg); } }
  @supports (animation-timeline: view()) {
    .contacto .ct-visit__pic img { animation: ct-pan linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes ct-pan { from { scale: 1.15; translate: 0 -5%; } to { scale: 1.15; translate: 0 5%; } }
  }
}

/* =========================================================
   Ronda 24: Nosotros, valores como una flor de cinco pétalos
   ========================================================= */
.ns-values { overflow-x: clip; }
.ns-values__grid { align-items: center; row-gap: clamp(28px, 3vw, 44px); }
.ns-values__title { grid-column: 8 / -1; grid-row: 1; align-self: end; }
.ns-values__panel { grid-column: 8 / -1; grid-row: 2; align-self: start; display: grid; gap: 22px; }
.ns-flower { grid-column: 1 / span 6; grid-row: 1 / span 2; position: relative; justify-self: center; width: min(100%, 620px); aspect-ratio: 1; --spin: 0deg; }
.ns-flower__spin { position: absolute; inset: 0; transform: rotate(var(--spin)); transition: transform 900ms var(--ease-in-out); }
/* cada pétalo nace en el centro y apunta hacia afuera; su texto gira al revés para leerse siempre derecho */
.ns-petal { position: absolute; left: 50%; top: 50%; width: 28%; height: 37%; margin: -37% 0 0 -14%; padding: 0; border: 0; border-radius: 50% / 62% 62% 38% 38%; background: var(--surface); color: var(--ink); cursor: pointer; transform-origin: 50% 100%; transform: rotate(calc(var(--a) * 1deg)) translateY(-46%) scale(var(--s, 1)); transition: transform 500ms var(--ease-out), background-color 300ms ease, color 300ms ease, opacity 500ms ease; }
.ns-petal__t { position: absolute; left: 50%; top: 42%; width: 7.6em; font-size: var(--fs-4); font-weight: 700; line-height: 1.15; text-align: center; text-wrap: balance; transform: translate(-50%, -50%) rotate(calc(-1 * (var(--a) * 1deg + var(--spin)))); transition: transform 900ms var(--ease-in-out); }
.ns-petal[aria-pressed="true"] { --s: 1.07; background: var(--ink); color: #fff; }
.ns-petal:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .ns-petal:not([aria-pressed="true"]):hover { --s: 1.04; background: #c6e0bb; } }
.ns-petal:active { --s: 0.98; }
/* el centro es como el de una manzanilla: un anillo amarillo con la foto del valor */
.ns-flower__core { position: absolute; left: 50%; top: 50%; z-index: 1; width: 40%; aspect-ratio: 1; overflow: hidden; border: 8px solid var(--accent); border-radius: 50%; background: #fff; transform: translate(-50%, -50%); pointer-events: none; }
.ns-flower__core img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 600ms ease, transform 1200ms var(--ease-out); }
.ns-flower__core img.is-on { opacity: 1; transform: scale(1); }
.ns-value h3 { font-size: var(--fs-3); font-weight: 700; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.ns-value p { margin-top: 18px; max-width: 34ch; font-size: var(--fs-4); line-height: 1.4; }
.js .ns-value:not(.is-on) { display: none; }
.ns-values__hint { font-size: var(--fs-4); }
/* la flor se abre al entrar en pantalla: los pétalos crecen desde el centro uno tras otro */
@media all {
  .js .ns-flower:not(.is-open) .ns-petal { --s: 0.35; opacity: 0; }
  .js .ns-flower:not(.is-open) .ns-flower__core { transform: translate(-50%, -50%) scale(0.6); }
  .ns-flower__core { transition: transform 700ms var(--ease-out); }
  .js .ns-flower.is-open .ns-petal { transition-delay: calc(var(--d, 0) * 90ms); }
  .ns-flower.is-done .ns-petal { transition-delay: 0ms; }
}
@media (max-width: 860px) {
  .ns-values__title, .ns-flower, .ns-values__panel { grid-column: 1 / -1; grid-row: auto; }
  .ns-flower { width: min(100%, 460px); }
}
@media (max-width: 560px) {
  .ns-flower { width: 88%; }
  .ns-petal__t { display: none; } /* en el teléfono el nombre del valor se lee debajo de la flor; en el pétalo no cabe */
  .ns-value h3 { font-size: var(--fs-3); }
}

/* =========================================================
   Ronda 25: carrito (botón en el encabezado y panel lateral, cart.js)
   ========================================================= */
.nav { margin-left: auto; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 6px 8px 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-4); font-weight: 700; cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.cart-btn__i { width: 20px; height: 20px; }
.cart-btn__n { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--surface); color: var(--ink); font-size: var(--fs-4); font-variant-numeric: tabular-nums; transition: background-color 250ms ease; }
.cart-btn.has-items .cart-btn__n { background: var(--accent); color: var(--on-accent); }
.cart-btn:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .cart-btn:hover { background: var(--surface); } }
@media (max-width: 960px) {
  .cart-btn { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; }
  .site-header__bar { gap: 10px; }
}
@media (max-width: 420px) { .cart-btn__t { display: none; } .cart-btn { padding-left: 10px; } }

/* el panel: ocupa toda la pantalla como fondo oscuro y la hoja entra desde la derecha */
.cart { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3, 38, 62, 0.55); color: var(--ink); overscroll-behavior: contain; }
.cart::backdrop { background: transparent; }
.cart__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--bg); }
.cart__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; }
.cart__head h2 { font-size: var(--fs-3); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.cart__close { min-height: 44px; padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-4); font-weight: 700; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .cart__close:hover { background: var(--surface); } }
.cart__body { overflow-y: auto; padding: 4px 24px 24px; }
.cart__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cart__item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px; border-radius: 16px; background: var(--surface); }
.cart__pic { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #fff; }
.cart__pic img { width: 100%; height: 100% !important; object-fit: cover; }
.cart__info { display: grid; gap: 2px; min-width: 0; }
.cart__name { font-size: var(--fs-4); font-weight: 700; line-height: 1.15; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cart__name:hover { text-decoration: underline; } }
.cart__size { font-size: var(--fs-4); color: var(--muted); }
.cart__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.qty--s { min-height: 40px; background: #fff; }
.qty--s .qty__btn { width: 38px; height: 38px; font-size: 20px; }
.qty__out { display: inline-block; min-width: 30px; font-size: var(--fs-4); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.cart__remove, .cart__clear, .pdp__view { padding: 6px 2px; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--fs-4); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cart__foot { display: grid; gap: 10px; padding: 18px 24px 22px; background: var(--surface); }
.cart__sum { display: flex; align-items: baseline; justify-content: space-between; font-size: var(--fs-4); }
.cart__sum strong { font-size: var(--fs-3); letter-spacing: -0.02em; }
.cart__note { font-size: var(--fs-4); line-height: 1.35; }
.cart__foot .button { width: 100%; }
.cart__clear { justify-self: center; }
.cart__empty { display: grid; justify-items: center; gap: 10px; padding: 32px 8px; text-align: center; }
.cart__empty p { max-width: 30ch; font-size: var(--fs-4); }
.cart__empty-t { font-size: var(--fs-3) !important; font-weight: 700; }
.cart__empty .button { margin-top: 8px; }
.cart__bottles { display: flex; justify-content: center; margin-bottom: 8px; }
.cart__bottles img { width: 112px; aspect-ratio: 1; object-fit: cover; border: 4px solid var(--bg); border-radius: 50%; }
.cart__bottles img:nth-child(1) { rotate: -10deg; translate: 18px 10px; }
.cart__bottles img:nth-child(2) { position: relative; z-index: 1; }
.cart__bottles img:nth-child(3) { rotate: 10deg; translate: -18px 10px; }
.cart.is-empty .cart__foot, .cart:not(.is-empty) .cart__empty { display: none; }
@media all {
  .cart[open] .cart__bottles img { animation: cart-bob 3.2s var(--ease-in-out) infinite alternate; }
  .cart[open] .cart__bottles img:nth-child(2) { animation-delay: -1.1s; }
  .cart[open] .cart__bottles img:nth-child(3) { animation-delay: -2.2s; }
}
@keyframes cart-bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@media (max-width: 480px) { .cart__head, .cart__body, .cart__foot { padding-inline: 16px; } }

/* confirmación del botón al añadir */
.button.is-added { background: var(--accent); color: var(--on-accent); }
.pdp__view { margin-left: 4px; }

/* =========================================================
   Ronda 26: página de Productos, "Conoce más sobre nuestros productos" (aloe vera y estevia)
   ========================================================= */
.pdp-know { overflow-x: clip; }
@media (min-width: 861px) { #catalogo + .pdp-know { padding-top: 0; } } /* el catálogo ya deja su espacio abajo; en el teléfono se deja el espacio completo para que no se pegue al último producto */
.pdp-know__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 18px; align-items: end; }
.pdp-know__head .h2 { grid-column: 1 / span 7; }
.pdp-know__head .lead { grid-column: 8 / -1; max-width: 44ch; }
@media (max-width: 860px) { .pdp-know__head .h2, .pdp-know__head .lead { grid-column: 1 / -1; } }
.plant { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 36px; align-items: center; margin-top: clamp(56px, 7vw, 112px); }
.plant__pics { grid-column: 1 / span 6; position: relative; padding-bottom: 8%; }
.plant__main { width: 80%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; background: var(--surface); }
.plant__main img { width: 100%; height: 100% !important; object-fit: cover; }
.plant__small { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1; overflow: hidden; border: 8px solid var(--bg); border-radius: 50%; background: var(--surface); }
.plant__small img { width: 100%; height: 100% !important; object-fit: cover; }
.plant__text { grid-column: 8 / -1; display: grid; gap: 16px; }
.plant__text h3 { font-size: var(--fs-2); font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; }
.plant__sci { margin-top: -6px; font-size: var(--fs-4); font-style: italic; color: var(--leaf-deep); }
.plant__text > p:not(.plant__sci) { max-width: 46ch; font-size: var(--fs-4); line-height: 1.5; }
.plant__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px var(--gap); margin: 12px 0 0; padding-top: 20px; border-top: 3px solid var(--surface); }
.plant__facts div { display: grid; align-content: start; gap: 4px; }
.plant__facts dt { font-size: var(--fs-4); font-weight: 700; color: #24631f; }
.plant__facts dd { margin: 0; font-size: var(--fs-4); font-weight: 700; line-height: 1.2; }
/* la estevia va al revés: texto a la izquierda y fotos a la derecha */
.plant--flip .plant__pics { grid-column: 7 / -1; grid-row: 1; }
.plant--flip .plant__text { grid-column: 1 / span 5; grid-row: 1; }
.plant--flip .plant__main { margin-left: auto; aspect-ratio: 5 / 4; width: 86%; }
.plant--flip .plant__small { right: auto; left: 0; width: 38%; }
@media (max-width: 860px) {
  .plant__pics, .plant__text, .plant--flip .plant__pics, .plant--flip .plant__text { grid-column: 1 / -1; grid-row: auto; }
  .plant__facts { grid-template-columns: minmax(0, 1fr); }
}
/* la foto grande se abre de arriba abajo al entrar en pantalla */
@media all {
  .js .plant__pics .plant__main { clip-path: inset(0 0 100% 0 round 22px); transition: clip-path 1100ms var(--ease-in-out), opacity 700ms var(--ease-out), transform 800ms var(--ease-out); }
  .js .plant__pics.is-in .plant__main, .js .plant__main.is-in { clip-path: inset(0 0 0 0 round 22px); } /* en páginas con body.motion cada foto entra por su cuenta */
  .js .plant__pics.is-in .plant__small { transition-delay: 350ms; }
}
/* las fotos se mueven un poco con el scroll: la grande se desliza dentro de su marco y la pequeña sube */
@media all {
  @supports (animation-timeline: view()) {
    .plant__main img { scale: 1.14; animation: plant-pan linear both; animation-timeline: view(); }
    .plant__small { animation: plant-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
  }
}
@keyframes plant-pan { from { translate: 0 -5%; } to { translate: 0 5%; } }
@keyframes plant-rise { from { translate: 0 70px; rotate: -8deg; } to { translate: 0 0; rotate: 0deg; } }

/* =========================================================
   Ronda 29: "Distribúyelos en tu región" (productos.html), mapa de Colombia
   ========================================================= */
.red { --red-pad: clamp(36px, min(6vw, 7svh), 88px); padding-block: var(--red-pad); overflow: hidden; }
.red__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: center; }
.red__text { grid-column: 1 / span 6; display: grid; gap: clamp(14px, 2.4svh, 20px); max-width: 34rem; }
.red__lead { font-size: var(--fs-4); }
.red__field { display: grid; gap: 8px; font-size: var(--fs-4); font-weight: 700; }
.red__select { width: 100%; min-height: 56px; padding: 12px 44px 12px 16px; border: 0; border-radius: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23045484' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat right 18px center; color: var(--ink); font: inherit; font-size: var(--fs-4); font-weight: 700; appearance: none; -webkit-appearance: none; cursor: pointer; }
.red__select:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.red__pick { display: grid; gap: 4px; min-height: 2.6em; }
.red__dep { display: block; font-size: var(--fs-3); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.red__km { font-size: var(--fs-4); color: #fff; }
.red__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.red__map { grid-column: 7 / -1; justify-self: center; position: relative; height: min(calc(100svh - 76px - 2 * var(--red-pad)), 700px); aspect-ratio: 600 / 818; }
.red__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.red__inset { fill: none; pointer-events: all; cursor: pointer; stroke: rgba(255, 255, 255, 0.45); stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.red__d { fill: rgba(255, 255, 255, 0.13); stroke: rgba(255, 255, 255, 0.55); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; transform-box: fill-box; transform-origin: 50% 50%; transition: fill 200ms ease; }
.red__d.is-sel { fill: var(--accent); stroke: #fff; }
@media (hover: hover) and (pointer: fine) { .red__d:not(.is-sel):hover { fill: rgba(255, 255, 255, 0.3); } }
.red__arc { fill: none; stroke: var(--sun); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.red__arc.is-flow { stroke-dasharray: 7 9; animation: red-march 900ms linear infinite; }
.red__dot { fill: var(--sun); pointer-events: none; opacity: 0; }
.red__target { fill: none; stroke: #fff; stroke-width: 2.5; vector-effect: non-scaling-stroke; pointer-events: none; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.red__target.is-on { opacity: 1; animation: red-ping 1.6s var(--ease-out) infinite; }
.red__pin { fill: var(--sun); stroke: var(--ink-deep); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.red__ring { fill: none; stroke: var(--sun); stroke-width: 2.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: 50% 50%; animation: red-ping 2s var(--ease-out) infinite; }
.red__plant { pointer-events: none; }
.red__tag { position: absolute; z-index: 1; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-4); font-weight: 700; line-height: 1.2; white-space: nowrap; pointer-events: none; }
.red__tag--plant { transform: translate(16px, -50%); background: var(--sun); color: var(--ink-deep); }
.red__tag--dep { transform: translate(-50%, calc(-100% - 16px)); transition: left 450ms var(--ease-out), top 450ms var(--ease-out); }
@keyframes red-ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.4); opacity: 0; } }
@keyframes red-march { to { stroke-dashoffset: -16; } }
/* el mapa se arma de norte a sur al entrar en pantalla */
.js .red__d { opacity: 0; transform: translateY(18px) scale(0.96); transition: fill 200ms ease, opacity 600ms var(--ease-out) calc(var(--o) * 700ms), transform 800ms var(--ease-out) calc(var(--o) * 700ms); }
.js .red.is-on .red__d { opacity: 1; transform: none; }
.js .red__plant, .js .red__tag--plant { opacity: 0; transition: opacity 500ms ease 900ms; }
.js .red.is-on .red__plant, .js .red.is-on .red__tag--plant { opacity: 1; }
@media (max-width: 860px) {
  .red__text, .red__map { grid-column: 1 / -1; }
  .red__text { max-width: none; }
  .red__lead { font-size: var(--fs-4); }
  .red__map { order: -1; height: auto; width: min(100%, calc(44svh * 600 / 818)); }
  .red__tag { font-size: var(--fs-4); padding: 5px 10px; }
}
.red__isl { fill: rgba(255, 255, 255, 0.8); font-size: 14px; font-weight: 700; pointer-events: none; }

/* =========================================================
   Ronda 30: cuatro tamaños de letra (--fs-1 a --fs-4) y bloques que caben en una pantalla
   ========================================================= */
/* Maquila, "arma tu producto": todo en una pantalla */
.mq-lab__controls { gap: clamp(12px, 2.4svh, 22px); }
.mq-forms { gap: 6px; }
.mq-form { min-height: 0; padding: clamp(7px, 1.3svh, 12px) 12px clamp(7px, 1.3svh, 12px) 20px; }
.mq-form__tag { padding: 3px 10px; }
.mq-field { gap: 4px; }
.mq-field input { min-height: 50px; padding-block: 8px; }
.mq-scene { --bw: clamp(130px, min(16vw, 25svh), 250px); }
@media (min-width: 1101px) {
  .mq-lab__stage { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); align-items: center; column-gap: clamp(16px, 2vw, 32px); padding: clamp(20px, 3svh, 40px) clamp(20px, 2.4vw, 40px); }
}
@media (min-width: 861px) {
  .mq-lab { padding-block: clamp(24px, 4svh, 72px); }
  .mq-lab__controls { gap: clamp(10px, 2svh, 22px); }
  .mq-forms { gap: 5px; }
}
/* en computador, las fotos y mapas grandes se limitan a la altura que queda libre en la pantalla */
:root { --avail: calc(100svh - 76px - 2 * var(--section)); }
@media (min-width: 861px) {
  .ns-compare__frame { width: min(100%, 600px, calc(var(--avail) * 0.9)); }
  .ns-flower { width: min(100%, 620px, var(--avail)); }
  .ns-place__map, .ns-place__map iframe { min-height: max(300px, min(480px, calc(var(--avail) - 120px))); }
  .ct-visit__pic { max-height: min(620px, var(--avail)); }
  .pdp__main { max-height: max(320px, calc(var(--avail) - 96px)); }
  .plant__main { max-height: var(--avail); }
  .voices { margin-top: clamp(24px, 4svh, 88px); }
  .spread__main { margin-top: clamp(16px, 3svh, 56px); }
  .ct-intent__pic { aspect-ratio: 16 / 9; }
  .ct-field textarea { min-height: clamp(96px, 16svh, 170px); }
  .mq-switch { gap: 6px; }
  .mq-switch button { min-height: 0; padding: clamp(8px, 1.4svh, 14px) 16px; }
}
@media (min-width: 861px) {
  .mq-route__pin { padding-block: clamp(24px, 4svh, 120px); }
  .mq-route { --fig: min(calc(clamp(260px, 24vw, 380px) * 1.15), max(220px, calc(100svh - 420px))); }
  .ns-place__grid { row-gap: clamp(14px, 2.4svh, 28px); }
  .ns-place__card { gap: clamp(12px, 2.2svh, 26px); padding: clamp(20px, 3svh, 44px) clamp(24px, 3vw, 44px); }
  .ns-place__facts { gap: clamp(8px, 1.6svh, 20px); }
  .mq-hero__text { padding-block: clamp(20px, 4svh, 96px); }
}
/* el menú no parte "Maquila personalizada" en dos líneas en pantallas medianas */
.nav__links a, .nav .button, .cart-btn { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1180px) {
  .nav { gap: 14px; }
  .nav__links { gap: 14px; }
  .nav .button { padding-inline: 16px; }
  .cart-btn__t { display: none; }
  .cart-btn { padding-left: 10px; }
}

/* ---------- Ronda 31: precios, tamaños y pago en línea con Wompi ---------- */
.product__price { font-size: var(--fs-4); font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet__price, .pdp__price { font-size: var(--fs-4); color: var(--muted); }
.sheet__price strong, .pdp__price strong { margin-right: 4px; font-size: var(--fs-3); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* tamaño (Win-CR): dos botones redondos con el elegido en azul */
.sizes { min-width: 0; margin: 0; padding: 0; border: 0; }
.sizes[hidden] { display: none; }
.sizes legend { margin-bottom: 8px; padding: 0; font-size: var(--fs-4); font-weight: 700; }
.sizes__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes__opt { position: relative; cursor: pointer; }
.sizes__opt input { position: absolute; opacity: 0; pointer-events: none; }
.sizes__opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border: 2px solid var(--ink); border-radius: 999px; font-size: var(--fs-4); font-weight: 700; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.sizes__opt input:checked + span { background: var(--ink); color: #fff; }
.sizes__opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.sizes__opt:active span { transform: scale(0.97); }
.pdp__buy .sizes { flex-basis: 100%; }

/* carrito con precios */
.cart__line { margin-left: auto; font-size: var(--fs-4); font-weight: 700; font-variant-numeric: tabular-nums; }
.cart__row { gap: 14px; }
.cart__subtotal { font-variant-numeric: tabular-nums; }
.cart__sum > span { color: var(--muted); }

/* campos de selección con la misma forma que los de texto */
.ct-field select { width: 100%; min-height: 56px; padding: 14px 44px 14px 16px; border: 2px solid #b9d4ad; border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23045484' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center; color: var(--ink); font: inherit; font-size: var(--fs-4); font-weight: 400; appearance: none; transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease; }
.ct-field select:focus { outline: none; border-color: var(--ink); }
.ct-field select[aria-invalid="true"] { border-color: #c4471c; background-color: #fff7f3; }

/* página de pago */
.pay { padding-block: clamp(24px, 4svh, 56px) var(--section); }
.pay__head { display: grid; gap: 8px; margin-bottom: clamp(20px, 3svh, 40px); max-width: 60ch; }
.pay__title { font-size: var(--fs-2); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.pay__head p { font-size: var(--fs-4); }
.pay__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.pay__grid[hidden], .pay__empty[hidden] { display: none; }
.pay__form { grid-column: 1 / span 7; display: grid; gap: clamp(20px, 3svh, 32px); }
.pay__set { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pay__set legend { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 0; font-size: var(--fs-3); font-weight: 700; letter-spacing: -0.01em; }
.pay__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: var(--fs-4); }
.pay__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay__row--doc { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.pay__sum { grid-column: 8 / -1; display: grid; gap: 16px; padding: clamp(20px, 2.4vw, 32px); border-radius: 22px; background: var(--ink); color: #fff; }
@media (min-width: 961px) { .pay__sum { position: sticky; top: 96px; } }
.pay__sum-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pay__sum-head h2 { font-size: var(--fs-3); font-weight: 700; letter-spacing: -0.01em; }
.pay__edit { min-height: 40px; padding: 6px 16px; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: var(--fs-4); font-weight: 700; cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.pay__edit:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .pay__edit:hover { background: rgba(255, 255, 255, 0.12); } }
.pay__list { display: grid; gap: 8px; max-height: min(300px, 34svh); overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.pay__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.pay__item img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #fff; }
.pay__item-t { display: grid; font-size: var(--fs-4); line-height: 1.25; }
.pay__item-t span { opacity: 0.8; }
.pay__item-p { font-size: var(--fs-4); font-weight: 700; font-variant-numeric: tabular-nums; }
.pay__totals { display: grid; gap: 6px; margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); font-size: var(--fs-4); }
.pay__totals div { display: flex; justify-content: space-between; gap: 12px; }
.pay__totals dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.pay__total { align-items: baseline; margin-top: 4px; }
.pay__total dt { font-weight: 700; }
.pay__total dd { font-size: var(--fs-3); font-weight: 700; letter-spacing: -0.02em; }
.pay__free { padding: 10px 14px; border-radius: 12px; background: rgba(92, 187, 84, 0.2); font-size: var(--fs-4); font-weight: 700; }
.pay__free[hidden] { display: none; }
.pay__go { width: 100%; }
.pay__go:disabled { opacity: 0.7; cursor: progress; }
.pay__note { font-size: var(--fs-4); line-height: 1.4; opacity: 0.85; }
.pay__error { padding: 12px 14px; border-radius: 12px; background: #fff7f3; color: #b23d14; font-size: var(--fs-4); font-weight: 700; }
.pay__error[hidden] { display: none; }
.pay__empty { display: grid; justify-items: start; gap: 10px; padding: clamp(24px, 4svh, 48px); border-radius: 22px; background: var(--surface); }
.pay__empty-t { font-size: var(--fs-3); font-weight: 700; }
@media (max-width: 960px) {
  .pay__form, .pay__sum { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .pay__row, .pay__row--doc { grid-template-columns: 1fr; }
}

/* resultado del pago */
.order { display: grid; place-items: center; min-height: calc(100svh - 76px - 120px); padding-block: clamp(32px, 6svh, 80px); }
.order__card { display: grid; justify-items: center; gap: 14px; width: min(100%, 620px); padding: clamp(28px, 4vw, 48px); border-radius: 22px; background: var(--surface); text-align: center; }
.order__mark { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; }
.order__mark::after { content: ""; width: 28px; height: 28px; border: 4px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: order-spin 800ms linear infinite; }
.order__card[data-state="ok"] .order__mark { background: var(--accent); }
.order__card[data-state="ok"] .order__mark::after { width: 14px; height: 26px; margin-top: -6px; border: solid var(--on-accent); border-width: 0 5px 5px 0; border-radius: 0; rotate: 45deg; animation: order-pop 420ms var(--ease-out); }
.order__card[data-state="no"] .order__mark { background: #fff7f3; }
.order__card[data-state="no"] .order__mark::after { content: "!"; width: auto; height: auto; border: 0; color: #b23d14; font-size: var(--fs-2); font-weight: 700; line-height: 1; animation: order-pop 420ms var(--ease-out); }
.order__title { font-size: var(--fs-2); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.order__msg { max-width: 46ch; font-size: var(--fs-4); line-height: 1.5; }
.order__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 4px 0 0; font-size: var(--fs-4); }
.order__facts[hidden] { display: none; }
.order__facts dt { color: var(--muted); }
.order__facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.order__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
@keyframes order-spin { to { rotate: 360deg; } }
@keyframes order-pop { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }

/* Ronda 37: cambios del documento de textos */
/* el texto de estas cabeceras va debajo del título, no al lado */
.pdp-know__head .lead, .mq-offer__head p, .ns-story__head .statement, .ct-form__head p { grid-column: 1 / -1; }
/* Inicio: las dos frases de "Para ti y para tu marca" en viñetas */
.box__list { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; font-size: var(--fs-4); line-height: 1.5; }
.box__list li::marker { color: var(--leaf-deep); }
/* Maquila: "Cotizar" muestra WhatsApp o correo */
.mq-quote__ways { display: flex; flex-wrap: wrap; flex-basis: 100%; gap: 10px; }
.mq-quote__ways[hidden] { display: none; }
.mq-quote__ways:not([hidden]) { animation: mq-ways 220ms var(--ease-out); }
@keyframes mq-ways { from { opacity: 0; translate: -8px 0; } }
.mq-quote [aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--ink); }

/* Ronda 38: "También te puede interesar" muestra 6 productos más pequeños en una fila */
@media (min-width: 1181px) {
  .products--rel { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(24px, 2.4vw, 40px) clamp(12px, 1.2vw, 20px); }
  .products--rel .product__name { font-size: var(--fs-4); }
}
@media (min-width: 761px) and (max-width: 1180px) { .products--rel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Ronda 40: la foto de las dos sedes (Nosotros) usa todo el ancho de su columna y la altura libre de la pantalla, en vez de un recuadro angosto */
@media (min-width: 861px) {
  .ns-compare__frame { grid-column: 6 / -1; justify-self: stretch; width: 100%; aspect-ratio: auto; height: clamp(380px, var(--avail), 700px); }
  .ns-compare__after { object-position: 50% 35%; } /* en el marco ancho se ven el ladrillo y las ventanas, no solo el portón */
}
/* en tableta, horizontal para que no ocupe más que la pantalla */
@media (min-width: 561px) and (max-width: 860px) { .ns-compare__frame { aspect-ratio: 4 / 3; } }

/* ===== Ronda 49: revisión final ===== */
/* en celular la columna de "Arma tu producto" medía 3px más que la pantalla (los botones de forma no se encogían) */
.mq-lab__controls { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .mq-forms { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mq-form { padding-inline: 12px; } .mq-form__tag { padding: 3px 8px; border-radius: 10px; } }
/* página 404 */
.nf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: start; min-height: calc(100svh - 76px - 200px); align-content: center; }
.nf p { max-width: 52ch; }
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Ronda 50: páginas legales, casillas de aceptación y enlaces del pie ===== */
.site-footer__docs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__docs a { text-decoration: underline; text-underline-offset: 3px; }

/* casillas (van sobre el recuadro azul de Pagar y de Contacto) */
.consent { display: grid; gap: 12px; }
.consent__item { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start; font-size: var(--fs-4); line-height: 1.4; color: #fff; cursor: pointer; }
.consent__item input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent__item input[aria-invalid="true"] { outline: 2px solid #ffb59a; outline-offset: 2px; }
.consent__item a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.consent__item a:hover { color: var(--accent); }
.consent__item .ct-error { grid-column: 2; margin-top: 4px; color: #ffb59a; }

/* páginas de términos y política */
.legal { padding-block: clamp(32px, 5vw, 72px) var(--section); }
.legal__head { display: grid; gap: 14px; justify-items: start; max-width: 60ch; padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 2px solid var(--surface); }
.legal__title { font-size: var(--fs-2); line-height: 1.05; letter-spacing: -0.02em; }
.legal__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-top: clamp(24px, 3vw, 40px); }
.legal__toc { grid-column: 1 / span 4; align-self: start; position: sticky; top: 96px; max-height: calc(100svh - 120px); overflow-y: auto; padding: 20px 22px; border-radius: 18px; background: var(--surface); }
.legal__toc-t { font-weight: 700; margin-bottom: 8px; }
.legal__toc ol { margin: 0; padding-left: 1.6em; display: grid; gap: 6px; list-style: decimal; }
.legal__toc a { color: var(--ink); text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.legal__body { grid-column: 6 / -1; max-width: 72ch; }
.legal__body h2 { font-size: var(--fs-3); line-height: 1.2; margin: 40px 0 12px; scroll-margin-top: 96px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: var(--fs-4); font-weight: 700; margin: 22px 0 8px; color: #2f7a3a; }
.legal__body p { margin: 0 0 12px; }
.legal__body ul { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 6px; list-style: disc; }
.legal__body li::marker { color: #2f7a3a; }
.legal__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .legal__toc { grid-column: 1 / -1; position: static; max-height: none; margin-bottom: 28px; }
  .legal__body { grid-column: 1 / -1; }
}

/* Ronda 51: redes sociales (pie de página y Contacto) */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.site-footer__links .social a { text-decoration: none; }
.social__a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.social__a svg { width: 22px; height: 22px; flex: none; }
.social__a:hover, .social__a:focus-visible { background: #fff; color: var(--ink-deep); border-color: #fff; }
.social--ct { gap: 8px; }
.social__a--label { width: auto; height: auto; border-radius: 999px; padding: 8px 16px 8px 12px; border-color: currentColor; color: inherit; font-size: var(--fs-4); text-decoration: none; }
.social__a--label svg { width: 20px; height: 20px; }
.social__a--label:hover, .social__a--label:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); }
