/* ==========================================================================
   GN Core · Landing
   Todo lo ajustable (colores, tipografía y medidas) está en :root.
   Mobile-first: los estilos base son los del móvil y las @media amplían.
   ========================================================================== */

:root {
  /* --- Colores ---------------------------------------------------------- */
  --color-ink: #0B0B12;              /* fondo oscuro (cabecera, confianza, pie) */
  --color-paper: #F7F6F3;            /* fondo claro principal */
  --color-surface: #FFFFFF;          /* tarjetas y secciones blancas */
  --color-text: #17161D;             /* texto sobre claro */
  --color-muted: #55525F;            /* texto secundario sobre claro */
  --color-line: #E4E1EA;             /* bordes sobre claro */
  --color-accent: #7C3AED;           /* color de acento (morado GN Core) */
  --color-accent-hover: #6A2BD6;
  --color-accent-soft: #F1EAFE;      /* fondo de iconos sobre claro */
  --color-accent-on-dark: #B794FF;   /* acento legible sobre oscuro */
  --color-on-dark: #F4F3F8;          /* texto sobre oscuro */
  --color-on-dark-muted: #ABA8BA;    /* texto secundario sobre oscuro */
  --color-line-dark: rgba(255, 255, 255, 0.10);
  --color-placeholder: #D9D8DE;      /* fondo mientras carga una captura */
  --color-pending-bg: #FFF1C2;       /* marcas [PENDIENTE DE REVISIÓN] */
  --color-pending-text: #5C4200;

  /* --- Tipografía --------------------------------------------------------
     Fuentes del sistema: no se descarga nada ni se envía la IP a terceros
     (Google Fonts desde su CDN sí lo haría, y eso pide consentimiento). */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: var(--font-sans);
  --text-base: 1.0625rem;                                 /* 17 px */
  --leading: 1.6;
  --h1: clamp(2.25rem, 1.35rem + 4.2vw, 4rem);
  --h2: clamp(1.75rem, 1.3rem + 2vw, 2.625rem);
  --h3: 1.1875rem;
  --weight-heading: 700;                                  /* grosor de los titulares */

  /* --- Medidas ---------------------------------------------------------- */
  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(4rem, 3rem + 5vw, 7rem);
  --radius: 14px;
  --radius-lg: 22px;
}

/* --- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--color-text);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--color-accent-on-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

.eyebrow {
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* --- Botón CTA (WhatsApp) ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.875rem 1rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.32);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--color-accent-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; fill: currentColor; }

@media (min-width: 480px) {
  .btn { width: auto; gap: 0.625rem; padding-inline: 1.5rem; }
}

/* --- Cabecera ------------------------------------------------------------- */
.site-header { background: var(--color-ink); color: var(--color-on-dark); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand { display: inline-block; border-radius: 6px; }
.brand img { width: auto; height: 44px; }

.site-header__back {
  display: inline-block;
  padding-block: 0.375rem;
  font-size: 0.9375rem;
  color: var(--color-on-dark);
  text-underline-offset: 3px;
}

/* --- 1. Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(2rem, 1.5rem + 4vw, 5.5rem) clamp(4.5rem, 3rem + 6vw, 8rem);
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.hero::before {                       /* resplandor de acento, solo CSS */
  content: "";
  position: absolute;
  right: -25vmax;
  bottom: -35vmax;
  z-index: -2;
  width: 80vmax;
  height: 80vmax;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.30), transparent);
  pointer-events: none;
}

.hero__grid { display: grid; gap: 3rem; align-items: center; }

.hero .eyebrow { color: var(--color-accent-on-dark); }

.hero h1 {
  max-width: 15ch;
  font-size: var(--h1);
  font-weight: var(--weight-heading);
}

.hero__lead {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  color: var(--color-on-dark-muted);
}

.hero__actions { margin-top: 2rem; }

.hero__note {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--color-on-dark-muted);
}

/* Pizarra táctica decorativa: solo en pantallas grandes (en el móvil tapaba el texto) */
.hero__art { display: none; }

.pitch__line   { stroke: rgba(183, 148, 255, 0.28); stroke-width: 2; fill: none; }
.pitch__spot   { fill: rgba(183, 148, 255, 0.4); }
.pitch__team   { fill: var(--color-accent); stroke: var(--color-accent-on-dark); stroke-width: 2; }
.pitch__rival  { fill: var(--color-ink); stroke: var(--color-on-dark); stroke-width: 2; }
.pitch__move   { stroke: var(--color-accent-on-dark); stroke-width: 2.5; fill: none;
                 stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 9; }
