/* =========================================================
   GHR Consultora — estilos v5 (rediseño: tecnología y procesos)
   Base clara "papel" + secciones en tinta. Colores del logo.
   Contrastes verificados en scripts/check.mjs (WCAG AA).
   ========================================================= */
:root {
  --paper: #F4EFE4;
  --paper-2: #EAE3D2;
  --white: #FFFFFF;
  --ink: #0B2E30;
  --ink-2: #123F40;
  --ink-3: #1B5152;
  --text: #0B2E30;
  --text-muted: #4A605E;
  --teal: #0E6B5C;
  --mint: #60BB98;
  --mint-soft: #8AD4B6;
  --cream: #F5EEDC;
  --on-ink-muted: #B8C9C3;
  --sun: #E9B949;
  --danger-ink: #A3261A;
  --line: rgba(11, 46, 48, .12);
  --line-ink: rgba(138, 212, 182, .2);

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px -30px rgba(11, 46, 48, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; font-weight: 400; font-family: var(--serif); letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--teal); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
a { color: var(--teal); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.container { width: min(var(--container), 100% - 2.6rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--ink); color: var(--cream); padding: .7rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--text-muted); }
.eyebrow { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--teal); margin-bottom: 1rem; }

/* ---------- Botón (CTA único) y enlaces ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: .6rem; justify-content: center;
  background: var(--ink); color: var(--cream); text-decoration: none; font-weight: 700;
  padding: 1rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  transform: translate(var(--mx), var(--my)); transition: transform .25s var(--ease), background .25s, box-shadow .25s;
  box-shadow: 0 14px 30px -14px rgba(11, 46, 48, .6);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { background: var(--teal); color: var(--white); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { padding: .65rem 1.15rem; font-size: .92rem; }
.btn--block { width: 100%; margin-top: 1.6rem; }
.link-arrow { color: var(--ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; border-bottom: 2px solid var(--mint); padding-bottom: .1rem; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--ink .link-arrow, .center-page .link-arrow { color: var(--cream); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; text-align: left; color: inherit; }

/* ---------- Header (píldora flotante) ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: transform .35s var(--ease); }
.site-header > .container { display: flex; align-items: center; gap: 1rem; padding: .45rem .55rem .45rem 1rem; border-radius: 999px; position: relative; transition: box-shadow .3s; }
.site-header > .container::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(244, 239, 228, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--line); z-index: -1; opacity: 0; transition: opacity .3s; }
.site-header.is-scrolled > .container::before { opacity: 1; }
.site-header.is-scrolled > .container { box-shadow: 0 12px 30px -18px rgba(11, 46, 48, .4); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; line-height: 1; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-top: .25rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav ul { list-style: none; display: flex; gap: 1.15rem; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav ul a:hover::after, .nav ul a[aria-current="true"]::after { transform: scaleX(1); }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: calc(var(--header-h) + .4rem) 1rem auto; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s var(--ease); }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: .2rem; }
  .nav ul a { display: block; padding: .6rem .4rem; font-size: 1.05rem; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(5rem, 10vw, 8rem) 0; position: relative; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--cream); padding: clamp(5rem, 10vw, 8rem) 0; position: relative; }
.section--ink .eyebrow { color: var(--mint-soft); }
.section--ink h2 em { color: var(--mint-soft); }
.section--ink .muted, .section--ink .section-head p { color: var(--on-ink-muted); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.8rem); }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.section-head p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 3rem) 0 0; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(900px circle at 85% 10%, rgba(96, 187, 152, .28), transparent 60%), radial-gradient(700px circle at 0% 100%, rgba(233, 185, 73, .14), transparent 60%), var(--paper); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero-grid { position: relative; flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-bottom: 3rem; }
.hero h1 { font-size: clamp(3.2rem, 7vw, 6.2rem); line-height: .95; letter-spacing: -.025em; margin-bottom: 1.4rem; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-muted); max-width: 33rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 1.8rem; margin: 2rem 0 2.2rem; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-tags li { font-size: .85rem; font-weight: 600; padding: .38rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }

/* Escenario 3D de dispositivos */
.stage { position: relative; perspective: 1400px; height: clamp(420px, 52vw, 560px); user-select: none; }
.stage-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg)); transition: transform .9s var(--ease); }
.device {
  position: absolute; left: 50%; top: 50%; width: min(330px, 70%); aspect-ratio: 3 / 4; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: 26px; background: var(--white); color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: 0 40px 80px -30px rgba(11, 46, 48, .45), 0 2px 0 rgba(255, 255, 255, .8) inset;
  display: flex; flex-direction: column; overflow: hidden;
  transform: translate(-50%, -50%) translate3d(var(--tx, 0), var(--ty, 0), var(--tz, 0)) rotateY(var(--dry, 0deg));
  transition: transform 1s var(--ease), opacity 1s var(--ease), filter 1s var(--ease);
}
.device[data-pos="0"] { --tz: 60px; z-index: 3; }
.device[data-pos="1"] { --tx: 38%; --ty: -10%; --tz: -90px; --dry: -10deg; z-index: 2; filter: saturate(.85) brightness(.97); }
.device[data-pos="2"] { --tx: -38%; --ty: 9%; --tz: -170px; --dry: 10deg; z-index: 1; filter: saturate(.75) brightness(.94); }
.device:hover { filter: none; }
.dv-bar { display: flex; align-items: center; gap: 5px; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: var(--paper); font-size: .72rem; }
.dv-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E3B8A9; }
.dv-bar i:nth-child(2) { background: var(--sun); } .dv-bar i:nth-child(3) { background: var(--mint); }
.dv-bar b { margin-left: .6rem; font-weight: 600; color: var(--text-muted); }
.dv-body { flex: 1; padding: .9rem; display: flex; flex-direction: column; gap: .55rem; font-size: .78rem; }
.shop-head, .carta-head { display: flex; justify-content: space-between; align-items: center; }
.shop-head b, .carta-head b { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.shop-head em { font-style: normal; background: var(--paper-2); padding: .15rem .5rem; border-radius: 999px; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; flex: 1; }
.prod { display: flex; flex-direction: column; gap: .1rem; background: var(--paper); border-radius: 12px; padding: .45rem; }
.prod .ph { display: block; flex: 1; min-height: 44px; border-radius: 9px; background: linear-gradient(135deg, var(--mint-soft), var(--teal)); }
.prod .p2 { background: linear-gradient(135deg, #F3D9A4, var(--sun)); } .prod .p3 { background: linear-gradient(135deg, #C9D9E6, #5E8CB0); } .prod .p4 { background: linear-gradient(135deg, #E7CFBF, #B97C5D); }
.prod b { font-weight: 700; font-size: .72rem; } .prod em { font-style: normal; color: var(--teal); font-weight: 700; font-size: .72rem; }
.shop-pay { display: block; text-align: center; background: var(--ink); color: var(--cream); border-radius: 999px; padding: .5rem; font-weight: 700; }
.days, .slots, .cats { display: flex; gap: .35rem; flex-wrap: wrap; }
.days i { font-style: normal; flex: 1; text-align: center; background: var(--paper); border-radius: 10px; padding: .35rem 0; color: var(--text-muted); }
.days i b { display: block; font-size: 1rem; color: var(--ink); }
.days i.on { background: var(--ink); color: var(--mint-soft); } .days i.on b { color: var(--cream); }
.slots i { font-style: normal; flex: 1 1 28%; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: .3rem 0; }
.slots i.off { text-decoration: line-through; color: #9AA9A6; background: var(--paper); }
.slots i.on { background: var(--mint); border-color: var(--mint); font-weight: 700; }
.bubble { max-width: 82%; padding: .45rem .65rem; border-radius: 12px; line-height: 1.35; }
.bubble.bot { background: var(--paper-2); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 4px; }
.qr { width: 42px; height: 42px; border-radius: 6px; background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 10px 10px, var(--white); border: 3px solid var(--ink); }
.cats i { font-style: normal; padding: .25rem .65rem; border-radius: 999px; background: var(--paper); }
.cats i.on { background: var(--ink); color: var(--cream); }
.item { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.item b { font-weight: 600; } .item em { font-style: normal; font-weight: 700; color: var(--teal); }
.carta .shop-pay { margin-top: auto; }
.stage-hint { position: absolute; left: 50%; bottom: -.4rem; transform: translateX(-50%); font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0; }

/* Ticker de rubros */
.ticker { position: relative; border-block: 1px solid var(--line); background: var(--ink); color: var(--cream); overflow: hidden; padding: 1rem 0; }
.ticker-track { display: flex; gap: 3rem; width: max-content; animation: ticker 38s linear infinite; }
.ticker span { font-family: var(--serif); font-size: 1.5rem; font-style: italic; white-space: nowrap; display: inline-flex; align-items: center; gap: 3rem; }
.ticker span::after { content: "✦"; font-style: normal; font-size: .9rem; color: var(--mint); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Bento de soluciones ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.tile { grid-column: span 2; position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 2rem); transition: transform .4s var(--ease), box-shadow .4s var(--ease); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tile:hover { box-shadow: var(--shadow); }
.tile.is-tilting { transition: box-shadow .4s var(--ease); }
.tile--xl { grid-column: span 4; grid-row: span 2; background: radial-gradient(500px circle at 100% 0%, rgba(96, 187, 152, .25), transparent 60%), var(--white); }
.tile--xl h3 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.tile--wide { grid-column: span 4; }
.tile--hr { background: var(--ink); color: var(--cream); border-color: transparent; }
.tile--hr p, .tile--hr > p:not(.tile-tag) { color: var(--on-ink-muted); } .tile--hr .tile-tag { color: var(--mint-soft); } .tile--hr .tile-link { color: var(--mint-soft); }
.tile--hr .tile-ic { background: rgba(96, 187, 152, .18); color: var(--mint-soft); }
.tile h3 { font-size: clamp(1.8rem, 2.6vw, 2.2rem); margin-bottom: .4rem; }
.tile > p:not(.tile-tag) { color: var(--text-muted); }
.tile-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--paper); color: var(--teal); margin-bottom: 1.2rem; }
.tile-ic svg { width: 26px; height: 26px; }
.tile-tag { font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.tile-more { margin: .2rem 0 1rem; }
.tile-more summary { cursor: pointer; font-weight: 700; list-style: none; display: inline-flex; gap: .4rem; align-items: center; }
.tile-more summary::-webkit-details-marker { display: none; }
.tile-more summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paper-2); font-size: .9rem; transition: transform .3s; }
.tile-more[open] summary::before { transform: rotate(45deg); }
.tile-more ul { list-style: none; display: grid; gap: .4rem; margin-top: .8rem; }
.tile-more li { padding-left: 1.4rem; position: relative; font-size: .95rem; }
.tile-more li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--mint); }
.tile-link { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--teal); }
.tile-link:hover { text-decoration: underline; }
.tile--half { grid-column: span 3; }
.tile--full { grid-column: span 6; display: grid; grid-template-columns: auto 1fr auto; gap: 0 2rem; align-items: center; }
.tile--full .tile-ic { margin: 0; grid-row: span 3; }
.tile--full .tile-link { margin: 0; grid-column: 3; grid-row: 1 / span 3; }
.tile--board { background: radial-gradient(400px circle at 0% 100%, rgba(233, 185, 73, .2), transparent 60%), var(--white); }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } .tile, .tile--half { grid-column: span 1; } .tile--xl, .tile--full { grid-column: span 2; grid-row: auto; } .tile--full { display: flex; } .tile--full .tile-ic { margin-bottom: 1.2rem; } .tile--full .tile-link { margin-top: auto; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile, .tile--xl, .tile--half, .tile--full { grid-column: span 1; } }

