/* =====================
  MOVFAP PROJECT STYLES (LIMPIO) - STYLE.CSS
====================== */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', 'Helvetica', sans-serif;
  background-color: var(--movfap-light);
  color: var(--movfap-text);
  line-height: 1.6;
}

/* =====================
   VARIABLES MOVFAP
====================== */
:root {
  --movfap-primary: #032486;
  --movfap-secondary: #1a43aa;
  --movfap-accent: #00a6ff;
  --movfap-dark: #021343;

  --movfap-light: #ffffff;
  --movfap-gray: #f5f7fb;
  --movfap-gray-dark: #1b1f3b;

  --movfap-shadow: rgba(3, 36, 134, 0.18);
  --movfap-hover: #1a43aa;
  --movfap-text: #13152b;
  --movfap-alert: #ff4848;
  --movfap-success: #01973a;

  /* Alias de compatibilidad movu */
  --movu-primary: var(--movfap-primary);
  --movu-secondary: var(--movfap-secondary);
  --movu-accent: var(--movfap-accent);
  --movu-dark: var(--movfap-dark);
  --movu-light: var(--movfap-light);
  --movu-gray: var(--movfap-gray);
  --movu-gray-dark: var(--movfap-gray-dark);
  --movu-shadow: var(--movfap-shadow);
  --movu-hover: var(--movfap-hover);
  --movu-text: var(--movfap-text);
}

/* =====================
  HEADER MOVFAP STYLES
====================== */

/* Reset para header */
header {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header principal */
header {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  background-color: var(--movfap-primary);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--movfap-shadow);
  transition: all 0.3s ease;
}

/* Logo */
.logo {
  grid-column: span 2;
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Menú principal */
.menu-principal {
  grid-column: span 8;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.menu-principal a {
  color: var(--movfap-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.menu-principal a:hover {
  background-color: var(--movfap-light);
  color: var(--movfap-primary);
  transform: translateY(-2px);
}

.menu-principal a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--movfap-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.menu-principal a:hover::after {
  width: 100%;
}

/* Redes sociales */
.redes-sociales {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.icono-red-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: var(--movfap-light);
  transition: all 0.3s ease;
  text-decoration: none;
}

.icono-red-social:hover {
  background-color: var(--movfap-accent);
  transform: translateY(-3px);
}

.icono-red-social img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(25%) sepia(8%) saturate(0%) hue-rotate(180deg);
  transition: all 0.3s ease;
}

.icono-red-social:hover img {
  filter: brightness(0) saturate(100%) invert(100%);
}

/* Iconos de Font Awesome dentro de los botones de redes */
.icono-red-social i {
  font-size: 18px;
  color: var(--movfap-primary);
  transition: all 0.3s ease;
}

.icono-red-social:hover i {
  color: var(--movfap-light);
}

/* Botón hamburguesa */
.btn-hamburguesa {
  grid-column: span 2;
  justify-self: end;
  display: none;
  flex-direction: column;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.btn-hamburguesa span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--movfap-light);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.btn-hamburguesa:hover span {
  background-color: var(--movfap-accent);
}

.btn-hamburguesa.hide {
  opacity: 0;
}

/* Sidebar navegación móvil */
.sidebar-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80vw;
  max-width: 350px;
  height: 100vh;
  background-color: var(--movfap-light);
  box-shadow: -5px 0 15px var(--movfap-shadow);
  z-index: 1002;
  padding: 80px 30px 30px;
  transition: right 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-nav.open {
  right: 0;
}

.close-sidebar {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--movfap-primary);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-sidebar:hover {
  background-color: var(--movfap-primary);
  color: var(--movfap-light);
}

.sidebar-nav nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.sidebar-nav a {
  color: var(--movfap-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 15px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.sidebar-nav a:hover {
  background-color: var(--movfap-primary);
  color: var(--movfap-light);
  border-color: var(--movfap-accent);
}

.sidebar-redes-sociales {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--movfap-gray);
}

/* Responsive Design del header en media.css */

/* =====================
  FOOTER MOVFAP STYLES
====================== */

/* Reset para footer */
footer {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Footer principal */
footer {
  background: linear-gradient(135deg, var(--movfap-primary) 0%, var(--movfap-dark) 100%);
  color: var(--movfap-light);
  padding: 40px 20px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('img/patron-footer.png') repeat;
  opacity: 0.05;
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.footer-content p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
  font-weight: 400;
}

/* Navegación del footer */
.footer-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--movfap-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 25px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.footer-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.footer-nav a:hover::before {
  left: 100%;
}

.footer-nav a:hover {
  color: var(--movfap-accent);
  border-color: var(--movfap-accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 73, 90, 0.3);
}

/* Información adicional */
.footer-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  gap: 10px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--movfap-light);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.footer-social a:hover {
  background-color: var(--movfap-accent);
  border-color: var(--movfap-light);
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 8px 20px rgba(212, 73, 90, 0.4);
}

.footer-social img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(100%);
}

/* Línea decorativa */
.footer-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--movfap-accent), transparent);
  margin: 20px 0 10px;
}

