/* =========================================================
   Academia Táctica Colombia — estilos de la página de inicio
   ========================================================= */

:root {
  --bg: #0d110f;
  --bg-2: #141a17;
  --panel: #1a211d;
  --line: rgba(255, 255, 255, 0.1);
  --text: #e9ece9;
  --muted: #a9b0ab;
  --accent: #f26b1d;
  --accent-dark: #d45810;
  --olive: #8a9a5b;
  --light: #f2f2ef;
  --light-card: #ffffff;
  --ink: #161a17;
  --ink-muted: #5a615c;

  --font: "Barlow", system-ui, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-hud: "Chakra Petch", "Barlow Condensed", monospace;
  --khaki: #c8b98a;
  --radius: 4px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.05; text-transform: uppercase; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--accent); }

.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; }
.ic--md { width: 28px; height: 28px; stroke-width: 1.5; }
.ic--lg { width: 42px; height: 42px; stroke-width: 1.4; }

/* ---------- Imágenes con marcador de posición ---------- */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, #26302a 0%, #161c18 60%, #2b2a20 100%); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { display: none; }
.media.is-missing::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 8px; text-align: center;
  font-size: 12px; letter-spacing: .05em; color: rgba(255,255,255,.35);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.025) 14px 28px);
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { border-color: var(--accent); color: #fff; }
.btn--outline:hover { background: var(--accent); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--accent); }
.link:hover { gap: 10px; }
.link--dark { color: var(--ink); }
.link, .link .ic { transition: gap .2s; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-hud); font-weight: 600; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); }
.section-head--center { text-align: center; margin-bottom: 32px; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 3px; background: var(--accent); }
.section-head h2 { margin-top: 6px; font-size: clamp(28px, 4vw, 44px); }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.section { padding: clamp(48px, 7vw, 80px) 0; }
.section--dark { background: var(--bg-2); }
.section--light { background: var(--light); color: var(--ink); }

