.hero-section {
  position: relative;
  background-image: url('/img/fotografias/453973207_892751059546507_821788876313854400_n.jpg');
  background-size: cover;
  background-position: center;
  height: 83vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-title {
  position: relative;
  font-family: 'Sheepman-Bold';
  font-size: 120px;
  font-weight: bold;
  text-shadow: 5px 15px 20px rgba(0, 0, 0, 0.8);
  line-height: 1;
  margin-bottom: 40px;
  top: 70px;
  
  /* Centrado limpio por bloque y márgenes automáticos */
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-title::after {
  content: "";
  position: absolute;
  bottom: 8px; 
  left: 50%;
  transform: translateX(-50%); /* Mantiene la línea decorativa centrada justo debajo del texto */
  width: 430px;
  height: 5px;
  background-image: url('../img/institucion/intitucion_after.png');
  background-size: cover;
  background-repeat: no-repeat;
}


.mision-vision{
  position: relative;
  display: flex;
  gap: 25px;
  top: 90px;
}

.mision-vision-info{
  background: white;
  color: black;
  padding: 40px 60px;
  border-radius: 10px;
  box-shadow: 10px 10px 20px rgba(0,0,0,0.1);
  width: 550px;
}

.mision-vision-info h4{
  padding-top: 10px;
  font-family: 'Sheepman-Regular';
  font-size: 25px;
  text-transform: uppercase;
  margin: 0;
}


/* Objetivos */

.seccion-metas {
  display: flex;
  gap: 60px; /* Más separación entre bloques */
  padding: 80px; /* Colchón en los bordes izquierdo y derecho */
  align-items: center; /* Centra verticalmente el texto respecto a la imagen */
  margin: 120px 0; /* Menos margen vertical */
  padding-top: 60px;
  max-width: 1600px; /* Limita el ancho en pantallas gigantes */
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.contenido-metas {
  flex: 1.2; 
  max-width: 55%; 
  transform: none; /* ELIMINADO el translateX que lo pegaba a la derecha */
  z-index: 6;
}

.bloque-titulo .encabezado-metas {
  font-family: 'Sheepman-Slanted-Regular', sans-serif;
  font-size: 75px; /* Reducido para que sea más sutil y elegante */
  position: relative;
  display: inline-block;
  margin-bottom: 35px;
}

.encabezado-metas::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%; 
  max-width: 377px;
  height: 5px;
  background-image: url('../img/institucion/objetivos_after.png');
  background-size: cover;
  background-repeat: no-repeat;
}

.grid-metas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px; 
}

.meta {
  background: white;
  padding: 25px 35px; 
  border-radius: 10px;
  box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.06); 
  text-align: center;
  min-height: 120px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
}

.meta p {
  font-size: 14px; 
  margin: 0;
  line-height: 1.3;
}

.meta.imagen {
  padding: 0;
  margin: 0;
}

.meta img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.numero {
  font-size: 35px; 
  font-family: 'Sheepman-Slanted-Bold', sans-serif;
  margin-bottom: 5px;
  display: block;
  line-height: 1;
}

/* ==========================================================================
   ¡AQUÍ ESTÁN DE VUELTA TUS COLORES! 
   ========================================================================== */
.color-amarillo {
  color: #FFD901;
  text-shadow: 0 3px 10px rgba(255, 217, 1, 0.5);
}

.color-azul {
  color: #223B7F;
  text-shadow: 0 3px 10px rgba(34, 59, 127, 0.5);
}

.color-rojo {
  color: #CA141F;
  text-shadow: 0 3px 10px rgba(202, 20, 31, 0.5);
}

