/* ============================================================
   COPARMEX Sonora Norte – Preview Estática v2
   Paleta: #0071CE #0047BA #001B71 #C8C8C8 #898A8D #54565A
   ============================================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --blue-400:  #3D9EE8;
  --blue-500:  #0071CE;
  --blue-600:  #0047BA;
  --blue-900:  #001B71;
  --gray-100:  #F4F6FA;
  --gray-200:  #E8EBF2;
  --gray-300:  #C8C8C8;
  --gray-500:  #898A8D;
  --gray-700:  #54565A;
  --gold:      #C9A227;
  --green:     #2E7D32;
  --purple:    #6A1B9A;
  --orange:    #E65100;
  --red:       #C62828;

  /* ── Modo claro */
  --bg:           #F0F3FA;
  --bg-alt:       #E8EBF5;
  --surface:      #FFFFFF;
  --surface-2:    #EEF2FB;
  --border:       #D8DFF0;
  --text:         #111827;
  --text-muted:   #54565A;
  --header-bg:    #FFFFFF;
  --header-shadow:0 2px 20px rgba(0,71,186,.10);
  --hero-overlay: linear-gradient(135deg,rgba(0,27,113,.75) 0%,rgba(0,71,186,.55) 100%);
  --footer-bg:    #EAF0FA;
  --footer-text:  #001B71;

  --sidebar-bg:   #001B71;
  --card-shadow:  0 2px 12px rgba(0,71,186,.08);
  --card-hover:   0 12px 40px rgba(0,71,186,.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all .22s cubic-bezier(.4,0,.2,1);
}