.pitch__pass   { stroke: var(--color-on-dark); stroke-width: 2; fill: none;
                 stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.pitch__head   { stroke: var(--color-accent-on-dark); stroke-width: 2.5; fill: none;
                 stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .hero__art { display: block; width: 100%; max-width: 460px; justify-self: end; }
}

/* --- Secciones ------------------------------------------------------------ */
.section { padding-block: var(--section-y); }
.section--white { background: var(--color-surface); }
.section--dark { background: var(--color-ink); color: var(--color-on-dark); }
.section--dark .eyebrow { color: var(--color-accent-on-dark); }

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
}
.section__head h2 { font-size: var(--h2); font-weight: var(--weight-heading); }

.section__lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--color-muted);
}
.section--dark .section__lead { color: var(--color-on-dark-muted); }

.card-title {
  margin-top: 1.25rem;
  font-size: var(--h3);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-text { margin-top: 0.5rem; color: var(--color-muted); }

/* Icono en caja */
.icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- 2. El problema ------------------------------------------------------- */
.problems {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem {
  padding: 1.75rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

@media (min-width: 760px) {
  .problems { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

/* --- 3. Módulos ----------------------------------------------------------- */
.modules { display: grid; gap: 1rem; }

.module {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  transition: border-color 0.15s ease;
}
.module:hover { border-color: #CFC6E4; }

.module__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module__num {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
}

.module--cta {
  justify-content: space-between;
  padding-inline: 1.25rem;
  gap: 1.5rem;
  border-color: transparent;
  background: var(--color-ink);
  color: var(--color-on-dark);
}
.module--cta:hover { border-color: transparent; }
.module--cta .card-title { margin-top: 0; }
.module--cta .card-text { color: var(--color-on-dark-muted); }
.module--cta .btn {
  width: 100%;
  gap: 0.5rem;
  padding-inline: 0.75rem;
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 0.9375rem);
}

@media (min-width: 640px) {
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

/* --- 4. Capturas ---------------------------------------------------------- */
/* En el móvil se deslizan en horizontal; en grande, tres columnas. */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 1rem;
  margin: 0;
  padding: 0 0 0.75rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}

.shot { margin: 0; scroll-snap-align: start; }

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-placeholder);
}

.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.shots__hint {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

@media (min-width: 900px) {
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    overflow: visible;
  }
  .shots__hint { display: none; }
}

/* --- 5. Confianza --------------------------------------------------------- */
.trust {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius-lg);
  background: var(--color-line-dark);
}

.trust__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-ink);
}

.trust__item .icon {
  background: rgba(183, 148, 255, 0.12);
  color: var(--color-accent-on-dark);
}

.trust__item p { padding-top: 0.625rem; color: var(--color-on-dark-muted); }
.trust__item strong { color: var(--color-on-dark); font-weight: 700; }

@media (min-width: 760px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item { padding: 2rem; }
}

/* --- 6. Cómo empezar ------------------------------------------------------ */
.steps {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.step {
  position: relative;
  min-height: 2.75rem;
  padding-left: 4rem;
  counter-increment: paso;
}

.step::before {
  content: counter(paso);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: var(--weight-heading);
}

.step .card-title { margin-top: 0.5rem; }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .step { padding-left: 0; padding-top: 4rem; }
  .step:not(:last-child)::after {          /* línea que une los pasos */
    content: "";
    position: absolute;
    top: 1.375rem;
    left: 3.75rem;
    right: -1.5rem;
    height: 1px;
    background: var(--color-line);
  }
  .step .card-title { margin-top: 0; }
}

/* --- 7. Pie --------------------------------------------------------------- */
.site-footer { background: var(--color-ink); color: var(--color-on-dark); }

.footer-cta {
  display: grid;
  gap: 1.75rem;
  padding-block: var(--section-y);
}
.footer-cta h2 { max-width: 20ch; font-size: var(--h2); font-weight: var(--weight-heading); }
.footer-cta p { max-width: 36rem; margin-top: 0.875rem; color: var(--color-on-dark-muted); }

@media (min-width: 860px) {
  .footer-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

.footer-legal { border-top: 1px solid var(--color-line-dark); }

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-on-dark-muted);
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal a {
  display: inline-block;
  padding-block: 0.375rem;
  color: var(--color-on-dark);
  text-underline-offset: 3px;
}

/* --- Páginas legales ------------------------------------------------------ */
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section-y); }
.legal__body { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: var(--weight-heading); }

.legal__updated {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.legal h2 {
  margin-top: 2.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal p, .legal ul, .legal dl, .legal .table-wrap { margin-top: 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.5rem; }
.legal a { color: var(--color-accent); text-underline-offset: 3px; }

.legal dl { display: grid; gap: 0.125rem 1.5rem; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0 0 0.75rem; }

@media (min-width: 640px) {
  .legal dl { grid-template-columns: max-content minmax(0, 1fr); }
  .legal dd { margin-bottom: 0.5rem; }
}

.table-wrap { overflow-x: auto; }
.legal table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.legal th, .legal td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--color-surface); }

.pendiente {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: var(--color-pending-bg);
  color: var(--color-pending-text);
  font-size: 0.92em;
  font-weight: 600;
}

/* --- Movimiento reducido -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
