/* ============================================================
   Franco Palumbi · Módulo Lanzamientos · LP1
   theme.css — tokens + 4 paletas + aurora + curvas + tipografía
   Todo derivado de design-system/*.md. Cero invención de color/tipo.
   Estrategia (palettes.md): un solo HTML, [data-theme] redefine
   variables. Formas idénticas; solo cambia color.
   ============================================================ */

/* ---------- Tokens base (tokens.md) ---------- */
:root {
  --fp-navy: #05177f;
  --fp-navy-deep: #04102b;
  --fp-navy-soft: #071b52;
  --fp-purple: #4328a5;
  --fp-purple-deep: #331d82;
  --fp-blue-electric: #3b30f8;
  --fp-blue-bright: #5450ff;
  --fp-purple-bright: #8752fa;
  --fp-lavender: #9999ff;
  --fp-mist: #cbd9f7;
  --fp-white: #ffffff;
  --fp-paper: #f7f7f4;
  --fp-ink: #0a0e22;

  --gutter: max(16px, calc(env(safe-area-inset-left, 0px) + clamp(16px, 4vw, 32px)));
}

/* =========================================================
   PALETAS — cada theme redefine el mismo contrato de tokens.
   Buckets de superficie:
     dk-*  → superficies "oscuras" (hero / deep / iris)
     lt-*  → superficie "banda" (paper)
   En light los dk-* también son claros (todo el tema es claro).
   ========================================================= */

