/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 
/* ── Variables globales ── */
:root {
  --bg: #1f1f1e;
  --orange: #f57013;
  --glow: #d97757;
}

/* ── Ocultar contenido hasta que JS personalice la sede ── */
/* Aplica a páginas protegidas (portada, reglamento, politicas) — NO a login ni intro */
body:not(.login-page):not(:has(#spotlight)):not(.sede-personalized) {
  opacity: 0;
}
body.sede-personalized {
  opacity: 1;
  transition: opacity 0.35s ease;
}
 
/* ── Body - Intro (con cursor y scroll ocultos) ── */
body:has(#spotlight) {
  background: linear-gradient(135deg, #1f1f1e 0%, #2a2a28 50%, #1f1f1e 100%);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  font-family: 'Courier New', Courier, monospace;
  cursor: none;
}

/* ── Body - Portada (con scroll y cursor visibles) ── */
body:has(#hero) {
  background: #ffffff;
  overflow-x: hidden;
  font-family: var(--font-body);
}
 
/* ── Cursor spotlight ── */
#spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  transition: background 0.05s linear;
}
 
/* ── Main stage ── */
#stage {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
 
/* ── CVS Title ── */
#cvs-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--orange);
  text-shadow:
    0 0 8px var(--glow),
    0 0 20px rgba(217, 119, 87, 0.4),
    0 0 40px rgba(217, 119, 87, 0.15);
  position: relative;
  white-space: nowrap;
  opacity: 0;
  min-height: 1.2em;
}
 
#cvs-title span {
  display: inline-block;
  opacity: 0;
}
 