/* ── Modo oscuro */
[data-theme="dark"] {
  --bg:           #0C1526;
  --bg-alt:       #111E38;
  --surface:      #162040;
  --surface-2:    #1C2A52;
  --border:       #253660;
  --text:         #E2EAF8;
  --text-muted:   #7A90BE;
  --header-bg:    #0D1830;
  --header-shadow:0 2px 20px rgba(0,0,0,.5);
  --hero-overlay: linear-gradient(135deg,rgba(0,8,35,.82) 0%,rgba(0,27,113,.65) 100%);
  --footer-bg:    #071226;
  --footer-text:  #A8BFDE;
  --sidebar-bg:   #060C1A;
  --card-shadow:  0 2px 12px rgba(0,0,0,.35);
  --card-hover:   0 12px 40px rgba(0,0,0,.55);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; transition: background .3s, color .3s; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   THEME TOGGLE SWITCH (REAL TOGGLE)
   ============================================================ */
.theme-switch {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  outline: none;
}
.theme-switch-track {
  position: relative;
  width: 48px;
  height: 24px;
  background-color: var(--gray-300);
  border-radius: 50px;
  border: 1.5px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}
[data-theme="dark"] .theme-switch-track {
  background-color: var(--blue-500);
  border-color: var(--blue-600);
}
.theme-switch-thumb {
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-switch-thumb::before {
  font-size: 10px;
  line-height: 1;
  content: "☀️";
}
[data-theme="dark"] .theme-switch-thumb {
  transform: translateX(23px);
}
[data-theme="dark"] .theme-switch-thumb::before {
  content: "🌙";
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
  transition: background .3s, box-shadow .3s;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 70px; gap: 1.5rem;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.header-logo {
  height: 40px;
  width: 140px;
  object-fit: contain;
  display: block;
}

.main-nav .nav-list { display: flex; gap: 2rem; align-items: center; }
.nav-link {
  font-size: .88rem; font-weight: 600;
  color: var(--blue-900); padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
[data-theme="dark"] .nav-link { color: var(--text); }
.nav-link:hover, .nav-link.active { color: var(--blue-500); border-bottom-color: var(--blue-500); }

.header-actions { display: flex; align-items: center; gap: 1.2rem; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--blue-900); border-radius: 2px; transition: var(--transition); }
[data-theme="dark"] .hamburger span { background: var(--text); }

/* ============================================================
   BANER FIJO DE PLATAFORMA (Bajo el Header)
   ============================================================ */
.platform-banner {
  background: var(--surface);
  border-bottom: 3px solid var(--blue-500);
  padding: 0.4rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s, border-color 0.3s;
}
.platform-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.platform-title-group {
  display: flex;
  flex-direction: column;
}
.platform-tagline {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue-500);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.platform-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.1;
  margin: 0;
}
[data-theme="dark"] .platform-title {
  color: #8EC5FF;
}
.platform-accent {
  font-weight: 400;
  color: var(--text-muted);
}
.platform-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
  font-style: italic;
}

/* ============================================================
   HERO CARRUSEL DE EVENTOS
   ============================================================ */
.hero-carousel-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(0, 71, 186, 0.15) 0%, rgba(0, 27, 113, 0.95) 100%);
  color: #ffffff;
  overflow: hidden;
  padding: 0.8rem 0 1.2rem;
  transition: background 0.6s ease-in-out;
}
/* Sutiles variaciones de degradados COPARMEX */
.hero-carousel-section.theme-desayuno {
  background: radial-gradient(circle at 80% 20%, #0071CE 0%, #001B71 100%);
}
.hero-carousel-section.theme-afterwork {
  background: radial-gradient(circle at 80% 20%, #54565A 0%, #001B71 100%);
}
.hero-carousel-section.theme-comision {
  background: radial-gradient(circle at 80% 20%, #0047BA 0%, #001B71 100%);
}
.hero-carousel-section.theme-jovenes {
  background: radial-gradient(circle at 80% 20%, #3D9EE8 0%, #001B71 100%);
}
.hero-carousel-section.theme-formacion {
  background: radial-gradient(circle at 80% 20%, #898A8D 0%, #0047BA 100%);
}

.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}
.carousel-wrapper {
  position: relative;
  height: 290px;
  overflow: hidden;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 5;
  pointer-events: auto;
}
.carousel-slide.to-left {
  opacity: 0;
  transform: translateX(-100%);
}
.carousel-slide.to-right {
  opacity: 0;
  transform: translateX(100%);
}
.carousel-slide.from-left {
  transition: none !important;
  transform: translateX(-100%);
  opacity: 0;
}
.carousel-slide.from-right {
  transition: none !important;
  transform: translateX(100%);
  opacity: 0;
}
.slide-content {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
}
.slide-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}
.slide-tag-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.1rem;
}
.slide-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  width: fit-content;
  backdrop-filter: blur(4px);
}
.slide-category {
  color: #7EC8F7;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.slide-title {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.slide-desc {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.4;
  margin: 0;
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  margin: 0.1rem 0 0.5rem 0;
  font-size: 0.75rem;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.95;
  white-space: nowrap;
}
.slide-actions {
  display: flex;
  gap: 0.6rem;
}
.slide-actions .btn {
  padding: 0.45rem 1.2rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}
.slide-right {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.flyer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 290px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}
.flyer-img {
  height: 100%;
  max-height: 290px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Controles de Navegación */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover {
  background: var(--blue-500);
  transform: translateY(-50%) scale(1.05);
}
.prev-btn { left: 0.5rem; }
.next-btn { right: 0.5rem; }

@media (min-width: 1280px) {
  .prev-btn { left: -2.5rem; }
  .next-btn { right: -2.5rem; }
}

/* Dots */
.carousel-dots {
  position: relative;
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
}
.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dots .dot.active {
  background: #ffffff;
  transform: scale(1.25);
}


/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .72rem 1.6rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap; font-family: inherit;
}
.btn-white { background: #fff; color: var(--blue-600); border-color: #fff; }
.btn-white:hover { background: var(--gray-200); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }
.btn-primary { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.btn-primary:hover { background: var(--blue-600); border-color: var(--blue-600); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,71,186,.35); }
.btn-outline { background: transparent; color: var(--blue-500); border-color: var(--blue-500); }
.btn-outline:hover { background: var(--blue-500); color: #fff; }
[data-theme="dark"] .btn-outline { color: #7EC8F7; border-color: #7EC8F7; }
[data-theme="dark"] .btn-outline:hover { background: #7EC8F7; color: var(--blue-900); }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-danger { background: #C62828; color: #fff; border-color: #C62828; }
.btn-danger:hover { background: #B71C1C; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* ============================================================
   SECCIÓN FILTROS
   ============================================================ */
.filters-section {
  background: var(--surface);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 1.6rem 0;
  box-shadow: 0 4px 16px rgba(0,71,186,.05);
}
.filters-bar {
  background: var(--surface);
  border-top: 2.5px solid var(--border);
  border-bottom: 2.5px solid var(--border);
  padding: 2.2rem 0;
  margin-top: 2.2rem;
  box-shadow: 0 4px 16px rgba(0,71,186,.05);
}
.filters-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap;
}
.section-title {
  font-size: 1.55rem; font-weight: 800;
  color: var(--blue-900); line-height: 1.2;
}
[data-theme="dark"] .section-title { color: #8EC5FF; }
.section-subtitle { font-size: .88rem; color: var(--text-muted); margin-top: .2rem; }
.section-title.center { text-align: center; }

.filters-row {
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
}
.filter-select, .filter-input {
  padding: .6rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit; font-size: .88rem; font-weight: 500;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
  min-width: 170px;
}
.filter-input { min-width: 220px; cursor: text; }
.filter-select:focus, .filter-input:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(0,113,206,.12);
}
.filter-input::placeholder { color: var(--gray-500); }

/* ============================================================
   TARJETAS DE EVENTOS
   ============================================================ */
.events-section {
  padding: 3.5rem 0 5rem;
  background: var(--bg);
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.event-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 71, 186, 0.05);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex; flex-direction: column;
  height: auto; /* Altura flexible, se alinea por fila gracias a CSS Grid */
  min-height: 480px;
  cursor: pointer;
  position: relative;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 71, 186, 0.12);
  border-color: var(--blue-500);
}

/* Flyer: Altura fija de 280px para que el flyer siga grande y la tarjeta crezca flexiblemente */
.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 280px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-bottom: 1.5px solid var(--border);
  padding: 6px;
  box-sizing: border-box;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}
.card-img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform .4s ease;
}
.event-card:hover .card-img { transform: scale(1.06); }

.card-badge {
  position: absolute; top: .75rem; left: .75rem;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: .22rem .75rem; border-radius: 50px;
  background: var(--blue-500); color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.badge-gold   { background: var(--gold); }
.badge-green  { background: var(--green); }
.badge-purple { background: var(--purple); }
.badge-orange { background: var(--orange); }

.card-cupo {
  position: absolute; bottom: .75rem; right: .75rem;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: .72rem; font-weight: 600;
  padding: .2rem .65rem; border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* Cuerpo de tarjeta: crece para ocupar el espacio restante */
.card-body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex; flex-direction: column;
  gap: .5rem; flex: 1;
}
.card-title {
  font-size: 1rem; font-weight: 700;
  color: var(--blue-900); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
[data-theme="dark"] .card-title { color: #C5DEFF; }
.card-meta-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .2rem .5rem; font-size: .78rem; color: var(--text-muted);
  margin-bottom: .2rem;
}
.card-meta-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-btns {
  display: flex; gap: .4rem; margin-top: auto; flex-wrap: wrap;
  align-items: center;
  padding-top: 0.5rem;
}
.card-btns .btn {
  flex: 1;
  min-width: 70px;
  padding: .45rem .25rem;
  font-size: .73rem;
  text-align: center;
}
.card-btns .btn-share-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.detail-cta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.detail-cta .btn-share-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  vertical-align: middle;
}

/* ============================================================
   SIN RESULTADOS
   ============================================================ */
.no-results {
  text-align: center; padding: 4rem 1rem; display: none;
}
.no-results p { font-size: 1rem; color: var(--text-muted); }
.no-results-icon { font-size: 2.5rem; margin-bottom: .75rem; }

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.categories-section {
  background: var(--bg-alt);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1.2rem; margin-top: 2rem;
}
.cat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1rem;
  text-align: center; cursor: pointer;
  transition: var(--transition);
}
.cat-card:hover {
  border-color: var(--blue-500);
  transform: translateY(-4px);
  box-shadow: var(--card-hover);
}
.cat-icon {
  width: 44px; height: 44px;
  margin: 0 auto .75rem;
  color: var(--blue-500);
}
.cat-icon svg { width: 44px; height: 44px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.cat-card h3 { font-size: .88rem; font-weight: 700; color: var(--blue-900); margin-bottom: .3rem; }
[data-theme="dark"] .cat-card h3 { color: var(--text); }
.cat-card p  { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 2px solid var(--border);
  transition: background 0.3s, color 0.3s;
}
.footer-accent { height: 6px; background: linear-gradient(90deg, var(--blue-500) 0%, #7EC8F7 100%); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col { }
.footer-logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: .75rem;
  display: block;
}
.footer-tagline { font-size: .82rem; opacity: .8; }
.footer-col h4 {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: .9rem; color: var(--blue-900);
}
[data-theme="dark"] .footer-col h4 {
  color: var(--text-muted);
}
.footer-col p { font-size: .85rem; margin-bottom: .4rem; opacity: .9; }
.footer-links { display: flex; flex-direction: column; gap: .35rem; }
.footer-links a { font-size: .85rem; opacity: .8; transition: opacity .2s; color: var(--text); }
[data-theme="dark"] .footer-links a { color: var(--text-muted); }
.footer-links a:hover { opacity: 1; color: var(--blue-500); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; opacity: .75;
  max-width: 1200px; margin: 0 auto;
  flex-wrap: wrap; gap: .5rem;
}
.staff-access {
  display: flex; align-items: center; gap: .35rem;
  opacity: .55; transition: opacity .2s;
  font-size: .8rem;
}
.staff-access:hover { opacity: 1; }

/* ============================================================
   DETALLE EVENTO
   ============================================================ */
.detail-page-main { padding: 2.5rem 0 4rem; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--text-muted); margin-bottom: 2rem; transition: color .2s; }
.back-link:hover { color: var(--blue-500); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.detail-flyer { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--card-hover); }
.detail-flyer img { width: 100%; height: 500px; object-fit: cover; object-position: top; }
.detail-info { display: flex; flex-direction: column; gap: 1.2rem; }
.detail-badge { display: inline-block; background: var(--blue-500); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .9rem; border-radius: 50px; width: fit-content; }
.detail-title { font-size: 1.9rem; font-weight: 800; color: var(--blue-900); line-height: 1.18; }
[data-theme="dark"] .detail-title { color: #C5DEFF; }
.detail-meta-list { display: flex; flex-direction: column; gap: .55rem; font-size: .93rem; }
.detail-meta-list li { display: flex; align-items: flex-start; gap: .5rem; }
.detail-description { font-size: .93rem; color: var(--text-muted); line-height: 1.75; }
.benefits-title { font-size: .95rem; font-weight: 700; color: var(--blue-900); margin-bottom: .5rem; }
[data-theme="dark"] .benefits-title { color: var(--text); }
.benefits-list { display: flex; flex-direction: column; gap: .4rem; }
.benefits-list li { font-size: .9rem; color: var(--text-muted); padding-left: 1.3rem; position: relative; }
.benefits-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-500); font-weight: 700; }
.detail-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.contact-info { font-size: .84rem; color: var(--text-muted); }
.contact-info a { color: var(--blue-500); }

.related-section { padding: 3rem 0; background: var(--bg-alt); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.related-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--card-hover); }
.related-card img { width: 100%; height: 140px; object-fit: cover; }
.related-card-body { padding: .9rem 1rem; }
.related-card-body h4 { font-size: .9rem; font-weight: 700; color: var(--blue-900); margin-bottom: .25rem; }
[data-theme="dark"] .related-card-body h4 { color: #C5DEFF; }
.related-card-body p { font-size: .79rem; color: var(--text-muted); }

/* ============================================================
   FORMULARIOS (signup / login)
   ============================================================ */
.form-page { min-height: 100vh; display: flex; flex-direction: column; }
.form-main { flex: 1; padding: 3rem 0; }

/* Signup */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.2rem;
  max-width: 680px; margin: 0 auto;
  box-shadow: var(--card-shadow);
}
.signup-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.85fr);
  gap: 2.5rem;
  align-items: start;
}
.signup-form-side {
  width: 100%;
}
.signup-summary-side {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.summary-event-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-900);
  margin: 0;
  line-height: 1.35;
}
[data-theme="dark"] .summary-event-title { color: #8EC5FF; }
.summary-flyer-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.summary-flyer-img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
}
.summary-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}
.summary-meta-list li {
  line-height: 1.45;
}
.form-title { font-size: 1.6rem; font-weight: 800; color: var(--blue-900); margin-bottom: .4rem; }
[data-theme="dark"] .form-title { color: #C5DEFF; }
.form-subtitle { font-size: .9rem; color: var(--text-muted); margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .78rem 1.05rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text); font-family: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(0,113,206,.12);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.fiscal-fields { display: none; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 1.2rem; margin-bottom: 1rem; background: var(--surface-2); }
.fiscal-fields.visible { display: block; }
.fiscal-label { font-size: .8rem; font-weight: 700; color: var(--blue-900); margin-bottom: .8rem; }
[data-theme="dark"] .fiscal-label { color: #8EC5FF; }
.form-submit { margin-top: 1.2rem; width: 100%; padding: .9rem; font-size: 1rem; }
.success-banner { display: none; background: #E8F5E9; border: 1px solid var(--green); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.5rem; color: var(--green); font-weight: 600; font-size: .9rem; }

/* ── Login ── */
.login-page {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  background: var(--bg);
  padding: 2rem 1rem;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2.2rem;
  max-width: 440px; width: 100%;
  box-shadow: var(--card-hover);
  text-align: center;
  position: relative;
}
.login-logo-wrap {
  margin-bottom: 1rem;
  padding: 0.25rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-logo {
  height: 70px;
  width: 220px;
  object-fit: contain;
  display: block;
}
.login-divider {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  border-radius: 3px; margin: .5rem auto 1rem;
}
.login-title { font-size: 1.3rem; font-weight: 800; color: var(--blue-900); margin-bottom: .2rem; }
[data-theme="dark"] .login-title { color: #C5DEFF; }
.login-subtitle { font-size: .83rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.login-form { text-align: left; }
.login-extras { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; font-size: .82rem; }
.login-extras label { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.login-extras a { color: var(--blue-500); font-weight: 600; }
.login-back { display: inline-block; font-size: .82rem; color: var(--text-muted); margin-top: 1.5rem; }
.login-back:hover { color: var(--blue-500); }
.login-theme-toggle { position: absolute; top: 1rem; right: 1rem; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 256px; flex-shrink: 0;
  background: var(--sidebar-bg); color: #fff;
  display: flex; flex-direction: column;
  transition: background .3s;
  overflow-y: auto;
}
.sidebar-logo-wrap {
  padding: 1.5rem 1.4rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.sidebar-logo { height: 52px; object-fit: contain; }
.sidebar-tagline { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; opacity: .45; margin-top: .5rem; }
.sidebar-user {
  display: flex; align-items: center; gap: .6rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-500); display: flex;
  align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-info { flex: 1; overflow: hidden; }
.user-name { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: .72rem; opacity: .5; }

.sidebar-nav { flex: 1; padding: .75rem 0; }
.sidebar-section {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
  opacity: .38; padding: 1rem 1.4rem .35rem; font-weight: 600;
}
.sidebar-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .68rem 1.4rem; font-size: .88rem; font-weight: 500;
  cursor: pointer; border: none; background: none;
  color: rgba(255,255,255,.72); width: 100%; text-align: left;
  transition: background .2s, color .2s, border-left .2s;
  text-decoration: none; border-left: 3px solid transparent;
}
.sidebar-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-item.active { background: rgba(255,255,255,.12); color: #fff; border-left-color: #7EC8F7; }
.sidebar-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.admin-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-shrink: 0;
}
.admin-topbar h1 { font-size: 1.1rem; font-weight: 700; color: var(--blue-900); margin: 0; }
[data-theme="dark"] .admin-topbar h1 { color: #8EC5FF; }
.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--blue-900); }
[data-theme="dark"] .topbar-title { color: #8EC5FF; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-staff { font-size: .82rem; color: var(--text-muted); }

.admin-content { flex: 1; overflow-y: auto; padding: 2rem; background: var(--bg); }

/* Alertas admin */
.admin-alerts { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.alert-pill {
  display: flex; align-items: center; gap: .4rem;
  padding: .4rem 1rem; border-radius: 50px;
  font-size: .8rem; font-weight: 600;
  border: 1.5px solid;
}
.alert-warning { background: #FFF8E1; border-color: #F9A825; color: #F57F17; }
.alert-danger  { background: #FFEBEE; border-color: #E53935; color: #B71C1C; }
.alert-info    { background: #E3F2FD; border-color: #1E88E5; color: #0D47A1; }
[data-theme="dark"] .alert-warning { background: rgba(249,168,37,.12); color: #FFD54F; border-color: rgba(249,168,37,.4); }
[data-theme="dark"] .alert-danger  { background: rgba(229,57,53,.12); color: #EF9A9A; border-color: rgba(229,57,53,.4); }
[data-theme="dark"] .alert-info    { background: rgba(30,136,229,.12); color: #90CAF9; border-color: rgba(30,136,229,.4); }

/* Métricas */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 0.5rem; margin-bottom: 0.8rem; }
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.metric-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--blue-500);
}
.metric-card.gold::before  { background: var(--gold); }
.metric-card.green::before { background: var(--green); }
.metric-card.orange::before{ background: var(--orange); }
.metric-card.red::before   { background: var(--red); }
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--card-hover); }
.metric-icon { font-size: 0.95rem; margin-bottom: .15rem; display: block; }
.metric-label { font-size: .6rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .1rem; display: block; }
.metric-value { font-size: 1.1rem; font-weight: 800; color: var(--blue-900); line-height: 1.1; margin-bottom: .1rem; display: block; }
[data-theme="dark"] .metric-value { color: #8EC5FF; }
.metric-trend { font-size: .6rem; color: var(--green); font-weight: 600; display: block; }
.metric-trend.down { color: var(--red); }

/* Paneles */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--card-shadow); }
.panel.full-width { grid-column: 1 / -1; }
.panel-header { padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.panel-header h3 { font-size: .8rem; font-weight: 700; color: var(--blue-900); }
[data-theme="dark"] .panel-header h3 { color: #8EC5FF; }
.panel-body { padding: 0; }

/* Tabla */
.data-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.data-table th { background: var(--surface-2); padding: .65rem 1.1rem; text-align: left; font-weight: 600; color: var(--text-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.data-table td { padding: .72rem 1.1rem; border-top: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tr:hover td { background: var(--surface-2); }

/* Tabla del dashboard más compacta */
.dashboard-grid .data-table td { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
.dashboard-grid .data-table th { padding: 0.4rem 0.85rem; font-size: 0.72rem; }

.badge-status { display: inline-block; padding: .18rem .65rem; border-radius: 50px; font-size: .73rem; font-weight: 700; }
.badge-success { background: #E8F5E9; color: #2E7D32; }
.badge-warning { background: #FFF8E1; color: #F57F17; }
.badge-danger  { background: #FFEBEE; color: #C62828; }
.badge-info    { background: #E3F2FD; color: #1565C0; }
[data-theme="dark"] .badge-success { background: rgba(46,125,50,.2); color: #81C784; }
[data-theme="dark"] .badge-warning { background: rgba(245,127,23,.2); color: #FFD54F; }
[data-theme="dark"] .badge-danger  { background: rgba(198,40,40,.2); color: #EF9A9A; }
[data-theme="dark"] .badge-info    { background: rgba(21,101,192,.2); color: #90CAF9; }

/* Mini gráfica de barras (mock) */
.mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 50px; padding: 1rem 1.4rem .8rem; }
.bar { flex: 1; background: var(--blue-500); border-radius: 3px 3px 0 0; opacity: .8; transition: opacity .2s; }
.bar:hover { opacity: 1; }
.bar.gold   { background: var(--gold); }
.bar.green  { background: var(--green); }

/* Check-in input */
.checkin-input-row { display: flex; gap: .6rem; padding: 1rem 1.4rem; }
.checkin-input { flex: 1; padding: .6rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-family: inherit; font-size: .88rem; }
.checkin-input:focus { outline: none; border-color: var(--blue-500); }
.checkin-result { margin: 0 1.4rem 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); display: none; font-weight: 600; font-size: .88rem; }
.checkin-result.ok { background: #E8F5E9; color: var(--green); border: 1px solid var(--green); }

/* Admin secciones ocultas */
.admin-section { display: none; }
.admin-section.active { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .prev-btn { left: -10px; }
  .next-btn { right: -10px; }
  .carousel-container { padding: 0 3rem; }
}
@media (max-width: 1024px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-flyer img { height: 320px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 220px; }
  .slide-content { grid-template-columns: 50% 50%; gap: 1.5rem; }
  .flyer-container { height: 280px; max-width: 100%; }
  .carousel-wrapper { height: 300px; }
  .events-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--header-bg); border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; z-index: 999;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 1rem; }
  .hamburger { display: flex; }
  .events-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  /* Carrusel apilado en móvil */
  .carousel-wrapper { height: auto; min-height: 480px; }
  .carousel-slide { position: relative; inset: unset; transform: none !important; transition: none !important; }
  .carousel-slide:not(.active) { display: none; }
  .carousel-slide.active { display: flex; }
  .slide-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1.2rem;
  }
  .slide-right { order: -1; }
  .slide-left { order: 1; }
  .flyer-container { height: 240px; max-width: 220px; margin: 0 auto; }
  .slide-title { font-size: 1.4rem; }
  .platform-banner-inner { flex-direction: column; gap: .3rem; text-align: center; }
  .signup-split-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .signup-summary-side {
    position: static;
    order: -1;
  }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .metrics-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .carousel-dots { bottom: -18px; }
}

/* --- Estilos para Formulario de Evento y Modales en Admin --- */
.form-section-group {
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 1.8rem;
  margin-bottom: 1.8rem;
}
.form-section-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
[data-theme="dark"] .form-section-title {
  color: #8EC5FF;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.flyer-preview-box {
  background: var(--bg-alt);
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 180px;
  max-width: 140px;
  margin: 0 auto;
  overflow: hidden;
}
.flyer-preview-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* Modales */
.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.custom-modal.hidden {
  display: none !important;
}
.custom-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.custom-modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  box-shadow: var(--card-hover);
  z-index: 10010;
  animation: modalEnter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalEnter {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}
.custom-modal-header h3 {
  font-size: 1.1rem;
  color: var(--blue-900);
  margin: 0;
}
[data-theme="dark"] .custom-modal-header h3 {
  color: #8EC5FF;
}
.custom-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.custom-modal-close:hover {
  color: var(--text);
}
.preview-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .form-grid-3, .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .preview-layout {
    grid-template-columns: 1fr;
  }
}

/* Toast */
.success-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #E8F5E9;
  border: 1.5px solid #2E7D32;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  color: #2E7D32;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 71, 186, 0.12);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 11000;
  animation: toastEnter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] .success-toast {
  background: rgba(46,125,50,.2);
  color: #81C784;
}
.success-toast.hidden {
  display: none !important;
}
@keyframes toastEnter {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Pestañas para la sección de inscritos */
.inscritos-tabs-container {
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.inscritos-tabs {
  display: flex;
  gap: 0.5rem;
}
.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn:hover {
  color: var(--blue-500);
  background: var(--surface-2);
}
.tab-btn.active {
  color: var(--blue-500);
  background: var(--surface);
  border-bottom: 3px solid var(--blue-500);
}
[data-theme="dark"] .tab-btn.active {
  color: #7EC8F7;
  border-bottom-color: #7EC8F7;
}
[data-theme="dark"] .tab-btn:hover {
  color: #7EC8F7;
}

/* Botones de administrador compactos */
.admin-compact-btn {
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* Estilos de barras institucionales */
.inst-bar-img, .footer-bar-img {
  width: 100%;
  height: auto;
  max-height: 8px;
  object-fit: cover;
  display: block;
}


