/* ==========================================================================
   Landing Academia Pre Militar Policial Yanahuma
   Paleta: negro #0b0b0b · amarillo dorado #f2c318 · blanco · rojo #c8102e
   Tipografía: Bebas Neue (titulares) · Barlow Condensed (subtítulos) · Barlow (texto)
   ========================================================================== */
:root {
  --black: #0b0b0b;
  --ink: #161616;
  --ink-2: #1f1f1f;
  --gray: #8a8a8a;
  --line: rgba(255, 255, 255, 0.08);
  --yellow: #f2c318;
  --yellow-dark: #d9ad0f;
  --red: #c8102e;
  --white: #ffffff;
  --paper: #f4f4f2;
  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-cond: "Barlow Condensed", "Oswald", sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: #222; background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; }
.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.section { padding: 96px 0; }
.section--dark { background: var(--ink); color: #ddd; }
.section--paper { background: var(--paper); }
.section--black { background: var(--black); color: #ddd; }

/* Etiqueta de sección y títulos */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-cond); font-weight: 600; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--yellow); }
.kicker::before { content: ""; width: 34px; height: 3px; background: var(--yellow); }
.kicker--center { justify-content: center; }
.kicker--center::after { content: ""; width: 34px; height: 3px; background: var(--yellow); }
.title { font-size: clamp(40px, 5.5vw, 64px); margin-top: 10px; color: var(--black); }
.section--dark .title, .section--black .title { color: var(--white); }
.title em { font-style: normal; color: var(--yellow); }
.lead { font-size: 18px; color: #555; max-width: 62ch; }
.section--dark .lead, .section--black .lead { color: #b9b9b9; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; font-family: var(--font-cond); font-weight: 700; font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: var(--yellow-dark); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); clip-path: none; }
.btn--outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--black { background: var(--black); color: var(--yellow); }
.btn--black:hover { background: #222; }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1fb457; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Barra superior */
.topbar { background: var(--black); color: #aaa; font-family: var(--font-cond); font-size: 15px; letter-spacing: 0.04em; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar ul { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar li { display: flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; fill: var(--yellow); }
.social { display: flex; gap: 6px; }
.social a { width: 30px; height: 30px; display: grid; place-items: center; background: #1c1c1c; color: #ccc; transition: 0.15s; }
.social a:hover { background: var(--yellow); color: var(--black); }
.social svg { width: 15px; height: 15px; fill: currentColor; }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 11, 0.96); backdrop-filter: blur(6px); border-bottom: 3px solid var(--yellow); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); }
.brand img { width: 62px; height: 62px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-size: 30px; letter-spacing: 0.06em; line-height: 0.9; }
.brand__sub { display: block; font-family: var(--font-cond); font-size: 12px; letter-spacing: 0.22em; color: var(--yellow); }
.nav { display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 14px; font-family: var(--font-cond); font-weight: 600; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; color: #ddd; position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.2s; }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav__cta { display: none; }
.header .btn { padding: 12px 22px; font-size: 16px; }
.nav-toggle { display: none; background: none; border: 2px solid var(--yellow); color: var(--yellow); width: 44px; height: 44px; font-size: 22px; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: calc(100vh - 124px); display: flex; align-items: center; color: var(--white); background: var(--black) url("../landing/img/hero.jpg") center/cover no-repeat; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.75) 45%, rgba(0,0,0,0.25) 100%); z-index: -1; }
.hero::after { content: ""; position: absolute; right: -12vw; top: -20%; width: 34vw; height: 140%; background: var(--yellow); opacity: 0.12; transform: skewX(-14deg); z-index: -1; }
.hero .wrap { padding: 80px 0; }
.hero__tag { display: inline-block; font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--black); background: var(--yellow); padding: 6px 14px; }
.hero__title { font-size: clamp(56px, 9vw, 120px); margin-top: 22px; line-height: 0.92; }
.hero__title em { font-style: normal; color: var(--yellow); }
.hero__text { max-width: 58ch; font-size: 20px; color: #d8d8d8; margin: 24px 0 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 24px, var(--black) 24px 48px); }

/* Franja de valores */
.values { background: var(--yellow); color: var(--black); }
.values ul { display: grid; grid-template-columns: repeat(5, 1fr); }
.values li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 12px; font-family: var(--font-display); font-size: 26px; letter-spacing: 0.08em; border-right: 1px solid rgba(0,0,0,0.12); }
.values li:last-child { border-right: 0; }
.values svg { width: 28px; height: 28px; fill: var(--black); }