/* ── Animación glitch letra por letra ── */
@keyframes glitch-in {
  0%   { opacity: 0; transform: translate(0, 0) skewX(0deg); filter: blur(4px); }
  15%  { opacity: 1; transform: translate(-4px, 2px) skewX(-10deg); filter: blur(1px); color: #fff; }
  30%  { transform: translate(3px, -2px) skewX(8deg); color: var(--glow); }
  50%  { transform: translate(-2px, 1px) skewX(-4deg); color: #fff; }
  70%  { transform: translate(2px, 0) skewX(3deg); color: var(--glow); }
  100% { opacity: 1; transform: translate(0, 0) skewX(0deg); filter: blur(0); color: var(--orange); }
}
 
@keyframes glitch-out {
  0%   { opacity: 1; transform: translate(0, 0); filter: blur(0); color: var(--orange); }
  20%  { transform: translate(-5px, 3px) skewX(12deg); filter: blur(2px); color: #fff; }
  40%  { transform: translate(4px, -3px) skewX(-8deg); color: var(--glow); }
  60%  { opacity: 0.6; transform: translate(-3px, 2px) skewX(5deg); filter: blur(3px); }
  80%  { opacity: 0.2; transform: translate(6px, -4px); filter: blur(6px); }
  100% { opacity: 0; transform: translate(0, 0); filter: blur(8px); }
}
 
.letter-gout {
  animation: glitch-out 0.4s ease forwards !important;
}
 
/* ── Brand tags ── */
#brands {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.5vh, 14px);
  opacity: 0;
}
 
.brand-row {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
 
.brand {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 2rem);
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  white-space: nowrap;
  /* Fondo negro semitransparente para que los colores resalten */
  background: rgba(0, 0, 0, 0.55);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
 
/* ── Colores reales de marca ── */
 
/* Pirelli — rojo corporativo */
.b-pirelli {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 0 0 2px #000;
}
 
/* Prometon — gris industrial / blanco */
.b-prometon {
  color: #e0e0e0;
  text-shadow: 0 0 8px rgba(224, 224, 224, 0.5);
}
 
/* Michelin — azul Michelin */
.b-michelin {
  color: #0033A0;
  text-shadow: 0 0 10px rgba(0, 51, 160, 0.8);
}
 
/* Kumho Tire — azul + rojo, usamos el azul principal */
.b-kumho {
  color: #0055B3;
  text-shadow: 0 0 10px rgba(0, 85, 179, 0.8);
}
 
/* Titan — amarillo dorado */
.b-titan {
  color: #FFC107;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.7);
}
 
/* Goodyear — amarillo Goodyear */
.b-goodyr {
  color: #FFD100;
  text-shadow: 0 0 10px rgba(255, 209, 0, 0.7);
}
 
/* Terraking — verde campo / OTR */
.b-terraking {
  color: #2E7D32;
  text-shadow: 0 0 10px rgba(46, 125, 50, 0.8);
}
 
/* Kapsen — rojo-naranja */
.b-kapsen {
  color: #E53935;
  text-shadow: 0 0 10px rgba(229, 57, 53, 0.8);
}
 
/* Habilead — azul cielo */
.b-habilead {
  color: #039BE5;
  text-shadow: 0 0 10px rgba(3, 155, 229, 0.7);
}
 
/* Fullrun — naranja energético */
.b-fullrun {
  color: #F4511E;
  text-shadow: 0 0 10px rgba(244, 81, 30, 0.7);
}
 
/* Zeta — violeta / morado oscuro */
.b-zeta {
  color: #7B1FA2;
  text-shadow: 0 0 10px rgba(123, 31, 162, 0.8);
}
 
/* Wosen — verde lima */
.b-wosen {
  color: #8BC34A;
  text-shadow: 0 0 10px rgba(139, 195, 74, 0.6);
}
 
/* Ovation — naranja cálido */
.b-ovation {
  color: #FB8C00;
  text-shadow: 0 0 10px rgba(251, 140, 0, 0.7);
}
 
/* ── Clase activa para revelar marcas ── */
.brand.visible {
  opacity: 1;
  transform: translateY(0);
}
 
/* ── Fade overlay de salida ── */
#fade-out {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1f1f1e 0%, #2a2a28 50%, #1f1f1e 100%);
  opacity: 0;
  z-index: 100;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
 
#fade-out.active {
  opacity: 1;
}
 
/* ==========================================================
   CVS-SERVITECAS SAS | CARTELERA DIGITAL CORPORATIVA
   styles.css
========================================================== */
 
/* ── VARIABLES GLOBALES ── */
:root {
  --primary:      #f57013;
  --primary-dark: #d45e08;
  --primary-light:rgba(245, 112, 19, 0.10);
  --text:         #000000;
  --text-muted:   #6b7280;
  --bg:           #ffffff;
  --bg-soft:      #f9f9f9;
  --border:       rgba(0,0,0,0.08);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.10);
  --shadow-orange:0 12px 32px rgba(245,112,19,0.18);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --radius:       10px;
  --nav-h:        68px;
  --transition:   0.3s ease;
}
 
/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
 
/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
#siteHeader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  height: var(--nav-h);
  transition: box-shadow var(--transition);
}
 
#siteHeader.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
 
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
 
/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img { height: 48px; width: auto; }
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-logo-name em { color: var(--primary); font-style: normal; }
 
/* Nav list */
#navMenu { display: flex; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-item { position: relative; }
 
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 1.1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}
 
/* Chevron */
.chevron {
  width: 12px; height: 8px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.has-dropdown:hover > a .chevron,
.has-dropdown.open > a .chevron { transform: rotate(180deg); }
.chevron-right {
  width: 8px; height: 12px;
  margin-left: auto;
}
 
/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 200;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
 
.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.dropdown-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.dropdown-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--highlight, var(--primary));
  padding: 0.6rem 1.1rem 0.3rem 1.1rem;
  font-weight: 700;
  opacity: 0.9;
  user-select: none;
  display: block;
}
.dropdown-header:not(:first-of-type) {
  border-top: 1px solid var(--border);
  margin-top: 0.4rem;
  padding-top: 0.8rem;
}
 
.dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}
 
/* Sub-dropdown */
.has-subdropdown { position: relative; }
.subdropdown {
  position: absolute;
  top: 0;
  right: 100%;
  left: auto;
  margin-right: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity var(--transition),
              visibility var(--transition),
              transform var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 300;
}
.has-subdropdown:hover > .subdropdown,
.has-subdropdown:focus-within > .subdropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
 
