/* =========================================================
   Email Checker — Landing Page Styles
   Sistema near-monochrome slate + acento azul único
   Tipografía: Inter variable
   ========================================================= */

/* ----------------------------------------------------------
   1. Variables de diseño
   ---------------------------------------------------------- */
:root {
  /* Colores — slate */
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0F172A;

  /* Colores — acento */
  --accent-50:  #EFF6FF;
  --accent-100: #DBEAFE;
  --accent-600: #2563EB;
  --accent-700: #1D4ED8;

  /* Semántica de severidades */
  --error-color: #DC2626;
  --error-bg:    #FEF2F2;
  --warn-color:  #D97706;
  --warn-bg:     #FFFBEB;
  --info-color:  #2563EB;
  --info-bg:     #EFF6FF;

  /* Tipografía */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --size-xs:   13px;
  --size-sm:   14px;
  --size-base: 16px;
  --size-md:   17px;
  --size-lg:   18px;
  --size-xl:   20px;
  --size-2xl:  24px;
  --size-3xl:  32px;
  --size-4xl:  36px;
  --size-5xl:  48px;
  --size-hero: 56px;

  /* Espaciado */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --max-w-page: 1200px;
  --max-w-text: 680px;
  --max-w-hero: 760px;
  --max-w-copy: 640px;

  /* Bordes */
  --radius-sm: 4px;
  --radius:    6px;
  --radius-lg: 8px;

  /* Sombras */
  --shadow-header: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-cta:    0 4px 12px rgba(37,99,235,0.25);

  /* Sección — padding vertical desktop */
  --section-py: var(--space-24);
}

/* ----------------------------------------------------------
   2. Reset y base
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-size: var(--size-md);
  font-weight: 400;
  line-height: 1.75;
  color: var(--slate-700);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ----------------------------------------------------------
   3. Utilidades
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w-page);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-12);
  }
}

.label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   4. Botones
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: var(--size-base);
  font-weight: 600;
  line-height: 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  min-height: 44px;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent-600);
  color: #fff;
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.btn-primary::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--slate-900);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-600);
  text-decoration: underline;
  padding: 14px 0;
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--accent-700);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--size-base);
}

/* Sticky header btn */
.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ----------------------------------------------------------
   5. Header fijo
   ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  height: 64px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-header);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}

.site-brand__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}

.site-brand__by {
  font-size: 13px;
  font-weight: 400;
  color: var(--slate-400);
}

.site-nav {
  display: none;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
  }
}

.site-nav a {
  font-size: 14px;
  color: var(--slate-600);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--slate-900);
}

/* ----------------------------------------------------------
   6. Ancla de scroll (compensa header fijo)
   ---------------------------------------------------------- */
.scroll-anchor {
  display: block;
  margin-top: -64px;
  padding-top: 64px;
  pointer-events: none;
}

/* ----------------------------------------------------------
   7. S1 — Hero
   ---------------------------------------------------------- */
.hero {
  padding-top: calc(64px + var(--space-32));
  padding-bottom: var(--space-24);
  text-align: center;
}

@media (max-width: 767px) {
  .hero {
    padding-top: calc(64px + var(--space-16));
    padding-bottom: var(--space-16);
  }
}

.hero__titulo {
  font-size: var(--size-hero);
  font-weight: 700;
  line-height: 1.08;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  max-width: var(--max-w-hero);
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

@media (max-width: 767px) {
  .hero__titulo {
    font-size: var(--size-4xl);
    letter-spacing: -0.015em;
  }
}

.hero__subtitulo {
  font-size: var(--size-xl);
  font-weight: 400;
  line-height: 1.45;
  color: var(--slate-600);
  max-width: var(--max-w-copy);
  margin-inline: auto;
  margin-bottom: var(--space-10, 40px);
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-10, 40px);
}

/* ----------------------------------------------------------
   8. S2 — El Problema
   ---------------------------------------------------------- */
.problema {
  background: var(--slate-50);
  padding-block: var(--section-py);
}

.problema__encabezado {
  margin-bottom: var(--space-12);
  max-width: var(--max-w-text);
}

.problema__titulo {
  font-size: var(--size-3xl);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

.problema__titulo-muted {
  color: var(--slate-400);
  display: block;
}

.problema__titulo-strong {
  color: var(--slate-900);
  display: block;
}

.problema__intro {
  font-size: var(--size-md);
  color: var(--slate-700);
  max-width: var(--max-w-text);
  line-height: 1.75;
}

.problema__bloques {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--slate-200);
  margin-top: var(--space-12);
}

@media (max-width: 767px) {
  .problema__bloques {
    grid-template-columns: 1fr;
  }
}

