/* Estilos Generales */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #fff;
}

.header-top {
    background-color: #333;
    color: #fff;
    padding: 5px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-gob-mx {
    height: 25px;
}

.nav-top a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9em;
}

.header-main {
    background-color: #611232; /* Color vino */
    color: #fff;
    padding: 10px 0;
    border-bottom: 5px solid #6A142F;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main-title {
    display: flex;
    align-items: center;
}

.logo-bachillerato-header {
    height: 40px;
    margin-right: 15px;
}

.header-main h1 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
}

.nav-main a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

/* Contenido Principal */
main {
    padding: 40px 0;
    min-height: 60vh;
}

.search-section, .results-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
}

h2 {
    color: #333;
    font-weight: 700;
    margin-top: 0;
}

.banner {
    margin-bottom: 30px;
}

/* Formulario de búsqueda */
.search-form {
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
}

.search-form label {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.form-hint {
    margin: 0 0 10px 0;
    color: #666;
}

.form-hint-small {
    font-size: 0.8em;
    color: #888;
    margin: 5px 0 15px 0;
}

.search-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 5px;
}

.search-form button {
    background-color: #fff;
    color: #333;
    padding: 12px 25px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    display: block;
    margin: 20px auto 0 auto;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.error-message {
    color: #D32F2F;
    background-color: #FFCDD2;
    border: 1px solid #D32F2F;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
}


/* Página de Resultados */
.results-section h3, .results-section h4 {
    margin: 5px 0;
    color: #555;
}
.results-section h4 {
    margin-bottom: 30px;
    font-weight: normal;
}

.results-table {
    border: 1px solid #ddd;
    text-align: left;
    margin-top: 20px;
}
.results-header {
    background-color: #E0D6B3; /* Beige */
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.results-row {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.results-row:last-child {
    border-bottom: none;
}
.results-label {
    flex: 0 0 35%;
    font-weight: bold;
    color: #555;
}
.results-data {
    flex: 1;
}

/* Alertas */
.alert-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: left;
    font-size: 0.9em;
}
.alert-box.warning {
    background-color: #FFF3E0;
    border: 1px solid #FFB74D;
    color: #E65100;
}
.alert-box.info {
    background-color: #E3F2FD;
    border: 1px solid #90CAF9;
    color: #0D47A1;
}

.back-button-container {
    margin-top: 30px;
    text-align: center;
}

.back-button {
    background-color: #611232;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #611232;
}

/* Footer */
.site-footer {
    background-color: #611232;
    color: #fff;
    padding: 40px 0;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-section h3 {
    margin-top: 0;
    border-bottom: 1px solid #fff;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Responsividad */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
    
    .header-main .container, .header-top .container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-main, .nav-top {
        margin-top: 10px;
    }
    
    .nav-main a, .nav-top a {
        margin: 0 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .results-row {
        flex-direction: column;
    }
    .results-label {
        margin-bottom: 5px;
    }
}
