/* ═══════════════════════════════════════════════
   SAFER Consulting — Inicio
   Paleta:  fondo #0a0e16 · panel #0d1524 · card #101a2e
            acento #E02128 · footer #06080d
   Tipos:   Anton (display) · Archivo (texto)
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0a0e16;
  --panel: #0d1524;
  --card: #101a2e;
  --accent: #E02128;
  --footer: #06080d;
  --white: #fff;
  --pad-x: 56px;

  /* Tinta y jerarquías de texto (tema oscuro: blancos) */
  --ink: #fff;
  --w9:  rgba(255, 255, 255, 0.9);
  --w85: rgba(255, 255, 255, 0.85);
  --w8:  rgba(255, 255, 255, 0.8);
  --w75: rgba(255, 255, 255, 0.75);
  --w7:  rgba(255, 255, 255, 0.7);
  --w65: rgba(255, 255, 255, 0.65);
  --w6:  rgba(255, 255, 255, 0.6);
  --w55: rgba(255, 255, 255, 0.55);
  --w45: rgba(255, 255, 255, 0.45);
  --w4:  rgba(255, 255, 255, 0.4);
  --w35: rgba(255, 255, 255, 0.35);
  --w25: rgba(255, 255, 255, 0.25);
  --w15: rgba(255, 255, 255, 0.15);
  --w12: rgba(255, 255, 255, 0.12);
  --w08: rgba(255, 255, 255, 0.08);
  --line: var(--w08);
}

/* ── Tema claro ── */
[data-theme="light"] {
  --bg: #f2f4f8;
  --panel: #ffffff;
  --card: #ffffff;

  --ink: #0e1626;
  --w9:  rgba(14, 22, 38, 0.92);
  --w85: rgba(14, 22, 38, 0.87);
  --w8:  rgba(14, 22, 38, 0.82);
  --w75: rgba(14, 22, 38, 0.76);
  --w7:  rgba(14, 22, 38, 0.72);
  --w65: rgba(14, 22, 38, 0.68);
  --w6:  rgba(14, 22, 38, 0.64);
  --w55: rgba(14, 22, 38, 0.58);
  --w45: rgba(14, 22, 38, 0.52);
  --w4:  rgba(14, 22, 38, 0.48);
  --w35: rgba(14, 22, 38, 0.42);
  --w25: rgba(14, 22, 38, 0.3);
  --w15: rgba(14, 22, 38, 0.18);
  --w12: rgba(14, 22, 38, 0.14);
  --w08: rgba(14, 22, 38, 0.1);
}

/* En tema claro, las secciones con fotografía y el footer siguen oscuros:
   dentro de ellos la tinta vuelve a ser blanca. */
[data-theme="light"] .hero,
[data-theme="light"] .page-hero,
[data-theme="light"] .band,
[data-theme="light"] .mission,
[data-theme="light"] .footer,
[data-theme="light"] .footer--center {
  --ink: #fff;
  --w9:  rgba(255, 255, 255, 0.9);
  --w85: rgba(255, 255, 255, 0.85);
  --w8:  rgba(255, 255, 255, 0.8);
  --w75: rgba(255, 255, 255, 0.75);
  --w7:  rgba(255, 255, 255, 0.7);
  --w65: rgba(255, 255, 255, 0.65);
  --w6:  rgba(255, 255, 255, 0.6);
  --w55: rgba(255, 255, 255, 0.55);
  --w45: rgba(255, 255, 255, 0.45);
  --w4:  rgba(255, 255, 255, 0.4);
  --w35: rgba(255, 255, 255, 0.35);
  --w25: rgba(255, 255, 255, 0.25);
  --w15: rgba(255, 255, 255, 0.15);
  --w12: rgba(255, 255, 255, 0.12);
  --w08: rgba(255, 255, 255, 0.08);
}

