/* ==========================================================================
   ACADEMIA PREPOLICIAL LEONES E.I.R.L. - HOJA DE ESTILOS PRINCIPAL
   Arquitectura ligera, responsive y orientada a conversión
   ========================================================================== */
:root {
  --negro: #0B0D11;
  --negro-2: #141820;
  --negro-3: #1E2430;
  --oro: #F5C400;
  --oro-dark: #D4A600;
  --oro-soft: #FFF7D6;
  --rojo: #C8102E;
  --rojo-dark: #9E0B23;
  --wa: #1FAF54;
  --wa-dark: #168C41;
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #12151C;
  --muted: #525B6C;
  --line: #E2E6EE;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 36px -12px rgba(11, 13, 17, 0.14);
  --shadow-lg: 0 24px 54px -16px rgba(11, 13, 17, 0.28);
  --font-head: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --nav-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 18px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1220px, 100% - 2.4rem); margin-inline: auto; }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.88rem 1.45rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic svg { width: 19px; height: 19px; }
.btn-sm { padding: 0.62rem 1.1rem; font-size: 0.86rem; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(31, 175, 84, 0.55); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-oro { background: var(--oro); color: var(--negro); box-shadow: 0 10px 24px -8px rgba(245, 196, 0, 0.5); }
.btn-oro:hover { background: var(--oro-dark); }
.btn-lt { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.28); backdrop-filter: blur(8px); }
.btn-lt:hover { background: rgba(255,255,255,0.18); border-color: var(--oro); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--negro); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.34); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.link {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.92rem;
  color: var(--rojo); transition: gap .18s ease;
}
.link svg { width: 17px; height: 17px; }
.link:hover { gap: 0.7rem; }

/* ---------- NAVEGACIÓN ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 900;
  background: rgba(11, 13, 17, 0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08); color: #fff;
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bname { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; line-height: 1.12; letter-spacing: -0.01em; color: #fff; }
.bname small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.74rem; color: var(--oro); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }

.links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.35rem; }
.links a { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.82); transition: color .18s; position: relative; padding-block: 4px; }
.links a:hover, .links a[aria-current="page"] { color: var(--oro); }
.links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--oro); border-radius: 2px; }

.progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--rojo), var(--oro)); transition: width .08s linear; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.18); background: transparent; border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.burger i { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 890;
  background: var(--negro); color: #fff; padding: 1.6rem;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateX(100%); transition: transform .28s ease;
}
.menu.open { transform: translateX(0); }
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.menu-links a { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1rem; border-radius: 12px; background: rgba(255,255,255,0.04); font-weight: 700; font-size: 1.05rem; }
.menu-links a small { font-weight: 500; font-size: 0.8rem; color: var(--oro); }
.menu-foot { display: grid; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* ---------- HERO ---------- */
.hero {
  padding-top: calc(var(--nav-h) + 2.4rem);
  padding-bottom: 3.4rem;
  background: radial-gradient(circle at 80% 20%, rgba(200, 16, 46, 0.22), transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(245, 196, 0, 0.14), transparent 40%),
              linear-gradient(155deg, var(--negro) 0%, var(--negro-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hx { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.6rem; align-items: center; }
.hx-sello {
  display: inline-flex; align-items: center; gap: 0.65rem;
  background: rgba(245, 196, 0, 0.12); border: 1px solid rgba(245, 196, 0, 0.35);
  color: var(--oro); padding: 0.42rem 0.95rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.hx-sello img { width: 24px; height: 24px; border-radius: 50%; }
.hx-tit { font-size: clamp(2.1rem, 4.1vw, 3.35rem); font-weight: 900; margin-bottom: 1.05rem; }
.hx-tit em { font-style: normal; color: var(--oro); }
.hx-sub { font-size: 1.08rem; color: rgba(255,255,255,0.84); max-width: 54ch; margin: 0 0 1.65rem; }
.hx-sub b { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.8rem; }

.hx-datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.9rem; color: rgba(255,255,255,0.82); }
.hx-datos li { display: flex; align-items: center; gap: 0.6rem; }
.hx-datos svg { width: 18px; height: 18px; color: var(--oro); flex-shrink: 0; }

/* Carrusel Hero */
.hx-vis { position: relative; }
.hx-fotos {
  position: relative; aspect-ratio: 4/3; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 2px solid rgba(245, 196, 0, 0.32); background: var(--negro-3);
}
.hx-fotos picture { position: absolute; inset: 0; opacity: 0; transition: opacity .65s ease; }
.hx-fotos picture.on { opacity: 1; z-index: 1; }
.hx-fotos img { width: 100%; height: 100%; object-fit: cover; }

/* Medalla giratoria */
.hx-medalla {
  position: absolute; top: -22px; right: -18px; width: 124px; height: 124px; z-index: 4;
  background: var(--negro); border-radius: 50%; padding: 6px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.45); border: 2px solid var(--oro);
  display: grid; place-items: center;
}
.hx-medalla img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; }
.hx-anillo { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); animation: spin 22s linear infinite; }
.hx-anillo .aro { fill: none; stroke: rgba(245, 196, 0, 0.25); stroke-width: 1; }
.hx-anillo text { fill: var(--oro); font-family: var(--font-head); font-size: 14.5px; font-weight: 800; letter-spacing: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hx-cap {
  position: absolute; left: 14px; bottom: 14px; z-index: 3; margin: 0;
  background: rgba(11, 13, 17, 0.82); backdrop-filter: blur(8px);
  color: #fff; font-size: 0.82rem; font-weight: 600; padding: 0.42rem 0.85rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.14);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.hx-cap i { width: 8px; height: 8px; border-radius: 50%; background: var(--oro); }

.hx-ctrl {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(11, 13, 17, 0.82); backdrop-filter: blur(8px);
  padding: 0.35rem 0.55rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14);
}
.hx-fl, .hx-pausa {
  width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent;
  color: #fff; display: grid; place-items: center; cursor: pointer;
}
.hx-fl:hover, .hx-pausa:hover { background: rgba(255,255,255,0.14); color: var(--oro); }
.hx-prev svg { transform: rotate(180deg); }
.hx-fl svg, .hx-pausa svg { width: 15px; height: 15px; }
.hx-pausa .ico-play { display: none; }
.hx-pausa[aria-pressed="true"] .ico-pause { display: none; }
.hx-pausa[aria-pressed="true"] .ico-play { display: block; }
.hx-dots { display: flex; gap: 5px; padding-inline: 4px; }
.hx-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,0.35); cursor: pointer; transition: width .2s, background .2s; }
.hx-dots button.on { width: 20px; background: var(--oro); }