/* ---------- Barra superior ---------- */
.topbar { background: #080b09; font-size: 13px; color: var(--muted); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.topbar__info li, .topbar__info a { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s; }
.social a:hover { color: var(--accent); }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(13, 17, 15, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; transition: min-height .25s; }
.header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.header.is-scrolled .header__inner { min-height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 54px; height: 34px; color: #c9cfc9; }
.logo__text { display: flex; flex-direction: column; font-family: var(--font-head); text-transform: uppercase; line-height: .95; }
.logo__top { font-weight: 700; font-size: 15px; letter-spacing: .12em; color: #fff; }
.logo__main { font-weight: 800; font-size: 28px; letter-spacing: .02em; color: var(--olive); }
.logo__sub { font-size: 9px; letter-spacing: .5em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; gap: 28px; }
.nav ul a { position: relative; font-weight: 500; font-size: 15px; padding: 6px 0; transition: color .2s; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--accent); }
.nav ul a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.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 ---------- */
.hero { position: relative; min-height: clamp(520px, 78vh, 720px); display: flex; align-items: center; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,11,9,.92) 0%, rgba(8,11,9,.6) 40%, rgba(8,11,9,.1) 75%), linear-gradient(0deg, rgba(8,11,9,.6), transparent 35%); }
.hero__content { padding-top: 64px; padding-bottom: 64px; }
.hero__title { display: flex; flex-direction: column; margin-bottom: 20px; }
.hero__pre { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; color: #fff; }
.hero__big { font-size: clamp(56px, 9vw, 108px); font-weight: 900; font-style: italic; line-height: .9; color: #fff; }
.hero__big--accent { color: var(--accent); }
.hero__lead { font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; color: #fff; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__motto { font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .4em; text-transform: uppercase; color: #cfd4cf; }

/* ---------- Beneficios ---------- */
.features { background: var(--bg); border-bottom: 1px solid var(--line); }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 26px 16px; font-weight: 500; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature .ic { color: #d6dbd6; }

/* ---------- Cursos ---------- */
.courses { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.course { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s; }
.course:hover { transform: translateY(-4px); border-color: rgba(242,107,29,.6); }
.course__media { aspect-ratio: 4 / 3.4; }
.course__media img { transition: transform .5s; }
.course:hover .course__media img { transform: scale(1.06); }
.course__body { display: flex; flex-direction: column; flex: 1; padding: 18px 16px 20px; }
.course h3 { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; margin-bottom: 12px; }
.course h3 .ic { color: #fff; }
.course p { flex: 1; font-size: 14px; color: var(--muted); margin-bottom: 16px; }

/* ---------- La academia ---------- */
.academy { display: grid; grid-template-columns: 1.5fr 1fr; background: var(--bg); }
.academy__media { min-height: 360px; }
.academy__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, transparent 60%, var(--bg)); }
.academy__content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 48px var(--gutter) 48px 0; max-width: 520px; }
.academy__content h2 { font-size: clamp(28px, 3.4vw, 40px); }
.academy__content p { color: var(--muted); }
.academy .eyebrow { color: #fff; }

/* ---------- Entrenamiento para todos ---------- */
.audiences { padding-top: 40px; padding-bottom: 40px; }
.title-bar { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; }
.title-bar::before { content: ""; width: 18px; height: 3px; background: #fff; }
.audiences__grid { display: grid; grid-template-columns: repeat(3, 1fr) 0.9fr; gap: 18px; align-items: stretch; }
.audience { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.audience__media { aspect-ratio: 16 / 6; }
.audience__body { display: flex; gap: 14px; padding: 16px; }
.audience__body .ic { margin-top: 2px; }
.audience h3 { font-size: 16px; margin-bottom: 4px; }
.audience p { font-size: 14px; color: var(--muted); }
.audiences__cta { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-left: 24px; border-left: 1px solid var(--line); }
.audiences__cta h3 { font-size: 22px; }

/* ---------- Instructor ---------- */
.instructor { display: grid; grid-template-columns: 1.1fr 1.4fr 0.8fr; align-items: center; background: var(--light); color: var(--ink); }
.instructor__media { align-self: stretch; min-height: 380px; }
.instructor__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, transparent 70%, var(--light)); }
.instructor__content { padding: 44px 32px; }
.instructor__content h2 { font-size: clamp(30px, 3.2vw, 40px); text-transform: none; margin: 8px 0 14px; }
.instructor__content p { color: var(--ink-muted); margin-bottom: 22px; }
.badge-discovery { display: inline-flex; align-items: center; gap: 14px; }
.badge-discovery__globe { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9fd3ff, #2a7ac0 45%, #12406e 70%), #2a7ac0; box-shadow: inset -6px -6px 12px rgba(0,0,0,.35); }
.badge-discovery small { display: block; color: var(--ink-muted); font-size: 14px; }
.badge-discovery strong { font-size: 22px; font-weight: 700; line-height: 1; }
.skills { display: flex; flex-direction: column; gap: 18px; padding: 32px var(--gutter) 32px 28px; border-left: 1px solid rgba(0,0,0,.12); }
.skills li { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 15px; }
.skills .ic { color: var(--ink-muted); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.gallery__item { aspect-ratio: 4 / 3; border-radius: var(--radius); padding: 0; }
.gallery__item img { transition: transform .5s, filter .3s; }
.gallery__item:hover img { transform: scale(1.06); filter: brightness(1.1); }
.gallery__item.is-missing { cursor: default; }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial { margin: 0; padding: 24px 26px; background: var(--light-card); border-radius: var(--radius); box-shadow: 0 6px 22px rgba(0,0,0,.06); }
.stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 12px; }
.testimonial p { font-style: italic; color: var(--ink-muted); }

/* ---------- CTA ---------- */
.cta { position: relative; isolation: isolate; padding: 64px 0; }
.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,11,9,.9) 0%, rgba(8,11,9,.55) 60%, rgba(8,11,9,.3)); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { display: flex; flex-direction: column; font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin-bottom: 12px; }
.cta p { max-width: 560px; font-size: 18px; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { display: grid; grid-template-columns: 40% 1fr; background: var(--light-card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,.06); transition: transform .25s; }
.post:hover { transform: translateY(-3px); }
.post__media { min-height: 150px; }
.post__body { display: flex; flex-direction: column; padding: 18px; }
.post h3 { font-family: var(--font); font-size: 16px; text-transform: none; margin-bottom: 6px; }
.post p { flex: 1; font-size: 14px; color: var(--ink-muted); margin-bottom: 12px; }

/* ---------- Pie de página ---------- */
.footer { background: #080b09; color: var(--muted); padding-top: 56px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer__grid > div + div { border-left: 1px solid var(--line); padding-left: 32px; }
.footer__brand p { margin: 18px 0 20px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 15px; letter-spacing: .08em; margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 6px; }
.footer a:hover { color: var(--accent); }
.footer__contact { display: flex; flex-direction: column; gap: 14px; color: #fff; font-weight: 500; }
.footer__contact li, .footer__contact a { display: flex; align-items: center; gap: 12px; }
.social--round a { width: 40px; height: 40px; border-radius: 50%; background: #1a201c; color: #fff; }
.social--round a:hover { background: var(--accent); color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.footer__bottom span[aria-hidden] { margin: 0 10px; }

/* ---------- Visor de galería ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.9); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: 12px; right: 18px; font-size: 40px; line-height: 1; color: #fff; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav ul { gap: 18px; }
  .nav { gap: 20px; }
  .courses { grid-template-columns: repeat(3, 1fr); }
  .audiences__grid { grid-template-columns: repeat(3, 1fr); }
  .audiences__cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .instructor { grid-template-columns: 1fr 1.3fr; }
  .skills { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px 32px; border-left: 0; border-top: 1px solid rgba(0,0,0,.12); padding: 24px var(--gutter); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .posts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .academy { grid-template-columns: 1fr; }
  .academy__media { min-height: 280px; }
  .academy__media::before { background: linear-gradient(180deg, transparent 60%, var(--bg)); }
  .academy__content { padding: 32px var(--gutter) 48px; max-width: none; }
  .testimonials { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar__info li:first-child { display: none; }
  .topbar__info { gap: 4px 18px; font-size: 12px; }
  .features__grid { grid-template-columns: 1fr; }
  .feature { justify-content: flex-start; padding: 16px 0; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .courses { grid-template-columns: repeat(2, 1fr); }
  .audiences__grid { grid-template-columns: 1fr; }
  .audiences__cta { flex-direction: column; align-items: flex-start; }
  .instructor { grid-template-columns: 1fr; }
  .instructor__media { min-height: 340px; }
  .instructor__media::before { background: linear-gradient(180deg, transparent 70%, var(--light)); }
  .instructor__content { padding: 28px var(--gutter); }
  .skills { justify-content: flex-start; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .post { grid-template-columns: 1fr; }
  .post__media { aspect-ratio: 16 / 9; min-height: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > div + div { border-left: 0; padding-left: 0; }
  .topbar .social { display: none; }
}

@media (max-width: 420px) {
  .courses { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* =========================================================
   Capa táctica — componentes compartidos por todas las páginas
   ========================================================= */

/* Texturas */
.topo { position: relative; isolation: isolate; }
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1.2'%3E%3Cpath d='M-20 320c80-40 120-120 220-110s140 90 240 60 120-110 200-90'/%3E%3Cpath d='M-20 280c90-50 130-130 230-118s130 80 220 50 140-120 210-100'/%3E%3Cpath d='M-20 240c100-60 140-140 240-126s120 70 200 40 150-130 220-110'/%3E%3Cpath d='M-20 200c110-70 150-150 250-134s110 60 180 30 160-140 230-120'/%3E%3Cpath d='M-20 160c120-80 160-160 260-142s100 50 160 20 170-150 240-130'/%3E%3Cpath d='M-20 120c130-90 170-170 270-150s90 40 140 10 180-160 250-140'/%3E%3Cpath d='M380 330c30-30 80-30 100 0s-10 60-50 55-80-25-50-55z'/%3E%3Cpath d='M395 330c20-18 55-18 68 0s-8 38-34 35-52-17-34-35z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 400px;
}
.section--light.topo::before { filter: invert(1); opacity: .6; }
.grid-bg { background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; }

/* Esquinas de visor */
.hud { position: relative; }
.hud::after {
  --c: var(--accent); --l: 16px; --w: 2px;
  content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
  opacity: 0; transform: scale(1.03); transition: opacity .25s, transform .25s;
}
.hud:hover::after, .hud--on::after { opacity: 1; transform: none; }

.code { font-family: var(--font-hud); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; font-family: var(--font-hud); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--khaki); border: 1px solid rgba(200,185,138,.35); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(242,107,29,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(242,107,29,0); } 100% { box-shadow: 0 0 0 0 rgba(242,107,29,0); } }

/* HUD de la portada */
.hud-readout { position: absolute; right: var(--gutter); bottom: 28px; z-index: 2; display: grid; gap: 4px; padding: 14px 16px; min-width: 230px; font-family: var(--font-hud); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #d8ddd8; background: rgba(8,11,9,.55); border-left: 2px solid var(--accent); backdrop-filter: blur(4px); }
.hud-readout b { color: var(--accent); font-weight: 600; }
.hud-readout__row { display: flex; justify-content: space-between; gap: 16px; }
.hero__reticle { position: absolute; right: 22%; top: 18%; width: 120px; height: 120px; z-index: 1; color: rgba(255,255,255,.35); pointer-events: none; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-30px, 24px); } }

.course__num { position: absolute; top: 10px; left: 12px; z-index: 2; font-family: var(--font-hud); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: #fff; background: rgba(8,11,9,.7); padding: 2px 8px; }

/* Cinta con el lema */
.ticker { overflow: hidden; background: var(--accent); color: #120c07; border-block: 1px solid rgba(0,0,0,.2); }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 22px; padding: 12px 22px 12px 0; font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ticker__track span::after { content: "✕"; font-size: 12px; opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Encabezado de páginas internas */
.page-hero { position: relative; isolation: isolate; padding: clamp(72px, 11vw, 132px) 0 clamp(48px, 7vw, 76px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,11,9,.95) 0%, rgba(8,11,9,.7) 50%, rgba(8,11,9,.35)), linear-gradient(0deg, var(--bg), transparent 45%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.crumbs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-family: var(--font-hud); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--accent); }
.page-hero h1 { font-size: clamp(44px, 7.5vw, 92px); font-weight: 800; line-height: .92; max-width: 900px; }
.page-hero h1 em { font-style: italic; font-weight: 900; color: var(--accent); }
.page-hero__lead { max-width: 620px; margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); color: #d5dad5; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.page-hero__reticle { position: absolute; right: 6%; top: 50%; width: clamp(160px, 22vw, 300px); aspect-ratio: 1; transform: translateY(-50%); color: rgba(255,255,255,.18); z-index: -1; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Utilidades de sección */
.section-head--left { margin-bottom: 32px; max-width: 760px; }
.section-head--left p, .section-head--center p { margin-top: 14px; color: var(--muted); }
.section-head--center p { max-width: 640px; margin-left: auto; margin-right: auto; }
.section--light .section-head p { color: var(--ink-muted); }
.prose p + p { margin-top: 14px; }
.prose p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.frame { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.frame .media { position: absolute; inset: 10px; }
.frame__label { position: absolute; left: 10px; bottom: -11px; z-index: 3; padding: 2px 10px; background: var(--bg); }
.section--dark .frame__label { background: var(--bg-2); }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters--center { justify-content: center; }
.chip { padding: 9px 16px; font-family: var(--font-hud); font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.chip.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }
[data-cat].is-hidden { display: none !important; }

/* Estadísticas */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { padding: 22px 20px; background: var(--bg); }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(36px, 4vw, 52px); line-height: 1; color: #fff; }
.stat span { font-family: var(--font-hud); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Tarjetas genéricas */
.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 18px; }
.card { padding: 28px 24px; background: var(--panel); border: 1px solid var(--line); }
.card .ic--lg { color: var(--accent); margin-bottom: 18px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }
.card .code { display: block; margin-bottom: 10px; }
.section--light .card { background: var(--light-card); border-color: rgba(0,0,0,.08); }
.section--light .card p { color: var(--ink-muted); }

/* Pasos / proceso */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); counter-reset: step; border-top: 1px solid var(--line); }
.step { position: relative; padding: 30px 20px 8px 0; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-hud); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--accent); margin-bottom: 12px; }
.step::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Lista de verificación */
.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px; border: 2px solid var(--accent); background: linear-gradient(var(--accent), var(--accent)) center / 6px 6px no-repeat; }
.checklist--2 { grid-template-columns: 1fr 1fr; gap: 10px 24px; }

/* Expedientes de cursos */
.dossiers { display: grid; gap: clamp(40px, 6vw, 72px); }
.dossier { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; scroll-margin-top: 100px; }
.dossier:nth-child(even) .dossier__media { order: 2; }
.dossier__media { position: relative; }
.dossier__media .frame { aspect-ratio: 5 / 4; }
.dossier__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.dossier h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 14px; }
.dossier__lead { font-size: 17px; color: #d5dad5; margin-bottom: 22px; }
.dossier h3 { font-family: var(--font-hud); font-size: 13px; letter-spacing: .16em; color: var(--khaki); margin-bottom: 12px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 26px 0; border: 1px solid var(--line); }
.specs div { padding: 12px 14px; }
.specs div + div { border-left: 1px solid var(--line); }
.specs dt { font-family: var(--font-hud); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.specs dd { margin: 0; font-weight: 600; font-size: 14.5px; }

/* Banda de seguridad */
.band { padding: clamp(40px, 6vw, 64px) 0; background: linear-gradient(90deg, #1b2016, #12160f); border-block: 1px solid rgba(138,154,91,.25); }
.band__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.band h2 { font-size: clamp(28px, 3.4vw, 40px); }

/* Expediente del instructor */
.profile { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.profile .frame { aspect-ratio: 4 / 5; }
.profile h2 { font-size: clamp(36px, 4.6vw, 58px); text-transform: none; margin: 10px 0 6px; }
.profile__role { font-family: var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--khaki); font-size: 13px; margin-bottom: 22px; }
.profile .badge-discovery { margin-top: 26px; padding: 14px 18px; border: 1px solid var(--line); }
.profile .badge-discovery small { color: var(--muted); }
.record { margin-top: 28px; border-top: 1px solid var(--line); }
.record div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.record dt { font-family: var(--font-hud); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.record dd { margin: 0; font-weight: 500; }
.motto { padding: clamp(48px, 7vw, 88px) 0; text-align: center; }
.motto p { font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: clamp(34px, 6vw, 76px); line-height: 1; text-transform: uppercase; }
.motto p span { color: var(--accent); }

/* Galería completa */
.gallery--full { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 8px; padding: 0; max-width: none; }
.gallery--full .gallery__item:nth-child(3n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery__item { position: relative; }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; gap: 8px; padding: 22px 12px 10px; font-family: var(--font-hud); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; text-align: left; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
.gallery__cap b { color: var(--accent); font-weight: 600; }

/* Visor con navegación */
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lightbox figcaption { font-family: var(--font-hud); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #cfd4cf; }
.lightbox__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 30px; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.lightbox__nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* Blog */
.feature-post { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--panel); border: 1px solid var(--line); margin-bottom: 20px; }
.feature-post .media { min-height: 340px; }
.feature-post__body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 4vw, 44px); }
.feature-post h2 { font-size: clamp(28px, 3.4vw, 40px); }
.feature-post p { color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); }
.post-card .media { aspect-ratio: 16 / 9; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px; }
.post-card h3 { font-size: 24px; }
.post-card p { flex: 1; color: var(--muted); font-size: 15px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-family: var(--font-hud); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Artículo */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.article { font-size: 17.5px; line-height: 1.7; color: #d4d9d4; }
.article > * + * { margin-top: 18px; }
.article h2 { margin-top: 42px; font-size: clamp(26px, 3vw, 34px); color: #fff; }
.article h2::before { content: attr(data-n); display: block; font-family: var(--font-hud); font-size: 12px; letter-spacing: .16em; color: var(--accent); margin-bottom: 6px; }
.article ul { display: grid; gap: 8px; padding-left: 0; }
.article ul li { position: relative; padding-left: 24px; }
.article ul li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.article strong { color: #fff; }
.article__cover { aspect-ratio: 16 / 8; margin-bottom: 32px; }
.callout { padding: 20px 22px; background: rgba(242,107,29,.08); border-left: 3px solid var(--accent); font-size: 16px; }
.callout b { display: block; font-family: var(--font-hud); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.side-box { padding: 22px; background: var(--panel); border: 1px solid var(--line); }
.side-box h3 { font-size: 18px; margin-bottom: 14px; }
.side-box p { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.side-links { display: grid; gap: 12px; }
.side-links a { display: block; font-weight: 600; line-height: 1.3; }
.side-links a:hover { color: var(--accent); }
.side-links small { display: block; margin-top: 2px; font-family: var(--font-hud); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Contacto */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.form { padding: clamp(22px, 4vw, 40px); background: var(--panel); border: 1px solid var(--line); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-hud); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field label i { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; font: inherit; font-size: 15.5px; color: var(--text); background: #0f1411; border: 1px solid rgba(255,255,255,.14); border-radius: 0; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,107,29,.18); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.form__note { font-size: 13.5px; color: var(--muted); }
.form__note a { color: var(--accent); text-decoration: underline; }
.channels { display: grid; gap: 12px; }
.channel { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s; }
a.channel:hover { border-color: var(--accent); }
.channel .ic--md { color: var(--accent); }
.channel small { display: block; font-family: var(--font-hud); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.channel strong { font-size: 17px; }
.map { position: relative; margin-top: 12px; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--panel); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) contrast(.9); }
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--light-card); border: 1px solid rgba(0,0,0,.08); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-hud); font-size: 22px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-muted); }

/* Responsive de la capa táctica */
@media (max-width: 1100px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs div:nth-child(3) { border-left: 0; }
  .specs div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { --cols: 3 !important; row-gap: 12px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .gallery--full { grid-template-columns: repeat(3, 1fr); }
  .gallery--full .gallery__item:nth-child(3n + 1) { grid-column: auto; grid-row: auto; }
}
@media (max-width: 900px) {
  .hud-readout, .hero__reticle { display: none; }
  .split, .dossier, .profile, .band__grid, .contact-layout, .feature-post { grid-template-columns: 1fr; }
  .dossier:nth-child(even) .dossier__media { order: 0; }
  .cards { --cols: 2 !important; }
  .page-hero__reticle { opacity: .5; }
}
@media (max-width: 720px) {
  .cards, .post-grid, .form__grid, .sidebar, .checklist--2 { grid-template-columns: 1fr; --cols: 1 !important; }
  .steps { --cols: 1 !important; }
  .stats { grid-template-columns: 1fr; }
  .gallery--full { grid-template-columns: repeat(2, 1fr); }
  .gallery--full .gallery__item:nth-child(3n + 1) { grid-row: span 1; }
  .gallery__cap { opacity: 1; transform: none; }
  .record div { grid-template-columns: 1fr; gap: 2px; }
  .page-hero__reticle { display: none; }
  .ticker__track span { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track, .page-hero__reticle, .hero__reticle, .dot { animation: none; }
}
a.media { display: block; }

/* ===== Logo real ===== */
.logo__img { display: block; height: 88px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); transition: height .25s; }
.header.is-scrolled .logo__img { height: 66px; }
@media (max-width: 720px) { .logo__img { height: 64px; } .header.is-scrolled .logo__img { height: 54px; } }
.footer .logo__img { height: 120px; }

/* ===== Portada: carrusel táctico ===== */
.hero { overflow: hidden; }
.hero__slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.hero__slide.is-active { position: relative; inset: auto; width: 100%; min-height: inherit; opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 0; }
.hero__slide .hero__media img { transform: scale(1.08); transition: transform 7s ease-out; }
.hero__slide.is-active .hero__media img { transform: scale(1); }
.hero__slide .hero__content > * { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: .15s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: .3s; }
.hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: .45s; }
/* esquinas de visor y líneas de escaneo */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px); }
.hero__frame { position: absolute; inset: 22px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--accent),var(--accent)) top left/34px 2px, linear-gradient(var(--accent),var(--accent)) top left/2px 34px,
    linear-gradient(var(--accent),var(--accent)) top right/34px 2px, linear-gradient(var(--accent),var(--accent)) top right/2px 34px,
    linear-gradient(var(--accent),var(--accent)) bottom left/34px 2px, linear-gradient(var(--accent),var(--accent)) bottom left/2px 34px,
    linear-gradient(var(--accent),var(--accent)) bottom right/34px 2px, linear-gradient(var(--accent),var(--accent)) bottom right/2px 34px;
  background-repeat: no-repeat; opacity: .85; }
.hero__ctrl { position: absolute; left: var(--gutter); bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 14px; font-family: var(--font-hud); font-size: 12px; letter-spacing: .14em; color: #cfd4cf; }
.hero__count b { color: var(--accent); font-size: 16px; }
.hero__bars { display: flex; gap: 6px; }
.hero__bar { width: 46px; height: 4px; padding: 0; background: rgba(255,255,255,.22); position: relative; overflow: hidden; }
.hero__bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero__bar.is-done i { transform: scaleX(1); }
.hero__bar.is-active i { animation: heroBar var(--hero-delay, 6.5s) linear forwards; }
.hero.is-paused .hero__bar.is-active i { animation-play-state: paused; }
@keyframes heroBar { to { transform: scaleX(1); } }
.hero__arrow { width: 36px; height: 36px; display: grid; place-items: center; font-size: 22px; line-height: 1; color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(8,11,9,.45); transition: border-color .2s, color .2s; }
.hero__arrow:hover { color: var(--accent); border-color: var(--accent); }
.hero__content { position: relative; z-index: 2; padding-bottom: 110px; }
.hero__reticle, .hud-readout { z-index: 3; }
#hud-mision { transition: opacity .3s; }
@media (max-width: 900px) {
  .hero__frame { inset: 12px; }
  .hero__ctrl { bottom: 22px; }
  .hero__bar { width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__slide .hero__media img, .hero__slide .hero__content > * { transition: none; }
  .hero__bar.is-active i { animation: none; transform: scaleX(1); }
}

/* ===== Galería de inicio: 3 filas ===== */
.gallery { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