.problema__bloque {
  padding: var(--space-8) var(--space-8) var(--space-8) 0;
  border-right: 1px solid var(--slate-200);
}

@media (min-width: 768px) {
  .problema__bloque:not(:first-child) {
    padding-left: var(--space-8);
  }
}

@media (max-width: 767px) {
  .problema__bloque {
    padding: var(--space-8) 0;
    border-right: none;
    border-bottom: 1px solid var(--slate-200);
  }

  .problema__bloque:last-child {
    border-bottom: none;
  }
}

.problema__bloque:last-child {
  border-right: none;
}

.problema__bloque-titulo {
  font-size: var(--size-base);
  font-weight: 600;
  color: var(--slate-900);
  margin-block: var(--space-3);
}

.problema__bloque p {
  font-size: var(--size-base);
  color: var(--slate-600);
  line-height: 1.75;
}

/* ----------------------------------------------------------
   9. S3 — El Guía
   ---------------------------------------------------------- */
.guia {
  background: #fff;
  padding-block: var(--section-py);
  text-align: center;
}

.guia .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guia__titulo {
  font-size: var(--size-3xl);
  font-weight: 600;
  line-height: 1.25;
  color: var(--slate-900);
  max-width: var(--max-w-copy);
  margin-bottom: var(--space-8);
}

.guia__cuerpo {
  font-size: var(--size-md);
  color: var(--slate-700);
  max-width: var(--max-w-copy);
  line-height: 1.75;
  text-align: center;
  margin-bottom: var(--space-10, 40px);
}

.guia__cuerpo p + p {
  margin-top: var(--space-4);
}

.guia__autoridad {
  max-width: var(--max-w-copy);
  width: 100%;
  text-align: left;
  background: var(--accent-50);
  border-left: 3px solid var(--accent-600);
  padding: 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.guia__autoridad p {
  font-size: var(--size-base);
  font-weight: 500;
  color: var(--slate-900);
  line-height: 1.6;
}

.guia__corte {
  margin-top: var(--space-8);
  max-width: var(--max-w-copy);
  text-align: center;
}

.guia__corte p {
  font-size: var(--size-sm);
  color: var(--slate-400);
  font-style: italic;
}

/* ----------------------------------------------------------
   10. S4 — Cómo Funciona
   ---------------------------------------------------------- */
.como-funciona {
  background: var(--slate-50);
  padding-block: var(--section-py);
}

.como-funciona__titulo {
  font-size: var(--size-3xl);
  font-weight: 600;
  line-height: 1.25;
  color: var(--slate-900);
  margin-bottom: var(--space-16);
  max-width: var(--max-w-text);
}

.como-funciona__pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
  position: relative;
}

@media (max-width: 767px) {
  .como-funciona__pasos {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.paso {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.paso__numero {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--accent-100);
  color: var(--accent-600);
  font-size: var(--size-5xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.paso__titulo {
  font-size: var(--size-xl);
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.3;
}

.paso__desc {
  font-size: var(--size-base);
  color: var(--slate-600);
  line-height: 1.75;
}

/* Línea conectora entre pasos (solo desktop) */
@media (min-width: 768px) {
  .como-funciona__pasos {
    position: relative;
  }

  .como-funciona__pasos::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(80px / 2 + (100% / 3 * 0.16));
    right: calc(80px / 2 + (100% / 3 * 0.16));
    height: 2px;
    background: repeating-linear-gradient(
      to right,
      var(--slate-200) 0,
      var(--slate-200) 8px,
      transparent 8px,
      transparent 16px
    );
    pointer-events: none;
  }
}

.como-funciona__cta {
  margin-top: var(--space-16);
  display: flex;
  justify-content: flex-start;
}

/* ----------------------------------------------------------
   11. S5 — Qué Verifica
   ---------------------------------------------------------- */
.que-verifica {
  background: #fff;
  padding-block: var(--section-py);
}

.que-verifica__titulo {
  font-size: var(--size-3xl);
  font-weight: 600;
  line-height: 1.25;
  color: var(--slate-900);
  margin-bottom: var(--space-4);
  max-width: var(--max-w-text);
}

.que-verifica__subtitulo {
  font-size: var(--size-lg);
  color: var(--slate-500);
  margin-bottom: var(--space-12);
  max-width: var(--max-w-text);
}

.reglas-tabla {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-8);
}

.reglas-tabla thead tr {
  border-bottom: 1px solid var(--slate-200);
}

.reglas-tabla th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
}

.reglas-tabla tbody tr:nth-child(odd) {
  background: #fff;
}

.reglas-tabla tbody tr:nth-child(even) {
  background: var(--slate-50);
}

.reglas-tabla td {
  padding: 16px;
  vertical-align: top;
  line-height: 1.6;
}

.reglas-tabla td:first-child {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-900);
  white-space: nowrap;
  width: 160px;
}