/* ---------- CINTA DE LEMAS ---------- */
.cinta { background: var(--oro); color: var(--negro); padding-block: 0.85rem; overflow: hidden; border-block: 2px solid var(--negro); }
.cinta-wrap { display: flex; overflow: hidden; }
.cinta-track { display: flex; gap: 2.5rem; white-space: nowrap; animation: marquee 32s linear infinite; }
.cinta-item { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-head); font-weight: 800; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; }
.cinta-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); }
.cinta-item em { font-style: normal; background: var(--negro); color: var(--oro); padding: 0.12rem 0.5rem; border-radius: 6px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- SECCIONES GENERALES ---------- */
section { padding-block: 4.5rem; }
.banda { background: #ECEFF4; }
.banda-dark { background: var(--negro); color: #fff; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.6rem; }
.lbl {
  display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--rojo);
  background: rgba(200, 16, 46, 0.1); padding: 0.32rem 0.75rem; border-radius: 6px; margin-bottom: 0.65rem;
}
.banda-dark .lbl { background: rgba(245, 196, 0, 0.15); color: var(--oro); }
.sec-head h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); font-weight: 900; max-width: 22ch; }
.sec-head h2 em { font-style: normal; color: var(--rojo); }
.banda-dark .sec-head h2 em { color: var(--oro); }
.lede { max-width: 48ch; color: var(--muted); margin: 0; font-size: 1.02rem; }
.banda-dark .lede { color: rgba(255,255,255,0.78); }

/* ---------- MÉTRICAS / AUTORIDAD ---------- */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  margin-top: -2.2rem; position: relative; z-index: 5;
}
.stat-card {
  background: var(--surface); border-radius: var(--radius); padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 4px solid var(--oro);
}
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: var(--negro); line-height: 1; }
.stat-num span { color: var(--rojo); }
.stat-txt { font-size: 0.88rem; color: var(--muted); margin-top: 0.45rem; font-weight: 600; }