/* ---------- Buscador por rubro ---------- */
.finder { display: grid; gap: 1.6rem; }
.finder-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.finder-chips button { background: transparent; color: var(--cream); border: 1px solid rgba(138, 212, 182, .45); padding: .7rem 1.2rem; border-radius: 999px; cursor: pointer; font-weight: 600; transition: all .3s var(--ease); }
.finder-chips button:hover { border-color: var(--mint); }
.finder-chips button[aria-selected="true"] { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.finder-panel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.8rem); }
.finder-panel[hidden] { display: none; }
.finder-panel.is-entering { animation: panelIn .6s var(--ease); }
.fp-pain { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; color: var(--on-ink-muted); }
.finder-panel h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--cream); }
.finder-panel ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.finder-panel li { padding: .4rem .9rem; border-radius: 999px; background: rgba(96, 187, 152, .14); color: var(--mint-soft); font-size: .92rem; font-weight: 600; }
.fp-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
@media (max-width: 800px) { .finder-panel { grid-template-columns: 1fr; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px) rotateX(-8deg); } }

/* ---------- Historia 3D ---------- */
.story { position: relative; height: 320vh; background: var(--ink); color: var(--cream); }
.story-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-texts { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.story .eyebrow { position: absolute; top: calc(var(--header-h) + 2rem); color: var(--mint-soft); }
.story-step { position: absolute; left: 0; max-width: 30rem; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.story-step.is-active { opacity: 1; transform: none; }
.story-num { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--mint); }
.story-step h3 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); margin: .2rem 0 .6rem; }
.story-step p { color: var(--on-ink-muted); font-size: 1.15rem; }
.story-progress { position: absolute; left: 0; right: 0; bottom: 2.2rem; height: 3px; background: rgba(245, 238, 220, .12); border-radius: 3px; overflow: hidden; }
.story-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--mint-soft)); }
@media (max-width: 760px) { .story-step { left: 0; right: 0; bottom: 5rem; max-width: none; } .story-texts { justify-content: flex-end; } }

