body,
html {
    min-height: 100%;
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #e5e5e5);
    padding-top: 70px;
    padding-bottom: 70px;
    color: #333; /* texto oscuro para buen contraste */
}

/* Reset y tipografía 
    body, html {
      height: 100%;
      margin: 0;
      font-family: 'Poppins', sans-serif;
      background-image: url('/img/fondoprueba.jpg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      padding-top: 70px;   
      padding-bottom: 70px; 
      color: #333;
    }*/

/* Contenedor principal */
.fondo-overlay {
    background: rgba(255 255 255 / 0.9);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgb(149 157 165 / 0.2),
        0 16px 48px rgb(149 157 165 / 0.1);
    max-width: 1100px;
    width: 100%;
    margin: auto;
}

/* Labels */
label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #444;
}

/* Inputs y selects con bordes suaves */
.form-control,
.form-select {
    border-radius: 12px;
    border: 1.5px solid #ddd;
    transition: border-color 0.3s ease;
    min-width: 160px;
    box-shadow: none;
}
.form-control:focus,
.form-select:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 6px rgb(106 17 203 / 0.5);
    outline: none;
}

/* Títulos secciones */
h5 {
    font-weight: 700;
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Responsive para formularios */
@media (max-width: 768px) {
    .form-control,
    .form-select,
    .btn-consultar {
        width: 100% !important;
        min-width: auto !important;
    }
}

/* Header moderno */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: #dedede;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1030;
}
header h1 {
    color: black;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    margin: 0;
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    user-select: none;
}

/* Footer moderno */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 70px;
    background: #222;
    color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    user-select: none;
    box-shadow: 0 -2px 10px rgb(0 0 0 / 0.3);
}

/* Footer redes sociales */
.footer-icons {
    margin-left: 1rem;
    display: flex;
    gap: 1rem;
}
.footer-icons a {
    color: #eee;
    transition: color 0.3s ease;
    font-size: 1.2rem;
}
.footer-icons a:hover {
    color: #6a11cb;
}

.icono-habilitado {
    font-size: 1.5rem; /* Tamaño más grande */
    display: block; /* Para que tome toda la celda */
    margin: 0 auto; /* Centrar horizontalmente */
    line-height: 1.5; /* Ajustar línea para centrar verticalmente */
}

table td,
table th {
    vertical-align: middle;
    text-align: center;
}

.fila-habilitada {
    font-weight: bold;
    color: inherit; /* para mantener color normal */
}

.fila-deshabilitada td {
    color: #bbb !important;
}

.icono-habilitado.text-muted {
    color: #bbb !important; /* gris clarito para icono deshabilitado */
}

.tabla-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll iOS */
    margin-top: 1rem;
}

#tituloBusqueda {
    font-weight: bold;
    font-size: 2rem;
    text-align: center;
    word-break: break-all;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    #tituloBusqueda {
        font-size: 1.2rem;
        padding: 0.5rem 0.2rem;
        word-break: break-all;
    }

    #tituloHeader {
        font-size: 1.2rem;
        padding: 0.5rem 0.2rem;
        word-break: break-all;
    }

    .fondo-overlay {
        padding: 1rem 0.5rem;
        border-radius: 10px;
    }
    .tabla-responsive,
    #tablaResultados {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table {
        font-size: 0.95rem;
    }

    .input-group {
        flex-wrap: nowrap !important;
    }
}