/* Nosotros */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media .ph { aspect-ratio: 4/3; background: #222 center/cover no-repeat; box-shadow: 0 30px 60px rgba(0,0,0,0.25); }
.about__media .ph--2 { position: absolute; right: -28px; bottom: -40px; width: 55%; aspect-ratio: 1; border: 8px solid var(--white); }
.about__media .badge { position: absolute; left: -20px; top: -20px; background: var(--yellow); color: var(--black); padding: 16px 20px; font-family: var(--font-display); font-size: 22px; line-height: 1; letter-spacing: 0.06em; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.about__media .badge small { display: block; font-family: var(--font-cond); font-size: 13px; letter-spacing: 0.2em; margin-top: 4px; }
.about p { color: #555; font-size: 17px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 26px 0 34px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-cond); font-weight: 600; font-size: 18px; letter-spacing: 0.02em; }
.checks svg { flex: none; width: 22px; height: 22px; fill: var(--yellow); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 40px; background: var(--black); }
.facts div { padding: 22px 18px; background: var(--ink); color: var(--white); }
.facts strong { display: block; font-family: var(--font-display); font-size: 40px; color: var(--yellow); line-height: 1; }
.facts span { font-family: var(--font-cond); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: #aaa; }

/* Tarjetas (preparación / actividades) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 48px; }
.card { background: var(--ink-2); border: 1px solid var(--line); padding: 34px 28px; position: relative; overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--yellow); transform: scaleY(0); transform-origin: top; transition: transform 0.25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(242,195,24,0.4); }
.card:hover::before { transform: scaleY(1); }
.card__icon { width: 64px; height: 64px; display: grid; place-items: center; background: var(--yellow); color: var(--black); margin-bottom: 20px; clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%); }
.card__icon svg { width: 32px; height: 32px; fill: currentColor; }
.card h3 { font-size: 28px; color: var(--white); margin-bottom: 8px; }
.card p { margin: 0; color: #a9a9a9; font-size: 16px; }
.card__num { position: absolute; right: 18px; top: 12px; font-family: var(--font-display); font-size: 64px; color: rgba(255,255,255,0.05); line-height: 1; }
.card--light { background: var(--white); border-color: #e6e6e2; }
.card--light h3 { color: var(--black); }
.card--light p { color: #555; }
.card--light.card:hover { border-color: var(--yellow); }

/* Modalidades */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.mode { background: var(--black); color: var(--white); padding: 40px; border-top: 6px solid var(--yellow); position: relative; }
.mode--alt { background: var(--yellow); color: var(--black); border-top-color: var(--black); }
.mode__label { font-family: var(--font-cond); font-weight: 700; letter-spacing: 0.24em; font-size: 14px; text-transform: uppercase; opacity: 0.75; }
.mode h3 { font-size: 44px; margin: 8px 0 4px; }
.mode__days { font-family: var(--font-display); font-size: 30px; letter-spacing: 0.06em; color: var(--yellow); }
.mode--alt .mode__days { color: var(--black); }
.mode p { margin: 16px 0 0; font-size: 16px; opacity: 0.85; }
.mode ul { margin-top: 18px; display: grid; gap: 8px; }
.mode li { display: flex; gap: 10px; align-items: center; font-family: var(--font-cond); font-size: 17px; font-weight: 600; }
.mode li::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); }

/* Plataforma */
.platform { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.platform__mock { background: linear-gradient(160deg, #262626, #0e0e0e); border: 1px solid var(--line); padding: 26px; box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
.platform__mock .bar { display: flex; gap: 6px; margin-bottom: 18px; }
.platform__mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: #444; }
.platform__mock .bar i:first-child { background: var(--yellow); }
.platform__mock .screen { background: #000; aspect-ratio: 16/9; display: grid; place-items: center; position: relative; overflow: hidden; }
.platform__mock .screen::before { content: ""; position: absolute; inset: 0; background: url("../landing/img/formacion.jpg") center/cover; opacity: 0.45; }
.platform__mock .play { position: relative; width: 74px; height: 74px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.platform__mock .play svg { width: 30px; height: 30px; fill: var(--black); margin-left: 4px; }
.platform__mock .rows { margin-top: 16px; display: grid; gap: 8px; }
.platform__mock .rows div { height: 12px; background: #2b2b2b; }
.platform__mock .rows div:nth-child(2) { width: 70%; }
.platform__mock .rows div:nth-child(3) { width: 45%; background: var(--yellow); }
.platform__list { margin: 26px 0 34px; display: grid; gap: 12px; }
.platform__list li { display: flex; gap: 12px; align-items: flex-start; color: #d5d5d5; font-size: 17px; }
.platform__list svg { flex: none; width: 22px; height: 22px; fill: var(--yellow); margin-top: 3px; }
.platform__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 10px; margin-top: 48px; }
.gallery a { position: relative; overflow: hidden; background: #1a1a1a; display: block; }
.gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery a:nth-child(4) { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 48px; color: var(--yellow); background: rgba(0,0,0,0.45); opacity: 0; transition: 0.2s; }
.gallery a:hover::after { opacity: 1; }
.gallery a.is-empty img { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.92); display: none; place-items: center; padding: 24px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 90vh; max-width: 100%; border: 4px solid var(--yellow); }
.lightbox button { position: absolute; top: 20px; right: 24px; background: var(--yellow); border: 0; width: 46px; height: 46px; font-size: 26px; cursor: pointer; }

/* CTA */
.cta { background: var(--yellow) url("../landing/img/desfile-1.jpg") center/cover no-repeat; position: relative; color: var(--white); isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(11,11,11,0.82); z-index: -1; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 72px 0; flex-wrap: wrap; }
.cta h2 { font-size: clamp(40px, 5vw, 64px); }
.cta h2 em { font-style: normal; color: var(--yellow); }
.cta p { margin: 8px 0 0; color: #ccc; font-size: 18px; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; margin-top: 48px; }
.contact__list { display: grid; gap: 18px; }
.contact__item { display: flex; gap: 18px; padding: 22px; background: var(--white); border: 1px solid #e6e6e2; }
.contact__item .ico { flex: none; width: 52px; height: 52px; background: var(--black); color: var(--yellow); display: grid; place-items: center; }
.contact__item .ico svg { width: 24px; height: 24px; fill: currentColor; }
.contact__item h4 { font-size: 22px; color: var(--black); margin-bottom: 4px; }
.contact__item p { margin: 0; color: #555; }
.contact__item a { color: var(--black); font-weight: 600; }
.map { min-height: 380px; background: #ddd; border: 6px solid var(--black); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Pie */
.footer { background: var(--black); color: #9a9a9a; border-top: 6px solid var(--yellow); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px; }
.footer h4 { font-size: 22px; color: var(--white); letter-spacing: 0.08em; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--yellow); }
.footer p { margin: 0 0 12px; font-size: 15px; }
.footer li { margin-bottom: 8px; font-family: var(--font-cond); font-size: 17px; letter-spacing: 0.04em; }
.footer li a:hover { color: var(--yellow); }
.footer__bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-cond); font-size: 15px; letter-spacing: 0.06em; }
.footer__bottom a { color: var(--yellow); }

/* Flotante WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsive */
@media (max-width: 1024px) {
  .values ul { grid-template-columns: repeat(3, 1fr); }
  .values li { border-bottom: 1px solid rgba(0,0,0,0.12); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .about, .platform, .contact { grid-template-columns: 1fr; }
  .about__media { margin-bottom: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery a:nth-child(4) { grid-row: span 1; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .topbar ul li:nth-child(2) { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); flex-direction: column; padding: 12px 0 20px; border-bottom: 3px solid var(--yellow); }
  .nav.is-open { display: flex; }
  .nav .nav__cta { display: block; color: var(--yellow); }
  .nav-toggle { display: block; }
  .header .btn { display: none; }
  .brand__name { font-size: 24px; }
  .hero { min-height: auto; }
  .hero .wrap { padding: 72px 0; }
  .hero__text { font-size: 17px; }
  .values ul { grid-template-columns: 1fr 1fr; }
  .values li { font-size: 20px; padding: 16px 8px; }
  .grid-3, .grid-5, .modes { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .about__media .ph--2 { right: 0; bottom: -24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery a:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}
