/* ============================================================
   RutaCole — Landing pública
   Sistema de diseño "confianza cálida" (v2), basado en
   ruta-cole-mobile-padres/DESIGN.md y la escena papercraft
   del video de login (bus de papel, montañas plegadas).
   ============================================================ */

:root {
  /* Brand */
  --blue: #005BF5;
  --blue-light: #0A84FF;
  --blue-deep: #003EB3;
  --amber: #FFB20A;
  --amber-light: #FFD166;

  /* Fondos cálidos */
  --cream: #F7F5F2;
  --paper: #FFFFFF;
  --paper-warm: #FDFBF6;

  /* Texto */
  --ink: #2C2A26;
  --ink-soft: #6B665F;

  /* Noche */
  --navy: #0B1220;
  --navy-soft: #1E293B;

  /* Escena papercraft (video login) */
  --paper-teal: #2E9E97;
  --paper-teal-soft: #7FC8C2;
  --paper-purple: #A98BC4;
  --paper-green: #8FCB6B;
  --paper-green-soft: #C8E8B0;
  --sky: #F6E7C8;

  /* Tipografías */
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Radios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Sombras suaves con tinte brand (nunca duras) */
  --shadow-card: 0 10px 30px rgba(0, 62, 179, 0.08), 0 2px 8px rgba(44, 42, 38, 0.05);
  --shadow-float: 0 18px 44px rgba(0, 62, 179, 0.14), 0 4px 12px rgba(44, 42, 38, 0.07);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

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

a { color: var(--blue-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 42, 38, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.brand .brand-bus {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(2, 6, 23, 0.14);
}

.brand em {
  font-style: normal;
  color: var(--blue);
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue);
}

.header-cta { margin-left: 4px; }

@media (max-width: 760px) {
  .main-nav a:not(.btn) { display: none; }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 91, 245, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 91, 245, 0.34);
}

/* El CTA del nav es un botón: su texto blanco no lo pisa el color de los links */
.main-nav a.btn-primary,
.main-nav a.btn-primary:hover,
.main-nav a.btn-primary:focus { color: #fff; }

.btn-amber {
  background: var(--amber);
  color: #3A2A00;
  box-shadow: 0 10px 24px rgba(255, 178, 10, 0.32);
}

.btn-amber:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 2px rgba(0, 91, 245, 0.28);
}

.btn-ghost:hover {
  background: rgba(0, 91, 245, 0.06);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.92rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 209, 102, 0.35), transparent 60%),
    radial-gradient(900px 480px at -10% 20%, rgba(10, 132, 255, 0.12), transparent 60%),
    var(--paper-warm);
  padding: 64px 0 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 178, 10, 0.16);
  color: #8C5A00;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-figure {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(44, 42, 38, 0.06);
  background: var(--sky);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 11;
}

/* ---------- Divisor de montañas de papel ---------- */

.paper-divide {
  display: block;
  width: 100%;
  height: 90px;
}

/* ---------- Franja de beneficios rápidos ---------- */

.quick-strip {
  background: var(--paper);
  padding: 8px 0 56px;
}

.quick-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 820px) {
  .quick-strip .container { grid-template-columns: 1fr; }
}

.quick-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper-warm);
  border: 1px solid rgba(44, 42, 38, 0.06);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

.quick-item .qi-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.qi-blue { background: rgba(0, 91, 245, 0.1); }
.qi-amber { background: rgba(255, 178, 10, 0.18); }
.qi-green { background: rgba(34, 197, 94, 0.14); }

