/* ==========================================================
   SABI — Sistema de Atención de Brigadistas Institucionales
   Hoja de estilos principal
   ========================================================== */

:root {
  --navy: #002c67;
  --navy-900: #001a3f;
  --navy-700: #0b3f80;
  --orange: #f37927;
  --orange-600: #dc6414;
  --green: #08703d;
  --red: #d62828;

  --ink: #0f1b2d;
  --muted: #5a6779;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(0, 44, 103, .25);
  --shadow-lg: 0 30px 60px -25px rgba(0, 26, 63, .45);

  --container: 1180px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilidades ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.text-center { text-align: center; }
.text-center .lead { margin-left: auto; margin-right: auto; }
.accent { color: var(--orange); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #dfe8f5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(243, 121, 39, .8); }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--whatsapp { background: #1fa855; color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 168, 85, .8); }
.btn--whatsapp:hover { background: #178a45; transform: translateY(-2px); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 26, 63, .4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; letter-spacing: .06em; color: var(--navy); }
.brand-name .a { position: relative; }
.brand-sub { font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 10px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--navy); background: var(--bg-soft); }
.nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--orange);
}
.nav-links .btn { padding: 11px 20px; margin-left: 8px; color: #fff; }
.nav-links .btn:hover { background: var(--orange-600); color: #fff; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--bg-soft); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  transform: translateX(-50%); transition: transform .25s ease, background .25s ease;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(243, 121, 39, .12), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(0, 44, 103, .08), transparent 60%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; right: -160px; bottom: -220px; width: 620px; height: 520px;
  background: var(--navy); border-radius: 120px; transform: rotate(-32deg); z-index: 0;
}
.hero::before {
  content: ""; position: absolute; right: 140px; bottom: -260px; width: 360px; height: 420px;
  background: var(--orange); border-radius: 90px; transform: rotate(-32deg); z-index: 0; opacity: .95;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 .script { color: var(--orange); }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--navy);
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.hero-visual { position: relative; min-height: 520px; }
.phone { position: absolute; filter: drop-shadow(0 30px 40px rgba(0, 26, 63, .35)); }
.phone--main { width: min(270px, 52%); left: 50%; top: 0; transform: translateX(-48%); z-index: 2; }
.phone--back { width: min(235px, 45%); right: 0; top: 70px; z-index: 1; transform: rotate(6deg); }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg);
  font-size: .85rem; line-height: 1.3; animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .95rem; }