.color-negro {
  color: #000;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}
/* ========================================================================== */

/* Modificamos el lado de la imagen para equilibrar */
.lado-imagen {
  flex: 0.8;
  position: relative;
  margin-right: 0; 
}

.lado-imagen img {
  height: 60vh; 
  width: 100%;
  object-fit: cover;
  border-radius: 15px; 
  display: block;
}



/* Directorio */

.directorio {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.direc-titulo {
  font-family: 'Sheepman-Slanted-Regular', sans-serif;
  font-size: 60px;
  margin: 0;
}

/* ==========================================================================
   ARREGLO DE ESPACIOS: DIRECTORIO (Distribución amplia y respirable)
   ========================================================================== */

.fondo_blanco {
  display: flex;
  justify-content: space-between; /* Distribuye los 4 perfiles a lo ancho */
  gap: 40px; /* Espacio limpio entre columnas */
  padding: 60px 80px; 
  max-width: 1600px; 
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto; 
  flex-wrap: wrap; 
}

.fondo_negro {
  display: flex;
  justify-content: space-between; /* Distribuye los 3 perfiles a lo ancho */
  gap: 60px; /* Un poco más de aire porque son solo 3 */
  padding: 80px; 
  max-width: 1600px;
  width: 100%;
  box-sizing: border-box;
  background: #25282A;
  border-radius: 30px;
  margin: 20px auto 80px auto; 
  flex-wrap: wrap;
}

/* LA MAGIA SUCEDE AQUÍ: Le damos libertad a cada bloque */
.fondo_blanco > div, 
.fondo_negro > div {
  flex: 1; /* Esto obliga a que cada persona ocupe partes exactamente iguales del ancho total */
  min-width: 280px; /* Asegura que no se aplasten si la pantalla se hace pequeña */
  /* Eliminamos el max-width para que tengan toda la libertad de estirarse */
}

/* Aseguramos que los textos internos no tengan márgenes raros que los empujen */
.fondo_blanco .nombre, 
.fondo_negro .nombre {
  margin-top: 0;
  line-height: 1;
}


.nombre {
  text-transform: uppercase;
  margin: 0;
  text-align: center
}

.fondo_negro .nombre{
  color: white;
}

.cargo {
  font-family: 'Sheepman-Bold';
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
  background-color: transparent;
  text-align: center
}

.cargo.rojo {
  color: #CA141F;

}

.cargo.azul {
  color: #223B7F;
}

.cargo.amarillo {
  color: #FFD500;
}

.redes_per {
  display: flex;
  justify-content: left;  /* Centra los íconos horizontalmente */
  align-items: center;
  gap: 10px; /* Espacio entre los íconos */
  margin-top: 10px;
}

.redes_per a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%); /* Aplica un efecto monocromo */
}

.redes_per a:hover img {
  transform: scale(1.1); /* Hace zoom al pasar el mouse */
  filter: grayscale(0%);
}



/* Comisiones Nacionales*/

.comisiones {
  text-align: center;
  padding: 40px 20px;
  margin: 200px 0;
}

/* Título */
.titulo {
  font-family: 'Sheepman-Slanted-Regular', sans-serif;
  font-size: 60px;
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}

.titulo::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 532px;
  height: 5px;
  background-image: url('../img/institucion/objetivos_after.png');
  background-size: cover;
  background-repeat: no-repeat;
}

/* Tabs */

.centrado{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  background-color: #25282A;
  padding: 5px 5px;
  border-radius: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  width: 880px;
}

.tab {
  font-family: 'Sheepman-Bold';
  background-color: transparent;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 40px;
  font-size: 25px;
  width: 160px;
}

.tab-container {
  position: relative;
  overflow: hidden;
  min-height: 300px; /* ajusta según tus tarjetas */
}

.tab.active {
  background-color: white;
  color: black;
}

.tab-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(100%); /* entra desde abajo */
  transition: all 0.5s ease;
  pointer-events: none;
}

.tab-content.active {
  opacity: 1;
  transform: translateY(0%); /* ya en posición visible */
  pointer-events: all;
  z-index: 1;
}


@keyframes tabClick {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.tab.active {
  animation: tabClick 0.3s ease;
}


.tarjeta-comisiones {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around; /* Esto da aire equitativo a los lados */
    align-items: center;
    width: 90%;                    /* Un poco menos del 100% para despegarse de los márgenes */
    max-width: 1200px;             /* Controla el ancho máximo */
    margin: 30px auto;             /* Centra el contenedor completo */
    padding: 40px 30px;            /* Padding lateral para que los extremos respiren */
    background-color: white;
    border-radius: 15px;
    box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.1);
}

.miembro {
    flex: 0 1 auto;                /* Ya no se estiran, ocupan lo necesario */
    padding: 0 40px;               /* Esto separa los nombres lateralmente */
    text-align: center;
    border-left: 1px solid rgba(0, 0, 0, 0.15);
}

.miembro:first-child {
    border-left: none;
}

.nombre {
    text-transform: uppercase;
    margin-bottom: 10px;
    padding: 0 10px;             /* Evita que el nombre toque la línea */
    font-size: 14px;             /* Ajustable a tu gusto */
}

/* Redes Sociales (nav) */
.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-links a img {
  width: 25px;
  height: 25px;
  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links a:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}


/* Organigrama */

.organigrama{
  margin: 100px 0;
  padding-bottom: 100px;
}

.org_titulo {
  font-family: 'Sheepman-Slanted-Regular';
  text-transform: uppercase;
  font-size: 60px;
  text-align: center;
  margin-bottom: 120px;
}