/* ---------- DARK (default) — valores literales de aurora.md/tokens.md ---------- */
[data-theme="dark"] {
  --hero-bg: #050a35;
  --hero-b1: rgba(67, 40, 165, 0.85);
  --hero-b2: rgba(59, 48, 248, 0.75);
  --hero-b3: rgba(135, 82, 250, 0.45);
  --hero-b4: rgba(5, 23, 127, 0.85);

  --deep-bg: #02061f;
  --deep-b1: rgba(67, 40, 165, 0.5);
  --deep-b2: rgba(5, 23, 127, 0.85);

  --iris-bg: #150535;
  --iris-b1: rgba(135, 82, 250, 0.85);
  --iris-b2: rgba(59, 48, 248, 0.75);
  --iris-b3: rgba(232, 108, 234, 0.4);
  --iris-b4: rgba(67, 40, 165, 0.7);

  --band-bg: var(--fp-paper);

  --dk-fg: #ffffff;
  --dk-muted: rgba(255, 255, 255, 0.72);
  --dk-card-bg: rgba(255, 255, 255, 0.04);
  --dk-card-border: rgba(255, 255, 255, 0.1);
  --dk-card-fg: #ffffff;
  --dk-card-muted: rgba(255, 255, 255, 0.7);

  --lt-fg: var(--fp-ink);
  --lt-muted: rgba(10, 14, 34, 0.6);
  --lt-card-bg: rgba(255, 255, 255, 0.55);
  --lt-card-border: rgba(255, 255, 255, 0.7);
  --lt-card-fg: var(--fp-ink);
  --lt-card-muted: rgba(10, 14, 34, 0.6);

  --grad-from: var(--fp-blue-bright);
  --grad-to: var(--fp-purple-bright);
  --amount-color: var(--fp-purple-bright);
  --amount-glow: rgba(135, 82, 250, 0.45);
  --eyebrow-color: var(--fp-purple-bright);

  --cta-bg: linear-gradient(135deg, #5450ff 0%, #3b30f8 100%);
  --cta-fg: #ffffff;
  --cta-glow: rgba(84, 80, 255, 0.4);

  --page-bg: #050a35;
  --grain: 1; /* @kind other */
}

/* ---------- LIGHT — todo claro (palettes.md) ---------- */
[data-theme="light"] {
  --hero-bg: var(--fp-paper);
  --hero-b1: rgba(135, 82, 250, 0.10);
  --hero-b2: rgba(84, 80, 255, 0.08);
  --hero-b3: rgba(153, 153, 255, 0.10);
  --hero-b4: rgba(203, 217, 247, 0.40);

  --deep-bg: var(--fp-paper);
  --deep-b1: rgba(67, 40, 165, 0.06);
  --deep-b2: rgba(203, 217, 247, 0.35);

  --iris-bg: var(--fp-paper);
  --iris-b1: rgba(135, 82, 250, 0.10);
  --iris-b2: rgba(84, 80, 255, 0.08);
  --iris-b3: rgba(232, 108, 234, 0.06);
  --iris-b4: rgba(203, 217, 247, 0.40);

  --band-bg: #ffffff;

  --dk-fg: var(--fp-ink);
  --dk-muted: rgba(10, 14, 34, 0.6);
  --dk-card-bg: rgba(255, 255, 255, 0.55);
  --dk-card-border: rgba(255, 255, 255, 0.7);
  --dk-card-fg: var(--fp-ink);
  --dk-card-muted: rgba(10, 14, 34, 0.6);

  --lt-fg: var(--fp-ink);
  --lt-muted: rgba(10, 14, 34, 0.6);
  --lt-card-bg: rgba(255, 255, 255, 0.7);
  --lt-card-border: rgba(10, 14, 34, 0.08);
  --lt-card-fg: var(--fp-ink);
  --lt-card-muted: rgba(10, 14, 34, 0.6);

  --grad-from: var(--fp-purple);
  --grad-to: var(--fp-purple-bright);
  --amount-color: var(--fp-purple);
  --amount-glow: rgba(67, 40, 165, 0.25);
  --eyebrow-color: var(--fp-purple);

  --cta-bg: linear-gradient(135deg, #4328a5 0%, #331d82 100%);
  --cta-fg: #ffffff;
  --cta-glow: rgba(67, 40, 165, 0.35);

  --page-bg: var(--fp-paper);
  --grain: 0; /* @kind other */
}

/* ---------- AMBER — base azul-negro + blobs ámbar/marrón (palettes.md) ---------- */
[data-theme="amber"] {
  --hero-bg: #050714;
  --hero-b1: rgba(245, 158, 11, 0.30);
  --hero-b2: rgba(120, 53, 15, 0.55);
  --hero-b3: rgba(251, 191, 36, 0.22);
  --hero-b4: rgba(120, 53, 15, 0.60);

  --deep-bg: #04060f;
  --deep-b1: rgba(120, 53, 15, 0.50);
  --deep-b2: rgba(245, 158, 11, 0.20);

  --iris-bg: #0a0713;
  --iris-b1: rgba(251, 191, 36, 0.30);
  --iris-b2: rgba(245, 158, 11, 0.28);
  --iris-b3: rgba(217, 119, 6, 0.25);
  --iris-b4: rgba(120, 53, 15, 0.55);

  --band-bg: #0e0a04;

  --dk-fg: #ffffff;
  --dk-muted: rgba(255, 255, 255, 0.72);
  --dk-card-bg: #201810;
  --dk-card-border: rgba(251, 191, 36, 0.18);
  --dk-card-fg: #ffffff;
  --dk-card-muted: rgba(255, 255, 255, 0.7);

  --lt-fg: #ffffff;
  --lt-muted: rgba(255, 255, 255, 0.72);
  --lt-card-bg: #201810;
  --lt-card-border: rgba(251, 191, 36, 0.18);
  --lt-card-fg: #ffffff;
  --lt-card-muted: rgba(255, 255, 255, 0.7);

  --grad-from: #fbbf24;
  --grad-to: #f59e0b;
  --amount-color: #fbbf24;
  --amount-glow: rgba(245, 158, 11, 0.45);
  --eyebrow-color: #fbbf24;

  --cta-bg: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --cta-fg: #14100a;
  --cta-glow: rgba(245, 158, 11, 0.4);

  --page-bg: #050714;
  --grain: 1; /* @kind other */
}

/* ---------- DARKRED — base negro + blobs rojos (palettes.md) ---------- */
[data-theme="darkred"] {
  --hero-bg: #000000;
  --hero-b1: rgba(185, 28, 28, 0.55);
  --hero-b2: rgba(239, 68, 68, 0.30);
  --hero-b3: rgba(127, 29, 29, 0.50);
  --hero-b4: rgba(127, 29, 29, 0.70);

  --deep-bg: #050101;
  --deep-b1: rgba(127, 29, 29, 0.50);
  --deep-b2: rgba(185, 28, 28, 0.50);

  --iris-bg: #0a0202;
  --iris-b1: rgba(239, 68, 68, 0.32);
  --iris-b2: rgba(185, 28, 28, 0.50);
  --iris-b3: rgba(127, 29, 29, 0.45);
  --iris-b4: rgba(127, 29, 29, 0.60);

  --band-bg: #0d0505;

  --dk-fg: #ffffff;
  --dk-muted: rgba(255, 255, 255, 0.72);
  --dk-card-bg: #180808;
  --dk-card-border: rgba(239, 68, 68, 0.18);
  --dk-card-fg: #ffffff;
  --dk-card-muted: rgba(255, 255, 255, 0.7);

  --lt-fg: #ffffff;
  --lt-muted: rgba(255, 255, 255, 0.72);
  --lt-card-bg: #180808;
  --lt-card-border: rgba(239, 68, 68, 0.18);
  --lt-card-fg: #ffffff;
  --lt-card-muted: rgba(255, 255, 255, 0.7);

  --grad-from: #ef4444;
  --grad-to: #b91c1c;
  --amount-color: #ef4444;
  --amount-glow: rgba(239, 68, 68, 0.45);
  --eyebrow-color: #ef4444;

  --cta-bg: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  --cta-fg: #ffffff;
  --cta-glow: rgba(239, 68, 68, 0.4);

  --page-bg: #000000;
  --grain: 1; /* @kind other */
}

/* =========================================================
   RESET + BODY (typography.md)
   ========================================================= */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* Scrollbars propios (no nativos) · tinte de marca visible en dark y light */
* { scrollbar-width: thin; scrollbar-color: rgba(135,130,255,0.5) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(135,130,255,0.45); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(135,130,255,0.7); background-clip: padding-box; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.5;
  background: var(--page-bg);
  color: var(--dk-fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--amount-color); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }
img { max-width: 100%; display: block; }

/* =========================================================
   TIPOGRAFÍA (typography.md) — escala canónica, sin tamaños extra
   ========================================================= */
.fp-h1, .fp-h2, .fp-h3 {
  font-family: "Rubik", system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}
.fp-h1 { font-size: clamp(40px, 5.5vw, 72px); letter-spacing: -0.035em; line-height: 1.05; }
.fp-h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.fp-h3 { font-weight: 400; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; }
.fp-lead {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.86;
  max-width: 56ch;
  line-height: 1.55;
  margin: 0;
}
.eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--eyebrow-color);
  font-weight: 500;
  margin: 0 0 12px;
  display: block;
}

