/* ============================================================
   ODOFLIP · Portal
   Paleta: tinta #0F1C24 · turquesa #0FA899 · menta #7FE8D3
           coral #FF6B4A · sol #FFC857 · crema #F8F5EF
   ============================================================ */

/* w12: fuente propia (antes Google Fonts): sin bloqueo de terceros y con precarga. Variable 200-800. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0F1C24;
  --teal: #0FA899;
  --teal-strong: #08766B; /* w12: contraste 5:1 sobre el fondo crema */
  --mint: #7FE8D3;
  --coral: #FF6B4A;
  --coral-strong: #E8502F;
  --sun: #FFC857;
  --cream: #F8F5EF;

  --bg: #F8F5EF;
  --bg-alt: #EFEBE2;
  --surface: #FFFFFF;
  --surface-2: #F3F0E9;
  --text: #0F1C24;
  --muted: #56666E;
  --line: #E2DCCF;
  --accent: var(--teal-strong);
  --shadow: 0 1px 2px rgba(15, 28, 36, .06), 0 12px 32px -12px rgba(15, 28, 36, .18);
  --shadow-lg: 0 30px 80px -30px rgba(15, 28, 36, .35);
  --grad: linear-gradient(120deg, var(--teal) 0%, var(--mint) 100%);
  --grad-hot: linear-gradient(120deg, var(--coral) 0%, var(--sun) 100%);

  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0A1419;
  --bg-alt: #0E1B21;
  --surface: #12222A;
  --surface-2: #172B34;
  --text: #EEF3F1;
  --muted: #9DB0B5;
  --line: #22363F;
  --accent: var(--mint);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hot-text {
  background: var(--grad-hot);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--coral); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(15,28,36,.6); }
[data-theme="dark"] .btn-primary { background: var(--mint); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(127,232,211,.5); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--text); }
.btn-hot {
  background: var(--coral); color: #fff;
  box-shadow: 0 10px 26px -8px rgba(255,107,74,.7);
}
.btn-hot:hover { background: var(--coral-strong); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; }

/* Botón «Entrar» con brillo */
.btn-login .lbl-long { margin-left: .28em; }
.btn-login {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--coral); color: #fff;
  box-shadow: 0 0 0 0 rgba(255,107,74,.55);
  animation: loginPulse 2.6s ease-out infinite;
}
.btn-login::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: shine 3.2s ease-in-out infinite;
}
.btn-login:hover { background: var(--coral-strong); }
@keyframes loginPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,107,74,.55); }
  70% { box-shadow: 0 0 0 14px rgba(255,107,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,74,0); }
}
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------- Franja temporal ---------- */
.ribbon {
  background: var(--ink); color: #EEF3F1;
  font-size: .88rem; text-align: center; padding: 9px 16px;
  position: relative; z-index: 51;
}
[data-theme="dark"] .ribbon { background: #050B0E; }
.ribbon a { color: var(--mint); font-weight: 700; text-decoration: none; border-bottom: 1px dashed currentColor; }
.ribbon .tag { display: inline-block; background: var(--sun); color: var(--ink); font-weight: 800; font-size: .7rem; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; margin-right: 8px; vertical-align: 1px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .4s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.55rem; letter-spacing: -.04em; }
.brand svg { width: 38px; height: 38px; transition: transform .6s cubic-bezier(.5,-0.4,.3,1.4); }
.brand:hover svg { transform: rotateY(180deg); }
.brand .flip { color: var(--teal-strong); } /* w12: contraste */
[data-theme="dark"] .brand .flip { color: var(--mint); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: .96rem;
  padding: 8px 14px; border-radius: 999px; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; transition: transform .2s, border-color .2s;
}
.icon-btn:hover { transform: rotate(-12deg); border-color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.lang-btn { width: auto; padding: 0 12px; font-weight: 800; font-size: .82rem; letter-spacing: .06em; gap: 4px; display: inline-flex; }
.lang-btn:hover { transform: none; }
.lang-btn span { color: var(--muted); transition: color .2s; } /* w12: contraste (antes opacidad .4) */
.lang-btn span.on { opacity: 1; color: var(--accent); }
.theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .sun { display: block; }
[data-theme="dark"] .theme-btn .moon { display: none; }
.burger { display: none; }

@media (max-width: 1100px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); padding: 10px 20px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 8px; font-size: 1.1rem; border-radius: 10px; }
  .burger { display: grid; }
  .nav { gap: 12px; }
  .nav-tools { margin-left: auto; }
}
@media (max-width: 520px) {
  .btn-login .lbl-long { display: none; }
  .brand { font-size: 1.3rem; }
  .brand svg { width: 32px; height: 32px; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ---------- Secciones ---------- */
section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.alt { background: var(--bg-alt); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 .line2 { display: block; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-trust { display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--muted); }
.avatars { display: flex; }
.avatars span {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--bg);
  margin-left: -10px; display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.stars { color: var(--sun); letter-spacing: 2px; }

.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1;
  animation: float 14s ease-in-out infinite;
}
.blob.b1 { width: 480px; height: 480px; background: var(--mint); top: -120px; right: -120px; }
.blob.b2 { width: 360px; height: 360px; background: var(--sun); bottom: -140px; right: 28%; opacity: .35; animation-delay: -5s; }
.blob.b3 { width: 300px; height: 300px; background: var(--coral); top: 30%; left: -160px; opacity: .2; animation-delay: -9s; }
[data-theme="dark"] .blob { opacity: .22; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.06); }
  66% { transform: translate(-20px, 25px) scale(.96); }
}