/* ---------- GRID 6 PILARES ---------- */
.pq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pq {
  background: var(--surface); border-radius: var(--radius); padding: 1.4rem;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .22s ease;
}
.pq:hover { transform: translateY(-4px); }
.pq-foto { margin: -1.4rem -1.4rem 1.1rem; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; position: relative; background: var(--negro-2); }
.pq-foto img { width: 100%; height: 100%; object-fit: cover; }
.pq .ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--negro); color: var(--oro);
  display: grid; place-items: center; margin-bottom: 0.85rem;
}
.pq .ico svg { width: 22px; height: 22px; }
.pq h3 { font-size: 1.16rem; font-weight: 800; margin-bottom: 0.5rem; }
.pq p { color: var(--muted); font-size: 0.94rem; margin: 0 0 1.1rem; flex-grow: 1; }

/* ---------- PROGRAMAS (3 MODALIDADES) ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.prog {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column;
}
.prog.featured { border: 2px solid var(--oro); position: relative; }
.prog-top { background: var(--negro); color: #fff; padding: 1.5rem; position: relative; }
.prog.featured .prog-top { background: linear-gradient(145deg, var(--negro) 0%, #231905 100%); }
.tag {
  display: inline-block; background: var(--oro); color: var(--negro); font-family: var(--font-head);
  font-weight: 800; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.28rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem;
}
.prog-top h3 { font-size: 1.38rem; font-weight: 900; }
.prog-top .q { color: var(--oro); font-weight: 600; font-size: 0.9rem; margin: 0.35rem 0 0; }
.prog-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.prog-body > p { color: var(--muted); font-size: 0.94rem; margin: 0 0 1.1rem; }
.dev { display: grid; gap: 0.55rem; margin-bottom: 1.25rem; flex-grow: 1; }
.dev span { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.9rem; font-weight: 600; }
.dev svg { width: 18px; height: 18px; color: var(--wa); flex-shrink: 0; margin-top: 2px; }
.hora {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; font-weight: 700;
  background: var(--bg); padding: 0.65rem 0.85rem; border-radius: 10px; margin-bottom: 1.2rem; color: var(--ink);
}
.hora svg { width: 17px; height: 17px; color: var(--rojo); flex-shrink: 0; }
.prog-pie { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }

/* ---------- SELECTOR INTERACTIVO DE ESCUELAS (LA REGLA ADAPTADA) ---------- */
.regla-sheet {
  background: var(--negro); color: #fff; border-radius: 26px; padding: clamp(1.5rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(245, 196, 0, 0.25);
}
.regla-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.4rem; align-items: center; }
.regla-izq .lbl { background: rgba(245, 196, 0, 0.16); color: var(--oro); }
.regla-izq h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 900; margin-bottom: 0.75rem; }
.regla-izq h2 em { font-style: normal; color: var(--oro); }
.regla-izq .lede { color: rgba(255,255,255,0.8); margin-bottom: 1.6rem; }

.tape { background: var(--negro-2); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 1.35rem; }
.ticks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; text-align: center; margin-bottom: 0.55rem; }
.tk {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 800; padding: 0.42rem 0.15rem;
  border-radius: 8px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7);
  cursor: pointer; transition: all .18s; user-select: none;
}
.tk:hover { background: rgba(245, 196, 0, 0.2); color: #fff; }
.tk.on { background: var(--oro); color: var(--negro); transform: scale(1.06); }
.tramos { display: flex; justify-content: space-between; font-size: 0.76rem; color: rgba(255,255,255,0.65); margin-bottom: 0.65rem; }
.tramos i { font-style: normal; color: var(--oro); }

input[type="range"]#escuelaRange {
  width: 100%; accent-color: var(--oro); height: 8px; cursor: pointer; margin: 0.3rem 0 0.8rem;
}
.mark {
  display: inline-block; background: var(--rojo); color: #fff; font-family: var(--font-head);
  font-weight: 800; font-size: 0.86rem; padding: 0.35rem 0.85rem; border-radius: 8px;
}
.tape-note { font-size: 0.82rem; color: rgba(255,255,255,0.68); margin: 0.85rem 0 0; }