/* Responsive Design del footer en media.css */

/* =====================
  HERO
====================== */
.hero-movfap {
  background: transparent;
  color: var(--movfap-light);
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 60vh; /* 60% de la altura de pantalla en PC */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.hero-movfap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/fap-anima.gif');
  background-position: center;
  background-repeat: repeat-x; /* Repetir el gif horizontalmente para rellenar lados */
  background-size: auto 100%; /* El gif se escala por alto; al ser cuadrado se repite varias veces a lo ancho */
  opacity: 1;
  z-index: 1;
}

/* Se elimina el filtro/overlay sobre el gif, dejando la animación limpia */

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sección de texto e imagen debajo del hero animado */
.hero-text-section {
  background-color: var(--movfap-gray);
  color: var(--movfap-text);
  padding: 30px 20px 20px;
}

.hero-text-section .hero-content {
  text-align: center;
}

.hero-text-title,
.hero-text-paragraph,
.hero-text-image {
  margin-bottom: 20px;
}

.hero-text-title h1 {
  color: var(--movfap-primary);
}

.hero-text-paragraph p {
  color: var(--movfap-text);
}

.hero-text-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px var(--movfap-shadow);
}

/* Imagen principal específica de la pantalla de COGOBIERNO */
.cogobierno-image {
  margin-bottom: 10px;
  text-align: center;
}

.cogobierno-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px var(--movfap-shadow);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* =====================
  CONTENIDO PRINCIPAL
====================== */
.contenido-movfap {
  padding: 40px 20px;
  background-color: var(--movfap-gray);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.contenido-movfap h2 {
  font-size: 2.5rem;
  color: var(--movfap-primary);
  margin-bottom: 30px;
  text-align: center;
}

.contenido-movfap p {
  font-size: 1.2rem;
  color: var(--movfap-text);
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
}

#contenido-dinamico {
  margin-top: 40px;
}

/* =====================
  TARJETAS GENERALES

/* Reels dentro del sidebar */
.sidebar-reels {
  margin-top: 10px;
  padding: 12px 10px 5px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--movfap-primary) 0%, var(--movfap-dark) 100%);
  box-shadow: 0 8px 22px var(--movfap-shadow);
}

.sidebar-reels-title {
  font-size: 0.95rem;
  color: var(--movfap-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.sidebar-reel-card {
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 8px 10px;
  margin-bottom: 8px;
  backdrop-filter: blur(8px);
}

.sidebar-reel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sidebar-reel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--movfap-light);
}

.sidebar-reel-badge i {
  font-size: 0.9rem;
}

.sidebar-reel-badge-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.sidebar-reel-badge-facebook {
  background: #1877f2;
}

.sidebar-reel-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background-color: #000;
}

.sidebar-reel-embed iframe {
  width: 100%;
  height: 100%;
}
====================== */
.movfap-card {
  background: var(--movfap-light);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px var(--movfap-shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(3, 36, 134, 0.1);
}

.movfap-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--movfap-shadow);
  border-color: var(--movfap-accent);
}

