/* =============================================================
   Serenfix — web
   1. Tokens · 2. Base · 3. Utilidades · 4. Componentes · 5. Secciones
   6. Efectos · 7. Responsive · 8. Movimiento reducido
   ============================================================= */

/* Fuentes alojadas en la propia web (Inter y Sora, licencia SIL OFL): sin peticiones a Google. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/sora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/sora-latin-700-normal.woff2") format("woff2"); }

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #0b0d10;
  --bg-2: #101317;
  --panel: #151a1f;
  --panel-2: #1b2128;
  --line: #242c34;
  --fg: #eef1f4;
  --muted: #98a2ad;
  --dim: #6b7682;
  --accent: #2ad4c4;
  --accent-2: #128d98;
  --accent-ink: #062a27;
  --accent-glow: rgba(42, 212, 196, .35);
  --female: #ff7aa8;
  --male: #7ab8ff;
  --danger: #ff5a6a;

  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1180px;

  --display: "Sora", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.kicker { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 60ch; }
.center.lead, .center .lead { margin-left: auto; margin-right: auto; }

/* =============================================================
   4. Componentes
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2;
  border: 1px solid transparent; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #3ce6d4, var(--accent) 45%, #1fb2ad); color: var(--accent-ink); box-shadow: 0 8px 28px -8px var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(42, 212, 196, .6); }
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: #3a4652; background: rgba(255, 255, 255, .06); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { font-size: 13px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02); }
.chips li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); margin-right: 8px; vertical-align: 2px; }

/* Teléfono */
.phone {
  position: relative; width: min(320px, 78vw); aspect-ratio: 9 / 16; border-radius: 38px; padding: 10px;
  background: linear-gradient(160deg, #2a323b, #12161a 40%, #1d242b);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px #2d363f, inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; transform: translateX(-50%); background: #05070a; border-radius: 12px; z-index: 3; }
.phone-sm { width: min(280px, 72vw); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #000; }
.phone-video { width: 100%; height: 100%; object-fit: cover; }
.live-badge {
  position: absolute; left: 12px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(6, 10, 12, .72); backdrop-filter: blur(8px); border: 1px solid rgba(42, 212, 196, .35);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 1.8s infinite; }

/* Selector de idioma: siempre visible, también en móvil */
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.lang-switch a { padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.lang-switch a:hover { color: var(--fg); }
.lang-switch a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

/* =============================================================
   5. Secciones
   ============================================================= */

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(11, 13, 16, .78); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { font-size: 15px; color: var(--muted); transition: color .2s; }
.main-nav a:hover { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); position: relative; }
.menu-bars, .menu-bars::before, .menu-bars::after { position: absolute; left: 11px; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.menu-bars { top: 19px; }
.menu-bars::before { content: ""; left: 0; top: -6px; }
.menu-bars::after { content: ""; left: 0; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Aviso de idioma */
.lang-suggest {
  position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 14px 12px 18px; border-radius: 16px;
  background: rgba(21, 26, 31, .95); border: 1px solid var(--line); backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); font-size: 14px;
}
.lang-suggest[hidden] { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(600px 400px at 78% 30%, rgba(42, 212, 196, .16), transparent 70%),
    radial-gradient(500px 360px at 10% 10%, rgba(18, 141, 152, .14), transparent 70%);
}
.pixel-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(21, 26, 31, .6); margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero-title { font-size: clamp(40px, 6.6vw, 76px); font-weight: 700; margin-bottom: 22px; }
.hero-title em { font-style: normal; background: linear-gradient(100deg, #6ff3e5, var(--accent) 40%, #1aa6a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-visual { position: relative; display: grid; justify-items: center; }
.hero-visual .phone { transform: rotate(2deg); }
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 90px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(42, 212, 196, .16) 70%, rgba(111, 243, 229, .55) 99%, transparent);
  mix-blend-mode: screen; animation: scan 3.2s var(--ease-soft) infinite;
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(21, 26, 31, .85); border: 1px solid var(--line); backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
}
.float-card strong { display: block; font-family: var(--display); font-size: 22px; line-height: 1; color: var(--accent); }
.float-card span { font-size: 12px; color: var(--muted); }
.float-card-a { left: max(0px, calc(50% - 270px)); top: 16%; animation: float 6s ease-in-out infinite; }
.hero-note { margin-top: 22px; font-size: 12px; color: var(--dim); text-align: center; max-width: 34ch; }

/* Marquesina */
.marquee-section { border-block: 1px solid var(--line); background: var(--bg-2); padding: 22px 0; }
.marquee-label { text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: 22px; font-weight: 600; color: #4b5661; white-space: nowrap; }

/* Secciones genéricas */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; overflow-x: clip; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Cómo funciona */
.how-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.steps { list-style: none; padding: 0; margin-top: 34px; display: grid; gap: 14px; }
.step { display: flex; gap: 18px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, transform .3s var(--ease-out); }
.step:hover { border-color: rgba(42, 212, 196, .45); transform: translateX(4px); }
.step p { color: var(--muted); }
.step-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-family: var(--display); font-weight: 700; color: var(--accent-ink); background: linear-gradient(135deg, #3ce6d4, var(--accent-2)); }
.popup-figure { justify-self: center; position: relative; }
.popup-figure::before { content: ""; position: absolute; inset: 10% -12%; background: radial-gradient(closest-side, rgba(42, 212, 196, .22), transparent); filter: blur(10px); }
.popup-figure img { position: relative; width: min(360px, 86vw); border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85); }

/* Estilos */
.styles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.style-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.style-picker button {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel); font-size: 15px; font-weight: 500; color: var(--muted);
  transition: border-color .2s, color .2s, transform .2s var(--ease-out), background .2s;
}
.style-picker button:hover { color: var(--fg); transform: translateY(-2px); }
.style-picker button[aria-selected="true"] { border-color: var(--accent); color: var(--fg); background: rgba(42, 212, 196, .08); box-shadow: 0 0 0 3px rgba(42, 212, 196, .12); }
.sw { width: 30px; height: 22px; border-radius: 6px; flex: none; }
.sw-pixel { background: conic-gradient(#d9cfc3 25%, #a99c8e 0 50%, #e8e0d6 0 75%, #8f8274 0) 0 0 / 11px 11px; }
.sw-blur { background: radial-gradient(circle at 40% 40%, #f1e9df, #a99c8e 70%); filter: blur(1.5px); }
.sw-negro { background: #000; box-shadow: inset 0 0 0 1px #3a4652; }
.sw-ovalo { background: #000; border-radius: 50%; box-shadow: inset 0 0 0 1px #3a4652; }
.sw-palabras { background: #000; color: #ff1f2d; font: 800 7px/22px Arial, sans-serif; text-align: center; box-shadow: inset 0 0 0 1px #3a4652; }
.style-stage { justify-self: center; width: min(430px, 100%); }
.style-frame { position: relative; margin: 0 auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 90px -35px rgba(0, 0, 0, .9); background: #1a1712; }
.style-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease-soft); }
.style-frame img.is-active { opacity: 1; }
.mosaic { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; image-rendering: pixelated; }
.style-stage figcaption, .credit { margin-top: 14px; font-size: 12px; color: var(--dim); text-align: center; }

/* Vídeo */
.video-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.video-visual { display: grid; justify-items: center; gap: 18px; }
.video-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.video-switch button { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.video-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.points { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.points li { padding-left: 26px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.points p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats div { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); }
.stats dt { font-size: 12px; color: var(--muted); order: 2; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font-family: var(--display); font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; color: var(--fg); line-height: 1.1; }
.compare { width: 100%; max-width: 820px; margin: clamp(48px, 7vw, 80px) auto 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.compare th, .compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--display); font-size: 14px; color: var(--muted); background: var(--panel-2); }
.compare tbody th { text-align: left; font-weight: 500; }
.compare .us { background: rgba(42, 212, 196, .06); }
.compare thead .us { color: var(--accent); }
.mark { display: inline-block; }
.mark-yes, .mark-no { width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; position: relative; }
.mark-yes { background: var(--accent); }
.mark-yes::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.mark-no { background: rgba(255, 90, 106, .15); }
.mark-no::before, .mark-no::after { content: ""; position: absolute; left: 6px; top: 11px; width: 12px; height: 2px; background: var(--danger); transform: rotate(45deg); }
.mark-no::after { transform: rotate(-45deg); }
.mark-some { font-size: 13px; color: var(--muted); }

/* Galería: ventana de navegador con un feed */
.gallery-section { overflow: hidden; }
.browser { width: min(1100px, calc(100% - 2 * var(--gutter))); margin: 44px auto 0; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.browser-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #3a4450; }
.browser-bar > span:first-child { background: #ff5f57; } .browser-bar > span:nth-child(2) { background: #febc2e; } .browser-bar > span:nth-child(3) { background: #28c840; }
.browser-url { margin-left: 14px; flex: 1; max-width: 360px; padding: 5px 14px; border-radius: 8px; background: var(--bg); font-size: 13px; color: var(--dim); }
.feed { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 14px; padding: 16px; }
.post { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.post img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.post-tall { grid-row: span 2; }
.post-tall img { aspect-ratio: auto; }
.post::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(42, 212, 196, .35) 50%, transparent); background-size: 100% 220%;
  opacity: 0; transition: opacity .3s;
}
.post.is-scanning::after { opacity: 1; animation: postScan .9s var(--ease-soft) forwards; }
.post img { transition: filter .6s var(--ease-soft); }
.post.is-pending img { filter: blur(18px) saturate(.6); }

/* Privacidad */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.checklist { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checklist li::before { content: ""; flex: none; margin-top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23062a27' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.privacy-diagram { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 10px; padding: 34px 22px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 50%, rgba(42, 212, 196, .1), transparent 60%), var(--panel); }
.node { display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.node svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.node-you img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 6px rgba(42, 212, 196, .12), 0 0 40px var(--accent-glow); }
.node-you span { color: var(--fg); font-weight: 600; }
.node-cloud { opacity: .45; position: relative; }
.node-cloud::after { content: ""; position: absolute; left: 50%; top: 23px; width: 64px; height: 2.5px; background: var(--danger); transform: translate(-50%, -50%) rotate(-35deg); border-radius: 2px; }
.flow { position: relative; height: 2px; background: linear-gradient(90deg, var(--line), var(--line)); }
.flow-in i { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); animation: flow 2.4s linear infinite; }
.flow-in i:nth-child(2) { animation-delay: .8s; } .flow-in i:nth-child(3) { animation-delay: 1.6s; }
.flow-out { background: repeating-linear-gradient(90deg, #3a4450 0 6px, transparent 6px 12px); }
.flow-out b { position: absolute; right: -6px; top: -9px; width: 20px; height: 20px; }

/* Filtros */
.filters-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.filter-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.filter-card h3 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.f-women { color: var(--female); } .f-men { color: var(--male); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); font-size: 14px; transition: border-color .2s, background .2s; }
.tags li:hover { border-color: var(--accent); background: rgba(42, 212, 196, .08); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.feature p { color: var(--muted); font-size: 15px; }
.meter { margin-top: 16px; height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 65%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); animation: meter 4s ease-in-out infinite alternate; }

/* Precios */
.save { margin-left: 6px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 20px; }
.plan { position: relative; padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; }
.plan-desc { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.price strong { font-family: var(--display); font-size: 46px; line-height: 1; letter-spacing: -0.03em; }
.price span { color: var(--muted); font-size: 14px; }
.plan-list { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 11px; font-size: 15px; }
.plan-list li { display: flex; gap: 10px; }
.plan-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan-list li.no { color: var(--dim); }
.plan-list li.no::before { content: "✕"; color: var(--dim); }
.plan-premium { border-color: rgba(42, 212, 196, .55); background: linear-gradient(180deg, rgba(42, 212, 196, .09), transparent 40%), var(--panel); box-shadow: 0 30px 80px -40px var(--accent-glow); }
.badge { position: absolute; top: -12px; right: 24px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.pricing-note { margin-top: 22px; font-size: 14px; color: var(--dim); }

/* FAQ */
.faq-list { max-width: 780px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: border-color .2s; }
.faq-list details[open] { border-color: rgba(42, 212, 196, .45); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 600; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease-out); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { padding: 0 22px 20px; color: var(--muted); }

/* CTA final */
.final-cta { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 150px) 0; background: radial-gradient(700px 360px at 50% 100%, rgba(42, 212, 196, .2), transparent 70%), var(--bg); }
.final-cta .container { position: relative; display: grid; justify-items: center; }
.final-logo { margin-bottom: 26px; border-radius: 18px; box-shadow: 0 0 60px var(--accent-glow); }
.final-cta .lead { margin-bottom: 30px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 30ch; }
.site-footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.site-footer nav { display: grid; gap: 9px; align-content: start; }
.site-footer nav a { color: var(--muted); transition: color .2s; }
.site-footer nav a:hover { color: var(--fg); }
.lang-switch-footer a { font-weight: 500; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* =============================================================
   6. Efectos
   ============================================================= */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes scan { 0% { transform: translateY(-100%); opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(760px); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flow { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes meter { 0% { width: 25%; } 100% { width: 92%; } }
@keyframes postScan { from { background-position: 0 120%; } to { background-position: 0 -120%; } }

/* Aparición al hacer scroll: solo con JS (sin JS todo se ve) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js [data-hero-item] { opacity: 0; transform: translateY(18px); }
.js .is-ready [data-hero-item], .js.is-ready [data-hero-item] { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js.is-ready [data-hero-item]:nth-child(2) { transition-delay: .08s; }
.js.is-ready [data-hero-item]:nth-child(3) { transition-delay: .16s; }
.js.is-ready [data-hero-item]:nth-child(4) { transition-delay: .24s; }
.js.is-ready [data-hero-item]:nth-child(5) { transition-delay: .32s; }
/* Red de seguridad: si el JS falla, a los 2,5 s todo aparece igualmente. */
.js .reveal, .js [data-hero-item] { animation: safety-show 0s 2.5s forwards; }
@keyframes safety-show { to { opacity: 1; transform: none; } }
.js.is-ready .reveal, .js.is-ready [data-hero-item] { animation: none; }

/* =============================================================
   7. Responsive (móvil primero en lo esencial; aquí se ajustan las rejillas)
   ============================================================= */
@media (max-width: 959px) {
  .main-nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px;
    background: rgba(11, 13, 16, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease-out);
  }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .menu-toggle { display: inline-block; }
  .hero-inner, .how-grid, .styles-grid, .video-grid, .privacy-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .video-grid .video-visual { order: 2; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .hide-mobile { display: none; }
  .header-inner { gap: 12px; }
  .filters-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .feed { grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; }
  .post-tall { grid-row: span 1; }
  .post-tall img { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stats div { padding: 12px; }
  .compare th, .compare td { padding: 12px 10px; font-size: 14px; }
  .privacy-diagram { grid-template-columns: 1fr; justify-items: center; }
  .flow { width: 2px; height: 34px; }
  .flow-in i { left: -3px !important; animation-name: flowY; }
  .float-card-a { left: 0; top: 6%; }
  .footer-grid { grid-template-columns: 1fr; }
}
@keyframes flowY { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }

/* =============================================================
   8. Movimiento reducido (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .scanline, .float-card-a { animation: none; }
  .scanline { display: none; }
}

/* Aviso breve ("muy pronto") */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 14px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); transition: opacity .3s, transform .4s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Palabras animadas, igual que en la extensión (content.css): CENSORED / DENIED / LOSER en rojo, en bucle de 1,26 s. */
.style-frame, .post-natural { container-type: inline-size; }
.words-layer { position: absolute; inset: 0; pointer-events: none; }
.style-frame .words-layer { opacity: 0; transition: opacity .2s; }
.style-stage[data-active="palabras"] .words-layer { opacity: 1; }
.w-box { position: absolute; background: #000; overflow: hidden; }
.w-box > span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #ff1f2d; font: 900 1em/1 Impact, "Arial Black", system-ui, sans-serif; letter-spacing: .02em; white-space: nowrap;
  opacity: 0; animation: cp-word 1.26s steps(1, end) infinite;
}
.w-box > span:nth-child(2) { animation-delay: -0.84s; }
.w-box > span:nth-child(3) { animation-delay: -0.42s; }
@keyframes cp-word { 0% { opacity: 1; } 33.33% { opacity: 0; } 100% { opacity: 0; } }
.post-natural img { aspect-ratio: auto; height: auto; }

/* Para quién es */
.uses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.use { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, transform .3s var(--ease-out); }
.use:hover { border-color: rgba(42, 212, 196, .45); transform: translateY(-3px); }
.use p { color: var(--muted); font-size: 15px; }
.use-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: rgba(42, 212, 196, .1); border: 1px solid rgba(42, 212, 196, .3); }
.use-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.use-wide { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center; }
.use-wide figure img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.use-wide figcaption { margin-top: 10px; font-size: 12px; color: var(--dim); }
@media (max-width: 959px) { .uses-grid { grid-template-columns: 1fr; } .use-wide { grid-template-columns: 1fr; } }

/* Páginas legales */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin: 18px 0 8px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal strong { color: var(--fg); }
.legal a { color: var(--accent); }
.legal-back { font-size: 14px; color: var(--muted) !important; }
.legal-updated { font-size: 13px; color: var(--dim) !important; }

/* Tres planes a la vez */
.plans-3 { grid-template-columns: repeat(3, minmax(0, 340px)); margin-top: 44px; }
.plans-3 .plan { padding: 28px 26px; }
.plans-3 .price strong { font-size: 40px; }
@media (max-width: 959px) { .plans-3 { grid-template-columns: minmax(0, 420px); } }
.price { flex-wrap: wrap; row-gap: 4px; }
.price strong { white-space: nowrap; }
.plans-3 .price { min-height: 72px; align-content: flex-start; }
@media (max-width: 959px) { .plans-3 .price { min-height: 0; } }
