/* ===== Tipografía Gilroy ===== */
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Light.ttf") format("truetype");     font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Regular.ttf") format("truetype");   font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Medium.ttf") format("truetype");    font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-SemiBold.ttf") format("truetype");  font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Bold.ttf") format("truetype");      font-weight: 700; font-style: normal; font-display: swap; }
/* Gilroy no incluye ExtraBold: mapeamos el peso 800 al Bold real para evitar negrita sintética */
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Bold.ttf") format("truetype");      font-weight: 800; font-style: normal; font-display: swap; }
/* Itálicas */
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-RegularItalic.ttf") format("truetype");  font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-MediumItalic.ttf") format("truetype");   font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-SemiBoldItalic.ttf") format("truetype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-BoldItalic.ttf") format("truetype");     font-weight: 700; font-style: italic; font-display: swap; }

/* ===== Tokens ===== */
:root {
  --font-sans: "Gilroy", "Poppins", system-ui, -apple-system, sans-serif;
  --font-display: "Gilroy", "Poppins", system-ui, -apple-system, sans-serif;

  /* Marca (paleta oficial) */
  --brand: #1b62f2;
  --brand-dark: #103fb0;
  --brand-2: #6f9bf7;      /* azul claro para fondos oscuros */
  --accent: #f54863;       /* coral */
  --brand-light: #c3dbf2;  /* azul claro */
  --brand-tint: #e9f1fd;   /* azul muy claro para fondos */

  /* Acentos (familia azul + coral) para radar, iconos y líneas */
  --c-violet: #1b62f2;
  --c-cyan:   #5b8def;
  --c-teal:   #103fb0;
  --c-blue:   #1b62f2;
  --c-orange: #f54863;
  --c-pink:   #f77f91;

  --ink: #191919;
  --muted: #5f6470;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --border: #e3e8f2;

  /* Oscuros (hero / sección radar) */
  --dark: #191919;
  --dark-2: #10141f;
  --dark-line: rgba(111, 155, 247, 0.18);
  --on-dark: #e8ecf5;
  --on-dark-soft: #a3a8b8;

  --radius: 16px;
  --shadow: 0 10px 30px -14px rgba(25, 25, 25, 0.16);
  --shadow-lg: 0 30px 60px -24px rgba(27, 98, 242, 0.4);
  --max: 1160px;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Iconos */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 12px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -12px rgba(27, 98, 242, 0.8); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost-dark { background: rgba(255,255,255,0.04); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-tint); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: var(--brand); }