/* ---------- Probador ---------- */
.lab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1100px) { .lab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lab-grid { grid-template-columns: 1fr; } }
.lab-card { display: flex; flex-direction: column; gap: .25rem; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; padding: 1rem 1rem 1.2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.lab-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--mint); color: var(--ink); }
.lab-card b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.lab-card > span:not(.lab-prev):not(.lab-tag):not(.lab-go) { color: var(--text-muted); font-size: .93rem; }
.lab-card--chat { background: var(--ink); color: var(--cream); border-color: transparent; }
.lab-card--chat:hover { color: var(--cream); }
.lab-card--chat > span:not(.lab-prev):not(.lab-tag):not(.lab-go) { color: var(--on-ink-muted); }
.lab-card--chat .lab-tag, .lab-card--chat .lab-go { color: var(--mint-soft); }
.lab-tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 800; }
.lab-go { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--teal); }
.lab-prev { position: relative; height: 110px; border-radius: 14px; margin-bottom: .8rem; background: var(--paper); overflow: hidden; display: block; }
.lab-card--chat .lab-prev { background: var(--ink-2); }
.pv-shop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; }
.pv-shop i { border-radius: 8px; background: linear-gradient(160deg, var(--mint-soft), var(--teal)); animation: pop 3.6s infinite; }
.pv-shop i:nth-child(2) { animation-delay: .3s; background: linear-gradient(160deg, #F3D9A4, var(--sun)); } .pv-shop i:nth-child(3) { animation-delay: .6s; } .pv-shop i:nth-child(4) { animation-delay: .9s; background: linear-gradient(160deg, #E7CFBF, #B97C5D); }
.pv-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 14px; }
.pv-cal i { border-radius: 6px; background: rgba(11, 46, 48, .08); }
.pv-cal i:nth-child(3n) { background: var(--mint); animation: pop 3s infinite; } .pv-cal i:nth-child(7) { background: var(--ink); }
.pv-menu { display: flex; flex-direction: column; gap: 9px; padding: 16px; }
.pv-menu i { height: 16px; border-radius: 8px; background: rgba(11, 46, 48, .1); position: relative; }
.pv-menu i::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 22%; border-radius: 8px; background: var(--mint); animation: pop 3.2s infinite; }
.pv-bars { display: flex; align-items: flex-end; gap: 8px; padding: 14px 16px; }
.pv-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--teal); animation: grow 3.4s var(--ease) infinite; height: 40%; }
.pv-bars i:nth-child(2) { height: 70%; animation-delay: .2s; background: var(--mint); } .pv-bars i:nth-child(3) { height: 55%; animation-delay: .4s; } .pv-bars i:nth-child(4) { height: 85%; animation-delay: .6s; background: var(--mint); } .pv-bars i:nth-child(5) { height: 62%; animation-delay: .8s; }
.pv-racks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.pv-racks i { border-radius: 6px; border: 2px solid var(--teal); background: linear-gradient(to top, var(--mint-soft) var(--f, 50%), transparent 0); }
.pv-racks i:nth-child(2) { --f: 80%; } .pv-racks i:nth-child(3) { --f: 20%; border-color: var(--danger-ink); } .pv-racks i:nth-child(4) { --f: 65%; } .pv-racks i:nth-child(5) { --f: 35%; } .pv-racks i:nth-child(6) { --f: 90%; }
.pv-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.pv-chat i { height: 20px; border-radius: 10px; background: rgba(138, 212, 182, .25); width: 60%; animation: fadeLoop 4.5s infinite; }
.pv-chat i:nth-child(2) { align-self: flex-end; width: 45%; background: var(--mint); animation-delay: .6s; } .pv-chat i:nth-child(3) { width: 70%; animation-delay: 1.2s; }
@keyframes pop { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-4px) scale(1.04); } }
@keyframes grow { 0% { transform: scaleY(.2); transform-origin: bottom; } 40%, 100% { transform: none; transform-origin: bottom; } }
@keyframes fadeLoop { 0% { opacity: 0; transform: translateY(6px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- Pasos (Cómo trabajamos) ---------- */
.steps { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.steps-nav { position: relative; display: grid; gap: .4rem; }
.steps-nav::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: rgba(11, 46, 48, .14); }
.steps-progress { position: absolute; left: 23px; top: 24px; width: 2px; height: 0; background: var(--teal); transition: height .6s var(--ease); }
.step-tab { position: relative; display: flex; align-items: center; gap: 1rem; background: none; border: 0; padding: .4rem 0; cursor: pointer; text-align: left; font-weight: 700; font-size: 1.05rem; color: var(--text-muted); }
.step-tab .dot { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); border: 2px solid rgba(11, 46, 48, .2); font-family: var(--serif); font-size: 1.3rem; color: var(--ink); transition: all .4s var(--ease); }
.step-tab[aria-selected="true"] { color: var(--ink); }
.step-tab[aria-selected="true"] .dot { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: scale(1.1); }
.step-tab.is-done .dot { border-color: var(--teal); color: var(--teal); }
.step-panels { position: relative; isolation: isolate; touch-action: pan-y; }
.step-panels::before, .step-panels::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step-panels::before { transform: translate(12px, 12px) rotate(1.4deg); opacity: .7; }
.step-panels::after { transform: translate(24px, 24px) rotate(2.8deg); opacity: .4; }
.step-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); }
.step-panel[hidden] { display: none; }
.step-panel.is-entering { animation: panelIn .6s var(--ease); }
.step-panel h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.step-panel > p { color: var(--text-muted); }
.step-panel ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; margin: 1.4rem 0; }
.step-panel li { padding-left: 1.7rem; position: relative; line-height: 1.45; }
.step-panel li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: rgba(96, 187, 152, .3); color: var(--teal); font-size: .75rem; display: grid; place-items: center; font-weight: 800; }
.deliverable { background: var(--paper); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
.auto-bar { display: flex; align-items: center; gap: .9rem; margin-top: 1.4rem; }
.auto-track { flex: 1; max-width: 200px; height: 3px; border-radius: 3px; background: rgba(11, 46, 48, .12); overflow: hidden; }
.auto-fill { display: block; height: 100%; background: var(--teal); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps-nav { grid-template-columns: repeat(4, 1fr); }
  .steps-nav::before, .steps-progress { display: none; }
  .step-tab { flex-direction: column; text-align: center; font-size: .8rem; gap: .4rem; }
  .step-panel ul { grid-template-columns: 1fr; }
}

/* ---------- Quiénes somos + prisma ---------- */
.org { overflow-x: clip; background: radial-gradient(800px circle at 90% 10%, rgba(96, 187, 152, .16), transparent 60%), var(--ink); }
.org-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.org h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.org-text > p { color: var(--on-ink-muted); }
.org-text strong { color: var(--cream); }
.founder { display: flex; gap: 1.2rem; align-items: center; margin: 1.8rem 0; padding: 1.1rem; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-ink); }
.founder-photo { flex: none; }
.founder-photo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--mint); }
.founder-name { font-family: var(--serif); font-size: 1.7rem; margin: 0; line-height: 1.1; }
.founder-role { color: var(--mint-soft); font-size: .88rem; font-weight: 600; margin: .2rem 0 .4rem; }
.founder-bio { color: var(--on-ink-muted); font-size: .93rem; margin: 0; }
.prism-tip { color: var(--on-ink-muted); font-size: .92rem; margin-bottom: .6rem; }
.org-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.org-tab { background: none; border: 1px solid rgba(138, 212, 182, .45); color: var(--cream); padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; font-size: .95rem; font-weight: 600; transition: all .3s var(--ease); }
.org-tab[aria-selected="true"], .org-tab:hover { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.prism-wrap { perspective: 1600px; user-select: none; touch-action: pan-y; }
.prism { --half: 260px; --angle: 0deg; position: relative; height: 380px; transform-style: preserve-3d; transform: translateZ(calc(var(--half) * -1)) rotateY(var(--angle)); transition: transform 1s var(--ease); cursor: grab; }
.prism.is-dragging { transition: none; cursor: grabbing; }
.prism-face { position: absolute; inset: 0; border-radius: 26px; padding: clamp(1.6rem, 4vw, 2.6rem); background: linear-gradient(150deg, var(--cream), var(--paper-2)); color: var(--ink); display: flex; flex-direction: column; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.prism-face:nth-child(1) { transform: rotateY(0deg) translateZ(var(--half)); }
.prism-face:nth-child(2) { transform: rotateY(90deg) translateZ(var(--half)); }
.prism-face:nth-child(3) { transform: rotateY(180deg) translateZ(var(--half)); }
.prism-face:nth-child(4) { transform: rotateY(270deg) translateZ(var(--half)); }
.face-label { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); font-weight: 800; margin-bottom: .8rem; }
.prism-face h3 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.prism-face p { color: var(--text-muted); margin: 0; }
.prism-face ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.prism-face li strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: var(--ink); }
.prism-face li span { font-size: .9rem; color: var(--text-muted); }
.prism-hint { text-align: center; margin-top: 1.4rem; font-size: .88rem; color: var(--on-ink-muted); }
@media (max-width: 900px) { .org-grid { grid-template-columns: 1fr; } .prism { height: 420px; } .prism-face ul { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.2rem; transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--mint); }
.faq details p { color: var(--text-muted); padding-bottom: 1.2rem; margin: 0; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Contacto / formulario ---------- */
.contact h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list .ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(96, 187, 152, .16); color: var(--mint-soft); }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list a { color: var(--cream); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--mint-soft); text-decoration: underline; }
.contact-list small { display: block; color: var(--on-ink-muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.form-card { background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; }
.field label .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid rgba(11, 46, 48, .2); border-radius: 12px; padding: .8rem .9rem; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 107, 92, .15); }
.field [aria-invalid="true"] { border-color: var(--danger-ink); box-shadow: 0 0 0 3px rgba(163, 38, 26, .12); }
.field .error { color: var(--danger-ink); font-size: .86rem; font-weight: 600; }
.field .error:empty { display: none; }
.field .hint { font-size: .82rem; color: var(--text-muted); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--teal); flex: none; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { background: #FBE3DF; color: var(--danger-ink); }
.form-status.is-ok { background: #DDF1E7; color: #0B5A45; }
.form-legal { font-size: .82rem; color: var(--text-muted); margin: 1rem 0 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); padding: 4.5rem 0 2rem; font-size: .95rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); font-weight: 800; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a, .site-footer .linklike { color: var(--ink); text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: var(--teal); text-decoration: underline; }
.site-footer .brand { margin-bottom: 1rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text-muted); font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Banner de cookies ---------- */
.cookie-banner { position: fixed; z-index: 200; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin-left: auto; background: var(--ink); color: var(--cream); border-radius: 22px; padding: 1.4rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); transform: translateY(140%); transition: transform .5s var(--ease); }
.cookie-banner.is-visible { transform: none; }
.cookie-banner h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .93rem; color: var(--on-ink-muted); margin-bottom: 1rem; }
.cookie-banner a { color: var(--mint-soft); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions button { flex: 1 1 auto; padding: .7rem 1rem; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .92rem; }
.btn-outline { background: none; border: 1.5px solid var(--cream); color: var(--cream); }
.btn-outline:hover { background: rgba(245, 238, 220, .1); }
.btn-solid { background: var(--mint); border: 1.5px solid var(--mint); color: var(--ink); }
.btn-solid:hover { background: var(--mint-soft); }
.cookie-prefs { border-top: 1px solid rgba(245, 238, 220, .12); margin: 0 0 1rem; padding-top: 1rem; display: grid; gap: .9rem; }
.cookie-prefs[hidden] { display: none; }
.pref { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.pref strong { display: block; }
.pref span { font-size: .85rem; color: var(--on-ink-muted); }
.switch { position: relative; flex: none; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: rgba(245, 238, 220, .25); transition: background .25s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); transition: transform .25s var(--ease); }
.switch input:checked + .track { background: var(--mint); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:disabled + .track { opacity: .6; }
.switch input:focus-visible + .track { outline: 3px solid var(--mint); outline-offset: 2px; }

/* ---------- Páginas internas (legales, 404, gracias) ---------- */
.page-hero { padding: calc(var(--header-h) + 4rem) 0 3rem; background: radial-gradient(700px circle at 85% 0%, rgba(96, 187, 152, .25), transparent 60%), var(--paper); }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.page-hero p { color: var(--text-muted); }
.legal { background: var(--white); padding: 4rem 0 6rem; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 2rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.45rem; margin-top: 1.5rem; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1em; }
.legal li { margin-bottom: .4rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .93rem; }
.legal th, .legal td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--paper); }
.table-scroll { overflow-x: auto; }
.toc { background: var(--paper); border-radius: 16px; padding: 1.2rem 1.5rem; }
.toc ol { margin: .5rem 0 0; padding-left: 1.2rem; }
.notice { border-left: 4px solid var(--teal); background: var(--paper); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; }
.center-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 2rem) 0 4rem; background: radial-gradient(700px circle at 50% 30%, rgba(96, 187, 152, .2), transparent 60%), var(--ink); color: var(--cream); }
.center-page h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.big-404 { font-family: var(--serif); font-size: clamp(7rem, 22vw, 14rem); line-height: .9; perspective: 800px; display: flex; justify-content: center; gap: .05em; margin-bottom: 1rem; }
.big-404 span { display: inline-block; color: var(--cream); animation: spinY 5s var(--ease) infinite; }
.big-404 span:nth-child(2) { color: var(--mint); font-style: italic; animation-delay: .25s; }
.big-404 span:nth-child(3) { animation-delay: .5s; }
@keyframes spinY { 0%, 60% { transform: rotateY(0); } 80%, 100% { transform: rotateY(360deg); } }
.center-page p { color: var(--on-ink-muted); max-width: 34rem; margin-inline: auto; }
.center-page .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; align-items: center; margin-top: 2rem; }
.center-page .btn { background: var(--mint); color: var(--ink); }
.check-anim { width: 96px; height: 96px; margin: 0 auto 1.5rem; }
.check-anim circle { stroke: var(--mint); stroke-width: 3; fill: none; stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw 1s var(--ease) forwards; }
.check-anim path { stroke: var(--cream); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Aparición y títulos ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.split.is-in .w > span { transform: none; }

/* ---------- Riel de capítulos ---------- */
.chapter-rail { position: fixed; left: 1.1rem; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: .35rem; opacity: 0; pointer-events: none; transition: opacity .4s; }
.chapter-rail.is-visible { opacity: 1; pointer-events: auto; }
.chapter-rail a { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text-muted); font-size: .78rem; }
.chapter-rail .ch-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(244, 239, 228, .9); font-weight: 700; transition: all .3s var(--ease); }
.chapter-rail .ch-name { opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease); background: var(--ink); color: var(--cream); padding: .15rem .5rem; border-radius: 6px; }
.chapter-rail a:hover .ch-name, .chapter-rail a.is-active .ch-name { opacity: 1; transform: none; }
.chapter-rail a.is-active .ch-num { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: scale(1.12); }
@media (max-width: 1320px) { .chapter-rail { display: none; } }

