/* ==========================================================================
   Auspy: landing orgánica inspirada en las páginas de Apple.
   La paleta cambia según el perfil: blanco para empresas, azul para sponsors.
   Las tarjetas (.surface) siempre son blancas y recuperan la paleta clara.
   ========================================================================== */
:root {
  /* Perfil empresa (y paleta por defecto): predomina el blanco */
  --bg: #ffffff;
  --ink: #231f20;
  --ink-soft: #6e6e73;
  --ink-faint: #86868b;
  --tile: #f5f5f7;
  --tile-hover: #ececf1;
  --band: #f5f5f7;
  --line: #e5e5ea;
  --line-strong: #d2d2d7;
  --accent: #2a47f6;
  --accent-hover: #1f3ad8;
  --on-accent: #ffffff;
  --accent-soft: #eef1fe;
  --hl: #2a47f6;
  --eyebrow: #2a47f6;
  --logo-color: #2a47f6;
  --focus: rgba(42, 71, 246, .45);
  --nav-bg: rgba(255, 255, 255, .78);
  --nav-line: rgba(0, 0, 0, .08);
  --blob-1: #e2e7fe;
  --blob-2: #ece6ff;
  --blob-3: #dcf0ff;
  --hero-blob: #f0f3ff;
  --bubble-bg: #2a47f6;
  --bubble-fg: #ffffff;
  --bubble-alt: #ffffff;
  --bubble-alt-fg: #2a47f6;
  --bubble-alt-ring: #dfe3f7;
  --step-bubble: #ffffff;
  --round-bg: #ffffff;
  --round-fg: #231f20;
  --footer-bg: #f5f5f7;
  --pair-a: #f5f5f7;
  --pair-a-fg: #231f20;
  --pair-b: #eef1fe;
  --pair-b-fg: #2a47f6;

  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: var(--ease-out);
  --nav-h: 56px;
  --radius-xl: 32px;
  --radius-l: 24px;
  --shadow-soft: 0 30px 60px -32px rgba(16, 24, 64, .28), 0 2px 6px rgba(16, 24, 64, .05);
  --organic-1: 44% 56% 62% 38% / 48% 42% 58% 52%;
  --organic-2: 58% 42% 45% 55% / 45% 55% 45% 55%;
  --theme-fade: 600ms ease;
  color-scheme: light;
}

/* Perfil sponsor: predomina el azul de la marca */
:root[data-role="sponsor"] {
  --bg: #2a47f6;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, .84);
  --ink-faint: rgba(255, 255, 255, .66);
  --tile: rgba(255, 255, 255, .1);
  --tile-hover: rgba(255, 255, 255, .17);
  --band: #2340e2;
  --line: rgba(255, 255, 255, .18);
  --line-strong: rgba(255, 255, 255, .3);
  --accent: #ffffff;
  --accent-hover: #e8eeff;
  --on-accent: #2a47f6;
  --accent-soft: rgba(255, 255, 255, .16);
  --hl: #c9d3fd;
  --eyebrow: #c9d3fd;
  --logo-color: #ffffff;
  --focus: rgba(255, 255, 255, .75);
  --nav-bg: rgba(42, 71, 246, .82);
  --nav-line: rgba(255, 255, 255, .14);
  --blob-1: #4a66ff;
  --blob-2: #1d37cf;
  --blob-3: #6f88ff;
  --hero-blob: rgba(255, 255, 255, .1);
  --bubble-bg: #ffffff;
  --bubble-fg: #2a47f6;
  --bubble-alt: rgba(255, 255, 255, .12);
  --bubble-alt-fg: #ffffff;
  --bubble-alt-ring: rgba(255, 255, 255, .35);
  --step-bubble: rgba(255, 255, 255, .14);
  --round-bg: rgba(255, 255, 255, .14);
  --round-fg: #ffffff;
  --footer-bg: #1d37cf;
  --pair-a: rgba(255, 255, 255, .12);
  --pair-a-fg: #ffffff;
  --pair-b: #ffffff;
  --pair-b-fg: #2a47f6;
}

/* Tarjetas blancas: en cualquier perfil vuelven a la paleta clara */
.surface {
  --ink: #231f20;
  --ink-soft: #6e6e73;
  --ink-faint: #86868b;
  --tile: #f5f5f7;
  --tile-hover: #ececf1;
  --line: #e5e5ea;
  --line-strong: #d2d2d7;
  --accent: #2a47f6;
  --accent-hover: #1f3ad8;
  --on-accent: #ffffff;
  --accent-soft: #eef1fe;
  --hl: #2a47f6;
  --focus: rgba(42, 71, 246, .45);
  --bubble-bg: #2a47f6;
  --bubble-fg: #ffffff;
  --bubble-alt: #ffffff;
  --bubble-alt-fg: #2a47f6;
  --bubble-alt-ring: #dfe3f7;
  background: #ffffff;
  color: var(--ink);
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --ease-spring: linear(0, 0.06 2.4%, 0.23 5.5%, 0.52 10.8%, 0.78 17%, 0.93 23.5%,
      1.01 31%, 1.03 38%, 1.02 47%, 1.005 60%, 1);
  }
}

