/* ============================================================================
   Sky Eleven Partners — Landing pública de captación de socios
   Marca sobria y premium, theme-aware (claro + oscuro). Mobile-first.
   Sin dependencias externas salvo la fuente Inter.
   ============================================================================ */

/* ---- Tokens de marca (modo oscuro por default) --------------------------- */
:root {
  --bg: #0B1220;            /* midnight */
  --bg-soft: #0E1524;       /* fondo alterno de secciones */
  --surface: #131C31;       /* tarjetas */
  --surface-2: #18223A;     /* tarjetas hover */
  --text: #E6EAF2;          /* texto principal */
  --text-muted: #A7B0C0;    /* texto secundario */
  --text-dim: #6B7686;      /* texto tenue */
  --primary: #2E6BFF;       /* azul Sky */
  --primary-soft: #5B8BFF;  /* azul claro para acentos de texto */
  --cyan: #22D3EE;          /* cyan secundario */
  --success: #22C55E;
  --warn: #F59E0B;
  --danger: #EF4444;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(46,107,255,0.35);
  --grad: linear-gradient(135deg, #2E6BFF 0%, #22D3EE 100%);
  --shadow: 0 20px 50px rgba(0,0,0,0.45);
  --shadow-primary: 0 14px 40px rgba(46,107,255,0.35);
}

/* ---- Modo claro ---------------------------------------------------------- */
:root[data-theme="light"] {
  --bg: #F7F8FB;
  --bg-soft: #EEF1F7;
  --surface: #FFFFFF;
  --surface-2: #F4F6FB;
  --text: #0B1220;
  --text-muted: #4A5568;
  --text-dim: #8A93A3;
  --primary: #2E6BFF;
  --primary-soft: #1D4ED8;
  --cyan: #0891B2;
  --border: rgba(11,18,32,0.10);
  --border-strong: rgba(46,107,255,0.35);
  --shadow: 0 20px 50px rgba(11,18,32,0.10);
  --shadow-primary: 0 14px 40px rgba(46,107,255,0.28);
}

/* Cuando el visitante no fijó tema y su sistema es claro */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F7F8FB;
    --bg-soft: #EEF1F7;
    --surface: #FFFFFF;
    --surface-2: #F4F6FB;
    --text: #0B1220;
    --text-muted: #4A5568;
    --text-dim: #8A93A3;
    --primary-soft: #1D4ED8;
    --cyan: #0891B2;
    --border: rgba(11,18,32,0.10);
    --shadow: 0 20px 50px rgba(11,18,32,0.10);
    --shadow-primary: 0 14px 40px rgba(46,107,255,0.28);
  }
}

/* ---- Reset y base -------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

/* Halo de marca de fondo (sutil) */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(46,107,255,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(34,211,238,0.10) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Barra superior ------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1040px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
/* Logo REAL de Sky Eleven (isotipo + wordmark, celeste sobre transparente) */
.wordmark { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-img { height: 34px; width: auto; display: block; }
.wordmark-footer .logo-img { height: 44px; }
/* "Partners" al lado del logo, separado por una línea sutil */
.logo-sub {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); padding-left: 11px; border-left: 1px solid var(--border-strong);
  line-height: 1; white-space: nowrap;
}
/* En tema CLARO el celeste sobre blanco pierde contraste: lo metemos en una
   pastilla oscura para que el logo se lea bien en los dos temas. */
:root[data-theme="light"] .wordmark .logo-img,
:root[data-theme="light"] .wordmark-footer .logo-img {
  background: var(--bg); padding: 5px 10px; border-radius: 10px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .wordmark .logo-img {
    background: #0B1220; padding: 5px 10px; border-radius: 10px;
  }
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.theme-toggle:hover { background: var(--surface-2); transform: translateY(-1px); }
.nav-link {
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text-muted);
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border);
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); border-color: var(--border-strong); }
@media (max-width: 560px) { .nav-link { display: none; } }