/* Tarjeta que se voltea */
.flip-stage { position: relative; perspective: 1600px; aspect-ratio: 4 / 5; max-width: 470px; margin-inline: auto; width: 100%; }
.flip-card {
  position: absolute; inset: 0; transform-style: preserve-3d;
  animation: heroFlip 7s cubic-bezier(.7,0,.25,1) infinite;
}
.flip-stage:hover .flip-card { animation-play-state: paused; }
@keyframes heroFlip {
  0%, 38% { transform: rotateY(0) rotateX(4deg); }
  50%, 88% { transform: rotateY(180deg) rotateX(4deg); }
  100% { transform: rotateY(360deg) rotateX(4deg); }
}
.flip-face {
  position: absolute; inset: 0; border-radius: 28px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--surface); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.flip-face.back { transform: rotateY(180deg); }
.flip-face .smile-wrap { flex: 1; position: relative; }
.flip-face .smile-wrap svg { width: 100%; height: 100%; object-fit: cover; }
.face-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; font-weight: 700; font-size: .95rem;
}
.face-bar .doc { display: flex; align-items: center; gap: 10px; }
.face-bar .doc i { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: block; }
.tag-state {
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.tag-before { background: var(--surface-2); color: var(--muted); }
.tag-after { background: var(--teal); color: #fff; }
.chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: 16px; box-shadow: var(--shadow);
  font-weight: 700; font-size: .88rem; white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 25%, transparent); }
.chip.c1 { top: 8%; left: -12%; }
.chip.c2 { top: 46%; right: -14%; animation-delay: -1.6s; }
.chip.c3 { bottom: 6%; left: -6%; animation-delay: -3.2s; }
.chip.c2 .dot { background: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,74,.25); }
.chip.c3 .dot { background: var(--sun); box-shadow: 0 0 0 4px rgba(255,200,87,.3); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .flip-stage { max-width: 380px; }
  .chip.c1 { left: -4%; } .chip.c2 { right: -4%; } .chip.c3 { left: 0; }
}

/* ---------- Marquesina ---------- */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: var(--surface); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.marquee-item b { color: var(--text); }
.marquee-item::after { content: '✦'; color: var(--coral); margin-left: 36px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: var(--surface); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad);
}
.stat:nth-child(2)::before { background: var(--grad-hot); }
.stat:nth-child(3)::before { background: linear-gradient(90deg, var(--coral), var(--teal)); }
.stat:nth-child(4)::before { background: linear-gradient(90deg, var(--sun), var(--mint)); }
.stat .num { font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; }
.stat .lbl { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 44px; left: 8%; right: 8%; height: 3px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
}
.step { position: relative; text-align: left; }
.step .ico {
  width: 88px; height: 88px; border-radius: 26px; display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--shadow); margin-bottom: 22px; position: relative;
  transition: transform .4s cubic-bezier(.3,1.6,.5,1);
}
.step:hover .ico { transform: translateY(-6px) rotate(-6deg); }
.step .ico svg { width: 42px; height: 42px; }
.step .ico::after {
  counter-increment: step; content: counter(step);
  position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--coral); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center;
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.step p { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Iconos animados de los pasos */
.ico-cam .flash { animation: flash 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes flash { 0%, 80%, 100% { opacity: 0; } 85% { opacity: 1; } }
.ico-folder .paper { animation: paper 3s ease-in-out infinite; }
@keyframes paper { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.ico-align .bar { animation: alignBar 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ico-align .bar:nth-child(2) { animation-delay: .15s; } .ico-align .bar:nth-child(3) { animation-delay: .3s; }
@keyframes alignBar { 0%, 100% { transform: translateY(-4px) rotate(-10deg); } 50% { transform: translateY(0) rotate(0); } }
.ico-share .arrow { animation: share 2.2s ease-in-out infinite; }
@keyframes share { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -3px); } }

/* ---------- Demo interactiva ---------- */
.demo-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.ba {
  position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 11; user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--surface);
}
.ba svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 4px; margin-left: -2px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.ba .handle::after {
  content: '⇆'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.ba .lbl {
  position: absolute; top: 18px; z-index: 2; font-size: .72rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; padding: 7px 13px; border-radius: 999px; background: rgba(15,28,36,.72); color: #fff;
}
.ba .lbl.l { left: 18px; } .ba .lbl.r { right: 18px; background: var(--teal); }
.ba .hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: rgba(255,255,255,.9); color: var(--ink); font-weight: 700; font-size: .85rem;
  padding: 7px 14px; border-radius: 999px; animation: bob 3s ease-in-out infinite; pointer-events: none;
}
.morph-ctrl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: '✓'; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .8rem; margin-top: 2px;
}
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }

/* Dientes que se alinean (SVG generado) */
.smile-svg .tooth { transition: transform 1.2s cubic-bezier(.6,-0.2,.3,1.3), fill 1.2s ease; transform-box: fill-box; transform-origin: center; }
.smile-svg .tooth { fill: var(--tc); }
.smile-svg.aligned .tooth { transform: none !important; fill: #FBFAF4; }
.smile-svg .spark { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: center; transition: opacity .5s, transform .6s cubic-bezier(.3,1.8,.5,1); }
.smile-svg.aligned .spark { opacity: .95; transform: none; }

/* ---------- Funciones ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease; position: relative; overflow: hidden;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature .fi {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal-strong);
}
[data-theme="dark"] .feature .fi { color: var(--mint); }
.feature:nth-child(3n+2) .fi { background: rgba(255,107,74,.13); color: var(--coral-strong); }
.feature:nth-child(3n+3) .fi { background: rgba(255,200,87,.2); color: #B7860B; }
[data-theme="dark"] .feature:nth-child(3n+3) .fi { color: var(--sun); }
[data-theme="dark"] .feature:nth-child(3n+2) .fi { color: var(--coral); }
.feature .fi svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }
.feature.big { grid-column: span 2; background: var(--ink); color: #EEF3F1; }
.feature.big p { color: #A8BAC0; }
.feature.big .fi { background: rgba(127,232,211,.15); color: var(--mint); }
[data-theme="dark"] .feature.big { background: linear-gradient(135deg, #0F3B3A, #12222A); }
@media (max-width: 980px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .feature.big { grid-column: auto; } }

/* ---------- Formatos (teléfonos) ---------- */
.formats { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 3vw, 40px); flex-wrap: wrap; }
.phone {
  width: 210px; border-radius: 34px; padding: 10px; background: #0B1418; box-shadow: var(--shadow-lg);
  position: relative;
}
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 64px; height: 6px; border-radius: 6px; background: #27343a; transform: translateX(-50%); z-index: 2; }
.phone .screen { border-radius: 26px; overflow: hidden; position: relative; background: #fff; }
.phone.reel .screen { aspect-ratio: 9 / 16; }
.phone.feed .screen { aspect-ratio: 4 / 5; }
.phone.feed { width: 240px; }
.phone.story .screen { aspect-ratio: 9 / 16; }
.phone .screen [data-smile] svg { width: 100%; height: 100%; }
.phone.feed .screen { display: flex; }
.phone.feed .screen [data-smile] { float: none !important; }
.phone .cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px; color: #fff; font-size: .72rem; font-weight: 700;
  background: rgba(0,0,0,.45); border-radius: 10px; padding: 6px 8px; backdrop-filter: blur(6px);
}
.phone .fmt { text-align: center; color: var(--muted); font-weight: 700; margin-top: 14px; font-size: .9rem; }
.reel .screen .wipe { position: absolute; inset: 0; display: flex; flex-direction: column; }
.reel .screen .wipe-after { position: absolute; inset: 0; animation: reelWipe 4.5s ease-in-out infinite; }
@keyframes reelWipe {
  0%, 30% { clip-path: inset(0 100% 0 0); }
  50%, 80% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}
.reel .play {
  position: absolute; right: 12px; top: 34px; background: var(--coral); color: #fff; font-size: .65rem; font-weight: 800;
  padding: 4px 8px; border-radius: 999px; letter-spacing: .1em;
}
.phone.reel { transform: rotate(-4deg); }
.phone.story { transform: rotate(4deg); }