* { box-sizing: border-box; }
/* El fondo del html sigue al perfil: el rebote del scroll en el teléfono no muestra otro color */
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; background: var(--bg); transition: background-color var(--theme-fade); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color var(--theme-fade), color var(--theme-fade);
}
.intro-open, .intro-open body { overflow: hidden; }
[hidden] { display: none !important; }
button, a, .chip span, .switch { touch-action: manipulation; }
button, .btn, .chip span, .switch { user-select: none; -webkit-user-select: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0 0 .45em; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; }
h1:focus { outline: none; }
p { text-wrap: pretty; }
.container { width: min(1080px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Contenido según el perfil ===== */
:root[data-role="sponsor"] .only-empresa,
:root:not([data-role="sponsor"]) .only-sponsor { display: none !important; }

/* ===== Botones y enlaces ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--small { min-height: 34px; padding: 6px 16px; font-size: .88rem; white-space: nowrap; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.more {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none;
  color: var(--accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.more > [aria-hidden] { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-hover); }
  .more:hover { text-decoration: underline; text-underline-offset: 3px; }
  .more:hover > [aria-hidden] { transform: translateX(3px); }
}

.eyebrow { margin: 0 0 12px; color: var(--eyebrow); font-weight: 700; font-size: 1.1rem; }
.lead { margin: 0 auto; max-width: 36em; color: var(--ink-soft); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; }

.bubble {
  display: grid; place-items: center; width: 56px; height: 56px; flex: none; font-size: 28px;
  border-radius: 50%; background: var(--bubble-bg); color: var(--bubble-fg);
  transition: transform 500ms var(--ease-spring), background-color var(--theme-fade);
}
.bubble--alt { background: var(--bubble-alt); color: var(--bubble-alt-fg); box-shadow: inset 0 0 0 1.5px var(--bubble-alt-ring); }
.bubble--sm { width: 36px; height: 36px; font-size: 18px; }
.bubble .i { stroke-width: 1.9; }
.bubble--xl { width: 84px; height: 84px; font-size: 40px; }

/* ===== Manchas orgánicas ===== */
.blobs {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  /* Se disuelven hacia abajo: sin bordes rectos al final de la sección */
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.blob {
  position: absolute; width: 520px; height: 520px; opacity: .75; filter: blur(60px);
  border-radius: var(--organic-1);
  transition: background-color var(--theme-fade);
  animation: morph 16s ease-in-out infinite alternate, drift 24s ease-in-out infinite alternate;
}
.blob--1 { left: -160px; top: -140px; background: var(--blob-1); }
.blob--2 { right: -180px; top: 30%; background: var(--blob-2); animation-delay: -6s, -10s; }
.blob--3 { left: 30%; bottom: -260px; background: var(--blob-3); animation-delay: -12s, -4s; }

/* ===== Bienvenida (pantalla completa al abrir la web, estilo app) ===== */
.intro {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; gap: 20px;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) calc(env(safe-area-inset-right, 0px) + 20px) calc(env(safe-area-inset-bottom, 0px) + 20px) calc(env(safe-area-inset-left, 0px) + 20px);
  background: #fff; color: #231f20; overflow-y: auto; overscroll-behavior: contain;
  transition: opacity 400ms ease;
}
:root:not(.js) .intro { display: none; }
.intro:focus { outline: none; }
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro__head { flex: none; text-align: center; animation: rise-in 800ms var(--ease-out) both; transition: opacity 250ms ease; }
.intro__logo { display: block; height: 52px; width: auto; aspect-ratio: 814 / 302; margin: 0 auto; color: #2a47f6; }
.tagline { margin: 10px 0 0; color: var(--ink-soft); }
.tagline em { color: var(--accent); font-weight: 400; }
.intro .tagline { color: #2a47f6; font-size: 1.05rem; }
.intro .tagline em { color: #2a47f6; }
.intro__head h1 { margin: 14px 0 6px; font-size: clamp(1.8rem, 4vw, 3rem); }
.intro__head p { margin: 0; color: #6e6e73; font-size: 1.05rem; }
.intro__choices { flex: 1; min-height: 0; display: flex; gap: 14px; width: min(1180px, 100%); margin-inline: auto; }
.intro__side {
  position: relative; isolation: isolate; overflow: hidden; flex: 1 1 0; min-width: 0; min-height: 260px;
  display: grid; place-items: center; padding: 40px 28px; border: 0; border-radius: 44px;
  font: inherit; text-align: center; cursor: pointer;
  animation: rise-in 900ms var(--ease-out) both;
  transition: flex-grow 600ms var(--ease-spring), transform 300ms var(--ease-out), opacity 250ms ease;
}
.intro__side--sponsor { animation-delay: 90ms; }
.intro__side:active { transform: scale(.985); }
.intro__side:focus-visible { outline: 3px solid #2a47f6; outline-offset: 4px; }
.intro__side--empresa {
  --ink: #231f20; --ink-soft: #6e6e73; --bubble-bg: #2a47f6; --bubble-fg: #fff;
  --blob-1: #e2e7fe; --blob-3: #ece6ff;
  background: #f5f5f7; color: var(--ink);
}
.intro__side--sponsor {
  --ink: #fff; --ink-soft: rgba(255, 255, 255, .84); --bubble-alt: #fff; --bubble-alt-fg: #2a47f6; --bubble-alt-ring: transparent;
  --blob-1: #4a66ff; --blob-3: #1d37cf;
  background: #2a47f6; color: var(--ink);
}
.intro__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.intro__bg .blob { width: 380px; height: 380px; filter: blur(46px); }
.intro__bg .blob--1 { left: -120px; top: -100px; }
.intro__bg .blob--3 { left: auto; right: -120px; bottom: -140px; }
.intro__content { display: grid; justify-items: center; gap: 12px; max-width: 320px; transition: opacity 200ms ease; }
.intro__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.025em; line-height: 1.1; }
.intro__text { color: var(--ink-soft); font-size: 1.08rem; }
.intro__content .bubble { margin-bottom: 6px; }
.intro__go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--intro-go-fg, #fff); font-weight: 700; font-size: .95rem;
}
.intro__side--sponsor .intro__go { --intro-go-fg: #2a47f6; }
.intro__go .i { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .intro:not(.is-choosing) .intro__side:hover { flex-grow: 1.3; }
  .intro__side:hover .bubble { transform: scale(1.08) rotate(-6deg); }
  .intro__side:hover .intro__go .i { transform: translateX(4px); }
}
.intro.is-choosing .intro__head, .intro.is-choosing .intro__content { opacity: 0; }

/* Capa que crece desde el panel elegido hasta cubrir la pantalla (clip-path: solo composición) */
.flood { position: fixed; inset: 0; z-index: 95; pointer-events: none; transition: opacity 400ms ease; }
.flood.is-leaving { opacity: 0; }

/* ===== Navegación ===== */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--nav-bg); color: var(--ink);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--nav-line);
  transition: background-color var(--theme-fade), color var(--theme-fade);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; color: var(--logo-color); text-decoration: none; transition: color var(--theme-fade); }
.logo__word { display: block; height: 28px; width: auto; aspect-ratio: 814 / 302; }
.logo__mark { display: block; width: 1.55em; height: 1.55em; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: .88rem; color: var(--ink-soft); transition: color 200ms ease; }
.nav__links a[aria-current="true"], .nav__links a:hover { color: var(--ink); }
.role-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px;
  border: 0; border-radius: 999px; background: var(--tile); color: var(--ink);
  font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; transition: background-color 200ms ease;
}
.role-chip .i { font-size: 1rem; color: var(--accent); }
.role-chip__hint { color: var(--ink-faint); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .role-chip:hover { background: var(--tile-hover); } }

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 28px 0 80px; text-align: center; }
.hero h1 { margin-bottom: 18px; }
.hl { position: relative; color: var(--hl); white-space: nowrap; transition: color var(--theme-fade); }
.scribble { position: absolute; left: 0; bottom: -.08em; width: 100%; height: .26em; overflow: visible; }
.scribble path { fill: none; stroke: var(--hl); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s .5s var(--ease-out) forwards; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 32px; }

/* ===== Cómo funciona: ventana emergente breve (hoja inferior en el teléfono) ===== */
.howto {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(16, 24, 64, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: fade 260ms var(--ease-out);
}
.howto.is-closing { opacity: 0; transition: opacity 260ms ease; }
.howto__sheet {
  position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 24px 22px; border-radius: 40px 34px 42px 36px; text-align: center;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .4); animation: pop-in 520ms var(--ease-spring);
}
.howto__sheet:focus { outline: none; }
.howto__close {
  position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--tile); color: var(--ink-soft); font-size: 1.1rem; cursor: pointer;
}
.howto__match { position: relative; isolation: isolate; display: grid; place-items: center; padding: 16px 8px 14px; }
.howto__blob {
  position: absolute; z-index: -1; width: 92%; aspect-ratio: 1 / .78; border-radius: var(--organic-1);
  background: #eef1fe; animation: morph 14s ease-in-out infinite alternate, sway 20s ease-in-out infinite alternate;
}
.howto .eyebrow { margin-bottom: 6px; font-size: 1rem; }
/* El texto queda por delante de la mancha que sobresale de la tarjeta */
.howto .eyebrow, .howto h2, .howto__steps, #howtoGo { position: relative; }
.howto h2 { margin-bottom: 14px; font-size: clamp(1.35rem, 3.4vw, 1.65rem); }
.howto__steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; text-align: left; }
.howto__steps li { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 20px; background: var(--tile); font-size: .9rem; font-weight: 600; line-height: 1.35; }
.howto__steps .bubble { width: 36px; height: 36px; font-size: 18px; }
.howto #howtoGo .i { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .howto #howtoGo:hover .i { transform: translateX(4px); } }
@media (max-width: 560px) {
  .howto { place-items: end center; padding: 0; }
  .howto__sheet { width: 100%; max-height: 92dvh; padding: 14px 20px calc(env(safe-area-inset-bottom, 0px) + 20px); border-radius: 36px 36px 0 0; animation: sheet-up 480ms var(--ease-out); }
}
.mcard {
  position: relative; width: min(300px, 100%); padding: 18px 20px 18px; text-align: center; background: #fff;
  border-radius: 36px 30px 38px 32px; box-shadow: var(--shadow-soft);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out), filter 320ms var(--ease-out);
}
.howto .mcard__title { font-size: 1.45rem; margin-bottom: 12px; }
.howto .avatar { width: 66px; height: 66px; font-size: 1.75rem; border-width: 3px; }
.howto .avatars { margin-bottom: 16px; }
.howto .avatars__link { width: 32px; height: 32px; font-size: 1rem; bottom: -10px; }
.howto .mcard__pair { margin-bottom: 12px; font-size: .88rem; }
.howto .compat { margin-bottom: 0; }
.howto .mcard .tags { display: none; }
@media (max-height: 700px) {
  .howto .mcard__pair { display: none; } .howto .avatars { margin-bottom: 14px; }
  .intro { gap: 10px; } .intro__head h1 { margin: 8px 0 0; } .intro__text { display: none; }
}
/* Teléfonos bajos: tarjeta y botones del swipe caben sobre la barra de pestañas */
@media (max-width: 560px) and (max-height: 720px) { .deck-wrap .deck { height: 430px; } .deck .scard__photo { flex-basis: 22%; } }
.mcard.is-swapping { opacity: 0; transform: translateY(8px) scale(.98); filter: blur(4px); }
.mcard__title { margin: 0 0 20px; font-family: var(--display); font-weight: 700; font-size: 2rem; letter-spacing: -.025em; line-height: 1; }
.mcard__title span { color: var(--accent); }
.avatars { position: relative; display: flex; justify-content: center; margin-bottom: 22px; }
.avatar {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: #231f20; color: #fff; font-size: 2.6rem; border: 4px solid #fff;
  animation: hug-left 3.2s ease-in-out infinite;
}
.avatar--brand { margin-left: -16px; background: #2a47f6; animation-name: hug-right; }
.avatars__link {
  position: absolute; left: 50%; bottom: -12px; translate: -50% 0;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: #2a47f6; font-size: 1.2rem; box-shadow: 0 6px 16px rgba(29, 29, 31, .14);
}
.mcard__pair { margin: 0 0 18px; font-size: .95rem; line-height: 1.4; }
.mcard__pair span { color: var(--accent); font-weight: 700; margin: 0 4px; }
.compat { margin-bottom: 16px; text-align: left; }
.compat__head { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.compat__head strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.compat__bar { height: 8px; border-radius: 999px; background: var(--tile); overflow: hidden; }
.compat__bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; transition: transform 900ms var(--ease-out); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tags li { padding: 5px 12px; border-radius: 999px; background: var(--tile); color: var(--ink-soft); font-size: .8rem; font-weight: 600; }


/* Datos clave: franja justo bajo la barra de navegación */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); width: min(860px, 100%); margin: 0 auto 64px; padding: 14px 8px;
  border-radius: 999px; background: var(--tile); transition: background-color var(--theme-fade);
}
.stats > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px 12px; }
.stats .bubble { order: -2; margin-bottom: 4px; }
.stats > div + div { box-shadow: inset 1px 0 0 var(--line-strong); }
.stats dd { order: -1; margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats dt { font-size: .82rem; color: var(--ink-soft); line-height: 1.3; }

/* ===== Cinta evento ⇄ marca ===== */
.pairs { overflow: hidden; padding: 26px 0; }
.pairs__track { display: flex; gap: 22px; width: max-content; animation: marquee 60s linear infinite; }
.pairs:hover .pairs__track { animation-play-state: paused; }
.pair { display: flex; align-items: center; flex: none; }
.pair__side { padding: 9px 18px; border-radius: 999px; background: var(--pair-a); color: var(--pair-a-fg); font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background-color var(--theme-fade), color var(--theme-fade); }
.pair__side--brand { background: var(--pair-b); color: var(--pair-b-fg); }
.pair__link { position: relative; width: 30px; height: 14px; margin: 0 -4px; z-index: 1; flex: none; }
.pair__link::before, .pair__link::after { content: ""; position: absolute; top: 0; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--bg); }
.pair__link::before { left: 2px; background: var(--pair-a-fg); }
.pair__link::after { right: 2px; background: var(--hl); }