.quick-item h2 { margin-bottom: 4px; font-size: 1.08rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.quick-item p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Secciones ---------- */

.section { padding: 72px 0; }

.section-white { background: var(--paper); }
.section-cream { background: var(--cream); }
.section-navy {
  background: linear-gradient(180deg, var(--navy) 0%, #10203E 100%);
  color: #E8EDF6;
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #B9C4D6; }

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head .kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-navy .section-head .kicker { color: var(--amber-light); }

.section-head p.sub {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.section-navy .section-head p.sub { color: #B9C4D6; }

/* Bloque beneficio con imagen + lista */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
}

.split-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(44, 42, 38, 0.06);
}

.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.split h2 { margin-bottom: 14px; }
.split p.intro { color: var(--ink-soft); font-size: 1.08rem; }

.benefit-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.benefit-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper-warm);
  border: 1px solid rgba(44, 42, 38, 0.06);
  border-radius: var(--r-md);
  padding: 14px 18px;
}

.section-navy .benefit-list li {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.benefit-list .check {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.15);
  color: #15803D;
  font-weight: 800;
  font-size: 15px;
}

.section-navy .benefit-list .check {
  background: rgba(52, 211, 153, 0.18);
  color: #34D399;
}

.benefit-list strong { display: block; font-size: 1.02rem; }
.benefit-list span.desc { color: var(--ink-soft); font-size: 0.96rem; }
.section-navy .benefit-list span.desc { color: #AAB6C8; }

/* ---------- Tarjetas de apps ---------- */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

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

.app-card {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: 34px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(44, 42, 38, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-card .app-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 30px;
}

.app-card.familias .app-icon { background: rgba(0, 91, 245, 0.1); }
.app-card.conductor .app-icon { background: rgba(255, 178, 10, 0.18); }

.app-card p { color: var(--ink-soft); }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.15;
}

.store-badge small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.75;
}

.store-badge .soon {
  margin-left: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-light);
}

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; }

.faq details {
  background: var(--paper);
  border: 1px solid rgba(44, 42, 38, 0.07);
  border-radius: var(--r-lg);
  padding: 0;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.06rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: rgba(0, 91, 245, 0.09);
  color: var(--blue);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .faq-body {
  padding: 0 22px 20px;
  color: var(--ink-soft);
}

/* ---------- CTA final ---------- */

.final-cta {
  text-align: center;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.final-cta h2 { color: #fff; }
.final-cta p { color: #B9C4D6; font-size: 1.12rem; max-width: 36em; margin-inline: auto; }

.final-cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #97A3B8;
  padding: 56px 0 32px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.site-footer .brand { color: #fff; }

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: #C4CEDD;
  text-decoration: none;
}

.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.86rem;
}

/* ---------- Páginas legales (privacy / terms / support) ---------- */

.page-hero {
  background:
    radial-gradient(900px 380px at 90% -20%, rgba(255, 209, 102, 0.3), transparent 60%),
    radial-gradient(700px 360px at -5% 10%, rgba(10, 132, 255, 0.1), transparent 55%),
    var(--paper-warm);
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(44, 42, 38, 0.06);
}

.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 10px; }

.page-hero p.lead {
  color: var(--ink-soft);
  font-size: 1.12rem;
  max-width: 44em;
  margin: 0;
}

.page-hero .crumbs {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.page-hero .crumbs a { text-decoration: none; }

.legal-body {
  background: var(--paper);
  padding: 56px 0 80px;
}

.legal-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--paper-warm);
  border: 1px solid rgba(44, 42, 38, 0.06);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: clamp(26px, 5vw, 52px);
}

.legal-card h2 {
  font-size: 1.35rem;
  margin: 2em 0 0.6em;
  padding-top: 0.4em;
}

.legal-card h2:first-child { margin-top: 0; }

.legal-card h3 {
  font-size: 1.08rem;
  margin: 1.6em 0 0.5em;
}

.legal-card p, .legal-card li { color: #4A463F; }

.legal-card ul { padding-left: 22px; }

.legal-updated {
  display: inline-block;
  background: rgba(0, 91, 245, 0.08);
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: 26px;
}

/* Soporte: tarjetas de contacto */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 8px 0 36px;
}

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

.contact-card {
  background: var(--paper);
  border: 1px solid rgba(44, 42, 38, 0.07);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.contact-card .c-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.contact-card h2 { font-size: 1.1rem; margin-bottom: 6px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.contact-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 10px; }

.contact-card a.mail {
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Utilidades ---------- */

.center { text-align: center; }

.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;
}

::selection { background: rgba(255, 178, 10, 0.4); }