/* Text-grad highlight (utilities.md / typography.md) */
.text-grad {
  background: linear-gradient(135deg, var(--grad-from) 0%, var(--grad-to) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  filter: drop-shadow(0 0 24px var(--amount-glow));
}

/* =========================================================
   UTILITIES — glass (utilities.md)
   ========================================================= */
.glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.glass-strong {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}
.glass-light {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 28px rgba(10, 14, 34, 0.06),
    0 24px 60px -20px rgba(67, 40, 165, 0.18);
}

/* =========================================================
   LAYOUT (spacing.md)
   ========================================================= */
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.section-pad { padding: 130px 0; }
.section-pad.has-curve { padding-bottom: 260px; }
.section-head { max-width: 720px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* =========================================================
   SUPERFICIES — aurora parametrizada (aurora.md)
   Coordenadas de blobs FIJAS; solo color via variables.
   ========================================================= */
.surface { position: relative; isolation: isolate; }
.surface > .container { position: relative; z-index: 2; }

.surface-hero {
  background-color: var(--hero-bg);
  color: var(--dk-fg);
  --card-bg: var(--dk-card-bg);
  --card-border: var(--dk-card-border);
  --card-fg: var(--dk-card-fg);
  --card-muted: var(--dk-card-muted);
  --surf-fg: var(--dk-fg);
  --surf-muted: var(--dk-muted);
  background-image:
    linear-gradient(180deg, var(--hero-bg) 0px, color-mix(in srgb, var(--hero-bg) 85%, transparent) 280px, transparent 700px),
    radial-gradient(ellipse 90% 70% at 18% 20%, var(--hero-b1) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 75%, var(--hero-b2) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 15%, var(--hero-b3) 0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 25% 85%, var(--hero-b4) 0%, transparent 60%);
}
.surface-deep {
  background-color: var(--deep-bg);
  color: var(--dk-fg);
  --card-bg: var(--dk-card-bg);
  --card-border: var(--dk-card-border);
  --card-fg: var(--dk-card-fg);
  --card-muted: var(--dk-card-muted);
  --surf-fg: var(--dk-fg);
  --surf-muted: var(--dk-muted);
  background-image:
    linear-gradient(180deg, var(--deep-bg) 0px, color-mix(in srgb, var(--deep-bg) 85%, transparent) 280px, transparent 700px),
    radial-gradient(ellipse 70% 50% at 30% 30%, var(--deep-b1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 80%, var(--deep-b2) 0%, transparent 55%);
}
.surface-iris {
  background-color: var(--iris-bg);
  color: var(--dk-fg);
  --card-bg: var(--dk-card-bg);
  --card-border: var(--dk-card-border);
  --card-fg: var(--dk-card-fg);
  --card-muted: var(--dk-card-muted);
  --surf-fg: var(--dk-fg);
  --surf-muted: var(--dk-muted);
  background-image:
    linear-gradient(180deg, var(--iris-bg) 0px, color-mix(in srgb, var(--iris-bg) 85%, transparent) 280px, transparent 700px),
    radial-gradient(ellipse 80% 60% at 18% 25%, var(--iris-b1) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 78% 70%, var(--iris-b2) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 72% 18%, var(--iris-b3) 0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 28% 88%, var(--iris-b4) 0%, transparent 55%);
}
.surface-band {
  background-color: var(--band-bg);
  color: var(--lt-fg);
  --card-bg: var(--lt-card-bg);
  --card-border: var(--lt-card-border);
  --card-fg: var(--lt-card-fg);
  --card-muted: var(--lt-card-muted);
  --surf-fg: var(--lt-fg);
  --surf-muted: var(--lt-muted);
}

/* Grain overlay (utilities.md) — solo superficies oscuras, no en light */
.surface-hero::after, .surface-deep::after, .surface-iris::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: calc(0.07 * var(--grain));
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* =========================================================
   CURVE DIVIDERS (curves.md) — fill sigue las variables del theme
   ========================================================= */
.curve-divider {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  width: 100%;
  height: 130px;
  display: block;
  pointer-events: none;
  z-index: 5;
}
.curve-to-band path { fill: var(--band-bg); }
.curve-to-deep path { fill: var(--deep-bg); }
.curve-to-iris path { fill: var(--iris-bg); }
.curve-to-hero path { fill: var(--hero-bg); }

.curve-chevron {
  position: absolute;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--surf-fg) 55%, transparent);
}
.curve-chevron svg {
  width: 22px; height: 12px;
  animation: chevron-bounce 1.8s ease-in-out infinite;
}
@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* =========================================================
   COMPONENTES DE CONTENIDO
   ========================================================= */
/* Badge superior del hero */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--surf-fg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #ff4d4d;
  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* Hero layout — split: texto izquierda + foto derecha (ref. francopalumbi.com) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  min-height: clamp(480px, 66vh, 720px);
}
.hero-content { text-align: left; max-width: 620px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-content .fp-h1 { margin: 22px 0 0; }
.hero-content .fp-lead { margin: 22px 0 0; max-width: 52ch; }
.hero-proof {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px; font-size: 14.5px; color: var(--surf-muted);
}
.hero-proof .avatars { display: inline-flex; }
.hero-proof .avatars span {
  width: 26px; height: 26px; border-radius: 999px;
  border: 2px solid var(--hero-bg);
  margin-left: -8px;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
}
.hero-proof .avatars span:first-child { margin-left: 0; }
.cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; }