/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.ham-bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .ham-bar:nth-child(2) { opacity: 0; }
.hamburger.active .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
 
/* Menú móvil */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 999;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-list { padding: 1rem 0; }
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}
.mobile-link:hover,
.mobile-link.active { color: var(--primary); background: var(--primary-light); }
.mobile-sub { display: none; background: var(--bg-soft); }
.mobile-sub.open { display: block; }
.mobile-sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-sub-link:hover { color: var(--primary); }
.mobile-sub2 .mobile-sub-link { padding-left: 3rem; }
 
/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
 
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('Imagenes/Portada.jpg') center/cover no-repeat;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
}
 
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 2rem;
}
 
/* Animación de entrada del hero */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.15s; }
.reveal[data-delay="2"] { transition-delay: 0.30s; }
.reveal[data-delay="3"] { transition-delay: 0.45s; }
 
.hero-tagline {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--highlight, var(--primary));
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 1.5rem;
}
.hero-title em { color: var(--primary); font-style: normal; }
 
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #ffffff;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 2rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
}
.hero-cta:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-orange);
}
.hero-cta svg { width: 18px; height: 18px; }

/* Contenedor de botones (CTAs) del hero */
.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

/* Botón secundario traslúcido (glassmorphic) */
.hero-cta.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-cta.secondary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-orange);
}

/* Tamaño de logo en el footer */
.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.2rem;
  display: block;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}
.scroll-line {
  width: 2px; height: 36px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.4; }
}
 
/* ══════════════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════════════ */
#contenido {
  position: relative;
  z-index: 3;
  background: var(--bg);
}
 
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
 
/* Intro */
.section-intro {
  padding: 6rem 0;
  text-align: center;
}
.intro-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.eyebrow-line { width: 36px; height: 2px; background: var(--primary); }
.eyebrow-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.intro-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.intro-title em { color: var(--primary); font-style: normal; }
.intro-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto;
}
 
/* Cards */
.section-cards {
  padding: 6rem 0;
  background: var(--bg-soft);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-orange);
  border-color: var(--primary);
}
.card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  background: var(--primary-light);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.card-icon { width: 30px; height: 30px; }
.card-body { flex: 1; }
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.card-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.card-arrow {
  display: flex;
  align-items: center;
  color: var(--primary);
  transition: transform var(--transition);
}
.card:hover .card-arrow { transform: translateX(5px); }
.card-arrow svg { width: 20px; height: 20px; }
 
/* Brand */
.section-brand {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255,255,255,0.6) 100%);
}
.brand-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  margin: 0.75rem 0 0;
}
.brand-title em { color: var(--primary); font-style: normal; }
.brand-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 1.25rem;
}
.brand-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pillar {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.pillar-num span { font-size: 1.4rem; }
.pillar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
 
/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
#footer {
  background: #000;
  color: #fff;
  padding: 5rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.9;
  max-width: 520px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer-bottom strong {
  color: #ffffff;
}

/* ==========================================================
   LLANTA DECORATIVA EN LA SECCIÓN "NUESTRA MISIÓN"
========================================================== */

/* Contenedor */
.brand-pillars {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  position: relative;
}

/* Imagen de la llanta */
.tire-background {
  width: 420px;
  height: 420px;
  object-fit: contain;

  /* Transparencia y estilo */
  opacity: 0.05;
  filter: grayscale(20%) brightness(0.35) contrast(0.8);

  /* Sin bordes ni sombras */
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;

  /* Rotación lenta */
  animation: tireRotate 60s linear infinite;

  /* No interfiere con clics */
  pointer-events: none;
}

/* Animación */
@keyframes tireRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .tire-background {
    width: 260px;
    height: 260px;
    opacity: 0.08;
  }
}

/* ==========================================================
   PERSONALIZACIÓN DINÁMICA POR SEDE Y DETALLES DEL HERO
========================================================== */
.highlight-text {
  color: var(--highlight) !important;
  font-style: normal;
}

