body {
    font-family: Arial, sans-serif;
    background-color: #f1f1f1;
    margin: 0;
    padding: 0;
}

/* Logo Styles */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 450px; /* Tamaño máximo en pantallas grandes */
    width: 100%; /* Hace que el logo se ajuste proporcionalmente */
    height: auto;
}

.container {
    text-align: center;
    margin-top: 50px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container {
    text-align: center;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #445982;
    text-align: center;
}

h2 {
    color: #555;
    margin-top: 30px;
    text-align: center;
}

/* Search Form */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.search-form label {
    font-size: 1.1em;
    color: #555;
}

.search-form input[type="text"] {
    padding: 10px 15px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    
}

.search-btn {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 25%;
    
}

.search-btn:hover {
    background-color: #0056b3;
}

/* Result Table */
.result-container {
    margin-top: 20px;
    overflow-x: auto; /* Agrega scroll horizontal */
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; 
}

.result-table th, .result-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.result-table th {
    background-color: #25427C;
    color: white;
}

.result-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.result-table tr:hover {
    background-color: #f1f1f1;
}

/* Error Message */
.error-msg {
    color: #CE4235;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
}

.header {
     background-color: #25427C; 
     width: 100%;
}

.footer {
    background-color: #25427C; 
    color: #fff; /* Color de texto */
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 300px) {
     
 .logo {
        max-width: 150px; /* Reducir el tamaño del logo en pantallas pequeñas */
         
      }
    
    .container {
        padding: 20px;
    }

    .result-table th, .result-table td {
        padding: 8px;
    }

    .search-btn {
        font-size: 0.9em;
        padding: 8px 12px;
        
    }

    .result-table tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #ddd;
    }

    .result-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .result-table td:before {
        content: attr(data-label); /* Mostrar el nombre de la columna antes del dato */
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
    }
    
    .header {
        padding: 15px; 
    }
    
     .footer {
        font-size: 12px; /* Tamaño de texto pantallas pequeñ */
        padding: 15px; /* Aumentar el relleno en dispositivos pequeñ */
    }
}