.eyebrow-light { color: var(--brand-2); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(25, 25, 25, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; display: inline-flex; align-items: center; }
.brand-you { color: var(--brand-2); }
.brand-leader { color: #fff; }
.brand-leader-dark { color: var(--ink); }
.brand-dot { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: #c9ccd6; font-weight: 500; }
.nav > a:hover { color: #fff; }
.nav .caret { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.nav-cta { color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(27, 98, 242, 0.32), transparent 60%),
    radial-gradient(700px 500px at 12% 20%, rgba(27, 98, 242, 0.18), transparent 60%),
    linear-gradient(180deg, #191919, #10141f);
}
.hero-inner { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 40px; align-items: center; padding: 64px 24px 76px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; font-weight: 800; }
.hero .highlight { color: var(--accent); }
.lead { margin-top: 20px; font-size: 17.5px; color: #c3c6d4; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 28px; font-size: 13.5px; color: #a3a8b8; }
.hero-note .ic-check { flex: none; width: 20px; height: 20px; color: #34d399; margin-top: 1px; }

/* Radar stage (flanqueado por fuentes) */
.radar-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.radar-col { display: flex; flex-direction: column; gap: 26px; }
.src { display: flex; align-items: flex-start; gap: 12px; }
.src-ic {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  display: grid; place-items: center; color: var(--brand-2);
}
.src-ic .ic { width: 20px; height: 20px; }
.src-tx strong { display: block; font-size: 14px; color: #fff; line-height: 1.25; }
.src-tx small { color: #a3a8b8; font-size: 12px; line-height: 1.3; }

/* Colores de iconos */
.c-violet { color: var(--c-violet) !important; }
.c-cyan { color: var(--c-cyan) !important; }
.c-teal { color: var(--c-teal) !important; }
.c-blue { color: var(--c-blue) !important; }
.c-orange { color: var(--c-orange) !important; }
.c-pink { color: var(--c-pink) !important; }

.radar-scope { position: relative; display: grid; place-items: center; }
.radar { width: 100%; height: auto; max-width: 320px; display: block; }
.radar-caption { text-align: center; margin-top: 8px; font-size: 13px; color: #b6bccb; }

/* ===== Trust ===== */
.trust { padding: 34px 0; background: #fff; border-bottom: 1px solid var(--border); }
.trust p { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; }
.logos span { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #9aa0ad; letter-spacing: .02em; filter: grayscale(1); }
.logos img { height: 34px; width: auto; object-fit: contain; opacity: .65; filter: grayscale(1); transition: opacity .2s ease; }
.logos img:hover { opacity: 1; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.3vw, 36px); }
.section-sub { color: var(--muted); font-size: 17px; margin-top: 12px; }
.strong-line { font-family: var(--font-display); font-weight: 700; }

/* ===== Sección 2 — Desafío ===== */
.challenge-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 40px; align-items: start; }
.challenge-intro h2 { font-size: clamp(24px, 3vw, 32px); }
.challenge-intro p { color: var(--muted); margin-top: 14px; font-size: 15.5px; }
.challenge-photo {
  margin-top: 22px; height: 190px; border-radius: 16px; border: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(27, 98, 242,.55), transparent 60%),
    linear-gradient(160deg, #10214a, #1b62f2 55%, #c3dbf2);
  position: relative; overflow: hidden;
}
.challenge-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 50% 100%, rgba(255,255,255,.25), transparent 70%),
    linear-gradient(0deg, rgba(20,20,20,.4), transparent 45%);
}
.questions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.q-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.q-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.q-card p { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.q-line { width: 26px; height: 3px; border-radius: 3px; background: var(--brand); opacity: .5; }
.callout {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 32px; padding: 22px 26px;
  background: var(--brand-tint); border: 1px solid #d3e3fb; border-radius: 16px;
}
.callout-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--brand); display: grid; place-items: center; }
.callout strong { font-family: var(--font-display); font-size: 17px; }
.callout p { color: var(--muted); margin-top: 4px; }

/* ===== Sección 3 — MEEL ===== */
.meel-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.meel-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 20px 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.meel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.meel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.meel-ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff);
}
.meel-num { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--muted); opacity: .4; }
.meel-card h3 { font-size: 16.5px; line-height: 1.25; margin-bottom: 8px; }
.meel-card p { color: var(--muted); font-size: 13.5px; }
.meel-line { position: absolute; left: 20px; bottom: 18px; width: 34px; height: 3px; border-radius: 3px; background: var(--accent); }
.converge {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  margin-top: 40px; color: var(--ink); font-weight: 500; font-size: 15.5px;
}
.converge .ic { color: var(--brand); flex: none; }

/* ===== Sección 4 — Experiencia (flujo) ===== */
.flow { display: flex; align-items: flex-start; justify-content: center; gap: 8px; }
.step { flex: 1; max-width: 200px; text-align: center; }
.step-ic {
  width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 16px; display: grid; place-items: center;
  color: var(--brand); background: var(--brand-tint); border: 1px solid var(--border);
}
.step-ic .ic { width: 30px; height: 30px; }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 13.5px; }
.flow-arrow { color: #c9c5e6; margin-top: 26px; flex: none; }
.flow-arrow .ic { width: 26px; height: 26px; }

/* ===== Sección 5 — Radar (oscuro) ===== */
.section-dark { background: radial-gradient(700px 500px at 60% 30%, rgba(27, 98, 242,.22), transparent 60%), linear-gradient(160deg, var(--dark), var(--dark-2)); color: #fff; }
.radar-section { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 30px; align-items: center; }
.radar-section-text h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 10px; }
.radar-section-text .section-sub { color: #b6bccb; text-align: left; }
.radar-scope-lg .radar { max-width: 400px; }
.radar-legend { display: flex; flex-direction: column; gap: 20px; }
.radar-legend li { display: flex; gap: 12px; align-items: flex-start; }
.radar-legend strong { display: block; font-size: 14px; color: #fff; }
.radar-legend small { color: #a3a8b8; font-size: 12px; }

/* ===== Sección 6 — Resultados ===== */
.signals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.signal {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px 16px;
  font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow); transition: transform .18s ease;
}
.signal:hover { transform: translateY(-4px); }
.signal-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); }
.signal-ic .ic { width: 26px; height: 26px; }
.signals-close { text-align: center; }
.signals-close p { font-size: 19px; color: var(--muted); margin-top: 4px; }
.signals-close .strong-line { font-size: 26px; color: var(--brand); margin-top: 8px; }

/* ===== Testimonios ===== */
.tstm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tstm {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tstm:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tstm::before { content: "\201C"; font-family: var(--font-display); font-weight: 800; font-size: 54px; line-height: .5; color: var(--brand); opacity: .28; }
.tstm blockquote { font-size: 15.5px; color: var(--ink); flex: 1; }
.tstm-by { display: flex; align-items: center; gap: 12px; padding-top: 4px; border-top: 1px solid var(--border); }
.tstm-logo { height: 20px; width: auto; opacity: .55; filter: grayscale(1); }
.tstm-by strong { display: block; font-family: var(--font-display); font-size: 14.5px; }
.tstm-by span { color: var(--muted); font-size: 13px; }
@media (max-width: 820px) { .tstm-grid { grid-template-columns: 1fr; } }

/* ===== Cierre / CTA ===== */
.cta { margin: 0 24px 80px; border-radius: 28px; color: #fff; text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(27, 98, 242,.5), transparent 60%), linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, #5a8bf5); }
.cta-inner { max-width: 760px; margin: 0 auto; padding: 68px 40px; }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); }
.cta-accent { color: #dbe8fd; }
.cta-inner p { margin-top: 16px; color: rgba(255,255,255,0.92); font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

/* ===== Formulario de contacto ===== */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.contact-intro h2 { font-size: clamp(26px, 3.3vw, 36px); margin-top: 10px; }
.contact-intro .section-sub { text-align: left; }
.contact-form {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 30px; box-shadow: var(--shadow-lg); display: grid; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); font-family: var(--font-display); }
.field input {
  padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: var(--bg-alt);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input::placeholder { color: #9aa0ad; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 98, 242, .15); background: #fff; }
.field input.invalid { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 72, 99, .12); }
.contact-form .btn { width: 100%; margin-top: 4px; }
.form-msg { min-height: 20px; font-size: 14px; font-weight: 500; margin: 0; }
.form-msg.error { color: var(--accent); }
.form-msg.ok { color: #16a34a; }
@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-copy { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--brand); }

/* ===== Sección Plataforma (scroll fijo con cross-fade) ===== */
.pscroll { position: relative; height: 640vh; background: var(--bg); }
.pscroll-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px 24px;
}
.pscroll-head { text-align: center; max-width: 720px; }
.pscroll-head h2 { font-size: clamp(26px, 3.3vw, 36px); }
.pscroll-head .section-sub { margin-top: 8px; }
.pcar { width: 100%; display: flex; align-items: center; overflow: hidden; }
.pcar-track { display: flex; align-items: center; gap: 28px; will-change: transform; }
.pcar-item { flex: 0 0 auto; width: min(620px, 60vw); text-align: center; opacity: .4; transform: scale(.82); will-change: transform, opacity; }
.pslide-media {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); background: #0c0b12; line-height: 0; width: 100%;
}
.pslide-media img {
  display: block; width: 100%; height: auto;
  max-height: calc(100vh - 320px); object-fit: contain;
}
.pcar-cap { margin-top: 16px; text-align: center; }
.pcar-cap strong { display: block; font-family: var(--font-display); font-size: 17px; }
.pcar-cap span { color: var(--muted); font-size: 14px; }
.pscroll-dots { display: flex; gap: 10px; }
.pscroll-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--border); transition: background .2s ease, transform .2s ease;
}
.pscroll-dots button.is-active { background: var(--brand); transform: scale(1.35); }
.pscroll-hint { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 820px) {
  .pscroll { height: 560vh; }
  .pcar-item { width: 82vw; }
  .pslide-media img { max-height: calc(100vh - 300px); }
}

/* ===== Radar SVG (sonar) ===== */
.radar-ring { fill: none; stroke: var(--dark-line); stroke-width: 1; }
.radar-cross { stroke: var(--dark-line); stroke-width: 1; }
.radar-sweep-line { stroke: var(--brand-2); stroke-width: 1.5; opacity: .8; }
.radar-blip-glow { opacity: .5; }
.radar-center { fill: var(--brand-2); }
.radar-spin { transform-box: fill-box; transform-origin: center; animation: radarSpin 9s linear infinite; }
@keyframes radarSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radar-spin { animation: none; } }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .radar-stage { grid-template-columns: 1fr; gap: 26px; }
  .radar-scope { order: -1; }
  .radar-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .meel-cards { grid-template-columns: repeat(3, 1fr); }
  .radar-section { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .radar-section-text .section-sub { text-align: center; }
  .radar-legend { max-width: 520px; margin: 0 auto; }
  .flow { flex-wrap: wrap; gap: 20px; }
  .flow-arrow { display: none; }
  .step { max-width: 260px; flex: 1 1 40%; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: absolute; top: 72px; left: 0; right: 0; padding: 22px; background: var(--dark); border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: flex; }
  .challenge-grid { grid-template-columns: 1fr; }
  .questions { grid-template-columns: 1fr 1fr; }
  .meel-cards { grid-template-columns: 1fr 1fr; }
  .signals { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .radar-col { grid-template-columns: 1fr; }
  .questions, .meel-cards, .signals { grid-template-columns: 1fr; }
}