/* ===== Secciones ===== */
.section { position: relative; padding: 120px 0; scroll-margin-top: var(--nav-h); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__intro { margin: 0; color: var(--ink-soft); font-size: 1.12rem; }

/* Banda como panel redondeado (hoja tipo app) */
.section--band {
  margin-inline: 12px; border-radius: 48px; background: var(--band);
  overflow: hidden; overflow: clip; transition: background-color var(--theme-fade);
}


/* ===== Deck para deslizar ===== */
.matcher { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.deck-wrap { display: grid; justify-items: center; }
.deck { scroll-margin-top: calc(var(--nav-h) + 16px); position: relative; isolation: isolate; width: min(370px, 100%); height: 490px; outline: none; touch-action: pan-y; border-radius: var(--radius-xl); }
.deck:focus-visible { box-shadow: 0 0 0 4px var(--focus); }
.scard {
  --c: #2a47f6;
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 36px; background: #fff; color: #231f20; box-shadow: var(--shadow-soft);
  transition: transform 450ms var(--ease-out), opacity 380ms var(--ease-out);
  user-select: none; cursor: grab; will-change: transform;
}
.scard:active { cursor: grabbing; }
.scard__photo { position: relative; flex: 0 0 30%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 10%, #fff); }
.scard__shape {
  display: grid; place-items: center; width: 88px; height: 88px; font-size: 40px;
  border-radius: var(--organic-1); background: color-mix(in srgb, var(--c) 18%, #fff); color: var(--c);
  animation: morph 12s ease-in-out infinite alternate;
}
.scard__count { position: absolute; top: 18px; left: 22px; font-size: .78rem; font-weight: 700; color: #6e6e73; }
.scard__body { flex: 1; display: grid; align-content: start; gap: 7px; padding: 16px 22px 20px; }
.scard__body h3 { margin: 0; font-size: 1.3rem; }
.scard__desc { margin: -4px 0 0; color: #6e6e73; font-size: .92rem; }
.scard__label { margin: 4px 0 0; font-size: .78rem; font-weight: 700; color: #86868b; }
.scard .tags { justify-content: flex-start; }
.scard .tags li { background: #f5f5f7; color: #6e6e73; }
.scard__line { margin: 2px 0 0; font-size: .88rem; color: #424245; }
.scard__line--acts { font-size: .8rem; color: #6e6e73; }
.scard__people { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .86rem; font-weight: 700; color: #231f20; }
.scard__people .i { color: #2a47f6; font-size: 1rem; }
.tags--acts li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; font-size: .74rem; }
.tags--acts .i { color: #2a47f6; font-size: .95rem; }
.tags--acts .more-acts { background: #eef1fe; color: #2a47f6; }
@media (max-width: 560px) { .deck .scard__photo { flex-basis: 24%; } .scard__body { padding: 14px 18px 16px; gap: 6px; } .scard__body h3 { font-size: 1.2rem; } }
.scard__budget { margin: 4px 0 0; padding: 8px 12px; border-radius: 12px; background: #eef1fe; font-size: .82rem; color: #231f20; }
.scard__budget strong { color: #2a47f6; }

/* ===== Tipos de activación con presupuesto referencial ===== */
.budget { display: grid; justify-items: center; gap: 10px; margin: -16px 0 36px; text-align: center; }
.budget__label { margin: 0; font-weight: 700; font-size: .92rem; color: var(--ink-soft); }
.budget__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tile); }
.budget__chips button {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-soft); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.budget__chips button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.budget__hint { margin: 0; min-height: 1.5em; font-size: .92rem; color: var(--ink-soft); }
.acts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.act {
  display: grid; align-content: start; gap: 8px; padding: 22px 20px 18px; border-radius: 24px;
  box-shadow: var(--shadow-soft); transition: opacity 300ms ease, transform 300ms var(--ease-out), filter 300ms ease;
}
.act h3 { margin: 6px 0 0; font-size: 1.08rem; }
.act p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.act .bubble { width: 44px; height: 44px; font-size: 22px; }
.act__budget { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 4px !important; }
.act__budget span { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.act__budget strong { font-size: 1.05rem; color: var(--ink); }
.act__pick {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 4px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--tile); color: var(--accent); font: inherit; font-weight: 700; font-size: .84rem; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.act__pick:active { transform: scale(.96); }
.act__pick[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.act.is-out { opacity: .38; filter: saturate(.4); transform: scale(.98); }
.acts__note { margin: 22px auto 0; max-width: 46em; text-align: center; font-size: .85rem; color: var(--ink-faint); }
@media (max-width: 560px) {
  /* En el teléfono las activaciones se deslizan de lado, como en una app */
  .acts { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin-inline: -4px; scrollbar-width: none; }
  .acts::-webkit-scrollbar { display: none; }
  .act { scroll-snap-align: start; }
  .budget__chips button { padding: 0 13px; font-size: .84rem; }
}
.stamp {
  position: absolute; top: 16px; right: 18px; z-index: 2; padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: .85rem; color: #fff; opacity: 0; pointer-events: none;
}
.stamp--yes { background: #2a47f6; }
.stamp--no { background: #231f20; }
.deck__end {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px;
  padding: 28px; text-align: center; border-radius: 36px;
}
.deck__end h3 { margin: 6px 0 0; font-size: 1.5rem; }
.deck__end p { margin: 0 0 6px; color: var(--ink-soft); }
.deck__actions { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.round {
  display: grid; place-items: center; border-radius: 50%; border: 0;
  background: var(--round-bg); color: var(--round-fg); cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(16, 24, 64, .35);
  transition: transform 180ms var(--ease-out), background-color 200ms ease, opacity 200ms ease;
}
.round:active:not(:disabled) { transform: scale(.92); }
.round:disabled { opacity: .35; cursor: not-allowed; }
.round--no { width: 60px; height: 60px; font-size: 1.6rem; }
.round--undo { width: 44px; height: 44px; font-size: 1.2rem; box-shadow: none; background: transparent; color: var(--ink-soft); }
.round--yes { width: 60px; height: 60px; font-size: 1.6rem; background: var(--accent); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) {
  .round:hover:not(:disabled) { transform: scale(1.07); }
  .round--undo:hover:not(:disabled) { background: var(--tile); }
}
.deck__hint { margin: 16px 0 0; font-size: .85rem; color: var(--ink-faint); }
.deck__note { margin: 4px 0 0; font-size: .8rem; color: var(--ink-faint); }

.matches { padding: 28px; border-radius: 34px 40px 36px 42px; box-shadow: var(--shadow-soft); }
.matches h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.matches__count { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--body); font-size: .9rem; }
.matches__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.matches__list li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 20px; background: var(--tile); }
.matches__list li.is-new { animation: slide-in 350ms var(--ease-out); }
.matches__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; font-size: 1.15rem; border-radius: var(--organic-1); background: color-mix(in srgb, var(--c, #2a47f6) 16%, #fff); color: var(--c, #2a47f6); }
.matches__name { flex: 1; font-weight: 600; font-size: .95rem; }
.matches__remove { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-faint); font-size: 1rem; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .matches__remove:hover { background: var(--tile-hover); color: var(--ink); } }
.matches__empty { margin: 0 0 20px; color: var(--ink-soft); font-size: .95rem; }

/* ===== Formulario ===== */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.split__aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.split__aside .section__intro { margin-bottom: 28px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.card { border-radius: 40px 34px 42px 36px; box-shadow: var(--shadow-soft); }
.form { padding: 40px; }
fieldset { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
legend { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; margin-bottom: 16px; padding: 0; }
.legend__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--organic-2); background: var(--accent-soft); color: var(--accent); font-size: .85rem; }
.legend__opt { padding: 2px 10px; border-radius: 999px; background: var(--tile); font-family: var(--body); font-size: .75rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 13px 16px; border: 1px solid transparent; border-radius: 16px;
  background: var(--tile); color: var(--ink); font: inherit; font-weight: 400; font-size: 1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
@media (hover: hover) and (pointer: fine) { input:hover, select:hover, textarea:hover { background: var(--tile-hover); } }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.invalid { border-color: #d70015; animation: shake .3s; }
.field-error { color: #d70015; font-size: .85rem; margin: 10px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px;
  background: var(--tile); font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out);
}
.chip span .i { font-size: 1.05rem; color: var(--accent); transition: color 150ms ease; }
.chip span:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .chip span:hover { background: var(--tile-hover); } }
.chip input:checked + span { background: #2a47f6; color: #fff; }
.chip input:checked + span .i { color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--focus); }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .95rem; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: none; width: 50px; height: 30px; border-radius: 999px; background: #e5e5ea; transition: background-color 200ms ease; }
.switch__track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform 320ms var(--ease-spring);
}
.switch input:checked + .switch__track { background: #2a47f6; }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--focus); outline-offset: 3px; }

.meeting__body { margin-top: 20px; padding: 20px; border-radius: 28px 22px 30px 24px; background: var(--tile); }
.meeting__body:not([hidden]) { animation: rise-in 320ms var(--ease-out); }
.meeting__label { margin: 0 0 8px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.meeting__label:not(:first-child) { margin-top: 18px; }
.meeting__summary { margin: 18px 0 0; font-weight: 600; }
.meeting__summary::first-letter { text-transform: uppercase; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.day, .slot {
  min-height: 44px; padding: 10px 6px; border: 0; border-radius: 16px;
  background: #fff; color: var(--ink); font: inherit; cursor: pointer; text-align: center;
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.day:active, .slot:active:not(:disabled) { transform: scale(.96); }
.day small { display: block; font-size: .7rem; color: var(--ink-soft); }
.day strong { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
@media (hover: hover) and (pointer: fine) { .day:hover, .slot:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--line-strong); } }
.day[aria-pressed="true"], .slot[aria-pressed="true"] { background: #2a47f6; color: #fff; box-shadow: none; }
.day[aria-pressed="true"] small { color: #c9d3fd; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { font-weight: 600; font-variant-numeric: tabular-nums; }
.slots .muted { grid-column: 1 / -1; margin: 0; }
.slot:disabled { background: transparent; color: #b6b6bb; text-decoration: line-through; cursor: not-allowed; }

.segmented { --pad: 3px; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: var(--pad); border-radius: 14px; background: #e8e8ed; }
.segmented > button { position: relative; z-index: 1; min-height: 38px; padding: 0 8px; border: 0; border-radius: 11px; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; transition: color 200ms ease; }
.segmented > [aria-checked="true"] { color: var(--ink); }
.segmented__lens {
  position: absolute; z-index: 0; inset: var(--pad) auto var(--pad) var(--pad);
  width: calc((100% - 2 * var(--pad)) / 3); border-radius: 11px; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04);
  transform: translateX(calc(var(--i) * 100%)); transition: transform 320ms var(--ease-spring);
}

.form__status { margin: 14px 0 0; text-align: center; font-weight: 600; min-height: 1.6em; }
.form__status.ok { color: #1f7a4c; }
.form__status.error { color: #d70015; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.span-2 { grid-column: 1 / -1; }
.field-hint { margin: 8px 0 0; font-size: .82rem; color: var(--ink-faint); }
.meeting__phone { margin-top: 18px; }
.meeting__phone:not([hidden]) { animation: rise-in 320ms var(--ease-out); }
/* Datos que faltan completar antes de publicar */
.pendiente { padding: 0 3px; border-radius: 4px; background: #fff1a8; color: #231f20; }

/* ===== Aceptación de términos y privacidad ===== */
.consent { display: grid; gap: 12px; margin-bottom: 24px; padding: 20px; border-radius: 28px 22px 30px 24px; background: var(--tile); }
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px; border-radius: 8px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: #fff; font-size: 16px;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}
.check__box .i { stroke-width: 2.6; opacity: 0; transform: scale(.6); transition: opacity 150ms ease, transform 220ms var(--ease-out); }
.check input:checked + .check__box { background: #2a47f6; box-shadow: none; }
.check input:checked + .check__box .i { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 3px solid var(--focus); outline-offset: 3px; }
.check input.invalid + .check__box { box-shadow: inset 0 0 0 2px #d70015; animation: shake .3s; }
.doc-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.consent .field-error { margin: 0; }
.consent__info { margin: 4px 0 0; font-size: .8rem; line-height: 1.5; color: var(--ink-soft); }
.consent__info a { color: var(--accent); }
.modal__receipt { margin: -8px 0 22px; font-size: .8rem; color: var(--ink-soft); }
.modal__receipt strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.mcard__sample { margin: 10px 0 0; font-size: .72rem; font-weight: 600; color: var(--ink-faint); }

/* ===== Visor de documentos legales ===== */
.docview {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(16, 24, 64, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: fade 220ms var(--ease-out);
}
.docview__sheet {
  display: flex; flex-direction: column; width: min(760px, 100%); height: min(820px, calc(100dvh - 32px));
  border-radius: 36px 30px 38px 32px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .4);
  animation: pop-in 520ms var(--ease-spring);
}
.docview__head { position: relative; display: flex; align-items: center; min-height: 64px; padding: 12px 64px 12px 24px; border-bottom: 1px solid var(--line); }
.docview__head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.015em; }
.docview__close { top: 12px; right: 12px; }
.docview__frame { flex: 1; width: 100%; border: 0; background: #fff; }
.docview__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px 12px 24px; border-top: 1px solid var(--line); }
.docview__foot .more { font-size: .9rem; }
@media (max-width: 560px) {
  .docview { place-items: end center; padding: 0; }
  .docview__sheet { height: 94dvh; border-radius: 32px 32px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation: sheet-up 480ms var(--ease-out); }
  .docview__foot .btn { flex: 1; }
}

/* ===== Footer: hoja redondeada ===== */
.footer { position: relative; margin: 40px 12px 0; padding: 40px 0 calc(44px + env(safe-area-inset-bottom, 0px)); border-radius: 48px 48px 0 0; background: var(--footer-bg); font-size: .9rem; color: var(--ink-soft); transition: background-color var(--theme-fade); }
.install {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
}
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer p { margin: 0; }
.footer .muted { color: var(--ink-faint); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a { color: var(--ink-soft); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__legal a:hover { color: var(--ink); text-decoration: underline; } }

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(16, 24, 64, .32);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: fade 220ms var(--ease-out);
}
.modal__card { width: min(420px, 100%); padding: 40px 32px 30px; border-radius: 40px 34px 42px 36px; text-align: center; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .35); animation: pop-in 520ms var(--ease-spring); }
.modal__card .mcard__title { font-size: 2.4rem; }
.avatars--modal { margin-bottom: 28px; }
.avatar--logo { margin-left: -16px; background: #fff; box-shadow: inset 0 0 0 1px #e5e5ea; animation-name: hug-right; }
.avatar--logo { color: #2a47f6; }
.avatar--logo .logo__mark { width: 62%; height: 62%; }
.modal__text { margin: 0 0 22px; color: var(--ink-soft); }
.modal__text strong { color: var(--ink); }
.modal__meeting { margin: -8px 0 22px; padding: 12px 16px; border-radius: 18px; background: var(--tile); font-weight: 600; font-size: .95rem; }

.confetti { position: fixed; z-index: 100; width: 9px; height: 14px; border-radius: 3px; pointer-events: none; }

/* ===== Aparición al hacer scroll ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero.is-entering .hero__inner > * { animation: rise-in 900ms var(--ease-out) both; }
.hero.is-entering .hero__inner > :nth-child(2) { animation-delay: 80ms; }
.hero.is-entering .hero__inner > :nth-child(3) { animation-delay: 160ms; }
.hero.is-entering .hero__inner > :nth-child(n+4) { animation-delay: 240ms; }

/* ===== Animaciones ===== */
@keyframes morph {
  0% { border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%; }
  50% { border-radius: 62% 38% 41% 59% / 38% 61% 39% 62%; }
  100% { border-radius: 38% 62% 56% 44% / 60% 40% 60% 40%; }
}
@keyframes drift { to { transform: translate(60px, 40px) rotate(25deg) scale(1.08); } }
@keyframes sway { to { transform: rotate(10deg) scale(1.04); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes hug-left { 0%, 100% { translate: 0 0; } 50% { translate: 6px 0; } }
@keyframes hug-right { 0%, 100% { translate: 0 0; } 50% { translate: -6px 0; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.96) translateY(10px); } }

/* ===== Accesibilidad ===== */
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .modal { background: rgba(16, 24, 64, .6); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .modal, .modal__card { animation: fade 150ms ease !important; }
  *, *::before, *::after { transition-property: opacity, color, background-color, border-color !important; transition-duration: 150ms !important; }
  .js .reveal { transform: none; }
  .scribble path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .intro__side, .surface, .scard, .tabbar { border: 1px solid CanvasText; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .split, .matcher { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .matcher { gap: 40px; }
  .nav__links { display: none; }
  .role-chip { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 12px; padding: 14px 6px; border-radius: 28px; }
  .stats > div:nth-child(4) { box-shadow: none; } /* primera columna de la segunda fila */
}
@media (max-width: 700px) {
  /* Bienvenida en el teléfono: un panel arriba y otro abajo */
  .intro { gap: 14px; padding-top: calc(env(safe-area-inset-top, 0px) + 22px); }
  .intro__head h1 { font-size: 1.75rem; margin-top: 12px; }
  .intro__logo { height: 40px; }
  .intro .tagline { margin-top: 6px; font-size: .92rem; }
  .intro__head p { font-size: .98rem; }
  .intro__choices { flex-direction: column; gap: 12px; }
  .intro__side { flex: 1 0 auto; min-height: 0; padding: 22px 20px; border-radius: 36px; }
  .intro__title { font-size: 1.6rem; }
  .intro__text { font-size: .98rem; }
  .intro__content { gap: 8px; }
  .intro__go { margin-top: 4px; padding: 9px 16px; font-size: .9rem; }
  .bubble--xl { width: 60px; height: 60px; font-size: 28px; }
}

/* ===== Modo app en el teléfono: barra de pestañas inferior ===== */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar {
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px;
    border-radius: 28px; background: var(--nav-bg); color: var(--ink);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 0 0 .5px var(--nav-line), 0 14px 34px -14px rgba(16, 24, 64, .35);
    transition: background-color var(--theme-fade);
  }
  .tab {
    display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 52px; padding: 4px 2px;
    border-radius: 22px; color: var(--ink-faint); text-decoration: none; font-size: .68rem; font-weight: 700;
    -webkit-touch-callout: none; transition: color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
  }
  .tab > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab .i { font-size: 1.4rem; }
  .tab[aria-current="true"] { color: var(--ink); background: var(--tile); }
  .tab--cta, .tab--cta[aria-current="true"] { color: var(--on-accent); background: var(--accent); }
  .tab:active { transform: scale(.95); }
  .nav .btn--small { display: none; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

/* Abierta como app instalada: sin botón de instalar */
@media (display-mode: standalone) { .install { display: none !important; } }
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: min(1080px, 100% - 32px); }
  .nav__inner { gap: 10px; }
  .role-chip__hint { display: none; }
  .nav .btn--small { padding-inline: 12px; font-size: .8rem; }
  .logo__word { height: 24px; }
  .hero { padding: 16px 0 56px; }
  .avatar { width: 84px; height: 84px; font-size: 2.2rem; }
  .stats { margin-bottom: 40px; }
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 40px; }
  .form { padding: 26px 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .deck { height: 470px; }
  .meeting__body { padding: 14px; }
  .days { gap: 5px; }
  .day { padding: 8px 2px; }
  .day strong { font-size: 1.15rem; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .pair__side { font-size: .84rem; padding: 8px 14px; }
}