/* Tarjeta resultado escuela */
.rp { background: #fff; color: var(--ink); border-radius: 20px; padding: 1.7rem; box-shadow: var(--shadow); }
.rp-h { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.65rem; }
.rp-niv { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 800; font-size: 0.82rem; text-transform: uppercase; color: var(--rojo); }
.rp-niv i { width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); }
.rp-year { font-size: 0.78rem; font-weight: 700; background: var(--oro-soft); color: #7A5E00; padding: 0.25rem 0.65rem; border-radius: 999px; }
.rp-grado { font-size: 1.45rem; font-weight: 900; margin-bottom: 0.3rem; }
.rp-edad { font-size: 0.9rem; font-weight: 700; color: var(--muted); margin: 0 0 1.1rem; }
.rp-vive { background: var(--bg); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.1rem; }
.rp-vive .vh { font-family: var(--font-head); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; color: var(--negro); margin-bottom: 0.6rem; }
#rpList { display: grid; gap: 0.45rem; font-size: 0.9rem; }
#rpList div { display: flex; align-items: flex-start; gap: 0.5rem; }
#rpList svg { width: 17px; height: 17px; color: var(--wa); flex-shrink: 0; margin-top: 2px; }

.rp-sex { display: flex; gap: 0.75rem; margin-bottom: 0.85rem; }
.rp-sex label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.55rem; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 0.88rem; cursor: pointer;
}
.rp-sex label:has(input:checked) { border-color: var(--negro); background: var(--oro-soft); }
.rp-msg { font-size: 0.84rem; color: var(--muted); margin: 0 0 1rem; }
.rp .btn-wa { width: 100%; }

/* ---------- INFRAESTRUCTURA DEPORTIVA (LIONS POOL & LIONS FIT) ---------- */
.infra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.infra-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column;
}
.infra-card figure { margin: 0; aspect-ratio: 16/10; position: relative; overflow: hidden; }
.infra-card img { width: 100%; height: 100%; object-fit: cover; }
.infra-badge {
  position: absolute; top: 14px; left: 14px; background: var(--negro); color: var(--oro);
  font-family: var(--font-head); font-weight: 800; font-size: 0.76rem; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--oro);
}
.infra-body { padding: 1.6rem; display: flex; flex-direction: column; flex-grow: 1; }
.infra-body h3 { font-size: 1.38rem; font-weight: 900; margin-bottom: 0.5rem; }
.infra-body p { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.1rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.3rem; }
.spec { background: var(--bg); padding: 0.65rem 0.8rem; border-radius: 10px; font-size: 0.84rem; }
.spec b { display: block; color: var(--negro); font-size: 0.92rem; }

