/* Reset básico y fuentes */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Contenedor global */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Barra Superior */
.top-bar {
    background-color: #611232; /* Verde oscuro del gobierno */
    color: white;
    padding: 10px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
}

.tramites-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Ruta de Navegación */
.breadcrumb {
    padding: 15px 0;
    color: #666;
    font-size: 14px;
}

.home-icon {
    text-decoration: none;
    color: #666;
    margin-right: 5px;
    font-size: 16px;
}

.current-page {
    font-weight: bold;
    color: #333;
}

/* Contenido Principal */
.main-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 25px;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 4px;
    background-color: #B38E5D; /* Color dorado */
}

/* Alerta */
.alert-message {
    background-color: #D9EDF7; /* Azul claro */
    color: #31708F; /* Azul oscuro */
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #BCE8F1;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

input[type="text"]:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
}

.help-icon {
    display: inline-block;
    background-color: #555;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-left: 5px;
    cursor: help;
}

/* Sección del Captcha */
.captcha-section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
}

.captcha-image {
    margin-right: 20px;
}

.captcha-input-group {
    flex-grow: 1;
}

.captcha-instructions {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

/* Pie del Formulario */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.required-fields {
    color: #d9534f; /* Rojo */
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* Botones */
.btn {
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background-color: #e6e6e6;
}

.btn-primary {
    background-color: #A03148; /* Rojo oscuro del gobierno */
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #8a2a3e;
}
/* --- Estilos Nuevos --- */

/* Input visualmente en mayúsculas */
.uppercase-input {
    text-transform: uppercase;
}

/* Estado Desactivado del Botón */
.btn-primary:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    border: 1px solid #999;
}

/* Estilos del MODAL */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Fondo oscuro semitransparente */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover {
    color: black;
}

.vehicle-result {
    margin: 20px 0;
}

.vehicle-img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.result-text {
    font-size: 18px;
    font-weight: bold;
    color: #0B231E;
}

.email-section {
    margin: 20px 0;
    text-align: left;
}

.email-section input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-footer {
    margin-top: 20px;
}
/* --- NUEVOS ESTILOS PARA EL LOADER --- */
.loader-container {
    padding: 40px 20px;
    text-align: center;
}

/* El círculo giratorio */
.spinner {
    border: 8px solid #f3f3f3; /* Gris claro */
    border-top: 8px solid #B38E5D; /* Color dorado/café institucional */
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: spin 1.5s linear infinite; /* Animación de giro */
    margin: 0 auto 25px auto;
}

.loader-text {
    font-size: 18px;
    font-weight: bold;
    color: #0B231E;
    margin-bottom: 10px;
}

/* Definición de la animación */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* --- NUEVOS ESTILOS PARA EL TEXTO DE AVISO "VISTOSO" --- */
.disclaimer-box {
    margin-top: 25px;
    margin-bottom: 15px;
}

.disclaimer-text {
    /* Tamaño mucho más grande (aprox 50% más que el texto normal de 16px) */
    font-size: 19px; 
    /* Negrita y color oscuro para impacto */
    font-weight: 800;
    color: #0B231E;
    
    /* Estilo de "Caja" para que resalte */
    background-color: #fff3cd; /* Un fondo amarillo pálido de alerta */
    padding: 20px;
    border-radius: 6px;
    border-left: 8px solid #A03148; /* Un borde lateral rojo grueso llamativo */
    
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-transform: uppercase; /* Opcional: Hacerlo todo mayúsculas para más fuerza */
}
/* --- Estilo para el Banner de Error --- */
.error-banner {
    background-color: #d32f2f; /* Rojo intenso */
    color: white;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px; /* Separación con el cuadro azul de abajo */
    font-weight: bold;
    border: 1px solid #b71c1c;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-transform: uppercase;
}
/* --- ESTILOS ESPECÍFICOS DEL FOOTER GOB.MX --- */

.main-footer {
    background-color: #611232; /* Verde oficial */
    color: #fff;
    font-family: "Montserrat", "Open Sans", sans-serif; /* Tipografía aproximada */
    font-size: 14px;
    font-weight: 300;
    margin-top: 50px;
    width: 100%;
}

/* Contenedor interno */
.main-footer .list-info {
    padding: 40px 0;
    background-image: url('https://framework-gb.cdn.gob.mx/assets/images/footer-bg.png'); /* Textura oficial opcional */
}

/* Sistema de columnas Flexbox (Para no depender de Bootstrap) */
.main-footer .footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.main-footer .col-footer {
    flex: 1;
    min-width: 200px; /* Para que no se aplasten en pantallas chicas */
    margin-bottom: 20px;
}

/* Logo */
.main-footer .logo_footer {
    max-width: 90%;
    height: auto;
    filter: brightness(0) invert(1); /* Vuelve blanco el logo si es svg negro */
}

/* Títulos h5 */
.main-footer h5 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #fff;
}

.main-footer h5 a {
    font-weight: 400;
}

/* Listas y Enlaces */
.main-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer ul li {
    margin-bottom: 8px;
}

.main-footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.main-footer a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.main-footer p {
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Redes Sociales (Simuladas con texto/botón simple) */
.main-footer .social-list {
    display: flex;
    gap: 10px;
}

.main-footer .social-icon {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #fff;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.main-footer .social-icon:hover {
    background-color: #fff;
    color: #13322b;
    text-decoration: none;
}

/* Pleca Inferior (La barra de colores decorativa) */
.main-footer .footer-pleca {
    height: 30px;
    background-image: url('https://framework-gb.cdn.gob.mx/landing/img/pleca.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* --- RESPONSIVE (Móvil) --- */
@media (max-width: 768px) {
    .main-footer .footer-row {
        flex-direction: column;
    }
    
    .main-footer .col-footer {
        width: 100%;
        text-align: center;
    }

    .main-footer .social-list {
        justify-content: center;
    }
}