.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 2;
    max-height: 90%; /* Máxima altura del modal */
    overflow-y: auto; /* Agregar desplazamiento vertical si el contenido excede la altura */
    width: 50%; /* Ancho inicial del modal */
}

    /* Estilos para hacer el modal responsivo */
@media (max-width: 768px) {
    .modal {
        width: 90%; /* Ancho del modal en dispositivos pequeños */
    }
}

@media (max-width: 576px) {
    .modal {
        width: 95%; /* Ancho del modal en dispositivos extra pequeños */
    }
}
.close-container {
    position: fixed;
    top: 1px; /* Ajusta la distancia desde la parte superior */
    right: 1px; /* Ajusta la distancia desde la derecha */
    width: 20px; /* Ancho del contenedor */
    height: 20px; /* Altura del contenedor */
    background-color: lightgray; /* Color del fondo */
    border: 1px solid black; /* Borde rojo */
    border-radius: 10%; /* Borde redondeado */
    display: flex; /* Utiliza el modelo de caja flexible */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
}

/* Estilos para el icono de cerrar */
.close-icon {
    font-size: 25px; /* Tamaño del icono */
    cursor: pointer;
    color: red; /* Color rojo */
    font-weight: bold; /* Hace el icono más grueso */
    line-height: 1; /* Reinicia la altura de la línea */
} 
/* Navegación de tabs mejorada */
.nav-tabs {
  background: var(--light-bg);
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-tabs > li {
  flex: 1;
  min-width: 150px;
}

.nav-tabs > li > a {
  border: none !important;
  border-radius: 0 !important;
  padding: 20px 15px !important;
  text-align: center;
  font-weight: 600;
  color: var(--text-light) !important;
  background: transparent !important;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.nav-tabs > li > a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-tabs > li > a:hover {
  background: rgba(37, 99, 235, 0.05) !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.nav-tabs > li > a:hover::before {
  width: 80%;
}

.nav-tabs > li.active > a {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.nav-tabs > li.active > a::before {
  width: 100%;
}

.nav-tabs img {
  width: 32px !important;
  height: 32px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.nav-tabs > li.active img,
.nav-tabs > li > a:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}
@media (max-width: 768px) {
  body {
    padding: 10px 0;
  }
  
  .header-section,
  .tab-content {
    padding: 20px !important;
  }
  
  .nav-tabs {
    flex-direction: column;
  }
  
  .nav-tabs > li {
    flex: none;
    min-width: auto;
  }
  
  .nav-tabs > li > a {
    flex-direction: row !important;
    text-align: left !important;
    padding: 15px !important;
  }
  
  .modal {
    width: 95% !important;
    margin: 20px !important;
    top: 20px !important;
    transform: translateX(-50%) !important;
  }
  
  iframe {
    height: 300px !important;
  }
}
iframe {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-md) !important;
  width: 100% !important;
}