.reglas-tabla td:last-child {
  font-size: 15px;
  font-weight: 400;
  color: var(--slate-600);
}

.que-verifica__nota {
  border-top: 1px solid var(--slate-200);
  padding-top: var(--space-6);
  text-align: center;
}

.que-verifica__nota p {
  font-size: var(--size-sm);
  color: var(--slate-400);
  line-height: 1.6;
  max-width: var(--max-w-copy);
  margin-inline: auto;
}

.que-verifica__corte {
  margin-top: var(--space-6);
  text-align: center;
}

.que-verifica__corte p {
  font-size: var(--size-sm);
  color: var(--slate-400);
  font-style: italic;
}

/* ----------------------------------------------------------
   12. S6 — Para Quién
   ---------------------------------------------------------- */
.para-quien {
  background: var(--slate-50);
  padding-block: var(--section-py);
}

.para-quien__titulo {
  font-size: var(--size-3xl);
  font-weight: 600;
  line-height: 1.25;
  color: var(--slate-900);
  margin-bottom: var(--space-16);
  max-width: var(--max-w-text);
}

.para-quien__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

@media (max-width: 767px) {
  .para-quien__grid {
    grid-template-columns: 1fr;
  }
}

.audiencia-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.audiencia-card__titulo {
  font-size: var(--size-xl);
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.3;
  margin-bottom: var(--space-1);
}

.audiencia-card__desc {
  font-size: var(--size-base);
  color: var(--slate-600);
  line-height: 1.75;
}

/* ----------------------------------------------------------
   13. S7 — El Éxito
   ---------------------------------------------------------- */
.exito {
  background: #fff;
  padding-block: var(--section-py);
  text-align: center;
}

.exito .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exito__titulo {
  font-size: var(--size-3xl);
  font-weight: 600;
  line-height: 1.25;
  color: var(--slate-900);
  max-width: var(--max-w-copy);
  margin-bottom: var(--space-8);
}

.exito__cuerpo {
  font-size: var(--size-md);
  color: var(--slate-700);
  max-width: var(--max-w-copy);
  line-height: 1.75;
  text-align: center;
}

.exito__cuerpo p + p {
  margin-top: var(--space-4);
}

/* ----------------------------------------------------------
   14. S8 — CTA Final
   ---------------------------------------------------------- */
.cta-final {
  background: var(--accent-50);
  padding-block: var(--section-py);
  text-align: center;
}

.cta-final .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-final__titulo {
  font-size: var(--size-4xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--slate-900);
  letter-spacing: -0.015em;
  max-width: var(--max-w-copy);
  margin-bottom: var(--space-3);
}

@media (max-width: 767px) {
  .cta-final__titulo {
    font-size: var(--size-3xl);
  }
}

.cta-final__subtitulo {
  font-size: var(--size-lg);
  color: var(--slate-600);
  max-width: var(--max-w-copy);
  margin-bottom: var(--space-10, 40px);
  line-height: 1.45;
}

.cta-final__oneliner {
  margin-top: var(--space-4);
  font-size: var(--size-sm);
  color: var(--slate-400);
  max-width: var(--max-w-copy);
  line-height: 1.6;
}

/* ----------------------------------------------------------
   15. Footer
   ---------------------------------------------------------- */
.site-footer {
  background: var(--slate-900);
  padding-block: var(--space-8);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.site-footer p {
  font-size: var(--size-sm);
  color: var(--slate-400);
}

.site-footer span {
  color: var(--slate-700);
}

.site-footer a {
  color: var(--slate-400);
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--slate-200);
}

/* ----------------------------------------------------------
   16. Responsive general
   ---------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --section-py: var(--space-16);
  }

  .hero__titulo {
    font-size: var(--size-4xl);
  }

  /* Subtitular más contenido en mobile */
  .hero__subtitulo {
    font-size: var(--size-base);
  }

  /* Botones full-width solo dentro de secciones de contenido, no en header */
  .hero__ctas .btn,
  .como-funciona__cta .btn,
  .cta-final .btn {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  .btn-ghost {
    width: auto;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  /* El CTA del header en mobile: solo icon+texto, no se expande */
  .site-header .btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Tabla en mobile: texto más pequeño */
  .reglas-tabla td {
    font-size: 14px;
    padding: 12px;
  }

  .reglas-tabla td:first-child {
    font-size: 13px;
    width: 100px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .problema__bloques {
    grid-template-columns: 1fr;
  }

  .como-funciona__pasos {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .como-funciona__pasos::before {
    display: none;
  }
}