.bg_img {
  background-image: url('../img/institucion/organigrama.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  height: 50vh;
  width: 1300px; /* ancho fijo */
  margin: 0 auto;
}

/* Transparencia */

.transparencia {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  margin-bottom: 100px;
}

.transparencia h2 {
  font-family: 'Sheepman-Slanted-Regular', sans-serif;
  font-size: 60px;
  margin: 0;
}

table {
  margin-top: 100px;
  width: 60%;
  border-collapse: collapse;
  color: #222;
}

thead th {
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc;
  text-transform: uppercase;
}

tbody td {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Espacio entre el ícono y el texto */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.download-link:hover {
  color: #223B7F; /* Color al pasar el cursor */
}

.download-link img {
  width: 20px;
  height: auto;
  vertical-align: middle;
  margin-right: 5px;
}


/* --- ANIMACIÓN SECCIÓN HERO INSTITUCIÓN --- */

/* 1. Definimos las animaciones (Keyframes) */

/* El título baja */
@keyframes heroTitleFadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Los bloques suben */
@keyframes heroBlocksFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* 2. Aplicamos las animaciones a los elementos */

/* Título 'INSTITUCIÓN' */
.hero-title {
  /* Mantenemos tus estilos y agregamos la animación */
  opacity: 0; /* Empieza invisible */
  animation: heroTitleFadeInDown 1s ease-out forwards;
  animation-delay: 0.3s; /* Pequeño retraso para que cargue la imagen de fondo */
}

/* Cada bloque individual de Misión y Visión */
.mision-vision-info {
  /* Mantenemos tus estilos y agregamos la animación */
  opacity: 0; /* Empiezan invisibles */
  animation: heroBlocksFadeInUp 1s ease-out forwards;
}

/* Retrasos escalonados para que no entren a la vez */
.mision-vision-info:nth-child(1) {
  animation-delay: 0.6s; /* Entra después del título */
}

/* La Visión entra un poco después que la Misión */
.mision-vision-info:nth-child(2) {
  animation-delay: 0.8s;
}



/* --- ANIMACIÓN SECCIÓN OBJETIVOS --- */

/* 1. Estado inicial: invisibles y movidos ligeramente */
.contenido-metas, .lado-imagen, .meta {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contenido-metas { transform: translateX(-50px); }
.lado-imagen { transform: translateX(50px); }
.meta { transform: translateY(30px); }

/* 2. Clase que activaremos con IntersectionObserver (o que ya tienes) */
.animar-ahora.contenido-metas, 
.animar-ahora.lado-imagen {
  opacity: 1;
  transform: translateX(0);
}

.animar-ahora .meta {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Retrasos escalonados para la cuadrícula (el efecto "cascada") */
.meta:nth-child(1) { transition-delay: 0.2s; }
.meta:nth-child(2) { transition-delay: 0.3s; }
.meta:nth-child(3) { transition-delay: 0.4s; }
.meta:nth-child(4) { transition-delay: 0.5s; }
.meta:nth-child(5) { transition-delay: 0.6s; }
.meta:nth-child(6) { transition-delay: 0.7s; }



/* --- ANIMACIÓN FORZADA DIRECTORIO --- */

.rol {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  transition: all 0.6s ease-out !important;
}

.direc-titulo {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  transition: all 0.6s ease-out !important;
}

/* Cuando el script añade la clase, se muestra */
.animar-ahora.rol, 
.animar-ahora.direc-titulo {
  opacity: 1 !important;
  transform: translateY(0) !important;
}



/* --- ANIMACIÓN COMISIONES --- */

/* 1. Título aparece desde arriba */
.comisiones .titulo {
  opacity: 0;
  transform: translateY(-30px);
  transition: all 0.8s ease-out;
}

.comisiones.animar-ahora .titulo {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Animación de las tarjetas al cambiar de pestaña */
.tab-content {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Estado activo: se desliza suavemente a su lugar */
.tab-content.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Estado inactivo: ligeramente desplazado para crear efecto de entrada */
.tab-content:not(.active) {
  opacity: 0 !important;
  transform: translateY(20px) !important;
}

/* 3. Animación de los miembros (Efecto "Fade In" escalonado) */
.miembro {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s ease;
}

.tab-content.active .miembro {
  opacity: 1;
  transform: scale(1);
}

/* Retrasos escalonados para que los miembros entren uno tras otro */
.tab-content.active .miembro:nth-child(1) { transition-delay: 0.1s; }
.tab-content.active .miembro:nth-child(2) { transition-delay: 0.2s; }
.tab-content.active .miembro:nth-child(3) { transition-delay: 0.3s; }
.tab-content.active .miembro:nth-child(4) { transition-delay: 0.4s; }






/* --- ANIMACIÓN ORGANIGRAMA Y TRANSPARENCIA --- */

/* Estado inicial */
.organigrama, .transparencia, .footer {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

/* Estado activo al hacer scroll */
.animar-ahora.organigrama, 
.animar-ahora.transparencia, 
.animar-ahora.footer {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Animación especial para la tabla */
.transparencia table {
  opacity: 0;
  transition: opacity 1.2s ease-in;
}

.animar-ahora.transparencia table {
  opacity: 1;
}


/* --- ADAPTACIÓN RESPONSIVE DEFINITIVA --- */

@media (max-width: 768px) {

  .tarjeta-comisiones .miembro:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Línea horizontal muy suave */
    padding-bottom: 15px;
    margin-bottom: 15px;
}
  .redes {
    display: none !important;
  }
  
  /* 1. Reset para que no haya desbordamiento */
  body, html { overflow-x: hidden; width: 100%; }

  /* 2. Hero Section */
  .hero-section {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    padding-top: 140px !important; 
    padding-bottom: 40px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .hero-title::after {
    content: '' !important;
    display: block !important;
    width: 60px !important;
    height: 4px !important;
    background-color: #FFD901 !important;
    position: relative !important;
    margin: 10px auto 0 auto !important;
    z-index: 15 !important;
    top: 0 !important;
    left: 0 !important;
  }

  .hero-title {
    order: 1 !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    text-align: center !important;
    font-size: 2.5rem !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    color: #ffffff !important; 
  }

  .mision-vision {
    order: 2 !important;
    position: relative !important;
    top: 0 !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 15px !important;
  }

  .mision-vision-info {
    width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box;
  }

  /* 3. Objetivos (Metas) */
  .seccion-metas {
    flex-direction: column !important;
    margin: 30px 0 !important;
    padding: 15px !important;
  }

  .contenido-metas {
    max-width: 100% !important;
    transform: none !important;
  }

  .encabezado-metas {
    font-size: 2.5rem !important;
    text-align: center;
  }

  .grid-metas {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .lado-imagen {
    display: none !important;
  }

  /* 4. Directorio */
  .directorio { padding: 40px 15px !important; }
  .direc-titulo { font-size: 2.5rem !important; text-align: center !important; margin-bottom: 30px !important; }
  .franjas { display: flex !important; flex-direction: column !important; width: 100% !important; }
  .fondo_blanco, .fondo_negro { display: flex !important; flex-direction: column !important; width: 100% !important; padding: 20px 0 !important; align-items: center !important; }
  .rol { width: 100% !important; text-align: center !important; margin-bottom: 25px !important; }
  .nombre { font-size: 1.1rem !important;  }
  .cargo { font-size: 0.9rem !important; margin: 5px 0 !important; }
  .redes_per { justify-content: center !important; gap: 15px !important; }

  /* 5. Comisiones: Ajuste Responsivo Forzado */
  .comisiones { 
    width: 100% !important;
    padding: 20px 5px !important; 
    overflow: hidden !important;
  }

  .tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important; /* Fuerza el ancho al 100% */
    scrollbar-width: none !important;
    gap: 5px !important;
    padding-bottom: 5px !important;
  }
  
  .tabs::-webkit-scrollbar { display: none !important; }

  .tab {
    flex: 0 0 auto !important; /* Mantiene el tamaño del botón */
    min-width: fit-content !important; /* Se ajusta al texto */
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }

  /* Aseguramos que el contenido de la pestaña ocupe el espacio */
  .tab-container {
    width: 100% !important;
    margin-top: 10px !important;
  }

  .tarjeta-comisiones {
      display: flex !important;
      flex-direction: column !important; /* Asegura que se apilen verticalmente */
      align-items: center !important;
      width: 90% !important; 
      
      /* ESTA ES LA CLAVE PARA QUE NO SE CORTEN LOS NOMBRES */
      height: auto !important; 
      min-height: auto !important;
      
      /* Asegura que haya espacio suficiente arriba y abajo */
      padding: 30px 15px !important; 
      margin: 20px auto !important;
      
      /* Permite que el contenedor crezca según el contenido */
      overflow: visible !important; 
  }

  .miembro {
      width: 100% !important;
      text-align: center !important;
      margin-bottom: 25px !important; /* Espacio entre cada nombre */
  }

  /* Opcional: Si los nombres se ven muy pegados */
  .nombre {
      font-size: 14px !important;
      line-height: 1.2 !important;
      margin-bottom: 5px !important;
  }

  /* 1. Animación del scroll */
  /* 1. Definimos la animación, pero NO se la aplicamos a .tabs directamente */
  @keyframes slideHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
  }

  /* La animación solo ocurrirá cuando el elemento tenga la clase .animar-scroll */
  .tabs.animar-scroll {
    animation: slideHint 2s ease-in-out 1;
  }



  /* --- 6. Organigrama --- */
  .organigrama {
    padding: 40px 15px !important;
    width: 100% !important;
  }
  
  .bg_img {
    width: 100% !important;
    height: 300px !important; /* Ajusta la altura según la imagen */
    background-size: contain !important; /* Para que la imagen no se corte */
    background-repeat: no-repeat !important;
    background-position: center !important;
  }

  /* --- 7. Transparencia (Tabla Responsiva) --- */
  /* --- TRANSPARENCIA: MINIMALISTA SIN TOCAR HTML --- */
  .transparencia {
    padding: 40px 20px !important;
  }

  .transparencia h2 {
    font-size: 3.5rem !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    color: #222 !important;
    letter-spacing: 0.5px !important;
  }

  .transparencia table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 15px !important; /* Espacio entre filas */
    margin-top: -15px !important;
  }

  /* Ocultamos cabeceras pero mantenemos estructura */
  .transparencia thead {
    display: none !important;
  }

  .transparencia tr {
    display: block !important;
    background: #fff !important;
    padding: 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; /* Sombra sutil */
    margin-bottom: 10px !important;
  }

  .transparencia td {
    display: flex !important;
    justify-content: space-between !important;
    padding: 8px 0 !important;
    font-size: 0.9rem !important;
    color: #444 !important;
  }

  /* Añadimos etiquetas elegantes sin tocar el HTML */
  .transparencia td:nth-child(1)::before { content: "Año"; color: #888; font-size: 0.8rem; }
  .transparencia td:nth-child(2)::before { content: "Actualización"; color: #888; font-size: 0.8rem; }
  .transparencia td:nth-child(3)::before { content: "Archivo"; color: #888; font-size: 0.8rem; }

  .download-link {
    color: #000 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
  }

  @media (max-width: 768px) {
  .footer-container, 
  .footer-left, 
  .footer-right, 
  .footer-col, 
  .contact-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
  }

  .footer-container {
    padding-left: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-left {
    flex-direction: row !important; /* Mantenemos los logos en horizontal si quieres */
    align-items: center !important;
  }

  .footer-col ul {
    list-style: none !important;
    padding: 0 !important;
  }
  }
  }


  /* --- CORRECCIÓN DE EMERGENCIA: COMISIONES RESPONSIVE --- */

@media (max-width: 768px) {
    /* 1. Aseguramos que el contenedor de pestañas crezca según el contenido */
    .tab-container {
        min-height: auto !important; 
        height: auto !important;
        overflow: visible !important;
    }

    /* 2. Reseteo total de la tarjeta para que sea elástica */
    .tarjeta-comisiones {
        display: flex !important;
        flex-direction: column !important; /* Lista vertical */
        align-items: center !important;
        
        height: auto !important;         /* ¡ESTO ES LO MÁS IMPORTANTE! */
        min-height: auto !important;     /* Quita el límite de 150px */
        
        padding: 20px !important;
        margin: 10px auto !important;
        
        /* Asegura que no se oculte nada */
        overflow: visible !important; 
    }

    /* 3. Aseguramos que cada miembro tenga espacio y se vea */
    .miembro {
        width: 100% !important;
        margin-bottom: 25px !important;
        display: block !important;
        opacity: 1 !important; /* Forzamos visibilidad */
    }

    /* 4. Solución al problema de visibilidad de las pestañas inactivas */
    .tab-content {
        position: relative !important; /* Cambiamos de absolute a relative para que empuje el footer */
        opacity: 0;
        visibility: hidden;
        height: 0;
        transition: opacity 0.3s ease;
    }

    .tab-content.active {
        position: relative !important;
        opacity: 1;
        visibility: visible;
        height: auto; /* Se expande según los nombres que tenga */
    }
}

/* Selecciona todos los miembros EXCEPTO el primero, para poner la línea a la izquierda de cada uno */
.tarjeta-comisiones .miembro:not(:first-child) {
    border-left: 1px solid rgba(0, 0, 0, 0.15); /* Línea gris muy sutil */
    padding-left: 20px; /* Espacio entre la línea y el nombre */
}

/* Ajuste opcional para que los nombres tengan aire */
.tarjeta-comisiones {
    display: flex;
    justify-content: center;
    gap: 20px; /* Ajusta este valor para dar más o menos espacio entre nombres */
}

.miembro {
    display: flex;
    align-items: center;
}