.hero-photo {
  position: relative; align-self: stretch;
  min-height: 420px; display: flex; align-items: center; justify-content: center;
}
.hero-photo::before {
  content: ""; position: absolute; inset: -8% -6%;
  background: radial-gradient(ellipse 58% 60% at 52% 44%, var(--amount-glow), transparent 62%);
  z-index: 0; pointer-events: none;
}
.hero-photo-inner {
  position: relative; z-index: 1;
  width: 100%; height: 100%; min-height: 420px;
  border-radius: 22px; overflow: hidden;
  background: var(--dk-card-bg); border: 1px solid var(--dk-card-border);
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-image: repeating-linear-gradient(135deg, rgba(127,127,127,.10) 0, rgba(127,127,127,.10) 10px, transparent 10px, transparent 20px);
}
.hero-photo-inner span {
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.6;
  color: var(--surf-fg); opacity: 0.6;
}

/* Botón CTA (tokens.md radios/sombras) */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 34px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  background: var(--cta-bg);
  color: var(--cta-fg);
  box-shadow: 0 12px 32px var(--cta-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 42px var(--cta-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.cta:active { transform: translateY(0); }
.cta-outline {
  background: transparent;
  color: var(--surf-fg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}
.surface-band .cta-outline { border-color: rgba(10, 14, 34, 0.15); }

/* Date-tag / reloj bajo el CTA */
.date-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 12px;
  font-size: 13.5px; font-weight: 400;
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--surf-fg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Bullets "Aunque hoy" */
.dolor-list { list-style: none; margin: 40px auto 0; padding: 0; max-width: 760px; display: grid; gap: 16px; }
.dolor-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px; border-radius: 18px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--card-fg);
  font-size: 17px; line-height: 1.5;
}
.dolor-list li::before {
  content: "";
  flex: none; margin-top: 9px;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--amount-color);
  box-shadow: 0 0 16px var(--amount-glow);
}
.dolor-cierre { max-width: 68ch; margin: 44px auto 0; font-size: 18px; line-height: 1.6; color: var(--surf-fg); opacity: 0.92; }