/* ---- Botones ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 13px; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(46,107,255,0.5); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface); }

/* ---- Secciones ----------------------------------------------------------- */
/* AIRE: secciones bien separadas para que no se vea amontonado */
section { padding: 116px 0; position: relative; }
section.alt { background: var(--bg-soft); }
@media (max-width: 760px) { section { padding: 76px 0; } }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--primary-soft); margin-bottom: 18px;
}
.title {
  font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.14; margin-bottom: 22px; max-width: 20ch;
}
.title b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* Los párrafos guía: ancho de lectura corto y renglones aireados (se leían como bloque) */
.lead {
  font-size: 17px; line-height: 1.75; color: var(--text-muted);
  max-width: 62ch; margin-bottom: 8px;
}
/* Separación entre el encabezado de sección y el contenido que sigue */
.lead + .steps, .lead + .brands, .lead + .values, .lead + .faq, .lead + .sim-wrap { margin-top: 56px; }
.hl { color: var(--primary-soft); font-weight: 700; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: 84px 0 64px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary-soft); background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid var(--border-strong); padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 {
  font-size: clamp(34px, 6.2vw, 62px); font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.05; margin: 0 auto 22px; max-width: 900px;
}
.hero h1 b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-muted); max-width: 660px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; font-size: 13px; color: var(--text-dim); }

/* fila de marcas mini bajo el hero */
.brand-strip {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 44px;
}
.brand-chip {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 15px; border-radius: 999px;
}
.brand-chip { gap: 8px; }
.brand-chip img { width: 18px; height: 18px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter .2s, opacity .2s; }
.brand-chip:hover img { filter: none; opacity: 1; }
.brand-chip b { color: var(--text); font-weight: 700; }

/* ---- Pipeline (cómo funciona la plata) ----------------------------------- */
.pipeline { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 40px; flex-wrap: wrap; text-align: center; }
.pipe-node { background: var(--surface); border: 1px solid var(--border); padding: 18px 26px; border-radius: 14px; min-width: 150px; }
.pipe-node strong { display: block; font-size: 17px; margin-bottom: 3px; }
.pipe-node span { font-size: 13px; color: var(--text-muted); }
.pipe-arrow { font-size: 22px; color: var(--primary); font-weight: 700; }
@media (max-width: 620px) { .pipe-arrow { transform: rotate(90deg); } }

/* ---- Pasos (cómo funciona) ----------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 34px 30px;
  transition: transform .2s, border-color .2s;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff;
  font-weight: 800; font-size: 18px; margin-bottom: 16px; box-shadow: var(--shadow-primary);
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.step p { font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }

/* ---- Grid de marcas ------------------------------------------------------ */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
/* Cada tarjeta es un LINK a la página de esa marca */
.brand {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: transform .2s, border-color .2s, background .2s;
  text-decoration: none; color: inherit;
}
.brand:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
/* "Conocé X →" — aparece con más presencia al pasar el mouse */
.brand-go {
  display: inline-block; margin-top: 14px;
  font-size: 13px; font-weight: 700; color: var(--primary-soft);
  opacity: 0.85; transition: opacity .2s, transform .2s;
}
.brand:hover .brand-go { opacity: 1; transform: translateX(3px); }
/* Marca que todavía no está disponible: sin link, con chip "Próximamente" */
.brand-soon-card { cursor: default; }
.brand-soon-card:hover { transform: none; border-color: var(--border); background: var(--surface); }
.brand-soon-card .brand-logo img { opacity: 0.7; filter: grayscale(0.3); }
.brand-soon {
  display: inline-block; margin-top: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--text-dim); background: var(--surface-2);
  border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px;
}
/* Logo REAL de cada marca. Contenedor de tamaño fijo para que todos se alineen
   aunque los logos tengan proporciones distintas. */