/* Relieve sutil para tarjetas sobre fondo claro */
[data-theme="light"] .card,
[data-theme="light"] .vcard,
[data-theme="light"] .box,
[data-theme="light"] .form-panel {
  box-shadow: 0 2px 14px rgba(14, 22, 38, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Archivo, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

img { max-width: 100%; }

a { color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.accent { color: var(--accent); }

/* ── Kicker (línea roja + etiqueta) ── */
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.kicker-line {
  width: 44px;
  height: 3px;
  background: var(--accent);
  flex-shrink: 0;
}

.kicker-text {
  color: var(--w7);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.kicker-text--light {
  color: var(--w85);
  font-size: 16px;
}

/* ── Títulos de sección ── */
.section-title {
  margin: 0 0 16px;
  font-family: Anton, sans-serif;
  font-size: 72px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}

.section-title--md {
  font-size: 60px;
  line-height: 1.02;
  margin-bottom: 22px;
}

.section-sub {
  margin: 0 0 64px;
  max-width: 640px;
  color: var(--w65);
  font-size: 19px;
  line-height: 1.55;
}

/* ── Botones ── */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover { filter: brightness(1.12); }

.btn--outline {
  border: 1.5px solid var(--w35);
  color: var(--ink);
  font-weight: 600;
}

.btn--outline:hover { border-color: var(--w7); }

.btn--outline-accent {
  align-self: flex-start;
  border: 1.5px solid var(--accent);
  color: var(--ink);
  padding: 16px 32px;
  font-size: 16px;
}

.btn--outline-accent:hover { background: var(--accent); }

.btn--lg {
  padding: 20px 40px;
  font-size: 17px;
  letter-spacing: 0.04em;
}

/* ═══════ HERO ═══════ */
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.hero {
  height: 100vh;
  /* altura mínima que garantiza el mismo aire entre el header y el titular
     que entre el titular y la barra de servicios */
  min-height: 880px;
  position: relative;
  overflow: hidden;
  background: var(--panel);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* conserva el casco en pantallas ultra anchas */
  animation: heroZoom 14s ease-out both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Capa 1: gradiente diagonal traslúcido con origen blanco (aclara la esquina del logo)
     Capa 2: gradiente oscuro original para legibilidad del texto */
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.28) 12%,
      rgba(255, 255, 255, 0.08) 26%,
      rgba(255, 255, 255, 0) 42%),
    linear-gradient(100deg,
      rgba(10, 16, 30, 0.9) 0%,
      rgba(10, 16, 30, 0.5) 45%,
      rgba(10, 16, 30, 0.3) 70%,
      rgba(10, 16, 30, 0.65) 100%);
}

/* ── Nav ── */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad-x);
  z-index: 3;
}

