/* =========================================================
   Claudia Coronado · v4 "Platinum compacta"
   Blancos, plata y grafito. Rojo RIMAC solo como acento.
   Cada sección cabe en una pantalla; el robot vive en la barra roja.
   ========================================================= */
:root {
  --bg: #f3f3f1;
  --bg-2: #ebebe8;
  --panel: #fbfbfa;
  --glass: rgba(255, 255, 255, .62);
  --edge: rgba(255, 255, 255, .92);
  --line: rgba(17, 17, 17, .09);
  --line-2: rgba(17, 17, 17, .18);
  --ink: #111111;
  --ink-2: #4a4a47;
  --ink-3: #7c7c77;
  --red: #d7000f;
  --red-2: #e30613;
  --gold: #a88a55;
  --metal: linear-gradient(135deg, #fdfdfc 0%, #e3e3e0 38%, #f7f7f5 55%, #d4d4d0 100%);
  --pearl: radial-gradient(120% 120% at 30% 18%, #ffffff 0%, #f7f4f2 42%, #ece6ea 76%, #d9d4dc 100%);
  --shadow: 0 34px 70px -38px rgba(20, 20, 20, .32), 0 2px 6px -2px rgba(20, 20, 20, .06);
  --shadow-soft: 0 18px 44px -28px rgba(20, 20, 20, .26), 0 1px 3px -1px rgba(20, 20, 20, .05);
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --edge-x: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  --head: 68px;
  --dock: 64px;
  --mailw: 270px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* puntero: flecha fina en grafito con punto rojo; sobre lo que se puede tocar, la flecha se llena de rojo */
  --cur: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M4 3.2v16.3c0 .5.6.8 1 .4l3.9-3.7 2.6 6c.2.4.6.6 1 .4l1.9-.8c.4-.2.6-.6.4-1l-2.6-5.9 5.4-.2c.5 0 .7-.6.4-1L5.1 2.8c-.4-.4-1.1-.1-1.1.4Z' fill='%23141416' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/><circle cx='7' cy='9.5' r='1.3' fill='%23d7000f'/></svg>") 4 3, auto;
  --cur-on: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M4 3.2v16.3c0 .5.6.8 1 .4l3.9-3.7 2.6 6c.2.4.6.6 1 .4l1.9-.8c.4-.2.6-.6.4-1l-2.6-5.9 5.4-.2c.5 0 .7-.6.4-1L5.1 2.8c-.4-.4-1.1-.1-1.1.4Z' fill='%23d7000f' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/></svg>") 4 3, pointer;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --cur: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M4 3.2v16.3c0 .5.6.8 1 .4l3.9-3.7 2.6 6c.2.4.6.6 1 .4l1.9-.8c.4-.2.6-.6.4-1l-2.6-5.9 5.4-.2c.5 0 .7-.6.4-1L5.1 2.8c-.4-.4-1.1-.1-1.1.4Z' fill='%23f4f4f2' stroke='%23111' stroke-width='1.4' stroke-linejoin='round'/><circle cx='7' cy='9.5' r='1.3' fill='%23d7000f'/></svg>") 4 3, auto;
  --cur-on: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M4 3.2v16.3c0 .5.6.8 1 .4l3.9-3.7 2.6 6c.2.4.6.6 1 .4l1.9-.8c.4-.2.6-.6.4-1l-2.6-5.9 5.4-.2c.5 0 .7-.6.4-1L5.1 2.8c-.4-.4-1.1-.1-1.1.4Z' fill='%23ff2a36' stroke='%23111' stroke-width='1.4' stroke-linejoin='round'/></svg>") 4 3, pointer;
  --bg: #0f0f10; --bg-2: #151517; --panel: #1a1a1d; --glass: rgba(30, 30, 33, .66); --edge: rgba(255, 255, 255, .14);
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .18);
  --ink: #f2f2f0; --ink-2: #b6b6b1; --ink-3: #8d8d87;
  --red: #ff2a36; --red-2: #ff4a55;
  --metal: linear-gradient(135deg, #2a2a2e 0%, #1b1b1e 40%, #2f2f33 56%, #161618 100%);
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); --shadow-soft: 0 20px 50px -30px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) - 8px); overflow-x: clip; cursor: var(--cur); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background .5s, color .5s; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a, button, label, select, summary, [role="tab"], input[type="range"], input[type="checkbox"], input[type="radio"] { cursor: var(--cur-on); }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
h2 em, h1 em, h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--red); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }
.wrap { width: min(1320px, 100%); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }
.linklike { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; text-align: left; }

/* grano fotográfico sutil + progreso + tinta al hacer clic */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .04; }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.ink { position: fixed; z-index: 96; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--red); pointer-events: none; animation: ink .6s var(--ease-out) forwards; }
.cur-ring { position: fixed; left: 0; top: 0; z-index: 95; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--red) 45%, transparent); pointer-events: none; opacity: 0; transition: opacity .3s, width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, border-color .35s; }
.cur-ring.is-on { opacity: 1; }
.cur-ring.is-hot { width: 52px; height: 52px; margin: -26px 0 0 -26px; background: color-mix(in srgb, var(--red) 8%, transparent); border-color: color-mix(in srgb, var(--red) 70%, transparent); }
.cur-ring.is-down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
@keyframes ink { from { opacity: .5; transform: scale(.4); } to { opacity: 0; transform: scale(3.4); } }

