/* EduConsent — paleta fija "Confianza + Calidez", misma que la app.
   Definida en app/.../ui/theme/Color.kt. Sin recursos de terceros (GDPR). */

:root {
  /* Marca */
  --indigo: #4263EB;
  --indigo-container: #DBE2FF;
  --on-indigo-container: #10226B;
  --amber: #FAB005;

  /* Neutros */
  --ink: #1B2130;
  --slate: #5B6472;
  --cloud: #F6F7FB;
  --surface: #FFFFFF;
  --surface-variant: #EDEFF6;
  --outline: #C9CEDC;

  /* Estado (reservados a visible/oculto) */
  --green: #18A058;
  --red: #E5484D;

  --maxw: 1080px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(27,33,48,.06), 0 8px 24px rgba(27,33,48,.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --indigo: #6A86FF;
    --indigo-container: #27336E;
    --on-indigo-container: #DBE2FF;
    --amber: #FFC53D;
    --ink: #ECEEF5;
    --slate: #AEB6C6;
    --cloud: #11141D;
    --surface: #1A1F2C;
    --surface-variant: #2A3142;
    --outline: #2A3142;
    --green: #3FCB82;
    --red: #FF6166;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cloud);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--cloud) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--outline);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav a { color: var(--slate); margin-left: 22px; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* Botones */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--indigo); border-color: var(--outline); }
.btn-ghost:hover { background: var(--surface-variant); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--indigo);
  background: var(--indigo-container); padding: 6px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 18px 0 14px; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.2rem; color: var(--slate); margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 320px; height: auto; }

/* Secciones */
section { padding: 56px 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; margin: 0 0 8px; text-align: center; }
.section-sub { color: var(--slate); text-align: center; max-width: 640px; margin: 0 auto 40px; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.step .num {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: var(--indigo); margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--slate); }

/* Bloque privacidad */
.privacy-block {
  background: var(--indigo-container); color: var(--on-indigo-container);
  border-radius: 24px; padding: 48px; text-align: center;
}
.privacy-block h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.privacy-block p { margin: 0 auto 24px; max-width: 640px; }
.pills { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pill {
  background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: .95rem; border: 1px solid var(--outline);
}

/* Funcionalidades */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--radius); padding: 24px;
}
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--slate); }

/* Estado visible/oculto (metáfora) */
.legend { display: flex; gap: 18px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.green { background: var(--green); }
.dot.red { background: var(--red); }

/* Documento legal */
.legal { max-width: 800px; }
.legal h1 { font-size: 2rem; margin-bottom: 4px; }
.legal .updated { color: var(--slate); margin-top: 0; }
.legal h2 { margin-top: 36px; font-size: 1.3rem; }
.legal h3 { margin-top: 24px; font-size: 1.1rem; }
.callout {
  background: var(--surface-variant); border-left: 4px solid var(--indigo);
  padding: 16px 20px; border-radius: 8px; margin: 20px 0;
}
.todo { background: #FFF4E0; border-left-color: var(--amber); color: var(--ink); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--outline); padding: 40px 0; margin-top: 40px;
  color: var(--slate);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--slate); }
.site-footer .links a { margin-left: 20px; }

/* Responsive */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }
  .hero .cta { justify-content: center; }
  .steps, .features { grid-template-columns: 1fr; }
  .nav { display: none; }
}