/* ---------- NOSOTROS & DIRECTOR ---------- */
.nos-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }
.director-box {
  background: var(--surface); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); border-left: 5px solid var(--oro);
}
.director-box blockquote { margin: 0 0 1.1rem; font-size: 0.98rem; color: var(--ink); font-style: italic; }
.director-firma b { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--negro); }
.director-firma span { font-size: 0.86rem; color: var(--rojo); font-weight: 700; }
.mv-grid { display: grid; gap: 1rem; }
.mv-card { background: var(--surface); padding: 1.4rem; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.mv-card h3 { font-size: 1.08rem; color: var(--rojo); margin-bottom: 0.4rem; }
.mv-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- UBICACIÓN Y CONTACTO ---------- */
.ubi-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.8rem; }
.mapa { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 410px; box-shadow: var(--shadow); border: 1px solid var(--line); background: #ddd; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.placa {
  position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 380px;
  background: rgba(11, 13, 17, 0.94); color: #fff; backdrop-filter: blur(10px);
  padding: 1.15rem 1.25rem; border-radius: 16px; border: 1px solid rgba(245, 196, 0, 0.35);
}
.placa .lab { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--oro); font-weight: 800; }
.placa .num { font-family: var(--font-head); font-size: 1.22rem; font-weight: 900; margin: 0.2rem 0; }
.placa p { margin: 0 0 0.75rem; font-size: 0.86rem; color: rgba(255,255,255,0.82); }
.plinks { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.plinks a { font-size: 0.82rem; font-weight: 700; color: var(--oro); text-decoration: underline; }

.ubi-side { display: grid; gap: 1.2rem; }
.ubi-card { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ubi-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.cl { display: grid; gap: 0.75rem; }
.cl a {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem 0.9rem;
  border-radius: 12px; background: var(--bg); transition: background .18s;
}
.cl a:hover { background: var(--oro-soft); }
.ci { width: 38px; height: 38px; border-radius: 10px; background: var(--negro); color: var(--oro); display: grid; place-items: center; flex-shrink: 0; }
.ci svg { width: 19px; height: 19px; }
.cl b { display: block; font-size: 0.95rem; }
.cl small { color: var(--muted); font-size: 0.8rem; }

.fach { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 16/10; box-shadow: var(--shadow); }
.fach img { width: 100%; height: 100%; object-fit: cover; }
.fach figcaption { position: absolute; bottom: 10px; left: 10px; background: rgba(11,13,17,0.82); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 999px; }

/* ---------- FOOTER ---------- */
.foot { background: var(--negro); color: rgba(255,255,255,0.8); padding-top: 4rem; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 1.1fr; gap: 2.2rem; padding-bottom: 2.8rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot .lema { margin: 0.9rem 0 1.2rem; font-weight: 700; color: var(--oro); }
.foot h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.9rem; }
.foot ul a:hover { color: var(--oro); }
.soc { display: flex; gap: 0.65rem; }
.app { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08); color: #fff; display: grid; place-items: center; transition: background .18s, color .18s; }
.app:hover { background: var(--oro); color: var(--negro); }
.app svg { width: 18px; height: 18px; }
.foot-bottom { padding-block: 1.3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.marca { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.6rem, 8vw, 6.5rem); text-align: center; color: rgba(255,255,255,0.03); line-height: 0.85; user-select: none; pointer-events: none; }

/* ---------- BOTONES FLOTANTES & ASISTENTE LEONES ---------- */
.fab-cap { position: fixed; right: 18px; bottom: 18px; z-index: 880; display: grid; gap: 0.65rem; justify-items: end; }
.fab {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.05rem;
  border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; font-size: 0.88rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.32); transition: transform .18s;
}
.fab:hover { transform: translateY(-2px); }
.fab-chat { background: var(--negro); color: var(--oro); border: 1.5px solid var(--oro); }
.fab-chat img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.fab-chat .x { display: none; width: 20px; height: 20px; }
.fab-chat[aria-expanded="true"] img { display: none; }
.fab-chat[aria-expanded="true"] .x { display: block; }
.fab-wa { background: var(--wa); color: #fff; }
.fab-wa svg { width: 22px; height: 22px; }

.dock { display: none; }

.chat-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 910; opacity: 0; pointer-events: none; transition: opacity .22s; }
.chat-scrim.open { opacity: 1; pointer-events: auto; }
.chat {
  position: fixed; right: 18px; bottom: 92px; width: min(370px, calc(100vw - 24px)); z-index: 920;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(16px) scale(0.96); opacity: 0; pointer-events: none; transition: all .22s ease;
}
.chat.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-h { background: var(--negro); color: #fff; padding: 0.95rem 1.1rem; display: flex; align-items: center; gap: 0.75rem; }
.chat-h .ava img { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--oro); }
.chat-h b { display: block; font-size: 0.95rem; color: var(--oro); }
.chat-h small { font-size: 0.76rem; color: rgba(255,255,255,0.75); }
.chat-h button { margin-left: auto; background: transparent; border: 0; color: #fff; cursor: pointer; }
.chat-h button svg { width: 20px; height: 20px; }
.chat-m { padding: 1rem; height: 290px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.65rem; background: var(--bg); font-size: 0.88rem; }
.msg { padding: 0.7rem 0.9rem; border-radius: 14px; max-width: 86%; line-height: 1.45; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.usr { background: var(--negro); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.chip {
  background: var(--oro-soft); border: 1px solid var(--oro-dark); color: var(--negro);
  font-size: 0.78rem; font-weight: 700; padding: 0.35rem 0.7rem; border-radius: 999px; cursor: pointer;
}
.chip:hover { background: var(--oro); }
.chat-in { display: flex; border-top: 1px solid var(--line); background: #fff; }
.chat-in input { flex: 1; border: 0; padding: 0.8rem 0.95rem; outline: none; font-size: 0.9rem; }
.chat-in button { border: 0; background: var(--oro); color: var(--negro); padding-inline: 1rem; cursor: pointer; }
.chat-in button svg { width: 18px; height: 18px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .links, .nav-cta { display: none; }
  .burger { display: flex; }
  .hx, .regla-grid, .infra-grid, .nos-grid, .ubi-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }
  .pq-grid, .prog-grid, .foot-grid { grid-template-columns: 1fr; }
  .hx-medalla { width: 98px; height: 98px; top: -12px; right: 8px; }
  .hx-medalla img { width: 58px; height: 58px; }
  .fab-cap { display: none; }
  body { padding-bottom: 66px; }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; height: 64px; z-index: 885;
    background: var(--negro); border-top: 1px solid rgba(255,255,255,0.12);
    display: grid; grid-template-columns: repeat(4, 1fr);
  }
  .dk {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: rgba(255,255,255,0.85); font-size: 0.72rem; font-weight: 700;
    background: transparent; border: 0; cursor: pointer;
  }
  .dk svg { width: 20px; height: 20px; color: var(--oro); }
  .dk-wa { background: var(--wa); color: #fff; }
  .dk-wa svg { color: #fff; }
  .chat { bottom: 76px; right: 12px; }
}