/* tipografía de apoyo */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.kicker span { width: 30px; height: 1.5px; background: currentColor; }

/* botones */
.btn { --mx: 0px; --my: 0px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 500 15px/1 var(--sans); text-decoration: none; overflow: hidden; isolation: isolate; transform: translate(var(--mx), var(--my)); transition: transform .4s var(--ease-out), color .35s, border-color .35s, box-shadow .35s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease-out); }
.btn:hover { border-color: var(--red); color: #fff; box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--red) 60%, transparent); }
.btn:hover::before { transform: none; }
.btn:active { transform: translate(var(--mx), var(--my)) scale(.97); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); border-color: var(--ink); box-shadow: none; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); transition: border-color .3s, transform .3s var(--ease-out); }
.icon-btn:hover { border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

/* ============ HEADER ============ */
.header { position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto; z-index: 50; transition: background .4s, border-color .4s, box-shadow .4s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: color-mix(in srgb, var(--bg) 74%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(20, 20, 20, .4); }
.header__row { height: var(--head); display: flex; align-items: center; gap: 28px; }
.wordmark { font: 400 21px/1 var(--display); letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.wordmark strong { font-weight: 700; }
.wordmark i { color: var(--red); font-style: normal; font-weight: 800; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { position: relative; padding: 6px 0; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.verified { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); font-size: 12.5px; color: var(--ink-2); text-decoration: none; transition: border-color .3s; }
.verified:hover { border-color: var(--line-2); }
.verified svg { width: 15px; height: 15px; fill: none; stroke: var(--red); stroke-width: 2; }
.menu-btn { display: none; }
#theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] #theme-toggle .i-sun { display: inline; }
:root[data-theme="dark"] #theme-toggle .i-moon { display: none; }
@media (max-width: 1080px) { .verified span { display: none; } }
@media (max-width: 920px) {
  .menu-btn { display: inline-grid; }
  .nav { position: fixed; inset: var(--head) 0 auto; flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .35s var(--ease); }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font: 500 22px/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
  .header__actions { margin-left: auto; }
}

/* ============ HERO ============ */
.h3 { position: relative; min-height: calc(100svh - var(--dock)); padding-top: var(--head); display: grid; overflow: hidden; isolation: isolate; }
.h3__bg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(42% 58% at 70% 46%, #ffffff 0 42%, rgba(255,255,255,0) 78%),
  radial-gradient(70% 80% at 100% 0%, #e7e7e4 0, transparent 60%),
  linear-gradient(180deg, #f7f7f5 0%, #ececea 100%); }
:root[data-theme="dark"] .h3__bg { background: radial-gradient(42% 58% at 70% 44%, #2a2a2d 0, transparent 75%), linear-gradient(180deg, #121214, #0d0d0e); }
.h3__ring { position: absolute; left: 70%; top: 46%; width: min(60vw, 780px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(17,17,17,.06); box-shadow: 0 0 0 70px rgba(255,255,255,.18), inset 0 0 0 110px rgba(17,17,17,.012); }
.h3__ring::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--red) 22%, transparent); border-left-color: transparent; border-bottom-color: transparent; animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.h3__sweep { position: absolute; inset: -20% -40%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.75) 50%, transparent 60%); transform: translateX(-60%); animation: sweep 9s var(--ease) 1.2s infinite; mix-blend-mode: soft-light; }
@keyframes sweep { 0% { transform: translateX(-60%); } 45%, 100% { transform: translateX(60%); } }
.h3__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 24px; }
.h3__grid > * { min-width: 0; }
.h3__copy { align-self: center; padding: 8px 0 28px; position: relative; z-index: 2; }
.h3__name { margin: 20px 0 16px; font: 700 clamp(56px, 8.2vw, 132px)/.88 var(--display); letter-spacing: -.06em; }
.h3__name .light { font-weight: 300; letter-spacing: -.05em; }
.h3__name i { font-style: normal; color: var(--red); }
.nowrap { white-space: nowrap; }
.h3__name .w { display: inline-block; opacity: 0; transform: translateY(.4em) rotate(2deg); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.h3__name .w.is-in { opacity: 1; transform: none; }
.h3__role { font: 600 clamp(18px, 1.6vw, 22px)/1.3 var(--display); letter-spacing: -.02em; }
.h3__role span { font-weight: 400; color: var(--ink-3); }
.h3__lead { margin-top: 12px; max-width: 480px; color: var(--ink-2); font-size: clamp(15.5px, 1.2vw, 17.5px); }
.hero__goals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 22px 0 28px; }
.hero__goals > span:first-child { font: italic 400 clamp(22px, 2.1vw, 30px)/1.1 var(--serif); color: var(--ink-2); }
/* la meta que rota: rojo pleno, grande, con un subrayado que se dibuja en cada cambio */
.rotator { position: relative; display: inline-grid; min-width: 12ch; font: italic 500 clamp(31px, 3.4vw, 52px)/1.06 var(--serif); letter-spacing: -.015em; color: var(--red-2); }
.rotator__item { grid-area: 1 / 1; justify-self: start; position: relative; white-space: nowrap; padding-bottom: 10px; opacity: 0; transform: translateY(.45em); filter: blur(6px); transition: opacity .55s var(--ease), transform .7s var(--ease-out), filter .55s var(--ease); }
.rotator__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--red-2), color-mix(in srgb, var(--red-2) 30%, transparent)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s; }
.rotator__item.is-on { opacity: 1; transform: none; filter: none; }
.rotator__item.is-on::after { transform: scaleX(1); transition: transform 1s var(--ease-out) .25s; }
.rotator__item.is-out { opacity: 0; transform: translateY(-.45em); filter: blur(6px); }
.h3__cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* el retrato ocupa todo el alto libre: nace bajo el menú y se apoya en la barra roja */
.h3__media { --px: 0; --py: 0; position: relative; margin: 0; height: calc(100svh - var(--head) - var(--dock)); min-height: 440px; max-height: 920px; align-self: end; display: grid; justify-items: center; align-items: end; }
.h3__portrait { position: relative; height: 100%; max-width: 100%; aspect-ratio: 720 / 928; mix-blend-mode: multiply; transform: translate3d(calc(var(--px) * 8px), calc(var(--py) * 6px), 0); transition: transform .9s var(--ease-out);
  -webkit-mask-image: radial-gradient(ellipse 66% 84% at 50% 36%, #000 60%, transparent 92%); mask-image: radial-gradient(ellipse 66% 84% at 50% 36%, #000 60%, transparent 92%); }
.h3__portrait img, .h3__portrait video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: brightness(1.05) contrast(1.03) saturate(1.04); }
.h3__portrait video { opacity: 0; transition: opacity .5s var(--ease); }
.h3__portrait.is-playing video { opacity: 1; }
:root[data-theme="dark"] .h3__portrait { mix-blend-mode: normal; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
:root[data-theme="dark"] .h3__ring { box-shadow: none; border-color: rgba(255,255,255,.06); }
@media (max-width: 920px) {
  .h3 { min-height: 0; }
  .h3__grid { grid-template-columns: 1fr; gap: 0; }
  .h3__media { order: -1; height: min(46svh, 420px); min-height: 0; }
  .h3__ring { left: 50%; top: 30%; width: 120vw; }
  .h3__bg { background: radial-gradient(60% 45% at 50% 30%, #fff 0 45%, transparent 80%), linear-gradient(180deg, #f7f7f5, #ececea); }
  .h3__copy { padding: 0 0 40px; }
  .h3__name { margin: 14px 0 12px; }
  .rotator__item { white-space: normal; }
  .rotator { min-width: 0; }
}

/* ============ SECCIONES (compactas) ============ */
.section { position: relative; padding-block: clamp(56px, 7vw, 92px); }
.head { display: grid; gap: 14px; margin-bottom: clamp(26px, 3.4vw, 44px); }
.head h2 { font-size: clamp(36px, 4.6vw, 64px); }
.head p:not(.eyebrow) { max-width: 420px; font-size: 16px; color: var(--ink-2); }
.head--split { grid-template-columns: 1fr auto; align-items: end; gap: 18px 40px; }
.head--split > div:first-child { display: grid; gap: 14px; }
@media (max-width: 820px) { .head--split { grid-template-columns: 1fr; } }
.legal-note { margin-top: 14px; max-width: 880px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============ METAS ============ */
.gx { display: grid; grid-template-columns: 1.5fr .5fr; gap: clamp(22px, 3.4vw, 52px); align-items: stretch; }
.gx__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 44px); border-top: 1px solid var(--line); }
.gx__list li { border-bottom: 1px solid var(--line); }
.goal { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 17px 0; background: none; border: 0; text-align: left; transition: padding .5s var(--ease-out); }
.gx__t { display: grid; gap: 5px; }
.gx__t strong { font: 500 clamp(19px, 1.75vw, 25px)/1.08 var(--display); letter-spacing: -.03em; transition: color .3s; }
.gx__t small { font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.gx__thumb { display: none; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.gx__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); opacity: 0; transform: translateX(-10px) rotate(-45deg); transition: .45s var(--ease-out); }
.goal:hover, .goal:focus-visible, .goal.is-hot { padding-left: 12px; }
.goal:hover .gx__go, .goal.is-hot .gx__go { opacity: 1; transform: none; border-color: var(--red); color: var(--red); }
.goal:hover .gx__t strong, .goal[aria-pressed="true"] .gx__t strong { color: var(--red); }
.goal[aria-pressed="true"] .gx__go { opacity: 1; transform: none; background: var(--red); border-color: var(--red); color: #fff; }
.gx__stage { position: relative; min-height: 300px; border-radius: 26px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.gx__stage::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), inset 0 -80px 60px -50px rgba(0,0,0,.35); pointer-events: none; }
.gx__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1s var(--ease-out), transform 1.5s var(--ease-out); }
.gx__img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.gx__img.is-leaving { z-index: 0; clip-path: inset(0); }
.gx__caption { position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 14px; font: italic 400 19px/1.2 var(--serif); color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
@media (max-width: 1040px) { .gx { grid-template-columns: 1fr; } .gx__stage { display: none; } }
@media (max-width: 640px) {
  .gx__list { grid-template-columns: 1fr; }
  .goal { grid-template-columns: 48px 1fr; padding: 11px 0; }
  .gx__go { display: none; }
  .gx__thumb { display: block; }
  .gx__t small { display: none; }
  .goal:hover, .goal.is-hot { padding-left: 0; }
}

/* ============ SIMULADORES ============ */
#herramientas { background: radial-gradient(60% 60% at 50% 0%, #ffffff, transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg)); }
:root[data-theme="dark"] #herramientas { background: var(--bg-2); }
.tabs { position: relative; display: flex; gap: 4px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 5px; border-radius: 999px; background: var(--metal); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--edge), var(--shadow-soft); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; z-index: 1; padding: 11px 20px; border: 0; border-radius: 999px; background: none; white-space: nowrap; font-size: 14px; color: var(--ink-2); transition: color .3s; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs__ink { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: #111; transition: transform .55s var(--ease-out), width .55s var(--ease-out), background .4s; }
:root[data-theme="dark"] .tabs__ink { background: #3a3a40; }
.tabs.is-gold .tabs__ink { background: var(--gold); }
.tool { display: grid; grid-template-columns: .92fr 1.08fr; gap: 16px; animation: fadeUp .7s var(--ease-out); }
.tool[hidden] { display: none; }
.tool > .legal-note { grid-column: 1 / -1; margin-top: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.tool__controls, .tool__result { display: grid; gap: 18px; align-content: start; padding: clamp(18px, 2.2vw, 28px); border-radius: 24px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--edge), var(--shadow-soft); }
.tool__result { align-content: space-between; }
.tool__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool__context { font-size: 14px; color: var(--ink-2); }
.tool__context strong { margin-left: 4px; font: italic 500 22px/1 var(--serif); color: var(--ink); }
.tool__bank { font-size: 14.5px; color: var(--ink-2); }
.tool__bank strong { color: var(--ink); }
.hint { margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.tag { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); vertical-align: middle; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.seg legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: 13px; color: var(--ink-2); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; }
.seg label span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; transition: .3s var(--ease); }
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.seg--small label span { padding: 8px 14px; font-size: 13px; }
.stepper__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.stepper__head label { font-size: 13px; color: var(--ink-2); }
.stepper__head output { font: 300 30px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stepper__row { display: grid; grid-template-columns: 42px 1fr 42px; gap: 12px; align-items: center; }
.stepper__row button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--edge); background: var(--metal); box-shadow: inset 0 1px 0 var(--edge), 0 6px 14px -8px rgba(0,0,0,.35); font-size: 20px; line-height: 1; transition: transform .2s, color .2s; }
.stepper__row button:hover { color: var(--red); }
.stepper__row button:active { transform: scale(.92); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: none; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent, var(--red)) var(--p), var(--line-2) var(--p)); }
input[type="range"]::-moz-range-track { height: 3px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--accent, var(--red)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10.5px; border-radius: 50%; background: var(--metal); border: 1px solid var(--edge); box-shadow: 0 0 0 4px var(--accent, var(--red)), 0 8px 18px -6px rgba(0,0,0,.4); transition: transform .2s; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--accent, var(--red)); }
.tool--gold { --accent: var(--gold); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border-radius: 16px; background: var(--line); border: 1px solid var(--line); }
.kpis > div { display: grid; gap: 6px; padding: 14px 18px; background: var(--panel); }
.kpis small { font-size: 12px; color: var(--ink-3); }
.kpis strong { font: 300 clamp(26px, 2.8vw, 40px)/1 var(--display); letter-spacing: -.05em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi--accent strong { color: var(--red); font-weight: 400; }
.kpi--gold strong { color: var(--gold); font-weight: 400; }
.chart { display: grid; gap: 8px; }
.chart svg { width: 100%; height: clamp(120px, 13vw, 160px); overflow: visible; }
.chart__grid path { fill: none; stroke: var(--line); vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart__bank { fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.chart__dot { fill: var(--panel); stroke: var(--red); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--ink-3); }
.chart__legend span:last-child { margin-left: auto; color: var(--ink-2); }
.chart__legend i { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; }
.lg-red { background: var(--red); }
.lg-gray { background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 7px); }
.xray { display: grid; gap: 12px; }
.xray__side { display: grid; gap: 5px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.xray__side small { font-size: 12px; color: var(--ink-3); }
.xray__side strong { font: 300 clamp(28px, 3vw, 40px)/1 var(--display); letter-spacing: -.05em; }
.xray__side span { font-size: 13.5px; color: var(--ink-2); }
.xray__bank strong { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.xray__plan { border-color: color-mix(in srgb, var(--red) 40%, transparent); background: color-mix(in srgb, var(--red) 5%, var(--panel)); }
.xray__plan strong { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; color: var(--red); }
.bar { height: 5px; margin-top: 6px; overflow: hidden; border-radius: 6px; background: var(--line); }
.bar__fill { display: block; height: 100%; width: var(--w); transform-origin: left; animation: grow 1.4s var(--ease-out); }
.bar__fill--lost { background: repeating-linear-gradient(135deg, var(--ink-3) 0 6px, transparent 6px 10px); }
.bar__fill--back { background: var(--red); }
@keyframes grow { from { transform: scaleX(0); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); text-align: left; text-decoration: none; font-size: 14px; line-height: 1.25; transition: border-color .3s, background .3s, color .3s, transform .3s var(--ease-out); }
.chip:hover { border-color: var(--accent, var(--red)); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip--main { background: var(--accent, var(--red)); border-color: var(--accent, var(--red)); color: #fff; }
.scenario-copy { padding-left: 14px; border-left: 2px solid var(--gold); font: italic 400 19px/1.35 var(--serif); color: var(--ink-2); }
.globe { position: relative; display: grid; place-items: center; }
.globe svg { width: min(100%, 190px); height: auto; overflow: visible; }
.globe__edge { stroke: color-mix(in srgb, var(--gold) 45%, transparent); stroke-width: 1; }
#globe-lines path { fill: none; stroke: color-mix(in srgb, var(--gold) 35%, transparent); stroke-width: .8; }
#globe-points circle { fill: var(--gold); }
.globe__tags { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.globe__tags li { position: absolute; }
.globe__tags li:nth-child(1) { left: 10%; top: 20%; } .globe__tags li:nth-child(2) { right: 10%; top: 12%; }
.globe__tags li:nth-child(3) { right: 6%; bottom: 28%; } .globe__tags li:nth-child(4) { left: 12%; bottom: 10%; }
@media (max-width: 920px) { .tool { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .kpis { grid-template-columns: 1fr; } .tabs { width: 100%; } .tabs button { flex: 1; padding-inline: 10px; } }

/* ============ CLAUDIA ============ */
.about3 { position: relative; display: grid; align-items: center; padding-block: clamp(30px, 3.8vw, 50px); overflow: hidden; isolation: isolate; }
.about3__photo { position: absolute; inset: 0; z-index: -1; }
.about3__photo img { width: 100%; height: 114%; object-fit: cover; object-position: 70% 22%; }
.about3__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 32%, transparent 62%); }
.about3__card { max-width: 520px; display: grid; gap: 12px; padding: clamp(20px, 2.4vw, 30px); border-radius: 26px; background: var(--glass); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); border: 1px solid var(--edge); box-shadow: var(--shadow); }
.about3__card h2 { font-size: clamp(34px, 3.8vw, 52px); }
.about3__card > p:not(.eyebrow) { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.about3__lead { font: italic 400 clamp(20px, 1.8vw, 24px)/1.25 var(--serif) !important; color: var(--ink) !important; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 2px 0 0; padding: 10px 0; list-style: none; border-block: 1px solid var(--line); }
.creds li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.creds svg { flex: none; width: 19px; height: 19px; margin-top: 2px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.creds span { display: grid; gap: 1px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.creds b { font: 600 14.5px/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
.signature { width: min(100%, 210px); height: auto; margin-top: -2px; overflow: visible; }
.signature text { font: 64px var(--script); fill: transparent; stroke: var(--red); stroke-width: .9; stroke-dasharray: 900; stroke-dashoffset: 900; }
.signature.is-in text { animation: sign 3.2s var(--ease) forwards; }
@keyframes sign { 70% { fill: transparent; } to { stroke-dashoffset: 0; fill: var(--red); } }
@media (max-width: 920px) {
  .about3 { padding: 0 0 40px; display: block; }
  .about3__photo { position: relative; height: 38svh; }
  .about3__photo img { height: 100%; }
  .about3__photo::after { background: linear-gradient(0deg, var(--bg), transparent 45%); }
  .about3__card { margin-top: -70px; }
}
@media (max-width: 420px) { .creds { grid-template-columns: 1fr; gap: 10px; } }

/* ============ CIERRE ============ */
.closing { position: relative; padding: clamp(60px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); overflow: hidden; text-align: center; background: radial-gradient(50% 70% at 50% 100%, #ffffff, transparent 70%), linear-gradient(180deg, var(--bg), var(--bg-2)); }
:root[data-theme="dark"] .closing { background: var(--bg-2); }
.closing::before { content: ""; position: absolute; left: 50%; bottom: -64vw; width: 120vw; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 80px rgba(255,255,255,.22), 0 0 0 160px rgba(255,255,255,.12); pointer-events: none; }
:root[data-theme="dark"] .closing::before { box-shadow: none; }
.closing__inner { position: relative; display: grid; justify-items: center; gap: 24px; }
.closing h2 { max-width: 900px; font-size: clamp(34px, 4.8vw, 70px); }
.closing .h3__cta { justify-content: center; }

/* ============ FOOTER ============ */
.footer { position: relative; z-index: 1; margin-top: -30px; padding: clamp(40px, 5vw, 64px) 0 calc(var(--dock) + var(--safe-b) + 34px); border-radius: 30px 30px 0 0; background: #151517; color: #f2f2f0; box-shadow: 0 -24px 60px -34px rgba(0, 0, 0, .55); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 40px; padding-bottom: clamp(24px, 3vw, 36px); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer .footer__mark { font: 300 clamp(40px, 6vw, 84px)/.9 var(--display); letter-spacing: -.055em; color: #fff; text-decoration: none; }
.footer__mark strong { font-weight: 700; }
.footer__mark i { font-style: normal; color: var(--red-2); }
.footer__tag { font-size: 15px; line-height: 1.5; color: #c9c9c4; }
.footer__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 32px; padding-block: clamp(24px, 3vw, 36px); }
.footer__grid > div { display: grid; align-content: start; justify-items: start; gap: 9px; min-width: 0; }
.footer h3 { margin-bottom: 4px; font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #a3a39d; }
.footer a, .footer .linklike, .footer__grid p { font-size: 15px; line-height: 1.45; color: #ecece8; text-decoration: none; overflow-wrap: anywhere; }
.footer__grid a, .footer .linklike { background-image: linear-gradient(var(--red-2), var(--red-2)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .4s var(--ease), color .3s; }
.footer__grid a:hover, .footer .linklike:hover { background-size: 100% 1px; color: #fff; }
.footer__bottom { display: grid; justify-items: start; gap: 10px; padding-top: 20px; padding-right: 130px; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer__bottom p { max-width: 720px; font-size: 13px; line-height: 1.55; color: #b4b4ae; }
.footer .footer__admin { font-size: 13px; color: #d6d6d1; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.footer .footer__admin:hover { color: #fff; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > div:first-child { grid-column: 1 / -1; } .footer__bottom { padding-right: 0; padding-bottom: 46px; } }

/* ============ BARRA RIMAC ============ */
.rimac-dock { position: fixed; inset: auto 0 0; z-index: 45; height: calc(var(--dock) + var(--safe-b)); color: #fff; transform: translateY(100%); animation: dockIn .9s .6s var(--ease-out) forwards; }
@keyframes dockIn { to { transform: none; } }
.rimac-dock__bg { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #e20714 0%, #cc000e 100%); box-shadow: 0 -14px 40px -16px rgba(120, 0, 10, .5), inset 0 1px 0 rgba(255, 255, 255, .3); }
.rimac-dock__row { position: relative; z-index: 2; height: var(--dock); display: flex; align-items: center; gap: 14px; }
.rimac-dock__id { display: flex; align-items: center; gap: 16px; min-width: 0; margin-right: auto; }
.rimac-word { font: italic 800 28px/1 var(--display); letter-spacing: .01em; }
.rimac-dock__who { display: grid; gap: 3px; min-width: 0; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.35); line-height: 1.15; white-space: nowrap; }
.rimac-dock__who strong { font: 600 15px/1.1 var(--display); letter-spacing: -.01em; }
.rimac-dock__who small, .rimac-dock__who .m { font-size: 12px; color: rgba(255,255,255,.88); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.rimac-dock__who .m { display: none; }
/* el correo ocupa el extremo derecho de la barra, justo debajo del robot */
.rimac-dock__mail { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; width: var(--mailw); min-height: 38px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.14); color: #fff; font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .3s, border-color .3s; }
.rimac-dock__mail:hover { background: rgba(255,255,255,.26); border-color: rgba(255,255,255,.5); }
.rimac-dock__mail svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.rimac-dock__seat { display: none; flex: none; width: 66px; }
@media (max-width: 700px) {
  :root { --dock: 58px; }
  .rimac-word { font-size: 19px; }
  .rimac-dock__id { gap: 10px; }
  .rimac-dock__who { padding-left: 10px; }
  .rimac-dock__who strong { font-size: 13px; }
  .rimac-dock__who .role { display: none; }
  .rimac-dock__who .m { display: block; font-size: 11px; }
  .rimac-dock__mail { display: none; }
  .rimac-dock__seat { display: block; }
}

/* ============ MISS ROSSI · asomada tras la barra ============ */
.bot { position: absolute; z-index: 0; right: calc(var(--edge-x) + (var(--mailw) - 96px) / 2); bottom: calc(var(--dock) + var(--safe-b) - 36px); width: 96px; padding: 0; border: 0; background: none; transform: translateY(112%); transition: transform .85s cubic-bezier(.3, 1.45, .5, 1) .18s; -webkit-tap-highlight-color: transparent; }
.bot.is-up { transform: translateY(0); }
.bot.is-up:hover, .bot.is-up:focus-visible { transform: translateY(-9px); transition-delay: 0s; }
.bot[aria-expanded="true"] { transform: translateY(112%); transition-delay: 0s; }
.bot:focus-visible { outline: none; }
.bot:focus-visible .bot__body { outline: 2px solid #fff; outline-offset: 2px; border-radius: 30px; }
.bot__body { display: block; }
.bot__hands { position: absolute; z-index: 3; right: calc(var(--edge-x) + (var(--mailw) - 96px) / 2); bottom: calc(var(--dock) + var(--safe-b) - 10px); width: 96px; height: 18px; pointer-events: none; }
.bot__hands i { position: absolute; bottom: 0; width: 21px; height: 17px; border-radius: 11px 11px 9px 9px; background: var(--pearl); box-shadow: inset 0 -3px 4px rgba(70, 40, 70, .16), inset 0 0 0 1px rgba(40, 30, 45, .1), 0 3px 6px rgba(60, 0, 10, .4); opacity: 0; transform: translateY(120%) scale(.6); transition: transform .45s var(--ease-out) .5s, opacity .2s .5s; }
.bot__hands i:first-child { left: 9px; } .bot__hands i:last-child { right: 9px; }
.bot.is-up ~ .bot__hands i { opacity: 1; transform: none; transition-delay: 0s; }
.bot[aria-expanded="true"] ~ .bot__hands i { opacity: 0; transform: translateY(120%) scale(.6); transition-delay: .25s; }
.bot.is-waving ~ .bot__hands i:last-child { animation: botWave 1.9s var(--ease) .9s; }
@keyframes botWave { 0%, 100% { transform: none; } 14% { transform: translate(8px, -40px) rotate(-14deg); } 28% { transform: translate(10px, -42px) rotate(18deg); } 42% { transform: translate(8px, -40px) rotate(-14deg); } 56% { transform: translate(10px, -42px) rotate(18deg); } 72% { transform: translate(8px, -38px) rotate(0); } }
.bot__bubble { position: absolute; right: calc(100% + 4px); bottom: 54px; width: max-content; max-width: min(250px, calc(100vw - 150px)); padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--edge); box-shadow: var(--shadow-soft); color: var(--ink); font: 400 13.5px/1.4 var(--sans); text-align: left; opacity: 0; transform: translateX(8px) scale(.94); transform-origin: 100% 100%; transition: opacity .4s, transform .5s var(--ease-out); pointer-events: none; }
.bot.is-talking .bot__bubble, .bot.is-up:hover .bot__bubble, .bot.is-up:focus-visible .bot__bubble { opacity: 1; transform: none; }
.bot[aria-expanded="true"] .bot__bubble { opacity: 0; }
@media (max-width: 700px) {
  .bot { right: var(--edge-x); width: 68px; bottom: calc(var(--dock) + var(--safe-b) - 26px); }
  .bot__hands { right: var(--edge-x); width: 68px; bottom: calc(var(--dock) + var(--safe-b) - 8px); }
  .bot__hands i { width: 16px; height: 13px; }
  .bot__hands i:first-child { left: 5px; } .bot__hands i:last-child { right: 5px; }
  .bot__bubble { bottom: 40px; }
}

/* ============ MISS ROSSI · CHAT ============ */
.rossi { position: fixed; right: var(--edge-x); bottom: calc(var(--dock) + var(--safe-b) + 12px); z-index: 70; width: min(400px, calc(100vw - 24px)); height: min(580px, calc(100svh - var(--dock) - var(--head) - 28px)); display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden; border-radius: 26px; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--edge); box-shadow: 0 50px 100px -30px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.06); transform-origin: bottom right; animation: chatIn .55s var(--ease-out); }
.rossi[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.rossi__head { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px; border-bottom: 1px solid var(--line); background: var(--metal); }
.rossi__avatar { flex: none; width: 50px; }
.rossi__avatar .bot-svg { filter: drop-shadow(0 4px 6px rgba(40, 20, 40, .22)); }
.rossi__head div { flex: 1; min-width: 0; display: grid; gap: 3px; line-height: 1.2; }
.rossi__head strong { font: 600 19px/1 var(--display); letter-spacing: -.03em; }
.rossi__head small { font-size: 11.5px; color: var(--ink-3); }
.rossi__head .icon-btn { width: 34px; height: 34px; font-size: 17px; }
.rossi__progress { position: absolute; inset: auto 0 -1px; height: 2px; background: transparent; }
.rossi__progress i { display: block; height: 100%; width: 0; background: var(--red); transition: width .6s var(--ease-out); }
.rossi__log { display: flex; flex-direction: column; gap: 9px; padding: 16px 14px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; animation: fadeUp .4s var(--ease-out); }
.msg--bot { align-self: flex-start; background: var(--bg-2); border-bottom-left-radius: 5px; }
.msg--me { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 5px; }
.msg--typing { display: inline-flex; gap: 4px; padding-block: 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .2s; } .msg--typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.msg a { color: inherit; }
.msg--summary { display: grid; gap: 8px; width: 100%; max-width: 100%; background: var(--panel); border: 1px solid var(--line); }
.msg--summary dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.msg--summary dt { color: var(--ink-3); } .msg--summary dd { margin: 0; }
.profile-badge { display: inline-flex; align-items: center; gap: 8px; font: 600 20px/1.1 var(--display); letter-spacing: -.03em; }
.prio { padding: 5px 8px; border-radius: 99px; background: var(--gold); color: #fff; font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.rossi__input { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 12px 14px; border-top: 1px solid var(--line); max-height: min(330px, 56svh); overflow-y: auto; }
.rossi__input:empty { display: none; }
.rossi__input .chip { padding: 9px 14px; font-size: 13.5px; animation: fadeUp .4s var(--ease-out) backwards; }
.rossi__input .chip:nth-child(2) { animation-delay: .04s; } .rossi__input .chip:nth-child(3) { animation-delay: .08s; } .rossi__input .chip:nth-child(4) { animation-delay: .12s; }
.rossi__input .chip:nth-child(n+5) { animation-delay: .16s; }
.rossi__input .btn { min-height: 46px; padding: 0 18px; }
.rossi__input .err { width: 100%; margin: 0; font-size: 12.5px; color: var(--red); }
.rossi__input .err:empty { display: none; }
.field { display: grid; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.field input, .dist input { width: 100%; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: 16px var(--sans); cursor: text; transition: border-color .3s, box-shadow .3s; }
.field input:focus, .dist input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 12%, transparent); }
.rossi-form { display: grid; gap: 10px; width: 100%; }
.rossi-form .btn { width: 100%; }
.field-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; }
.consent { display: grid; gap: 8px; width: 100%; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.consent label { display: flex; gap: 9px; align-items: flex-start; }
.consent input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.consent a { color: var(--ink); }
.dist { display: grid; gap: 9px; width: 100%; }
.dist__list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 122px; overflow-y: auto; }
.dist__list .chip { padding: 8px 12px; font-size: 13px; }
.rossi__foot { padding: 8px 14px 10px; border-top: 1px solid var(--line); text-align: center; font-size: 11.5px; color: var(--ink-3); }
.call-card { display: grid; gap: 2px; }
.call-card b { font: 500 22px/1.1 var(--display); letter-spacing: -.02em; user-select: all; }
@media (max-width: 520px) {
  .rossi { right: 0; bottom: 0; width: 100vw; height: 100svh; border-radius: 0; border: 0; z-index: 80; padding-bottom: var(--safe-b); }
}

/* ============ PANELES (agenda) ============ */
.sheet { width: min(620px, calc(100vw - 24px)); max-height: calc(100svh - 32px); padding: clamp(22px, 3.4vw, 40px); overflow-y: auto; border-radius: 28px; border: 1px solid var(--edge); background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.sheet::backdrop { background: rgba(240, 240, 238, .6); backdrop-filter: blur(10px); }
:root[data-theme="dark"] .sheet::backdrop { background: rgba(5,5,6,.6); }
.sheet[open] { animation: sheetIn .55s var(--ease-out); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet__close { position: absolute; top: 16px; right: 16px; font-size: 22px; }
.sheet h2 { margin: 12px 0 10px; padding-right: 40px; font-size: clamp(32px, 4.2vw, 48px); }
.sheet .btn { width: 100%; margin-top: 8px; }
.agenda__days, .agenda__slots { display: flex; gap: 8px; margin-top: 14px; padding: 4px 0 8px; overflow-x: auto; scrollbar-width: none; }
.agenda__days button, .agenda__slots button { flex: none; display: grid; gap: 2px; padding: 11px 15px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); text-align: center; font-size: 13px; transition: .25s; }
.agenda__days button:hover, .agenda__slots button:hover { border-color: var(--red); }
.agenda__days button b { font: 300 26px/1 var(--display); letter-spacing: -.04em; }
.agenda__days button[aria-pressed="true"], .agenda__slots button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.agenda__mode { margin: 12px 0 18px; }

/* cookies */
.cookies { position: fixed; left: max(20px, env(safe-area-inset-left, 0px)); bottom: calc(var(--dock) + var(--safe-b) + 14px); z-index: 65; width: min(440px, calc(100vw - 150px)); display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(20px); border: 1px solid var(--edge); box-shadow: var(--shadow); font-size: 13.5px; color: var(--ink-2); animation: fadeUp .6s var(--ease-out); }
.cookies[hidden], .cookies__prefs[hidden] { display: none; }
.cookies a { color: var(--ink); }
.cookies__prefs { display: grid; gap: 8px; }
.cookies__prefs label { display: flex; gap: 10px; align-items: center; }
.cookies__prefs input { width: 17px; height: 17px; accent-color: var(--red); }
.cookies__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 620px) { .cookies { left: 12px; right: 12px; width: auto; bottom: calc(var(--dock) + var(--safe-b) + 44px); } }

/* página legal */
.legal { padding-block: calc(var(--head) + 48px) calc(var(--dock) + 80px); max-width: 820px; }
.legal h1 { font-size: clamp(40px, 5.4vw, 64px); margin: 18px 0 12px; }
.legal h2 { font-size: 30px; margin: 52px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal h3 { font: 600 15px/1.4 var(--sans); letter-spacing: 0; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal .draft { margin-top: 18px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--red) 50%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--red) 7%, transparent); font-size: 14px; }
.legal nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.legal nav a { text-decoration: none; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; }
.legal .back { color: var(--ink-2); text-decoration: none; font-size: 14px; }

/* movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, .h3__name .w { opacity: 1 !important; transform: none !important; }
  .rimac-dock { transform: none; }
}
