/* =========================================================
   Víncula Escolar — landing page
   Variables de marca: ajusta aquí el hex exacto del logo.
   ========================================================= */
:root {
  --color-primary: #1a2a6c;   /* azul marino profundo — CTAs, header, íconos */
  --color-primary-dark: #101c4a;
  --color-primary-light: #e8ebf5;
  --color-accent: #c2410c;    /* coral — lema, detalles */
  --color-accent-light: #fbe9e0;

  --color-text: #1f2430;
  --color-text-muted: #5a6072;
  --color-bg: #ffffff;
  --color-bg-muted: #f5f6fa;
  --color-border: #e1e3ec;

  --font-system: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1120px;

  --header-height: 72px;
}

/* ── Reset básico ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}
body {
  margin: 0;
  font-family: var(--font-system);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 var(--space-2); color: var(--color-primary); }
p { margin: 0 0 var(--space-2); }
a { color: var(--color-primary); }
ul, ol { margin: 0; padding: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0; top: -48px;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.container--narrow { max-width: 760px; }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: .7rem 1.3rem;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn--lg { padding: .9rem 1.7rem; font-size: 1.05rem; }
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--primary:disabled {
  background: var(--color-text-muted);
  cursor: not-allowed;
}
.btn--outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary-light); }
.btn:active { transform: translateY(1px); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand__logo {
  border-radius: 8px;
  width: 40px;
  height: 40px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  cursor: pointer;
}
.nav-toggle__icon { width: 24px; height: 24px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.site-nav__list {
  list-style: none;
  display: flex;
  gap: var(--space-3);
}
.site-nav__list a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}
.site-nav__list a:hover { color: var(--color-primary); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--space-3) var(--space-3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }
  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }
  .site-nav__list a {
    display: block;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
  }
  .site-nav__cta { margin-top: var(--space-2); align-self: flex-start; }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  background: linear-gradient(180deg, var(--color-primary-light) 0%, #ffffff 70%);
  text-align: center;
}
.hero__inner { max-width: 760px; margin: 0 auto; }
.badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: var(--space-1);
}
.hero__tagline {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: var(--space-2);
}
.hero__description {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero__trust {
  color: var(--color-text-muted);
  font-size: .9rem;
  margin-bottom: var(--space-3);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* ── Secciones genéricas ─────────────────────────────────── */
.section {
  padding: var(--space-6) 0;
}
.section--muted { background: var(--color-bg-muted); }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
  margin-bottom: var(--space-4);
}

/* ── Grids de tarjetas ───────────────────────────────────── */
.cards-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .cards-grid--6, .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards-grid--6 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}
.card__icon {
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.card__icon svg { width: 100%; height: 100%; }
.card h3 {
  font-size: 1.1rem;
  margin-bottom: .4rem;
}
.card p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: .95rem;
}

.role-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: #fff;
}
.role-card h3 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: .4rem;
}
.role-card p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: .95rem;
}

/* ── Comunicación con evidencia (sección destacada) ─────────── */
.evidence {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}
.evidence__inner { max-width: 700px; margin: 0 auto; }
.evidence h2 { color: #fff; }
.evidence p { color: rgba(255, 255, 255, .92); font-size: 1.1rem; }
.evidence__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-3);
  color: #fff;
}
.evidence__icon svg { width: 100%; height: 100%; }

/* ── Pasos de implementación ─────────────────────────────── */
.steps {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-3);
}
.step {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.step__number {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step__text { padding-top: .35rem; }

/* ── FAQ / acordeón ──────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-2) 0;
  cursor: pointer;
}
.faq-question:hover { color: var(--color-primary); }
.faq-question__icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform .15s ease;
}
.faq-question[aria-expanded="true"] .faq-question__icon {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 0 var(--space-2);
  color: var(--color-text-muted);
}
.faq-answer p { margin: 0; }

/* ── Formulario de contacto ──────────────────────────────── */
.field { margin-bottom: var(--space-2); }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  font-size: .95rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: .65rem .8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
}
.field textarea { resize: vertical; }

.field--honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  border-radius: var(--radius-md);
  padding: var(--space-2);
  margin: 0 0 var(--space-2);
  font-size: .95rem;
}
.form-feedback[data-kind="error"] {
  background: var(--color-accent-light);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.form-feedback[data-kind="success"] {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary);
}

.contact-success {
  text-align: center;
  padding: var(--space-4) var(--space-2);
}
.contact-success h3 {
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.contact-alt {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
.contact-alt a { color: var(--color-primary); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, .85);
  padding: var(--space-3) 0;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
}
.site-footer a { color: #fff; }