/* ---------- WhatsApp y chatbot ---------- */
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 150; display: inline-flex; align-items: center; gap: .55rem; padding: .7rem; border-radius: 999px; background: var(--mint); color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: 0 14px 30px -10px rgba(11, 46, 48, .5); transition: all .3s var(--ease); }
.wa-float svg { width: 28px; height: 28px; }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease); }
.wa-float:hover { color: var(--ink); transform: translateY(-3px); padding-right: 1.1rem; }
.wa-float:hover .wa-label { max-width: 120px; }
.cookie-banner.is-visible ~ .wa-float, .cookie-banner.is-visible ~ .chat-fab { display: none; }
.chat-fab { position: fixed; right: 1.2rem; bottom: 5.2rem; z-index: 151; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--ink); color: var(--cream); font-size: 1.4rem; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(11, 46, 48, .5); transition: transform .3s var(--ease); }
.chat-fab:hover, .chat-fab.is-open { transform: scale(1.08); background: var(--teal); }
.chat-panel { padding: 0; position: fixed; right: 1.2rem; bottom: 9.4rem; z-index: 152; width: min(370px, calc(100vw - 2.4rem)); height: min(520px, calc(100vh - 11rem)); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(11, 46, 48, .5); animation: chatIn .35s var(--ease); }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; background: var(--ink); color: var(--cream); }
.chat-head b { display: block; }
.chat-head small { color: var(--on-ink-muted); font-size: .75rem; }
.chat-x { background: none; border: 0; color: var(--cream); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.msg { max-width: 85%; padding: .6rem .8rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.msg.bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 4px; }
.msg.typing { color: var(--text-muted); letter-spacing: .2em; }
.msg a { color: var(--teal); font-weight: 700; }
.chat-opts { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1rem .6rem; }
.chat-opts button { background: var(--white); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .3rem .75rem; font-size: .82rem; cursor: pointer; font-weight: 600; }
.chat-opts button:hover { background: var(--mint); border-color: var(--mint); }
.chat-form { display: flex; gap: .4rem; padding: .7rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: .55rem .9rem; font: inherit; }
.chat-form button { width: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--cream); cursor: pointer; }