.float-card span { color: var(--muted); }
.float-card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.float-card .ico svg { width: 20px; height: 20px; }
.float-card--a { left: -2%; top: 22px; }
.float-card--b { left: 0; bottom: 18px; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* ---------- Banda de estadísticas ---------- */
.stats { position: relative; z-index: 2; margin-top: -56px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--navy); line-height: 1; }
.stat-value .accent { color: var(--orange); }
.stat-label { margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* ---------- Tarjetas y cuadrículas ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; color: #fff;
}
.card-icon svg { width: 26px; height: 26px; }
.bg-red { background: var(--red); }
.bg-green { background: var(--green); }
.bg-navy { background: var(--navy); }
.bg-orange { background: var(--orange); }
.bg-whatsapp { background: #1fa855; }

/* Problema / comparación */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-col { border-radius: var(--radius); padding: 30px; }
.compare-col h3 { display: flex; align-items: center; gap: 10px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare-col li { display: flex; gap: 12px; font-size: .96rem; }
.compare-col li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; }
.compare-col--before { background: #fff; border: 1px dashed #c9d2de; }
.compare-col--before li svg { color: var(--red); }
.compare-col--after { background: var(--navy); color: #dfe8f5; box-shadow: var(--shadow-lg); }
.compare-col--after h3 { color: #fff; }
.compare-col--after li svg { color: var(--orange); }

/* Pasos */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1;
  color: var(--orange); margin-bottom: 14px;
}
.step p { margin: 0; font-size: .95rem; color: #c3d0e3; }

/* Banda CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%); color: #dfe8f5;
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 300px; height: 300px;
  border-radius: 70px; background: var(--orange); opacity: .9; transform: rotate(-30deg);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; max-width: 56ch; }

/* ---------- Encabezado de página interna ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--navy); color: #c9d6ea;
  padding: clamp(64px, 9vw, 110px) 0 clamp(56px, 8vw, 90px);
}
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: #c9d6ea; }
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -140px; width: 460px; height: 360px;
  background: var(--orange); border-radius: 100px; transform: rotate(-32deg);
}
.page-hero::after {
  content: ""; position: absolute; right: 120px; bottom: -200px; width: 300px; height: 280px;
  border: 2px solid rgba(255, 255, 255, .18); border-radius: 80px; transform: rotate(-32deg);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: .85rem; margin-bottom: 18px; color: #9fb2cf; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Quiénes somos ---------- */
.photo-frame { position: relative; }
.photo-frame img { border-radius: 24px; width: 100%; aspect-ratio: 1 / .92; object-fit: cover; box-shadow: var(--shadow-lg); }
.photo-frame::before {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%;
  border-radius: 24px; background: var(--orange); z-index: -1;
}
.photo-tag {
  position: absolute; left: -16px; bottom: 28px; background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; max-width: 260px;
}
.photo-tag img { width: 42px; height: auto; box-shadow: none; aspect-ratio: auto; border-radius: 0; }
.photo-tag strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .95rem; line-height: 1.2; }
.photo-tag span { font-size: .8rem; color: var(--muted); }

.mv-card { padding: 34px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; }
.mv-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.mv-card h3 .card-icon { margin: 0; width: 46px; height: 46px; border-radius: 14px; }
.mv-card p { color: var(--muted); margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; }
.value { padding: 36px 18px; text-align: center; background: var(--navy); color: #c9d6ea; border-right: 1px solid rgba(255, 255, 255, .12); }
.value:last-child { border-right: 0; }
.value svg { width: 44px; height: 44px; margin: 0 auto 16px; color: #fff; }
.value h3 { color: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: .92rem; }
.value p { margin: 0; font-size: .93rem; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member { text-align: center; padding: 30px 20px; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--line);
}
.member--mentor .avatar { background: linear-gradient(135deg, var(--orange), var(--orange-600)); }
.member--brigade .avatar { background: linear-gradient(135deg, var(--green), #0a8a4c); }
.member--brigade .avatar svg { width: 36px; height: 36px; }
.team.team--3 { grid-template-columns: repeat(3, 1fr); max-width: 960px; margin-left: auto; margin-right: auto; }
.team--3 .member { display: flex; flex-direction: column; align-items: center; }
.team--3 .member p { max-width: 30ch; }
.team--3 + .team-subhead { margin-top: 48px; }
.team-subhead {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  text-align: center; margin-bottom: 20px;
}
.member h3 { margin-bottom: 4px; font-size: 1.02rem; }
.member p { font-size: .88rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 26px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 52px; }
.timeline li::before {
  content: ""; position: absolute; left: 6px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 5px solid var(--orange);
}
.timeline h3 { margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); font-size: .95rem; }

.legal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.legal .card { padding: 22px; }
.legal strong { display: block; font-family: var(--font-head); color: var(--orange); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.legal h3 { font-size: 1rem; margin-bottom: 8px; }

/* ---------- Producto ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(64px, 8vw, 104px); }
.feature-row--rev .feature-media { order: 2; }
.feature-media { position: relative; display: flex; justify-content: center; padding: 28px 0; }
.feature-media::before {
  content: ""; position: absolute; inset: 8% 10%; border-radius: 40px; transform: rotate(-6deg);
  background: linear-gradient(135deg, rgba(0, 44, 103, .08), rgba(243, 121, 39, .14));
}
.feature-media img { position: relative; width: min(260px, 70%); filter: drop-shadow(0 30px 40px rgba(0, 26, 63, .3)); }
.feature-media.duo img { width: min(220px, 46%); }
.feature-media.duo img:last-child { margin-left: -40px; margin-top: 60px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tag--soon { background: #fff3e9; color: var(--orange-600); }
.tag--ok { background: #e6f4ec; color: var(--green); }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role { position: relative; overflow: hidden; }
.role::after { content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 100%; }
.role--user::after { background: var(--navy); }
.role--brig::after { background: var(--orange); }
.role--admin::after { background: var(--green); }
.role ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: .94rem; }
.role li { margin-bottom: 6px; }

/* Cuestionario */
.quiz { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: q; }
.quiz-item { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 24px; }
.quiz-item .letter {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--orange); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: 14px;
}
.quiz-item h3 { font-size: 1.02rem; color: #fff; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.quiz-opts span { font-size: .78rem; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #dfe8f5; }

/* Resultados (gráfico de barras) */
.chart { display: grid; gap: 26px; }
.chart-group h3 { font-size: .98rem; margin-bottom: 4px; }
.chart-group p { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 76px; align-items: center; gap: 12px; margin-bottom: 8px; font-size: .86rem; }
.bar-row .lbl { color: var(--muted); font-weight: 600; }
.bar-track { height: 14px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.bar { height: 100%; width: 0; border-radius: inherit; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.bar--trad { background: #9aa7b8; }
.bar--sabi { background: var(--orange); }
.bar-row .val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); text-align: right; }
.legend { display: flex; gap: 18px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }

.result-highlight {
  background: var(--navy); color: #c9d6ea; border-radius: var(--radius); padding: 36px; text-align: center;
}
.result-highlight .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(3.6rem, 8vw, 5.4rem); line-height: 1; color: var(--orange); }
.result-highlight h3 { color: #fff; margin: 10px 0 8px; }
.result-highlight p { font-size: .92rem; margin: 0; }

.tech { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tech span {
  padding: 12px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy);
}

.notice {
  display: flex; gap: 18px; align-items: flex-start; border-radius: var(--radius); padding: 26px 28px;
  background: #fff8f2; border: 1px solid #ffd9bd;
}
.notice svg { flex: none; width: 28px; height: 28px; color: var(--orange-600); }
.notice h3 { margin-bottom: 6px; }
.notice p { margin: 0; color: #5d4a3c; font-size: .95rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.info-list { display: grid; gap: 16px; margin-top: 28px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.info-item .card-icon { margin: 0; width: 46px; height: 46px; border-radius: 14px; flex: none; }
.info-item .card-icon svg { width: 22px; height: 22px; }
.info-item strong { display: block; font-family: var(--font-head); color: var(--navy); }
.info-item span, .info-item a { color: var(--muted); font-size: .94rem; }
.info-item a:hover { color: var(--orange); }

.form-card { background: #fff; border-radius: 24px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; color: var(--navy); }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--ink); width: 100%;
  padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(0, 44, 103, .1);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); background: #fff6f6; }
.field .error { font-size: .8rem; color: var(--red); min-height: 1em; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-status { font-size: .92rem; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

.faq { display: grid; gap: 12px; max-width: 860px; margin-left: auto; margin-right: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--font-head); font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--orange); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy-900); color: #9fb2cf; padding: 72px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #9fb2cf; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--orange); }
.footer-emergency {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 16px; border-radius: 12px;
  background: rgba(214, 40, 40, .14); color: #ffb4b4; font-weight: 600;
}
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem;
}
.footer-stripe { height: 6px; background: linear-gradient(90deg, var(--orange) 0 40%, var(--green) 40% 70%, var(--navy-700) 70%); }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .legal, .team, .quiz { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 16px; border-radius: 12px; }
  .nav-links a[aria-current="page"] { background: var(--bg-soft); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links .btn { margin: 8px 0 0; }

  .hero-grid, .grid-2, .feature-row, .contact-grid, .compare, .cta { grid-template-columns: 1fr; }
  .feature-row--rev .feature-media { order: 0; }
  .hero-visual { min-height: 440px; max-width: 460px; margin-left: auto; margin-right: auto; width: 100%; }
  .hero::after { right: -260px; bottom: -300px; }
  .hero::before { right: 40px; bottom: -330px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-3, .roles, .values { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .photo-tag { left: 12px; }
  .page-hero::before { width: 220px; height: 170px; right: -120px; top: -100px; border-radius: 50px; }
  .page-hero::after { display: none; }
  .photo-frame::before { inset: auto -8px -12px auto; }
  .team.team--3 { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 560px) {
  body { font-size: .97rem; }
  .grid-4, .legal, .team, .quiz, .steps, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .hero-visual { min-height: 380px; }
  .float-card { font-size: .78rem; padding: 10px 12px; }
  .float-card .ico { width: 34px; height: 34px; }
  .float-card--a { top: 40px; }
  .stat { padding: 22px 18px; }
  .bar-row { grid-template-columns: 70px 1fr 64px; gap: 8px; }
  .hero-actions .btn, .cta .btn { width: 100%; }
}