/* ==========================================================
   MÓDULO DE LOGIN
========================================================== */
body.login-page {
  background: radial-gradient(circle at 10% 20%, rgba(26,26,26,0.98) 0%, rgba(12,12,12,1) 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  font-family: var(--font-body);
  margin: 0;
  padding: 1.5rem;
  overflow-y: auto;
  position: relative;
}

body.login-page::before {
  content: '';
  position: absolute;
  top: -20%; left: -20%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(245, 112, 19, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.login-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  animation: loginFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.login-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.login-card.shake {
  animation: shakeCard 0.45s ease-in-out;
  border-color: #E53935;
}

.login-card.success {
  transform: scale(0.96);
  opacity: 0.8;
}

@keyframes shakeCard {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-logo {
  height: 60px;
  width: auto;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.login-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #1f1f1e;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.login-title span {
  color: var(--primary, #f57013);
}

.login-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.input-group {
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 1.1rem 1.1rem 1.1rem 3rem;
  background: #f4f4f5;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f1f1e;
  outline: none;
  transition: all 0.25s ease;
}

.input-group input:focus {
  background: #fff;
  border-color: var(--primary, #f57013);
  box-shadow: 0 0 0 4px var(--primary-light, rgba(245, 112, 19, 0.1));
}

.input-group label {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

/* Floating label logic */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
  top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  transform: translateY(0);
  color: var(--primary, #f57013);
}

.input-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease;
}

.input-group input:focus ~ .input-icon {
  color: var(--primary, #f57013);
}

.toggle-password {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  outline: none;
  transition: color 0.25s ease;
}

.toggle-password:hover,
.toggle-password.visible {
  color: var(--primary, #f57013);
}

.error-message {
  font-size: 0.85rem;
  font-weight: 500;
  color: #d32f2f;
  background: #ffebee;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  animation: errorFadeIn 0.3s ease;
}

.error-message.active {
  display: flex;
}

@keyframes errorFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  background: var(--primary, #f57013);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 12px rgba(245, 112, 19, 0.2);
  transition: all 0.25s ease;
}

.btn-submit:hover {
  background: var(--primary-dark, #d45e08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow, rgba(245, 112, 19, 0.25));
}

.btn-submit:active {
  transform: translateY(0);
}

.arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn-submit:hover .arrow-icon {
  transform: translateX(4px);
}

/* ==========================================================
   HEADER / NAVBAR LOGOUT BUTTON
========================================================== */
.logout-link {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted) !important;
}

.logout-link:hover {
  color: #d32f2f !important;
  background: rgba(211, 47, 47, 0.08) !important;
}

.logout-icon {
  width: 16px;
  height: 16px;
}

/* ==========================================================
   HERO LOGO
========================================================== */
.hero-logo-wrap {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

/* ==========================================================
   MÓDULO DE REGLAMENTO INTERNO — INTERFAZ GENERAL
========================================================== */
body.reglamento-page-layout {
  background: var(--bg-soft);
  min-height: 100vh;
  padding-top: var(--nav-h);
  font-family: var(--font-body);
}

/* Mini Hero de Reglamento */
.mini-hero {
  position: relative;
  padding: 4rem 2rem;
  background-color: #1f1f1e;
  overflow: hidden;
  color: #fff;
  border-bottom: 1px solid var(--border);
}

.mini-hero .hero-bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  filter: blur(8px) scale(1.05);
}

.mini-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.mini-hero-content {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.breadcrumb {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  text-decoration: none;
  transition: color 0.25s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .active {
  color: #fff;
}

.mini-hero-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mini-hero-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

.mini-hero-titles {
  display: flex;
  flex-direction: column;
}

.mini-hero-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--highlight, var(--primary));
}

.mini-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.btn-back:hover {
  background: #fff;
  color: #1f1f1e;
  border-color: #fff;
  transform: translateY(-2px);
}

.back-icon {
  width: 16px;
  height: 16px;
}

/* Layout Grid Portal */
.reglamento-main {
  max-width: 1400px;
  padding: 3rem 2rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.sidebar-sticky-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Buscador Lateral */
.search-box-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1f1f1e;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary);
  padding-left: 0.6rem;
}

.search-input-group {
  position: relative;
}

.search-input-group input {
  width: 100%;
  padding: 0.8rem 2.2rem 0.8rem 2.4rem;
  background: #f4f4f5;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: all 0.25s ease;
}

.search-input-group input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.search-clear.active {
  display: flex;
}

.search-clear:hover {
  color: #d32f2f;
}

/* Lista de Capítulos */
.index-box-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  max-height: 60vh;
}

.chapters-list-container {
  overflow-y: auto;
  padding-right: 0.25rem;
}

.chapters-list-container::-webkit-scrollbar {
  width: 6px;
}

.chapters-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.chapters-list-container::-webkit-scrollbar-thumb {
  background: #e4e4e7;
  border-radius: 3px;
}

.chapters-list-container::-webkit-scrollbar-thumb:hover {
  background: #d4d4d8;
}

.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chapter-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.chapter-item:hover {
  background: var(--bg-soft);
  transform: translateX(4px);
}

.chapter-item.active {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.chapter-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.chapter-item.active .chapter-num {
  color: var(--primary);
}

.chapter-name {
  font-size: 0.88rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-page-badge {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  background: #f4f4f5;
  border-radius: 4px;
  color: var(--text-muted);
  white-space: nowrap;
}

.chapter-item.active .chapter-page-badge {
  background: var(--primary);
  color: #fff;
}

.empty-search {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* Visor Portal Derecho */
.portal-viewer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.viewer-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.active-chapter-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chapter-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

.active-chapter-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #1f1f1e;
  line-height: 1.2;
}

.viewer-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-viewer-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: #1f1f1e;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-viewer-action svg {
  width: 14px;
  height: 14px;
}

.btn-viewer-action:hover {
  background: var(--bg-soft);
  border-color: var(--text-muted);
}

.btn-viewer-action.btn-download {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-viewer-action.btn-download:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.pdf-viewer-container {
  padding: 1.5rem;
  background: #2e2e2d;
  min-height: 800px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: auto;
  border-radius: var(--radius);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

#pdfCanvas {
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  background: #ffffff;
  border-radius: 4px;
}

.mobile-pdf-notice {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
}

/* Responsive Reglamento */
@media (max-width: 992px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .index-box-wrap {
    max-height: 320px;
  }
}

@media (max-width: 768px) {
  .pdf-viewer-container {
    display: flex;
    min-height: 400px;
    padding: 0.5rem;
  }
  
  .mobile-pdf-notice {
    display: none !important;
  }
  
  .notice-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
  }
  
  .notice-icon svg {
    width: 100%;
    height: 100%;
  }
  
  .mobile-pdf-notice p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 320px;
    margin-bottom: 2rem;
  }
  
  .notice-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 280px;
  }
  
  .btn-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    transition: all 0.25s ease;
  }
  
  .btn-notice-download {
    background: #f4f4f5;
    color: #1f1f1e;
  }
  
  .mini-hero-content {
    justify-content: center;
    text-align: center;
  }
  
  .mini-hero-brand {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-back {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================
   ELEMENTOS DE BÚSQUEDA PROFUNDA PDF
========================================================== */
.loading-search-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  gap: 1rem;
}

.search-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: searchSpinnerRotate 0.8s linear infinite;
}

@keyframes searchSpinnerRotate {
  to { transform: rotate(360deg); }
}

.search-results-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  cursor: pointer;
  background: #fff;
  transition: all 0.22s ease;
}

.search-result-item:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.search-result-item.active {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow, rgba(245,112,19,0.08));
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.result-chapter {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.result-page {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  background: #f4f4f5;
  color: var(--text-muted);
  border-radius: 4px;
}

.search-result-item.active .result-page {
  background: var(--primary);
  color: #fff;
}

.result-snippet {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  word-break: break-word;
}

.search-result-item.active .result-snippet {
  color: var(--text);
}

mark.search-highlight {
  background: #fff59d;
  color: #000;
  font-weight: 600;
  padding: 0 0.15rem;
  border-radius: 2px;
}

/* ==========================================================
   DISEÑO RESPONSIVO MÓVIL ADICIONAL (HEADER & LOGIN)
========================================================== */
@media (max-width: 992px) {
  .nav-container {
    padding: 0 1.2rem;
  }
  .nav-logo-img {
    height: 44px;
  }
  .nav-logo-name {
    font-size: 1.1rem;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }
  
  #navMenu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    z-index: 999;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    transition: all 0.3s ease;
  }
  
  #navMenu.open {
    display: block;
    animation: slideDownMenu 0.3s ease forwards;
  }
  
  @keyframes slideDownMenu {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  
  /* Dropdowns en móvil */
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1.5rem;
    width: 100%;
    background: var(--bg-soft);
    margin-top: 0.5rem;
  }
  
  .has-dropdown.open > .dropdown {
    display: block;
  }
  
  .dropdown-link {
    white-space: normal;
  }
  
  .chevron {
    transition: transform 0.3s ease;
  }
  
  .has-dropdown.open > a .chevron {
    transform: rotate(180deg);
  }
  
  /* Botón de logout en móvil */
  .logout-nav-item {
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.8rem;
  }
  .nav-logo-img {
    height: 36px;
  }
  .nav-logo-name {
    font-size: 0.95rem;
    max-width: 175px;
  }
  .login-card {
    padding: 2.2rem 1.5rem;
  }
  .login-title {
    font-size: 1.8rem;
  }
  .btn-submit {
    padding: 0.95rem;
  }
}

@media (max-width: 1200px) and (min-width: 993px) {
  .nav-logo-name {
    font-size: 1.15rem;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .hero-logo-img {
    max-height: 120px;
  }
}

body.menu-open {
  overflow: hidden;
}

/* ── Responsive: Footer ── */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-brand img {
    margin: 0 auto 1rem;
    max-width: 200px;
  }
  .footer-brand p {
    margin: 0 auto;
  }
}

/* ── Responsive: Brand section ── */
@media (max-width: 768px) {
  .brand-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section-intro,
  .section-cards,
  .section-brand {
    padding: 3rem 0;
  }
  .container {
    padding: 0 1rem;
  }
  .hero-content {
    padding: 1.5rem 1rem;
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .hero-cta {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ── Responsive: Navbar dropdown en móvil ── */
@media (max-width: 992px) {
  .nav-list {
    gap: 0.5rem;
  }
  .dropdown {
    min-width: 100%;
    margin-top: 0.25rem;
  }
  .dropdown-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  .logout-nav-item {
    margin-top: 0.75rem;
  }
  .dropdown-header {
    padding: 0.6rem 1rem 0.3rem 0;
  }
  .dropdown-header:not(:first-of-type) {
    border-top: 1px solid var(--border);
    margin-top: 0.3rem;
    padding-top: 0.6rem;
  }
}

/* ==========================================================
   BARRA DE NAVEGACIÓN PDF (REGLAMENTO / POLÍTICAS)
========================================================== */
.pdf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #232222;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.toolbar-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
}
.toolbar-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-indicator {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
}
#lblPageNum {
  color: var(--highlight, var(--primary));
  font-weight: 700;
}

/* ==========================================================
   VENTANAS MODALES PARA SELECCIÓN DE DOCUMENTOS (PORTADA)
========================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #232222;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.modal-close:hover {
  color: var(--primary);
}

.modal-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.modal-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.modal-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.modal-card-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.modal-card-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.modal-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal-card-btn:hover {
  background: var(--highlight, var(--primary));
  transform: scale(1.02);
}

@media (max-width: 576px) {
  .modal-container {
    padding: 1.5rem;
  }
  .modal-title {
    font-size: 1.25rem;
  }
}