html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}


/* Elimina el padding del body que causa los márgenes blancos */

/* Estructura principal */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}


body {
  padding: 0 !important; /* Elimina cualquier padding */
}

main {
  flex: 1;
}


header {
    background: #02aaf2;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}
header h1 {
    font-family: 'Arial Black', sans-serif;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    font-size: 2.2rem;
}




#filters {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

select, button {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

button {
    background: #0066cc;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #0055aa;
}

#results-container {
    margin-top: 10px;
    overflow-x: auto; /* Permite scroll horizontal en móviles */
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

#results-title {
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

table {
    width: 100%; /* Ocupa todo el ancho disponible */
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-width: 600px; /* Ancho mínimo para mantener legibilidad */
}

th, td {
    padding: 10px 12px; /* Más compacto */
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.4;
}

th {
    background-color: #0066cc;
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0; /* Cabecera fija al hacer scroll */
}

tr:hover {
    background-color: #f8f9fa;
}






.menu-pestanas {
    background: linear-gradient(135deg, #0caf03 0%, #04cc36d7 100%);
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 12px rgb(186, 188, 12);
    text-align: left;
}

.menu-pestanas ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: flex-start; /* Cambiado de center a flex-start */
    background: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.menu-pestanas li {
    margin: 0;
}

.menu-pestanas a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ecf0f1;
    text-decoration: none;
    padding: 16px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px 8px 0 0;
    margin: 0 5px;
}

.menu-pestanas a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.menu-pestanas .activa {
    background: #e74c3c;
    color: white;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.menu-pestanas .activa::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: #e74c3c;
    border-radius: 0 0 8px 8px;
}



/* Reset completo del footer */
.elegant-footer {
  position: relative;
  margin: 0 -10px;
  width: calc(100% + 20px);
}



/* Contenedor principal ajustado */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 0 20px 40px;
}

/* Sección inferior mejorada */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  width: 100%;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  margin-top: 30px;
}

/* Mantén el resto de tus estilos actuales */
.footer-logo {
  max-width: 180px;
  margin-bottom: 20px;
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: #3498db;
}

/* ... (otros estilos que ya tienes) ... */

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px; /* Aumentado para mejor espaciado */
}

.footer-column ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 15px; /* Tamaño aumentado para mejor legibilidad */
}

.footer-column ul li a:hover {
  color: #3498db;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons a {
  color: #ecf0f1;
  background: rgba(255, 255, 255, 0.1);
  width: 40px; /* Tamaño aumentado */
  height: 40px; /* Tamaño aumentado */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 18px; /* Iconos más grandes */
}

.social-icons a:hover {
  background: #3498db;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
     th, td {
        padding: 8px 10px; /* Más compacto en móviles */
        font-size: 0.85rem;
    }
    
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .footer-logo {
    margin: 0 auto 20px;
  }
}