/* ---------- Galería ---------- */
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.pill {
  border: 1px solid var(--line); background: var(--surface); padding: 9px 18px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s;
}
.pill:hover { border-color: var(--text); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-theme="dark"] .pill.on { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case {
  perspective: 1200px; cursor: pointer; aspect-ratio: 4 / 5; position: relative;
  transition: opacity .4s, transform .4s;
}
.case.hide { display: none; }
.case-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.6,-0.25,.3,1.3); }
.case:hover .case-inner, .case.flipped .case-inner { transform: rotateY(180deg); }
.case-face {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.case-face.back { transform: rotateY(180deg); }
.case-face .img { flex: 1; position: relative; overflow: hidden; }
.case-face .img svg { width: 100%; height: 100%; }
.case-face .wm {
  position: absolute; right: 10px; bottom: 10px; font-size: .68rem; font-weight: 800; color: #fff;
  background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 6px; letter-spacing: .02em;
}
.case-face .st {
  position: absolute; left: 10px; top: 10px; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(15,28,36,.75); color: #fff; padding: 4px 9px; border-radius: 999px;
}
.case-face.back .st { background: var(--teal); }
.case-meta { padding: 12px 14px; }
.case-meta b { display: block; font-size: .95rem; }
.case-meta span { font-size: .82rem; color: var(--muted); }
.case-meta .likes { float: right; font-size: .8rem; color: var(--coral); font-weight: 800; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: var(--surface); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: relative;
}
.quote::before { content: '“'; position: absolute; top: -6px; right: 22px; font-size: 6rem; line-height: 1; font-weight: 800; color: var(--mint); opacity: .7; }
.quote p { font-size: 1.04rem; }
.who { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.who .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.who b { display: block; line-height: 1.2; }
.who span { font-size: .86rem; color: var(--muted); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Privacidad ---------- */
.privacy {
  background: var(--ink); color: #EEF3F1; border-radius: 36px; padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; overflow: hidden; position: relative;
}
[data-theme="dark"] .privacy { background: linear-gradient(135deg, #0F3B3A, #0B1C22); box-shadow: inset 0 0 0 1px var(--line); }
.privacy h2 { color: #fff; }
.privacy p { color: #A8BAC0; font-size: 1.1rem; }
.privacy .eyebrow { color: var(--mint); }
.vault { position: relative; aspect-ratio: 1; max-width: 300px; margin-inline: auto; }
.vault .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(127,232,211,.4); animation: spin 26s linear infinite; }
.vault .ring.r2 { inset: 14%; border-style: solid; border-color: rgba(127,232,211,.18); animation-duration: 18s; animation-direction: reverse; }
.vault .ring .sat { position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--coral); }
.vault .core { position: absolute; inset: 30%; border-radius: 30px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 60px rgba(127,232,211,.5); }
.vault .core svg { width: 46%; height: 46%; color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } }

/* ---------- Contacto en home ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ccard {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.ccard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ccard .ci { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 10px; }
.ccard .ci svg { width: 24px; height: 24px; }
.ccard b { font-size: 1.05rem; }
.ccard span { color: var(--muted); font-size: .92rem; word-break: break-word; }
.ci.ig { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.ci.tt { background: #111; }
.ci.yt { background: #FF0033; }
.ci.wa { background: #25D366; }
.ci.mail { background: var(--teal); }
@media (max-width: 900px) { .contact-cards { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA final ---------- */
.cta-band {
  border-radius: 36px; padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
  background: var(--grad); color: var(--ink);
}
.cta-band h2 { color: var(--ink); }
.cta-band p { font-size: 1.15rem; max-width: 620px; margin: 0 auto 28px; color: #17353A; }
.cta-band .btn-primary { background: var(--ink); color: #fff; }
.cta-band .btn-ghost { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.cta-band .confetti { position: absolute; width: 14px; height: 14px; border-radius: 4px; opacity: .8; animation: fall 9s linear infinite; }
@keyframes fall { from { transform: translateY(-60px) rotate(0); } to { transform: translateY(520px) rotate(540deg); } }

/* ---------- Pie ---------- */
.site-footer { padding: 70px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-grid a { display: block; text-decoration: none; color: var(--text); padding: 4px 0; font-weight: 500; }
.foot-grid a:hover { color: var(--accent); }
.foot-slogan { color: var(--muted); max-width: 300px; margin-top: 12px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid !important; place-items: center; background: var(--surface); box-shadow: var(--shadow); padding: 0 !important; }
.socials svg { width: 19px; height: 19px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Página interior: cabecera ---------- */
.page-hero { padding: clamp(50px, 7vw, 90px) 0 40px; text-align: center; overflow: hidden; }
.page-hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin-inline: auto; }

/* ---------- Precios ---------- */
.switch {
  display: inline-flex; background: var(--surface); border-radius: 999px; padding: 5px; box-shadow: var(--shadow);
  position: relative; margin-bottom: 44px;
}
.switch button {
  border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; font-weight: 700; cursor: pointer;
  position: relative; z-index: 1; transition: color .3s; white-space: nowrap;
}
@media (max-width: 520px) { .switch button { padding: 10px 14px; font-size: .88rem; } }
.switch button.on { color: #fff; }
[data-theme="dark"] .switch button.on { color: var(--ink); }
.switch .knob { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: var(--ink); transition: left .35s cubic-bezier(.5,-0.3,.4,1.3), width .35s; }
[data-theme="dark"] .switch .knob { background: var(--mint); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--surface); border-radius: 28px; padding: 34px 30px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative; transition: transform .3s;
}
.plan:hover { transform: translateY(-6px); }
.plan.featured {
  background: var(--ink); color: #EEF3F1; transform: scale(1.03); box-shadow: var(--shadow-lg);
}
.plan.featured:hover { transform: scale(1.03) translateY(-6px); }
[data-theme="dark"] .plan.featured { background: linear-gradient(160deg, #0F3B3A, #12222A); box-shadow: inset 0 0 0 2px var(--mint), var(--shadow-lg); }
.plan.soon { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.plan .badge {
  position: absolute; top: -14px; left: 30px; background: var(--grad-hot); color: var(--ink); font-weight: 800; font-size: .76rem;
  letter-spacing: .06em; padding: 6px 14px; border-radius: 999px; text-transform: uppercase;
}
.plan.soon .badge { background: var(--surface-2); color: var(--muted); }
.plan h3 { font-size: 1.4rem; margin-bottom: 4px; }
.plan .desc { color: var(--muted); font-size: .95rem; min-height: 3em; }
.plan.featured .desc, .plan.featured .per, .plan.featured .alt-price { color: #A8BAC0; }
.price { font-size: clamp(2.2rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 18px 0 6px; }
.plan.featured .price { color: var(--mint); }
.per { color: var(--muted); font-size: .9rem; }
.alt-price { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: .97rem; }
.plan li::before { content: '✓'; color: var(--teal); font-weight: 800; }
.plan.featured li::before { color: var(--mint); }
.plan li.no { opacity: .45; }
.plan li.no::before { content: '—'; color: var(--muted); }
.plan .btn { width: 100%; }
.plan .pay-alt { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 10px; }
.plan.featured .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .plan.featured { transform: none; } .plan.featured:hover { transform: translateY(-6px); } }

.demo-strip {
  margin-top: 56px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--surface); border-radius: 28px; padding: 28px 32px; box-shadow: var(--shadow);
  border: 2px dashed color-mix(in srgb, var(--coral) 50%, transparent);
}
.demo-strip .big { font-size: 3rem; font-weight: 800; line-height: 1; }
.demo-strip p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .demo-strip { grid-template-columns: 1fr; text-align: center; } }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; }
.compare thead th { background: var(--surface-2); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tr:last-child td { border-bottom: 0; }
.compare .y { color: var(--teal); font-weight: 800; }
[data-theme="dark"] .compare .y { color: var(--mint); }
.compare .n { color: var(--muted); }
.table-wrap { overflow-x: auto; border-radius: 22px; }

.pay-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: ps; }
.pay-step { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.pay-step::before {
  counter-increment: ps; content: counter(ps); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: var(--ink); font-weight: 800; margin-bottom: 14px;
}
.pay-step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .pay-steps { grid-template-columns: 1fr 1fr; } }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { padding: 20px 24px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--coral); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ---------- Formularios ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: start; }
.form-card { background: var(--surface); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9rem; }
.field label .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--line); border-radius: 14px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 20%, transparent); }
.field.err input, .field.err select, .field.err textarea { border-color: var(--coral); }
.field .msg { color: var(--coral-strong); font-size: .82rem; min-height: 0; }

/* País con bandera y teléfono internacional (assets/js/phone.js) */
.cc-wrap { position: relative; display: flex; }
.cc-flag { font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; font-size: 1.25em; line-height: 1; }
.cc-caret { color: var(--muted); font-size: .8em; margin-left: auto; }
.cc-select, .cc-btn {
  font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--line); cursor: pointer;
  display: flex; align-items: center; gap: 10px; transition: border-color .2s, box-shadow .2s;
}
.cc-select { width: 100%; border-radius: 14px; padding: 12px 15px; text-align: left; }
.cc-select .cc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-ph { color: var(--muted); }
.cc-phone .cc-btn { border-radius: 14px 0 0 14px; border-right: none; padding: 0 12px; flex: none; gap: 6px; }
.cc-phone .cc-dial { font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-phone input { flex: 1; min-width: 0; border-radius: 0 14px 14px 0 !important; }
.cc-select:focus, .cc-btn:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 20%, transparent); }
.cc-select[aria-expanded="true"], .cc-btn[aria-expanded="true"] { border-color: var(--teal); }
.field.err .cc-btn, .field.err .cc-select { border-color: var(--coral); }
.cc-pop {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; min-width: 260px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 8px; animation: ccIn .14s ease-out;
}
@keyframes ccIn { from { opacity: 0; transform: translateY(-4px); } }
.field .cc-pop .cc-search { width: 100%; padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; }
.cc-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.cc-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: .95rem; }
.cc-list li .cc-name { flex: 1; }
.cc-list li .cc-dial { color: var(--muted); font-variant-numeric: tabular-nums; }
.cc-list li.on { background: color-mix(in srgb, var(--teal) 14%, transparent); }
.cc-list li[aria-selected="true"] { font-weight: 700; }
.cc-none { margin: 8px 10px; color: var(--muted); font-size: .9rem; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.reasons input { position: absolute; opacity: 0; pointer-events: none; }
.reasons label {
  padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); cursor: pointer; font-weight: 600; font-size: .92rem; transition: all .2s;
}
.reasons input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
[data-theme="dark"] .reasons input:checked + label { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.reasons input:focus-visible + label { outline: 3px solid var(--coral); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 8px 0 22px; }
.consent input { width: 20px; height: 20px; accent-color: var(--teal); margin-top: 2px; flex: none; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form-ok { text-align: center; padding: 30px 10px; display: none; }
.form-ok.show { display: block; animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
.form-ok .big-check { width: 84px; height: 84px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; margin: 0 auto 18px; font-size: 2.4rem; color: var(--ink); }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.side-cards { display: grid; gap: 14px; }
.side-cards .ccard { flex-direction: row; align-items: center; gap: 14px; padding: 18px; }
.side-cards .ccard .ci { margin: 0; flex: none; }
.hours { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.hours h4 { margin-bottom: 8px; }
.hours p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---------- Login ---------- */
.login-wrap { min-height: calc(100vh - 120px); display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: var(--ink); color: #EEF3F1; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 6vw, 80px); }
[data-theme="dark"] .login-art { background: linear-gradient(160deg, #0F3B3A, #0A1419); }
.login-art h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 3rem); }
.login-art p { color: #A8BAC0; font-size: 1.1rem; max-width: 440px; }
.login-art .mini-flip { width: 260px; aspect-ratio: 4/5; margin-top: 30px; perspective: 1200px; }
.login-art .mini-flip .flip-card { animation-duration: 6s; }
.login-form { display: grid; place-items: center; padding: 40px 20px; }
.login-card { width: min(100%, 420px); }
.login-card h1 { font-size: 2.2rem; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, var(--sun) 22%, var(--surface));
  border-radius: 16px; padding: 16px 18px; margin-bottom: 26px; font-size: .92rem;
}
.notice b { display: block; }
.notice a { font-weight: 800; color: var(--text); }
.login-card .btn { width: 100%; }
.login-alt { display: flex; justify-content: space-between; font-size: .9rem; margin: -4px 0 20px; }
.login-alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-art { order: 2; } }

/* ---------- Legal ---------- */
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.draft { background: color-mix(in srgb, var(--coral) 14%, var(--surface)); border-radius: 14px; padding: 14px 18px; font-size: .92rem; margin-bottom: 30px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%); z-index: 99;
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 16px; box-shadow: var(--shadow-lg);
  font-weight: 600; max-width: min(92vw, 520px); transition: transform .45s cubic-bezier(.3,1.5,.5,1), visibility 0s .45s;
  visibility: hidden;
}
[data-theme="dark"] .toast { background: var(--mint); color: var(--ink); }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .45s cubic-bezier(.3,1.5,.5,1); }

/* ---------- Configurar cuenta (regreso de Mercado Pago) ---------- */
.cf-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; counter-reset: s; }
.cf-steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; color: #C9D6D8; font-weight: 600; }
.cf-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.25); font-size: .85rem; }
.cf-steps li.done::before { content: '✓'; background: var(--mint); color: var(--ink); border-color: var(--mint); }
.cf-state { border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.cf-state p { margin: 6px 0 0; }
.cf-state.ok { background: color-mix(in srgb, var(--teal) 14%, var(--surface)); }
.cf-state.wait { background: color-mix(in srgb, #FFC857 18%, var(--surface)); }
.cf-state.bad { background: color-mix(in srgb, var(--coral) 14%, var(--surface)); }
.cf-sub { color: var(--muted); font-size: .9rem; margin: 10px 0 6px; }
.cf-data { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cf-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; font-size: .92rem; }
.cf-row + .cf-row { border-top: 1px solid var(--line); }
.cf-row span { color: var(--muted); }
.cf-loading { color: var(--muted); }
.cf-steps li.now { color: #fff; }
.cf-steps li.now::before { border-color: var(--mint); color: var(--mint); }
/* Página de configurar: panel izquierdo fijo y hoja más ancha y compacta */
body[data-page="configurar"] .login-wrap { grid-template-columns: minmax(280px, .75fr) 1.25fr; align-items: start; }
body[data-page="configurar"] .login-art { position: sticky; top: 72px; height: calc(100vh - 72px); justify-content: flex-start; padding-top: clamp(30px, 5vh, 60px); }
body[data-page="configurar"] .login-form { place-items: start center; padding: 28px 20px 40px; }
body[data-page="configurar"] .login-card { width: min(100%, 720px); }
body[data-page="configurar"] .login-card h1 { font-size: 1.8rem; margin-bottom: 10px; }
@media (max-width: 900px) {
  body[data-page="configurar"] .login-wrap { grid-template-columns: 1fr; }
  body[data-page="configurar"] .login-art { position: static; height: auto; order: 0; padding: 24px 20px; }
  body[data-page="configurar"] .login-art h2, body[data-page="configurar"] .login-art > p, body[data-page="configurar"] .login-art .blob { display: none; }
  .cf-steps { grid-auto-flow: column; margin-top: 10px; font-size: .78rem; }
}
.cf-form { margin-top: 6px; }
.cf-form .field { margin-bottom: 10px; gap: 4px; }
.cf-form .field label { font-size: .84rem; display: flex; align-items: center; gap: 6px; }
.cf-form .field input, .cf-form .field select { padding-top: 9px; padding-bottom: 9px; }
/* Campos bloqueados: grises, con borde punteado y texto atenuado para que se note. */
.cf-form select:disabled, .cf-form input:disabled, .cf-form .cc-select:disabled {
  cursor: not-allowed; color: var(--muted); border-style: dashed;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--line) 55%, transparent) 0 6px, transparent 6px 12px), color-mix(in srgb, var(--line) 35%, var(--surface));
}
.cf-form .field:has(> input:disabled) > label, .cf-form .field:has(> select:disabled) > label { color: var(--muted); }
.cf-form #cfFactura.is-copy .field:has(:disabled) > label::after { content: ' 🔒'; font-size: .8em; }
.cf-2[hidden], .cf-form [hidden] { display: none !important; }
.cf-info { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 18%, var(--surface)); color: var(--teal-strong, #0B8478); font-size: .72rem; font-weight: 800; cursor: help; }
.cf-info .cf-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 240px; background: var(--ink); color: #fff; font-weight: 500; font-size: .8rem; line-height: 1.4; padding: 10px 12px; border-radius: 10px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 30; }
.cf-info:hover .cf-tip, .cf-info:focus .cf-tip { opacity: 1; visibility: visible; }
.cf-check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .92rem; margin: 2px 0 10px; cursor: pointer; }
.cf-check input { width: 18px; height: 18px; accent-color: var(--teal); }
.cf-sec { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
/* minmax(0, 1fr): las dos columnas miden siempre lo mismo, aunque un campo (p. ej. el celular con bandera) sea más ancho */
.cf-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.cf-2 > .field { min-width: 0; }
.cf-2 > .field[hidden] { display: none; }
.cf-form select { width: 100%; }
.cf-h { font-size: 1.35rem; margin: 4px 0 8px; }
.cf-code { font-size: 1.8rem; letter-spacing: .5em; text-align: center; font-weight: 800; }
.cf-error { color: var(--coral); font-weight: 600; margin: 6px 0 10px; }
.cf-submit { width: 100%; margin-top: 8px; }
.cf-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: .9rem; }
.cf-links a { color: var(--accent); }
.cf-rules { list-style: none; padding: 0; margin: -4px 0 14px; display: grid; gap: 4px; font-size: .86rem; color: var(--muted); }
.cf-rules li::before { content: '○ '; }
.cf-rules li.ok { color: var(--teal); }
.cf-rules li.ok::before { content: '✓ '; }
.cf-show { display: flex; gap: 8px; align-items: center; font-size: .9rem; margin-bottom: 6px; }
@media (max-width: 560px) { .cf-2 { grid-template-columns: 1fr; } }

/* ---------- Mensajes del login ---------- */
.login-msg:empty { display: none; }
.login-msg { border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; font-size: .9rem; }
.login-msg.bad { background: color-mix(in srgb, var(--coral) 14%, var(--surface)); }
.login-msg.warn { background: color-mix(in srgb, #FFC857 20%, var(--surface)); }
.login-msg.ok, .login-msg.info { background: color-mix(in srgb, var(--teal) 14%, var(--surface)); }
.login-msg ul { margin: 8px 0 10px; padding-left: 18px; }
.login-msg .btn { width: 100%; }

/* ---------- Compra en línea apagada ---------- */
.pay-notice { max-width: 760px; margin: 0 auto 30px; padding: 14px 20px; border-radius: 14px; text-align: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-size: .95rem; }
.btn.is-disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }

/* Aviso «Comprarás para tu cuenta…»: amarillo/naranja, entra rebotando y late suave para que se lea */
.pay-notice.pay-notice--cuenta {
  background: linear-gradient(135deg, #FFE08A, #FFC857 55%, #FFAE6B);
  border: 2px solid #FF8A3D; color: #3A2200; font-size: 1.02rem; font-weight: 600;
  box-shadow: 0 10px 28px rgba(255, 138, 61, .35); padding: 16px 22px;
  animation: pnEntra .7s cubic-bezier(.2, 1.4, .4, 1) both, pnLate 2.4s ease-in-out .9s 3;
}
.pay-notice--cuenta b { color: #2A1800; }
.pay-notice--cuenta .pn-icon { display: inline-block; animation: pnMano 1s ease-in-out .9s 4; }
@keyframes pnEntra { from { opacity: 0; transform: translateY(-18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pnLate { 0%, 100% { box-shadow: 0 10px 28px rgba(255, 138, 61, .35); } 50% { box-shadow: 0 0 0 8px rgba(255, 174, 107, .35), 0 12px 34px rgba(255, 138, 61, .55); } }
@keyframes pnMano { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .pay-notice--cuenta, .pay-notice--cuenta .pn-icon { animation: none; } }

/* ---------- Identificación del vendedor (Ley 1480) ---------- */
.foot-seller { margin: 14px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.foot-seller a { color: inherit; }
.seller-note { margin: 26px auto 0; max-width: 760px; text-align: center; color: var(--muted); font-size: .88rem; }

/* ---------- Aviso de cookies ---------- */
.ck-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 98; margin: 0 auto; max-width: 760px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 20px; display: flex; gap: 18px; align-items: center;
  transform: translateY(140%); visibility: hidden; transition: transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s .45s;
}
.ck-banner.show { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.ck-text { margin: 0; font-size: .92rem; line-height: 1.5; flex: 1; }
.ck-text a { color: var(--accent); font-weight: 600; }
.ck-actions { display: flex; gap: 10px; flex-shrink: 0; }
.ck-actions .btn { padding: 10px 18px; }
@media (max-width: 640px) {
  .ck-banner { flex-direction: column; align-items: stretch; }
  .ck-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Aparición al desplazar ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal.zoom { transform: scale(.92); }
.reveal.zoom.in { transform: none; }

/* Palabra que gira en el titular */
.rotator { display: inline-grid; vertical-align: bottom; color: var(--coral); }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%) rotateX(-70deg); transition: opacity .5s, transform .6s cubic-bezier(.3,1.4,.5,1); }
.rotator > span.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Nota bajo la tabla comparativa: cambio a un plan superior pagando la diferencia */
.cmp-note { margin: 18px auto 0; max-width: 860px; padding: 14px 18px; border-radius: 14px;
  background: var(--surface-2); border: 1px dashed rgba(255, 138, 61, .55);
  font-size: .98rem; line-height: 1.5; text-align: center; }

/* x01: campo trampa para robots, invisible para las personas y los lectores de pantalla */
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Un aviso con «hidden» no debe verse aunque .notice use display:flex */
.notice[hidden] { display: none !important; }

/* l01: casilla obligatoria de términos y privacidad */
.cf-terminos { align-items: flex-start; font-weight: 500; margin: 14px 0 6px; line-height: 1.45; }
.cf-terminos input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.cf-terminos a { font-weight: 700; }
.cf-terminos.err { color: var(--coral); }
.cf-terminos.err input { outline: 2px solid var(--coral); outline-offset: 2px; }

/* m11: cupón de descuento en Precios */
.cupon-box { max-width: 560px; margin: 26px auto 0; text-align: center; }
.cupon-form { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cupon-form label { font-weight: 700; }
.cupon-form input { height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--text);
  text-transform: uppercase; letter-spacing: .06em; width: 180px; font: inherit; }
.cupon-msg { margin: 10px 0 0; font-size: .95rem; }
.cupon-msg.ok { color: var(--teal); }
.cupon-msg.mal { color: var(--coral); }
.cupon-antes { font-size: .9rem; color: var(--muted); margin: -4px 0 4px; }
.cupon-antes b { color: var(--teal); }
.plan.con-cupon .alt-price { display: none; }

/* a21: novedades */
.nov-lista { max-width: 760px; display: grid; gap: 18px; }
.nov-ver { background: var(--card, #fff); border-radius: 18px; padding: 18px 22px; box-shadow: 0 10px 30px rgba(15, 28, 36, .08); border: 1px solid var(--line); }
.nov-ver header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.nov-fecha { font-weight: 800; color: var(--teal); }
.nov-num { font-size: .85rem; color: var(--muted); }
.nov-item { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed var(--line); }
.nov-item:first-of-type { border-top: 0; }
.nov-ico { font-size: 1.4rem; line-height: 1.2; }
.nov-item p { margin: 2px 0 0; color: var(--muted); }

/* w12: el contenido del primer pantallazo no espera la animación de entrada (LCP): siempre visible,
   con un leve desplazamiento hecho solo con transform. */
.hero .reveal, .page-hero .reveal { opacity: 1; transform: none; transition: none; animation: heroIn .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes heroIn { from { transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .hero .reveal, .page-hero .reveal { animation: none; } }
/* w12: contraste de la palabra que rota en el inicio (modo claro) */
:root:not([data-theme="dark"]) .rotator { color: #C8401E; }
/* w12: el rótulo del inicio va sobre la luz verde del fondo: tono más oscuro para mantener el contraste */
:root:not([data-theme="dark"]) .hero .eyebrow { color: #055A52; }
/* w12: las palabras que rotan y no se ven quedan ocultas también para los lectores y las auditorías */
.rotator > span { visibility: hidden; transition: opacity .5s, transform .6s cubic-bezier(.3,1.4,.5,1), visibility 0s .6s; }
.rotator > span.on { visibility: visible; transition: opacity .5s, transform .6s cubic-bezier(.3,1.4,.5,1), visibility 0s 0s; }

/* p15: invitación de un colega en Precios */
.ref-box { max-width: 620px; margin: 14px auto 0; text-align: center; }
.ref-ok { margin: 0; padding: 12px 16px; border-radius: 14px; background: rgba(15, 168, 153, .10); border: 1px solid rgba(15, 168, 153, .3); }
.ref-ok span { font-size: .9rem; color: var(--muted); }

/* p11: cambio de plan */
.cp-dlg { border: 0; border-radius: 20px; padding: 0; width: min(560px, 94vw); max-height: 92vh; overflow: auto; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.cp-dlg::backdrop { background: rgba(15, 28, 36, .55); }
.cp-body { padding: 24px 26px; }
.cp-body h2 { margin: 0 0 10px; font-size: 1.35rem; }
.cp-body p { margin: 0 0 10px; line-height: 1.5; }
.cp-calc { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: .95rem; }
.cp-ops { display: grid; gap: 8px; margin: 6px 0 12px; }
.cp-op { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; }
.cp-op:has(input:checked) { border-color: var(--teal); background: rgba(15, 168, 153, .06); }
.cp-op span { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.cp-op input { accent-color: var(--teal); margin-top: 4px; }
.cp-aviso { padding: 10px 14px; border-radius: 12px; background: #FFF6E5; border: 1px solid #F2C46B; color: #3A2E14; font-size: .92rem; }
.cp-aviso label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.cp-aviso input { margin-top: 3px; accent-color: #C8401E; }
.cp-nota { font-size: .85rem; margin-top: 10px; }
.cp-err { color: #C0392B; }
.cp-btns { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cp-btns .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* x03: segundo paso al entrar */
.dosp-t { font-size: 1.25rem; margin: 0 0 8px; }
.dosp-cod { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.dosp-rec { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 4px 0 12px; }
.dosp-rec input { accent-color: var(--teal); margin-top: 3px; }
.dosp-links { display: grid; gap: 6px; margin-top: 14px; font-size: .9rem; color: var(--muted); }