.brand-logo {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 8px;
}
.brand-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
:root[data-theme="light"] .brand-logo { background: #0B1220; border-color: transparent; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand-logo { background: #0B1220; border-color: transparent; }
}
.brand-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.brand-body .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); display: block; margin-bottom: 8px; }
.brand-body p { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }

/* ---- Por qué (valor) ----------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.value { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.value .ico {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--primary) 14%, transparent); border: 1px solid var(--border-strong);
}
.value h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.value p { font-size: 14px; color: var(--text-muted); }

/* ---- Simulador ----------------------------------------------------------- */
.calc {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, var(--surface)) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong); border-radius: 20px; padding: 30px;
}
.calc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.calc-head h3 { font-size: 20px; font-weight: 800; }
.calc-head .pill { background: var(--grad); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.calc-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 26px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 780px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-inputs { display: grid; gap: 22px; align-content: start; }
.calc-field label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 10px; gap: 12px; }
.calc-field .val {
  color: var(--primary-soft); font-weight: 800; font-size: 15px;
  background: color-mix(in srgb, var(--primary) 12%, transparent); padding: 4px 12px; border-radius: 8px;
  min-width: 92px; text-align: right;
}
.calc-field input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px;
  background: color-mix(in srgb, var(--primary) 18%, var(--surface-2)); outline: none;
}
.calc-field input[type="range"]:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent); }
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); cursor: pointer; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(46,107,255,0.5);
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary); cursor: pointer; border: 2px solid #fff;
}
.calc-hint { font-size: 11px; color: var(--text-dim); margin-top: 6px; }
.calc-result {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.calc-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px dashed var(--border); gap: 12px; }
.calc-row:last-child { border-bottom: none; padding-bottom: 0; }
.calc-row .k { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.calc-row .v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.calc-row.highlight {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent) 0%, transparent 100%);
  margin: 0 -12px; padding: 16px 12px; border-radius: 12px; border: 1px solid var(--border-strong);
}
.calc-row.highlight .v { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 28px; }
.calc-note { margin-top: 18px; font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.5; }

.disclaimer {
  background: color-mix(in srgb, var(--warn) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: 14px; padding: 18px 22px; margin-top: 24px; font-size: 14px; color: var(--text-muted);
}
.disclaimer strong { color: var(--warn); display: block; margin-bottom: 6px; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; color: var(--text);
  padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { color: var(--primary); font-size: 20px; transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; font-size: 14px; color: var(--text-muted); }

/* ---- CTA final ----------------------------------------------------------- */
.cta-final { text-align: center; }
.cta-card {
  background: var(--grad); border-radius: 24px; padding: 56px 32px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.cta-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.cta-card h2 { font-size: clamp(28px, 4.8vw, 42px); font-weight: 800; letter-spacing: -0.03em; color: #fff; margin-bottom: 14px; position: relative; }
.cta-card p { color: rgba(255,255,255,0.9); font-size: 17px; max-width: 560px; margin: 0 auto 30px; position: relative; }
.cta-card .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-card .btn-white { background: #fff; color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.cta-card .btn-white:hover { transform: translateY(-2px); }
.cta-card .btn-clear { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.cta-card .btn-clear:hover { transform: translateY(-2px); background: rgba(255,255,255,0.22); }

/* ---- Footer -------------------------------------------------------------- */
footer { border-top: 1px solid var(--border); padding: 36px 0; text-align: center; font-size: 13px; color: var(--text-dim); }
footer .wordmark { justify-content: center; margin-bottom: 14px; }
footer a { color: var(--primary-soft); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .fine { margin-top: 14px; font-size: 11px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---- Animaciones de aparición (IntersectionObserver) --------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Foco accesible ------------------------------------------------------ */
a:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 2px; border-radius: 8px;
}


/* ---- Aclaracion del canal de contacto (solo WhatsApp) -------------------- */
.wa-note {
  margin-top: 18px; font-size: 14px; color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}
.wa-note strong { color: #fff; }