/* ---------- Responsive del hero ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { height: 440px; margin-top: 1rem; }
  .device { width: min(280px, 64%); }
}
@media (max-width: 520px) { .stage { height: 400px; } .device[data-pos="1"] { --tx: 26%; } .device[data-pos="2"] { --tx: -26%; } }

/* ---------- Movimiento reducido (opción del pie de página) ---------- */
html.reduce-motion { scroll-behavior: auto; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.reduce-motion .reveal { opacity: 1; transform: none; }
html.reduce-motion .story { height: auto; }
html.reduce-motion .story-sticky { position: relative; height: auto; padding: 6rem 0; }
html.reduce-motion .story-canvas { opacity: .35; }
html.reduce-motion .story-texts { display: grid; gap: 1rem; }
html.reduce-motion .story-step { position: static; opacity: 1; transform: none; max-width: none; }
html.reduce-motion .story .eyebrow { position: static; }
@media print { .chat-fab, .chat-panel, .chapter-rail, .wa-float, .cookie-banner, .hero-canvas { display: none !important; } }

/* ======== v2.1: hero vivo, tablero, notificaciones ======== */
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: blob 18s ease-in-out infinite alternate; }
.hero::before { width: 460px; height: 460px; right: 4%; top: 12%; background: radial-gradient(circle, rgba(96, 187, 152, .55), transparent 70%); }
.hero::after { width: 380px; height: 380px; right: 30%; bottom: 8%; background: radial-gradient(circle, rgba(233, 185, 73, .38), transparent 70%); animation-delay: -6s; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.12); } 100% { transform: translate(30px, -20px) scale(.95); } }
.stage::before { content: ""; position: absolute; left: 50%; top: 52%; width: 82%; aspect-ratio: 1; transform: translate(-50%, -50%) rotateX(72deg); border-radius: 50%; border: 1px dashed rgba(14, 107, 92, .35); animation: orbit 30s linear infinite; }
@keyframes orbit { to { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); } }
.prod .ph { display: grid; place-items: center; font-size: 1.5rem; font-style: normal; }
.prod { position: relative; }
.prod.is-adding { animation: addPulse 4.2s var(--ease) infinite; }
.prod .added { position: absolute; inset: auto .4rem .4rem; text-align: center; background: var(--ink); color: var(--cream); border-radius: 999px; font-size: .62rem; font-weight: 700; padding: .15rem; opacity: 0; animation: addedTag 4.2s var(--ease) infinite; }
@keyframes addPulse { 0%, 30%, 100% { transform: none; box-shadow: none; } 38% { transform: scale(1.06); box-shadow: 0 0 0 3px var(--mint); } 50% { transform: none; } }
@keyframes addedTag { 0%, 34% { opacity: 0; transform: translateY(6px); } 40%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
.cart-badge .cnt::after { content: "1"; animation: cnt 4.2s steps(1) infinite; }
@keyframes cnt { 0%, 39% { content: "1"; } 40%, 100% { content: "2"; } }
.slots i.pick { animation: pick 5s var(--ease) infinite; }
@keyframes pick { 0%, 20% { background: transparent; } 30%, 100% { background: var(--mint); border-color: var(--mint); font-weight: 700; } }
.turnos .bubble { animation: bub 5s var(--ease) infinite; opacity: 0; }
.turnos .b1 { animation-delay: 0s; } .turnos .b2 { animation-delay: .9s; } .turnos .b3 { animation-delay: 1.8s; }
@keyframes bub { 0% { opacity: 0; transform: translateY(8px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.board-head { display: flex; justify-content: space-between; align-items: center; }
.board-head b { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.board-head em { font-style: normal; font-size: .68rem; background: var(--paper-2); padding: .15rem .5rem; border-radius: 999px; }
.cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; position: relative; }
.col { background: var(--paper); border-radius: 10px; padding: .4rem; display: flex; flex-direction: column; gap: .35rem; }
.col small { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.k { font-style: normal; font-size: .66rem; font-weight: 600; background: var(--white); border-radius: 7px; padding: .4rem .35rem; border-left: 3px solid var(--mint); box-shadow: 0 4px 10px -6px rgba(11, 46, 48, .3); }
.k-b { border-color: var(--sun); } .k-c { border-color: #5E8CB0; } .k-d { border-color: var(--teal); text-decoration: line-through; color: var(--text-muted); }
.k-move { border-color: #B97C5D; animation: kmove 6s var(--ease) infinite; position: relative; z-index: 2; }
@keyframes kmove { 0%, 30% { transform: none; } 50%, 85% { transform: translate(108%, -48%) rotate(-2deg); background: #DDF1E7; } 100% { transform: none; } }
.board-bar { height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.board-bar i { display: block; height: 100%; width: 40%; background: var(--teal); border-radius: 6px; animation: bar 6s var(--ease) infinite; }
@keyframes bar { 0%, 40% { width: 40%; } 55%, 85% { width: 70%; } 100% { width: 40%; } }
.notifs { list-style: none; position: absolute; inset: 0; pointer-events: none; }
.notifs li { position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .55rem .8rem; font-size: .8rem; font-weight: 700; box-shadow: 0 18px 40px -20px rgba(11, 46, 48, .5); white-space: nowrap; opacity: 0; animation: notif 12s var(--ease) infinite; }
.notifs .n1 { left: -4%; top: 8%; } .notifs .n2 { right: -2%; top: 2%; animation-delay: 3s; } .notifs .n3 { right: 0; bottom: 14%; animation-delay: 6s; } .notifs .n4 { left: 0; bottom: 6%; animation-delay: 9s; }
@keyframes notif { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 4%, 22% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 520px) { .notifs li { font-size: .7rem; } .notifs .n1 { left: 0; } .notifs .n2 { right: 0; } }
.pv-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.pv-board i { border-radius: 8px; background: rgba(11, 46, 48, .07); position: relative; }
.pv-board i::before, .pv-board i::after { content: ""; position: absolute; left: 6px; right: 6px; height: 16px; border-radius: 5px; background: var(--white); border-left: 3px solid var(--mint); top: 8px; }
.pv-board i::after { top: 30px; border-color: var(--sun); }
.pv-board i:nth-child(2)::after { animation: pvmove 4s var(--ease) infinite; }
@keyframes pvmove { 0%, 30% { transform: none; } 55%, 85% { transform: translateX(118%); } 100% { transform: none; } }
.lab-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 200px 1fr auto; gap: .2rem 1.4rem; align-items: center; }
.lab-card--wide .lab-prev { grid-row: span 3; margin: 0; }
.lab-card--wide .lab-go { grid-column: 3; grid-row: 1 / span 3; padding: 0; }
@media (max-width: 620px) { .lab-card--wide { display: flex; } .lab-card--wide .lab-prev { margin-bottom: .8rem; } }
html.reduce-motion .hero::before, html.reduce-motion .hero::after { animation: none; }
html.reduce-motion .turnos .bubble, html.reduce-motion .notifs li { opacity: 1; animation: none; }
html.reduce-motion .notifs { display: none; }
.hero-grid, .hero .ticker { z-index: 1; }
.tile-visual { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; margin: .4rem 0 1.4rem; flex: 1; min-height: 250px; }
.tv-chart { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 2.4rem 1rem 1rem; border-radius: 18px; background: var(--paper); }
.tv-chart span { position: absolute; top: .9rem; left: 1rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.tv-chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--mint); height: var(--h, 50%); transform-origin: bottom; animation: grow 4s var(--ease) infinite; }
.tv-chart i:nth-child(2) { --h: 35%; } .tv-chart i:nth-child(3) { --h: 55%; animation-delay: .15s; } .tv-chart i:nth-child(4) { --h: 45%; animation-delay: .3s; } .tv-chart i:nth-child(5) { --h: 70%; animation-delay: .45s; background: var(--teal); } .tv-chart i:nth-child(6) { --h: 62%; animation-delay: .6s; } .tv-chart i:nth-child(7) { --h: 88%; animation-delay: .75s; background: var(--ink); } .tv-chart i:nth-child(8) { --h: 76%; animation-delay: .9s; background: var(--teal); }
.tv-feed { list-style: none; display: flex; flex-direction: column; gap: .5rem; justify-content: center; }
.tv-feed li { display: flex; justify-content: space-between; gap: .6rem; font-size: .86rem; font-weight: 600; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; box-shadow: 0 10px 24px -18px rgba(11, 46, 48, .5); animation: feed 8s var(--ease) infinite; opacity: 0; }
.tv-feed li b { color: var(--teal); white-space: nowrap; }
.tv-feed li:nth-child(2) { animation-delay: .6s; } .tv-feed li:nth-child(3) { animation-delay: 1.2s; } .tv-feed li:nth-child(4) { animation-delay: 1.8s; }
@keyframes feed { 0% { opacity: 0; transform: translateX(20px); } 8%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateX(-10px); } }
@media (max-width: 700px) { .tile-visual { grid-template-columns: 1fr; } .tv-chart { min-height: 150px; } }
html.reduce-motion .tv-feed li { opacity: 1; }
.tv-feed li:nth-child(5) { animation-delay: 2.4s; } .tv-feed li:nth-child(6) { animation-delay: 3s; }

/* ======== v2.2: trabajos y novedades ======== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.work { display: grid; grid-template-columns: 220px 1fr; gap: 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-shot { display: block; border-radius: 16px; overflow: hidden; background: var(--ink); aspect-ratio: 640 / 713; box-shadow: 0 20px 40px -24px rgba(11, 46, 48, .6); }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 3s var(--ease); }
.work:hover .work-shot img { transform: scale(1.04); }
.work-body { display: flex; flex-direction: column; padding: .4rem .4rem .4rem 0; }
.work-body h3 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
.work-body ul { list-style: none; display: grid; gap: .4rem; margin-bottom: 1rem; }
.work-body li { padding-left: 1.4rem; position: relative; font-size: .95rem; color: var(--text-muted); }
.work-body li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--mint); }
@media (max-width: 1000px) { .work-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .work { grid-template-columns: 1fr; } .work-shot { max-height: 320px; } }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--mint); color: var(--ink); }
.post-card b { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.12; }
.post-card > span:not(.lab-tag):not(.lab-go) { color: var(--text-muted); font-size: .95rem; }
.section-head .link-arrow { margin-left: .4rem; }
.article-head { max-width: 860px; }
.article-head .eyebrow a { color: inherit; }
.article-meta { font-size: .9rem; font-weight: 600; }
.article .container { font-size: 1.1rem; }
.article h2 { font-size: 2.1rem; }
.article-cta { margin: 3rem 0 1.5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--paper); display: grid; gap: .8rem; justify-items: start; }
.article-cta p { margin: 0; }