.nav-logo img {
  height: 126px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Logo con colores originales, transparente, sobre la foto (portada) */
.nav-logo--color img {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
          drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
          drop-shadow(0 0 26px rgba(255, 255, 255, 0.5));
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  color: var(--w75);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link--active {
  color: var(--ink);
  font-weight: 600;
}

/* ── Controles de idioma y tema ── */
.nav-utils {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-link,
.theme-toggle {
  color: var(--ink);
  background: none;
  border: 1px solid var(--w25);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-link:hover,
.theme-toggle:hover {
  border-color: var(--w55);
}

.theme-toggle { font-size: 15px; padding: 7px 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 4;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ── Título hero ── */
.hero-content {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 190px;
  z-index: 2;
}

.hero-content .kicker { margin-bottom: 20px; }

.hero-title {
  margin: 0;
  font-family: Anton, sans-serif;
  font-size: clamp(80px, 10vw, 150px);
  line-height: 0.92;
  color: var(--ink);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-sub {
  margin: 28px 0 0;
  max-width: 560px;
  color: var(--w85);
  font-size: 20px;
  line-height: 1.5;
}

/* ── Barra de servicios ── */
.hero-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--w25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(10, 16, 30, 0.45);
  z-index: 2;
}

.hero-bar a {
  padding: 22px 12px;
  text-align: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-right: 1px solid var(--w15);
  text-decoration: none;
  transition: background 0.25s ease;
}

.hero-bar a:last-child { border-right: none; }

.hero-bar a:hover { background: rgba(224, 33, 40, 0.35); }

/* ═══════ STATS ═══════ */
.stats {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  padding: 72px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

.stat-num {
  font-family: Anton, sans-serif;
  font-size: 64px;
  color: var(--ink);
}

.stat-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--w55);
  margin-top: 6px;
}

/* ═══════ SERVICIOS ═══════ */
.services {
  background: var(--bg);
  padding: 110px var(--pad-x);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card-num {
  font-family: Anton, sans-serif;
  font-size: 20px;
  color: var(--accent);
}

.card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--w6);
  font-size: 16px;
  line-height: 1.55;
}

/* ═══════ NOSOTROS TEASER ═══════ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  background: var(--panel);
}

.about-media {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 21, 36, 0.15) 0%, rgba(13, 21, 36, 0.75) 100%);
}

.about-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 80px;
}

.about-body p {
  margin: 0 0 18px;
  color: var(--w7);
  font-size: 18px;
  line-height: 1.6;
}

.about-body p:last-of-type { margin-bottom: 36px; }

/* ═══════ MISIÓN ═══════ */
.mission {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mission > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.78);
}

.mission-body {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 100px var(--pad-x);
  text-align: center;
}

.mission-kicker {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.mission-body p {
  margin: 26px 0 0;
  font-size: 34px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink);
}

/* ═══════ CERTIFICACIONES ═══════ */
.certs {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.certs-inner {
  padding: 64px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.certs-label {
  color: var(--w45);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.certs-logos {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: stretch;
}

.cert {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(14, 22, 38, 0.12);
  border-radius: 10px;
  padding: 14px 26px;
  min-width: 132px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cert img {
  height: 46px;
  width: auto;
  display: block;
}

.cert figcaption {
  color: rgba(14, 22, 38, 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.cert-word {
  font-weight: 900;
  color: #0e1626;
  font-size: 21px;
  letter-spacing: 0.08em;
  line-height: 46px;
}

/* ═══════ CTA ═══════ */
.cta {
  background: var(--panel);
  padding: 130px var(--pad-x);
  text-align: center;
}

.cta-inner {
  max-width: 860px;
  margin: 0 auto;
}

.cta h2 {
  margin: 0 0 22px;
  font-family: Anton, sans-serif;
  font-size: 80px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}

.cta p {
  margin: 0 0 44px;
  color: var(--w65);
  font-size: 20px;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════ FOOTER ═══════ */
.footer {
  background: var(--footer);
  border-top: 1px solid var(--line);
  padding: 72px var(--pad-x) 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand img {
  height: 96px;
  align-self: flex-start;
  width: auto;
}

.footer-brand p {
  margin: 0;
  color: var(--w55);
  font-size: 15px;
  line-height: 1.6;
  max-width: 380px;
}

.footer-hashtag {
  color: var(--w4);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-heading {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.footer-col a,
.footer-col > span:not(.footer-heading) {
  color: var(--w75);
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}

.footer-col a:hover { color: var(--ink); }

.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 6px;
}

.footer-social a {
  color: var(--w6);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.footer-social a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-bottom span {
  color: var(--w35);
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1100px) {
  :root { --pad-x: 32px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-bar { grid-template-columns: repeat(3, 1fr); }
  .hero-bar a:nth-child(3) { border-right: none; }
  .hero-bar a:nth-child(-n+3) { border-bottom: 1px solid var(--w15); }
  .section-title { font-size: 56px; }
  .section-title--md { font-size: 46px; }
  .cta h2 { font-size: 60px; }
  .about-body { padding: 64px 48px; }
  .hero-content { bottom: 220px; }
}

@media (max-width: 720px) {
  :root { --pad-x: 20px; }

  /* Nav móvil */
  .nav { padding: 18px var(--pad-x); }
  .nav-logo img { height: 90px; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(10, 14, 22, 0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 3;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links .nav-link { font-size: 20px; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { min-height: 640px; }
  .hero-content { bottom: 250px; }
  .hero-title { font-size: clamp(56px, 15vw, 80px); }
  .hero-sub { font-size: 17px; }
  .kicker-text { font-size: 12px; letter-spacing: 0.16em; }
  .kicker-text--light { font-size: 12px; }

  .hero-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-bar a { font-size: 11px; padding: 14px 8px; }
  .hero-bar a:nth-child(odd) { border-right: 1px solid var(--w15); }
  .hero-bar a:nth-child(even) { border-right: none; }
  .hero-bar a:nth-child(-n+4) { border-bottom: 1px solid var(--w15); }

  .stats-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; padding-bottom: 48px; }
  .stat-num { font-size: 48px; }

  .services { padding-top: 72px; padding-bottom: 72px; }
  .services-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 40px; }
  .section-title--md { font-size: 36px; }
  .section-sub { font-size: 17px; margin-bottom: 40px; }

  .about { grid-template-columns: 1fr; }
  .about-body { padding: 56px var(--pad-x); }
  .about-body p { font-size: 16px; }

  .mission { min-height: 460px; }
  .mission-body { padding: 72px var(--pad-x); }
  .mission-body p { font-size: 22px; }

  .certs-inner { justify-content: center; text-align: center; }
  .certs-logos { justify-content: center; gap: 28px; }
  .certs-logos span { font-size: 17px; }

  .cta { padding-top: 84px; padding-bottom: 84px; }
  .cta h2 { font-size: 42px; }
  .cta p { font-size: 17px; }
  .btn--lg { padding: 16px 26px; font-size: 15px; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand img { height: 76px; }
}

/* ═══════════════════════════════════════════════
   PÁGINAS INTERIORES (Servicios · Nosotros · Contacto)
   ═══════════════════════════════════════════════ */

/* ── Hero de página ── */
.page-hero {
  height: 62vh;
  min-height: 480px;
  position: relative;
  overflow: hidden;
  background: var(--panel);
}

.page-hero--sm {
  height: 52vh;
  min-height: 420px;
}

.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.9);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 16, 30, 0.75) 0%,
    rgba(10, 16, 30, 0.45) 50%,
    rgba(10, 14, 22, 1) 100%);
}

.page-hero-content {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 64px;
  z-index: 2;
}

.page-hero-content h1 {
  margin: 0;
  font-family: Anton, sans-serif;
  font-size: clamp(70px, 8vw, 120px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--ink);
}

/* Página activa en el nav */
.nav-link--current {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

/* ── Secciones de servicio (01–03) ── */
.svc {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
}

.svc--first { padding-top: 110px; }
.svc--last { padding-bottom: 110px; }
.svc--divided { border-top: 1px solid var(--line); }

.svc-num {
  font-family: Anton, sans-serif;
  font-size: 26px;
  color: var(--accent);
}

.svc h2 {
  margin: 10px 0 20px;
  font-family: Anton, sans-serif;
  font-size: 54px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.svc-lead {
  margin: 0;
  color: var(--w65);
  font-size: 18px;
  line-height: 1.6;
}

.svc-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  align-content: center;
}

.svc-items div {
  color: var(--w85);
  font-size: 17px;
  line-height: 1.5;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

/* ── Banda full-bleed (04 Capacitación) ── */
.band {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 14, 22, 0.6) 0%,
    rgba(10, 14, 22, 0.3) 40%,
    rgba(10, 14, 22, 0.92) 100%);
}

.band-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 80px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: end;
}

.band h2 {
  margin: 10px 0 20px;
  font-family: Anton, sans-serif;
  font-size: 64px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.band-lead {
  margin: 0 0 26px;
  color: var(--w8);
  font-size: 18px;
  line-height: 1.6;
}

.band-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.band-items div {
  color: var(--w9);
  font-size: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

/* ── Cajas 05–09 ── */
.boxes {
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px var(--pad-x);
}

.boxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.box {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 44px 40px;
}

.box--wide { grid-column: span 2; }

.box-num {
  font-family: Anton, sans-serif;
  font-size: 22px;
  color: var(--accent);
}

.box h3 {
  margin: 8px 0 16px;
  font-family: Anton, sans-serif;
  font-size: 36px;
  text-transform: uppercase;
  color: var(--ink);
}

.box p {
  margin: 0;
  color: var(--w65);
  font-size: 17px;
  line-height: 1.6;
}

/* ── CTA compacto ── */
.cta--compact { padding: 100px var(--pad-x); }

.cta--compact h2 { font-size: 64px; }

.cta--compact p { margin-bottom: 38px; font-size: 19px; }

.cta--dark { background: var(--bg); }
.cta--bordered { border-top: 1px solid var(--line); }

/* ── Nosotros: historia ── */
.history {
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
}

.history h2 {
  margin: 0;
  font-family: Anton, sans-serif;
  font-size: 58px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.history-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.history-text p {
  margin: 0;
  color: var(--w75);
  font-size: 19px;
  line-height: 1.65;
}

/* ── Nosotros: misión / visión ── */
.mv {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mv-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.mv-item {
  border-left: 3px solid var(--accent);
  padding-left: 32px;
}

.mv-item h3 {
  margin: 0 0 18px;
  font-family: Anton, sans-serif;
  font-size: 40px;
  text-transform: uppercase;
  color: var(--accent);
}

.mv-item p {
  margin: 0;
  color: var(--w8);
  font-size: 19px;
  line-height: 1.65;
}

/* ── Nosotros: valores ── */
.values {
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px var(--pad-x);
}

.values .section-title { margin-bottom: 56px; font-size: 64px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vcard {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 36px 32px;
}

.vcard h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.vcard p {
  margin: 0;
  color: var(--w6);
  font-size: 16px;
  line-height: 1.55;
}

/* ── Nosotros: registros ── */
.regs {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.regs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px var(--pad-x);
}

.regs h2 {
  margin: 0 0 48px;
  font-family: Anton, sans-serif;
  font-size: 56px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}

.regs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.reg {
  display: flex;
  gap: 20px;
  align-items: baseline;
  border-bottom: 1px solid var(--w12);
  padding-bottom: 20px;
}

.reg--wide { grid-column: span 2; }

.reg-key {
  font-family: Anton, sans-serif;
  font-size: 24px;
  color: var(--accent);
  min-width: 130px;
  flex-shrink: 0;
}

.reg-val {
  color: var(--w8);
  font-size: 17px;
}

/* ── Contacto ── */
.contact {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-label {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.contact-info p {
  margin: 10px 0 0;
  color: var(--w85);
  font-size: 19px;
  line-height: 1.6;
}

.contact-social {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.contact-social a {
  color: var(--w75);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--w25);
  padding: 10px 18px;
  border-radius: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-social a:hover {
  border-color: var(--w6);
  color: var(--ink);
}

.btn--whatsapp {
  align-self: flex-start;
  background: #1F8A5B;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  padding: 18px 34px;
}

.btn--whatsapp:hover { filter: brightness(1.12); }

/* Formulario */
.form-panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 48px;
}

.form-panel h2 {
  margin: 0 0 8px;
  font-family: Anton, sans-serif;
  font-size: 40px;
  text-transform: uppercase;
  color: var(--ink);
}

.form-panel > p {
  margin: 0 0 32px;
  color: var(--w55);
  font-size: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  background: var(--bg);
  border: 1px solid var(--w15);
  border-radius: 4px;
  padding: 16px;
  color: var(--ink);
  font-size: 16px;
  font-family: Archivo, sans-serif;
  width: 100%;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder { color: var(--w35); }

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-grid select { color: var(--w7); }

.form-grid .span-2 { grid-column: span 2; }

.form-grid textarea { resize: vertical; }

.form-grid button {
  grid-column: span 2;
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  padding: 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: Archivo, sans-serif;
  transition: filter 0.25s ease;
}

.form-grid button:hover { filter: brightness(1.12); }

/* ── Footer centrado (páginas interiores) ── */
.footer--center {
  background: var(--footer);
  border-top: 1px solid var(--line);
  padding: 56px var(--pad-x);
  text-align: center;
}

.footer--center > img { height: 80px; }

.footer--center nav {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}

.footer--center nav a {
  color: var(--w7);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.footer--center nav a:hover { color: var(--ink); }

.footer--center > span {
  color: var(--w35);
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* ── Páginas de detalle (servicio / curso) ── */
.crumbs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px var(--pad-x) 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--w45);
}

.crumbs a {
  color: var(--w65);
  text-decoration: none;
}

.crumbs a:hover { color: var(--ink); }

.crumbs span { color: var(--w45); }

.detail {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px var(--pad-x) 90px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 70px;
  align-items: start;
}

.detail-body h2 {
  margin: 44px 0 16px;
  font-family: Anton, sans-serif;
  font-size: 34px;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ink);
}

.detail-body h2:first-child { margin-top: 0; }

.detail-body p {
  margin: 0 0 18px;
  color: var(--w75);
  font-size: 18px;
  line-height: 1.65;
}

.detail-body ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-body ul li {
  color: var(--w85);
  font-size: 17px;
  line-height: 1.5;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--w12); padding: 18px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--ink); }
.faq-item p { margin: 0; color: var(--w7); font-size: 16px; line-height: 1.6; }

/* Panel lateral pegajoso con CTA */
.detail-aside {
  position: sticky;
  top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

[data-theme="light"] .detail-aside { box-shadow: 0 2px 14px rgba(14, 22, 38, 0.07); }

.detail-aside h3 {
  margin: 0;
  font-family: Anton, sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--ink);
}

.detail-aside p { margin: 0; color: var(--w65); font-size: 15px; line-height: 1.55; }

.detail-aside .btn { text-align: center; }

.aside-links { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.aside-links a { color: var(--w7); font-size: 15px; text-decoration: none; }
.aside-links a:hover { color: var(--accent); }

/* Grid del catálogo de cursos */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.curso-card {
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.curso-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.curso-card .tag { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.curso-card h3 { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.curso-card p { margin: 0; color: var(--w6); font-size: 14.5px; line-height: 1.5; }
[data-theme="light"] .curso-card { box-shadow: 0 2px 14px rgba(14, 22, 38, 0.07); }

/* ── Responsive interiores ── */
@media (max-width: 1100px) {
  .svc, .history, .contact { grid-template-columns: 1fr; gap: 40px; }
  .band-inner { grid-template-columns: 1fr; gap: 44px; }
  .svc h2 { font-size: 44px; }
  .band h2 { font-size: 48px; }
  .history h2 { font-size: 46px; }
  .regs h2 { font-size: 44px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-inner { grid-template-columns: 1fr; gap: 44px; }
  .cursos-grid { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; gap: 44px; }
  .detail-aside { position: static; }
}

@media (max-width: 720px) {
  .page-hero { min-height: 420px; }
  .page-hero-content { bottom: 44px; }
  .page-hero-content h1 { font-size: clamp(44px, 12vw, 70px); }

  .svc--first { padding-top: 64px; }
  .svc--last { padding-bottom: 64px; }
  .svc-items, .band-items { grid-template-columns: 1fr; }
  .svc h2 { font-size: 36px; }
  .band { min-height: 0; }
  .band h2 { font-size: 38px; }

  .boxes { padding-top: 64px; padding-bottom: 64px; }
  .boxes-grid { grid-template-columns: 1fr; }
  .box--wide { grid-column: auto; }
  .box h3 { font-size: 28px; }

  .cta--compact { padding: 72px var(--pad-x); }
  .cta--compact h2 { font-size: 42px; }

  .history { padding: 64px var(--pad-x); }
  .history h2 { font-size: 38px; }
  .history-text p { font-size: 17px; }
  .mv-inner { padding: 64px var(--pad-x); }
  .mv-item h3 { font-size: 32px; }
  .mv-item p { font-size: 17px; }
  .values { padding: 64px var(--pad-x); }
  .values .section-title { font-size: 40px; margin-bottom: 36px; }
  .values-grid { grid-template-columns: 1fr; }
  .regs-inner { padding: 64px var(--pad-x); }
  .regs h2 { font-size: 34px; }
  .regs-grid { grid-template-columns: 1fr; }
  .reg--wide { grid-column: auto; }
  .reg { flex-direction: column; gap: 6px; }

  .detail { grid-template-columns: 1fr; gap: 40px; padding-bottom: 64px; }
  .detail-aside { position: static; }
  .detail-body h2 { font-size: 26px; }
  .cursos-grid { grid-template-columns: 1fr; }

  .contact { padding: 64px var(--pad-x); }
  .form-panel { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-grid button { grid-column: auto; }
}

/* ── Accesibilidad ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ── Consentimiento del formulario ── */
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--w7);
  font-size: 14.5px;
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  width: auto !important;
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.consent a { color: var(--accent); }

/* ── Banner de cookies ── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--w15);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 260px;
  color: var(--w75);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner p a { color: var(--accent); }

.cookie-banner .btn {
  padding: 10px 18px;
  font-size: 13px;
}

/* Respeta usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