/* Perfiles grid (spacing.md) */
.perfiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 56px auto 0; }
.perfil-card {
  padding: 32px 28px; border-radius: 22px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--card-fg);
  transition: transform 0.25s, box-shadow 0.25s;
}
.perfil-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); }
.perfil-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px;
  font-size: 16px; font-weight: 500;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: #fff;
}
.perfil-card .fp-h3 { margin-bottom: 12px; }
.perfil-card p { margin: 0; color: var(--card-muted); font-size: 15.5px; line-height: 1.55; }

/* Qué aprenderás (5 checks) */
.aprender-list { list-style: none; margin: 52px auto 0; padding: 0; max-width: 820px; display: grid; gap: 14px; }
.aprender-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px; border-radius: 16px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--card-fg);
  font-size: 16.5px; line-height: 1.5;
}
.check {
  flex: none; width: 26px; height: 26px; border-radius: 999px; margin-top: 1px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: #fff;
}
.check svg { width: 14px; height: 14px; }

/* CTA intermedio / bloques centrados oscuros */
.cta-block { max-width: 720px; margin: 0 auto; text-align: center; }
.cta-block .date-line { font-size: clamp(24px, 3vw, 34px); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
.cta-block .date-line strong { font-weight: 500; }
.cta-block .sub { margin: 18px auto 0; font-size: 18px; opacity: 0.86; max-width: 52ch; }
.cta-block .cta { margin-top: 34px; }

/* Prueba social / resultados placeholder */
.proof-big {
  max-width: 720px; margin: 0 auto; text-align: center;
  padding: 56px 40px; border-radius: 22px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--card-fg);
}
.proof-num {
  font-family: "Rubik", sans-serif; font-weight: 300;
  font-size: clamp(64px, 10vw, 120px); line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 32px var(--amount-glow));
}
.proof-big .fp-h3 { margin: 12px 0 10px; }
.proof-big p { margin: 0 auto; max-width: 48ch; color: var(--card-muted); font-size: 16px; }
.proof-note {
  margin: 28px auto 0; max-width: 560px; font-size: 12.5px; letter-spacing: 0.02em;
  color: var(--surf-muted); opacity: 0.8;
}

/* Bio (spacing.md) */
.bio-wrap { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; }
.bio-photo {
  width: 240px; height: 300px; border-radius: 22px; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-border);
}
.bio-text .fp-h2 { margin-bottom: 6px; }
.bio-text .role { color: var(--surf-muted); font-size: 15px; margin: 0 0 20px; }
.bio-text p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.6; color: var(--surf-fg); opacity: 0.92; }
.bio-text p:last-child { margin-bottom: 0; }

/* Objeciones (spacing.md 2x3) */
.objeciones-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 960px; margin: 52px auto 0; }
.objecion {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 22px; border-radius: 16px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--card-fg);
  font-size: 16px; line-height: 1.5;
}
.objecion .check { background: linear-gradient(135deg, var(--grad-from), var(--grad-to)); }

/* Countdown (spacing.md — cell radius 12px) */
.countdown { display: flex; justify-content: center; gap: clamp(10px, 2vw, 20px); margin: 40px auto 0; flex-wrap: wrap; }
.cd-cell {
  min-width: 92px; padding: 22px 16px; border-radius: 12px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--card-fg); text-align: center;
}
.cd-num {
  font-family: "Rubik", sans-serif; font-weight: 300;
  font-size: clamp(38px, 5vw, 54px); line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.cd-label { display: block; margin-top: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--surf-muted); }
.countdown-live { margin-top: 40px; font-size: clamp(28px, 4vw, 44px); font-weight: 400; }

/* Footer */
.site-footer { padding: 48px 0; text-align: center; }
.site-footer p { margin: 0; font-size: 13px; color: var(--surf-muted); }