.movfap-card h3 {
  color: var(--movfap-primary);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.movfap-card p {
  color: var(--movfap-text);
  line-height: 1.6;
  text-align: left;
}

.movfap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* =====================
   ANIMACIONES
====================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* =====================
   EQUIPO DE TRABAJO
====================== */
.section-divider {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--movfap-primary), var(--movfap-accent));
  margin: 60px auto 40px;
  border-radius: 2px;
}

.equipo-title {
  text-align: center;
  color: var(--movfap-primary);
  font-size: 2rem;
  margin-bottom: 30px;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.equipo-card {
  background: var(--movfap-light);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px var(--movfap-shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(3, 36, 134, 0.1);
  position: relative;
  overflow: hidden;
}

.equipo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--movfap-primary), var(--movfap-accent));
}

.equipo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--movfap-shadow);
}

.equipo-imagen {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--movfap-primary), var(--movfap-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--movfap-light);
  border: 4px solid var(--movfap-light);
  box-shadow: 0 5px 15px rgba(3, 36, 134, 0.3);
}

.equipo-imagen img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.equipo-nombre {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--movfap-primary);
  margin-bottom: 5px;
}

.equipo-cargo {
  font-size: 1rem;
  color: var(--movfap-accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.equipo-carrera {
  font-size: 0.9rem;
  color: var(--movfap-gray-dark);
  margin-bottom: 15px;
}

.equipo-descripcion {
  font-size: 0.9rem;
  color: var(--movfap-text);
  line-height: 1.5;
}

/* =====================
   BOTTOM NAV
====================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--movfap-light);
  border-top: 1px solid rgba(3, 36, 134, 0.1);
  box-shadow: 0 -5px 20px var(--movfap-shadow);
  display: none;
  justify-content: space-around;
  align-items: center;
  padding: 8px 10px 12px;
  z-index: 1001;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--movfap-gray-dark);
  padding: 5px 8px;
  border-radius: 12px;
  transition: all 0.3s ease;
  min-width: 60px;
}

.bottom-nav-item.active {
  color: var(--movfap-primary);
  background-color: rgba(3, 36, 134, 0.05);
}

.bottom-nav-item:hover {
  color: var(--movfap-primary);
  background-color: rgba(3, 36, 134, 0.08);
  transform: translateY(-2px);
}

.bottom-nav-icon {
  font-size: 1.5rem;
  margin-bottom: 2px;
  transition: all 0.3s ease;
}

.bottom-nav-item.active .bottom-nav-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(3, 36, 134, 0.3));
}

.bottom-nav-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  line-height: 1;
}

/* =====================
   EMPRENDE / BEPOLI / TRIVIAS
   (estilos resumidos para que no se rompa nada)
====================== */
.negocio-card,
.bepoli-carrera-card,
.bepoli-libro-card,
.trivia-contenido,
.resultado-final {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(3, 36, 134, 0.1);
  transition: all 0.3s ease;
}

.negocio-card:hover,
.bepoli-carrera-card:hover,
.bepoli-libro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(3, 36, 134, 0.2);
}

.bepoli-titulo-seccion,
.carrera-nombre,
.libro-titulo,
.trivia-header h3,
.pregunta {
  color: var(--movfap-primary);
}

.libro-descripcion,
.carrera-descripcion,
.trivia-contenido p,
.puntuacion-final p {
  color: var(--movfap-text);
  font-size: 0.95rem;
}

.btn-regresar,
.btn-trivia,
.btn-siguiente,
.btn-finalizar {
  background: linear-gradient(45deg, var(--movfap-primary), var(--movfap-secondary));
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-regresar:hover,
.btn-trivia:hover,
.btn-siguiente:hover,
.btn-finalizar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(3, 36, 134, 0.3);
}

.opcion-btn {
  background: #ffffff;
  border: 2px solid var(--movfap-gray);
  padding: 12px 16px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.opcion-btn:hover:not(:disabled) {
  border-color: var(--movfap-primary);
  background: rgba(3, 36, 134, 0.05);
}

.opcion-btn.correcto {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.opcion-btn.incorrecto {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.puntuacion {
  font-weight: 600;
  color: var(--movfap-primary);
}

    /* =====================
   SECTION HEADER
====================== */
    .section-header {
      text-align: center;
      margin-bottom: 40px;
    }

    /* Sección del Plan de Trabajo */
    .plan-trabajo-section {
      margin-bottom: 60px;
    }

    .plan-trabajo-titulo {
      color: var(--movu-primary);
      font-size: 2rem;
      text-align: center;
      margin-bottom: 30px;
      margin-top: 40px;
    }

    .seccion-header {
      text-align: center;
      margin-bottom: 30px;
    }

    .seccion-header h3 {
      color: var(--movu-primary);
      font-size: 2rem;
      margin-bottom: 10px;
    }

    .seccion-header p {
      color: var(--movu-text);
      font-size: 1.1rem;
      max-width: 600px;
      margin: 0 auto;
    }

    #section-title {
      color: var(--movu-primary);
      font-size: 2.5rem;
      margin-bottom: 15px;
      transition: all 0.3s ease;
    }

    #section-description {
      font-size: 1.2rem;
      color: var(--movu-text);
      line-height: 1.6;
      max-width: 600px;
      margin: 0 auto;
    }

    /* =====================
   EQUIPO DE TRABAJO
====================== */
    .section-divider {
      width: 100px;
      height: 3px;
      background: linear-gradient(90deg, var(--movu-primary), var(--movu-accent));
      margin: 60px auto 40px;
      border-radius: 2px;
    }

    .equipo-title {
      text-align: center;
      color: var(--movu-primary);
      font-size: 2rem;
      margin-bottom: 30px;
    }

    .equipo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      margin-top: 20px;
    }

    .equipo-card {
      background: var(--movu-light);
      border-radius: 20px;
      padding: 30px;
      text-align: center;
      box-shadow: 0 10px 30px var(--movu-shadow);
      transition: all 0.3s ease;
      border: 1px solid rgba(140, 31, 37, 0.1);
      position: relative;
      overflow: hidden;
    }

    .equipo-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--movu-primary), var(--movu-accent));
    }

    .equipo-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 40px var(--movu-shadow);
    }

    .equipo-imagen {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      margin: 0 auto 20px;
      background: linear-gradient(135deg, var(--movu-primary), var(--movu-accent));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.5rem;
      color: var(--movu-light);
      border: 4px solid var(--movu-light);
      box-shadow: 0 5px 15px rgba(140, 31, 37, 0.3);
    }

    .equipo-imagen img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
    }

    .equipo-nombre {
      font-size: 1.3rem;
      font-weight: 600;
      color: var(--movu-primary);
      margin-bottom: 5px;
    }

    .equipo-cargo {
      font-size: 1rem;
      color: var(--movu-accent);
      font-weight: 500;
      margin-bottom: 10px;
    }

    .equipo-carrera {
      font-size: 0.9rem;
      color: var(--movu-gray-dark);
      margin-bottom: 15px;
    }

    .equipo-descripcion {
      font-size: 0.9rem;
      color: var(--movu-text);
      line-height: 1.5;
    }

    /* Redes sociales en las tarjetas de listas aliadas */
    .lista-redes-sociales {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 15px;
    }

    .red-social-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: linear-gradient(45deg, var(--movu-primary), var(--movu-secondary));
      border-radius: 50%;
      text-decoration: none;
      transition: all 0.3s ease;
      box-shadow: 0 2px 8px rgba(140, 31, 37, 0.2);
    }

    .red-social-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(140, 31, 37, 0.3);
    }

    .red-social-icono {
      width: 20px;
      height: 20px;
      filter: brightness(0) invert(1);
      /* Convierte las imágenes a blanco */
    }

    /* =====================
   TARJETAS ESPECÍFICAS
====================== */
    .card-icon {
      font-size: 3rem;
      text-align: center;
      margin-bottom: 20px;
      filter: drop-shadow(0 2px 4px rgba(140, 31, 37, 0.2));
    }

    /* Tarjetas de alianzas */
    .alianza-card .beneficios h4,
    .programa-card .recursos h4,
    .servicio-card .detalles h4 {
      color: var(--movu-primary);
      font-size: 1rem;
      margin: 20px 0 10px;
    }

    .alianza-card ul,
    .programa-card ul,
    .servicio-card ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .alianza-card li,
    .programa-card li,
    .servicio-card li {
      padding: 5px 0;
      color: var(--movu-text);
      position: relative;
      padding-left: 20px;
    }

    .alianza-card li::before,
    .programa-card li::before,
    .servicio-card li::before {
      content: '✓';
      position: absolute;
      left: 0;
      color: var(--movu-accent);
      font-weight: bold;
    }

    .estado-badge {
      display: inline-block;
      padding: 5px 15px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 500;
      margin-top: 15px;
    }

    .estado-badge.activo {
      background-color: #d4edda;
      color: #155724;
    }

    .estado-badge.en-proceso {
      background-color: #fff3cd;
      color: #856404;
    }

    .estado-badge.planificado {
      background-color: #d1ecf1;
      color: #0c5460;
    }

    /* Duración y horario */
    .duracion,
    .horario {
      margin-top: 20px;
      padding: 10px;
      background-color: var(--movu-gray);
      border-radius: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .duracion-label,
    .horario-label {
      font-weight: 500;
      color: var(--movu-primary);
    }

    .duracion-valor,
    .horario-valor {
      color: var(--movu-text);
      font-weight: 600;
    }

    /* =====================
   ESTADÍSTICAS
====================== */
    .estadisticas-container {
      margin-bottom: 40px;
    }

    .estadisticas-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      margin-bottom: 30px;
    }

    .estadistica-item {
      background: linear-gradient(135deg, var(--movu-primary), var(--movu-accent));
      color: var(--movu-light);
      padding: 25px;
      border-radius: 15px;
      text-align: center;
      box-shadow: 0 5px 15px rgba(140, 31, 37, 0.3);
      transition: all 0.3s ease;
    }

    .estadistica-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(140, 31, 37, 0.4);
    }

    .estadistica-valor {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 10px;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }

    .estadistica-label {
      font-size: 0.9rem;
      opacity: 0.9;
      font-weight: 500;
    }

    /* =====================
   ERROR STATES
====================== */
    .error-message {
      text-align: center;
      padding: 40px;
      background-color: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
      border-radius: 15px;
    }

    .error-message h3 {
      color: #721c24;
      margin-bottom: 15px;
    }

    .btn-retry {
      background-color: var(--movu-primary);
      color: var(--movu-light);
      border: none;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 500;
      margin-top: 15px;
      transition: all 0.3s ease;
    }

    .btn-retry:hover {
      background-color: var(--movu-hover);
      transform: translateY(-2px);
    }

    /* =====================
   LOADING STATES
====================== */
    .loading {
      text-align: center;
      padding: 40px;
    }

    .loading-spinner {
      width: 40px;
      height: 40px;
      border: 4px solid var(--movu-gray);
      border-top: 4px solid var(--movu-primary);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 0 auto 20px;
    }

    @keyframes spin {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(360deg);
      }
    }

    /* =====================
   BOTTOM NAVIGATION
====================== */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--movu-light);
      border-top: 1px solid rgba(140, 31, 37, 0.1);
      box-shadow: 0 -5px 20px var(--movu-shadow);
      display: none;
      /* Se muestra solo en móvil */
      justify-content: space-around;
      align-items: center;
      padding: 8px 10px 12px;
      z-index: 1001;
      /* Mayor z-index para asegurar visibilidad */
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      /* Para Safari */
    }

    .bottom-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none;
      color: var(--movu-gray-dark);
      padding: 5px 8px;
      border-radius: 12px;
      transition: all 0.3s ease;
      min-width: 60px;
    }

    .bottom-nav-item.active {
      color: var(--movu-primary);
      background-color: rgba(140, 31, 37, 0.05);
    }

    .bottom-nav-item:hover {
      color: var(--movu-primary);
      background-color: rgba(140, 31, 37, 0.08);
      transform: translateY(-2px);
    }

    .bottom-nav-icon {
      font-size: 1.5rem;
      margin-bottom: 2px;
      transition: all 0.3s ease;
    }

    .bottom-nav-item.active .bottom-nav-icon {
      transform: scale(1.1);
      filter: drop-shadow(0 2px 4px rgba(140, 31, 37, 0.3));
    }

    .bottom-nav-label {
      font-size: 0.7rem;
      font-weight: 500;
      text-align: center;
      line-height: 1;
    }

    /* =====================
   TARJETAS DE NEGOCIO
====================== */
    .negocio-card {
      background: white;
      border-radius: 20px;
      padding: 25px;
      box-shadow: 0 8px 25px rgba(140, 31, 37, 0.1);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      opacity: 0;
      animation: fadeInUp 0.6s ease forwards;
    }

    .negocio-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 15px 35px rgba(140, 31, 37, 0.2);
    }

    .negocio-logo {
      width: 80px;
      height: 80px;
      background: linear-gradient(45deg, var(--movu-primary), var(--movu-secondary));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(140, 31, 37, 0.2);
    }

    .negocio-logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
    }

    .negocio-logo:not(:has(img)) {
      color: white;
      font-weight: bold;
      font-size: 1.5rem;
    }

    .negocio-nombre {
      color: var(--movu-primary);
      font-size: 1.5rem;
      font-weight: bold;
      text-align: center;
      margin-bottom: 15px;
    }

    .negocio-descripcion {
      color: var(--movu-text);
      font-size: 0.95rem;
      line-height: 1.6;
      text-align: center;
      margin-bottom: 20px;
    }

    /* Carrusel de imágenes */
    .carrusel-container {
      margin: 20px 0;
      position: relative;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .carrusel-imagenes {
      position: relative;
      height: 200px;
      overflow: hidden;
    }

    .carrusel-imagen {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 0.5s ease-in-out;
    }

    .carrusel-imagen.active {
      opacity: 1;
    }

    .carrusel-indicadores {
      display: flex;
      justify-content: center;
      gap: 8px;
      padding: 15px;
      background: rgba(0, 0, 0, 0.05);
    }

    .indicador {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: rgba(140, 31, 37, 0.3);
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .indicador.active {
      background: var(--movu-primary);
      transform: scale(1.2);
    }

    .negocio-red-social {
      display: flex;
      justify-content: center;
      margin-top: 20px;
    }

    /* =====================
   BEPOLI - SISTEMA DE TRIVIAS
====================== */
    .bepoli-titulo-seccion {
      color: var(--movu-primary);
      font-size: 1.6rem;
      text-align: center;
      margin: 20px 0 25px;
    }

    /* Grid de carreras */
    .bepoli-carreras-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin-bottom: 40px;
    }

    .bepoli-carrera-card {
      background: white;
      border-radius: 20px;
      padding: 30px 20px;
      text-align: center;
      box-shadow: 0 8px 25px rgba(140, 31, 37, 0.1);
      transition: all 0.3s ease;
      cursor: pointer;
      opacity: 0;
      animation: fadeInUp 0.6s ease forwards;
    }

    .bepoli-carrera-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 15px 35px rgba(140, 31, 37, 0.2);
    }

    .carrera-icono {
      font-size: 3rem;
      margin-bottom: 20px;
    }

    .carrera-nombre {
      color: var(--movu-primary);
      font-size: 1.5rem;
      font-weight: bold;
      margin-bottom: 15px;
    }

    .carrera-descripcion {
      color: var(--movu-text);
      font-size: 0.95rem;
      line-height: 1.6;
    }

    /* Contenedores de navegación */
    .bepoli-libros-container,
    .bepoli-trivias-container {
      animation: fadeIn 0.5s ease;
    }

    .bepoli-header {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-bottom: 20px;
    }

    .btn-regresar {
      background: var(--movu-secondary);
      color: white;
      border: none;
      padding: 12px 20px;
      border-radius: 25px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .btn-regresar:hover {
      background: var(--movu-primary);
      transform: translateX(-5px);
    }

    /* Grid de libros */
    .bepoli-libros-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
    }

    .bepoli-libro-card {
      background: white;
      border-radius: 20px;
      padding: 25px;
      text-align: center;
      box-shadow: 0 8px 25px rgba(140, 31, 37, 0.1);
      transition: all 0.3s ease;
      opacity: 0;
      animation: fadeInUp 0.6s ease forwards;
    }

    .bepoli-libro-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 30px rgba(140, 31, 37, 0.15);
    }

    .libro-imagen {
      width: 100px;
      height: 120px;
      background: linear-gradient(45deg, var(--movu-primary), var(--movu-secondary));
      border-radius: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(140, 31, 37, 0.2);
    }

    .libro-imagen img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 15px;
    }

    .libro-imagen:not(:has(img)) {
      color: white;
      font-weight: bold;
      font-size: 1.2rem;
      text-align: center;
    }

    .libro-titulo {
      color: var(--movu-primary);
      font-size: 1.4rem;
      font-weight: bold;
      margin-bottom: 15px;
    }

    .libro-descripcion {
      color: var(--movu-text);
      font-size: 0.95rem;
      line-height: 1.6;
      margin-bottom: 25px;
    }

    .btn-trivia {
      background: linear-gradient(45deg, var(--movu-primary), var(--movu-secondary));
      color: white;
      border: none;
      padding: 15px 30px;
      border-radius: 25px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      width: 100%;
    }

    .btn-trivia:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(140, 31, 37, 0.3);
    }

    /* Trivia */
    .trivia-header {
      text-align: center;
      margin-bottom: 30px;
    }

    .trivia-header h3 {
      color: var(--movu-primary);
      font-size: 1.8rem;
      margin: 20px 0 10px;
    }

    .trivia-contenido {
      max-width: 600px;
      margin: 0 auto;
      background: white;
      padding: 15px;
      border-radius: 20px;
      box-shadow: 0 8px 25px rgba(140, 31, 37, 0.1);
    }

    .pregunta {
      color: var(--movu-primary);
      font-size: 1.4rem;
      text-align: center;
      margin-bottom: 30px;
    }

    .opciones {
      display: grid;
      gap: 15px;
      margin-bottom: 30px;
    }

    .opcion-btn {
      background: white;
      border: 2px solid var(--movu-gray);
      padding: 15px 20px;
      border-radius: 15px;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.3s ease;
      text-align: left;
    }

    .opcion-btn:hover:not(:disabled) {
      border-color: var(--movu-primary);
      background: rgba(140, 31, 37, 0.05);
    }

    .opcion-btn.correcto {
      background: #d4edda;
      border-color: #28a745;
      color: #155724;
    }

    .opcion-btn.incorrecto {
      background: #f8d7da;
      border-color: #dc3545;
      color: #721c24;
    }

    .explicacion {
      margin-top: 20px;
      padding: 0;
      border-radius: 15px;
      text-align: center;
    }

    .explicacion-correcta {
      background: #d4edda;
      color: #155724;
      margin: 0;
    }

    .explicacion-incorrecta {
      background: #f8d7da;
      color: #721c24;
      margin: 0;
    }

    .btn-siguiente,
    .btn-finalizar {
      background: var(--movu-primary);
      color: white;
      border: none;
      padding: 12px 25px;
      border-radius: 25px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 20px;
      transition: all 0.3s ease;
    }

    .btn-siguiente:hover,
    .btn-finalizar:hover {
      background: var(--movu-secondary);
    }

    .trivia-footer {
      text-align: center;
      margin-top: 20px;
    }

    .puntuacion {
      font-weight: 600;
      color: var(--movu-primary);
    }

    .resultado-final {
      text-align: center;
      padding: 40px;
      background: white;
      border-radius: 20px;
      box-shadow: 0 8px 25px rgba(140, 31, 37, 0.1);
    }

    .resultado-final h3 {
      color: var(--movu-primary);
      font-size: 2rem;
      margin-bottom: 30px;
    }

    .puntuacion-final {
      font-size: 1.2rem;
      margin-bottom: 30px;
    }

    .puntuacion-final p {
      margin: 10px 0;
      font-weight: 600;
      color: var(--movu-text);
    }

    /* =====================
   RESPONSIVE DESIGN
====================== */
    /* Los media queries se encuentran en media.css */