/* Nav mínimo (logo_url) */
.site-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
}
.logo-slot {
  height: 34px; min-width: 120px; border-radius: 8px;
  display: flex; align-items: center; padding: 0 14px;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  color: var(--dk-fg);
  background: var(--dk-card-bg); border: 1px solid var(--dk-card-border);
}

/* =========================================================
   MODAL (requirements.md)
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal-card {
  position: relative;
  width: min(480px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  border-radius: 20px;
  padding: 40px 36px 36px;
  background: var(--band-bg);
  color: var(--lt-fg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .modal-card, [data-theme="light"] .modal-card { background: #ffffff; color: var(--fp-ink); }
[data-theme="amber"] .modal-card { background: #1a140d; color: #fff; border: 1px solid rgba(251, 191, 36, 0.18); }
[data-theme="darkred"] .modal-card { background: #150707; color: #fff; border: 1px solid rgba(239, 68, 68, 0.18); }
.modal-card h2 { font-family: "Rubik"; font-weight: 400; font-size: 24px; margin: 0 0 8px; letter-spacing: -0.02em; }
.modal-card .modal-sub { margin: 0 0 24px; font-size: 15px; opacity: 0.7; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid rgba(127, 127, 127, 0.25); background: transparent;
  color: inherit; cursor: pointer; font-size: 20px; line-height: 1;
  display: grid; place-items: center; transition: background 0.2s;
}
.modal-close:hover { background: rgba(127, 127, 127, 0.14); }
.embed-slot {
  border: 2px dashed rgba(127, 127, 127, 0.4);
  border-radius: 12px;
  min-height: 360px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 32px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px; color: inherit; opacity: 0.75;
}
.embed-slot .embed-icon { width: 40px; height: 40px; opacity: 0.6; }
.embed-slot code { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(127, 127, 127, 0.16); }

/* =========================================================
   STICKY MOBILE CTA (requirements.md) — solo < 780px
   ========================================================= */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--page-bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid var(--dk-card-border);
  transform: translateY(120%);
  transition: transform 0.3s ease;
}
.sticky-cta .cta { width: 100%; }

/* =========================================================
   FADE-UP (utilities.md)
   ========================================================= */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.6s; }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   MODO EDICIÓN — slots configurables visibles
   ========================================================= */
[data-slot] { position: relative; }
body.edit-mode [data-slot] { outline: 1.5px dashed rgba(120, 130, 255, 0.7); outline-offset: 3px; border-radius: 4px; }
body.edit-mode [data-slot]::before {
  content: attr(data-slot);
  position: absolute; top: -9px; left: 0; z-index: 40;
  transform: translateY(-100%);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.02em;
  padding: 2px 7px; border-radius: 5px; white-space: nowrap;
  background: #4328a5; color: #fff;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
body.edit-mode [data-slot][data-fixed]::before { background: #6b7280; }
body:not(.edit-mode) .config-panel { display: none; }
.config-panel {
  max-width: 1180px; margin: 0 auto; padding: 24px var(--gutter);
}
.config-panel .cfg-inner {
  border: 1.5px dashed rgba(120, 130, 255, 0.7); border-radius: 16px; padding: 24px;
  background: var(--card-bg); color: var(--surf-fg);
}
.config-panel h4 { margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.config-panel p.cfg-desc { margin: 0 0 16px; font-size: 12.5px; opacity: 0.7; }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cfg-item {
  padding: 10px 12px; border-radius: 8px;
  background: rgba(127, 127, 127, 0.1); border: 1px solid rgba(127, 127, 127, 0.16);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px;
}
.cfg-item b { display: block; font-weight: 600; margin-bottom: 2px; }
.cfg-item span { opacity: 0.65; font-family: "Rubik", sans-serif; font-size: 11px; }

/* =========================================================
   RESPONSIVE (breakpoint canónico 780px)
   ========================================================= */
@media (max-width: 780px) {
  .section-pad { padding: 64px 0; }
  .section-pad.has-curve { padding-bottom: 140px; }
  .curve-divider { height: 90px; }
  .curve-chevron { bottom: 68px; }
  .perfiles-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .objeciones-grid { grid-template-columns: 1fr; }
  .bio-wrap { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .bio-photo { margin: 0 auto; }
  .cd-cell { min-width: 68px; padding: 16px 10px; }
  .sticky-cta { display: block; }
  .site-nav { padding: 16px var(--gutter); }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
  .hero-photo { min-height: 320px; }
  .hero-photo-inner { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .curve-chevron svg { animation: none; }
  .hero-badge .dot { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .cta { transition: none; }
}
