/* --- START OF FILE styles.css --- */

/* Fuente Corporativa */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #01426a;
    /* Azul Oscuro */
    /* Azul TEx */
    --primary-dark: #002a45;
    /* Azul Más Oscuro */
    --secondary-color: #ff7f32;
    /* Naranja Corporativo */
    /* Naranja TEx */
    --accent-color: #e66a20;
    /* Naranja Oscuro */
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #6c757d;
}

/* MODIFICADO: Configuración para 'Sticky Footer' (Footer pegado al fondo) */
html {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: #E8ECEF;
    /* Fondo gris suave */
    min-height: 100vh;
    /* Ocupa al menos el 100% de la altura de la ventana */
    display: flex;
    flex-direction: column;
}

/* --- UTILIDADES --- */
.text-primary-tex {
    color: var(--primary-color) !important;
}

.text-orange-tex {
    color: var(--secondary-color) !important;
}

.bg-primary-tex {
    background-color: var(--primary-color) !important;
}

.text-secondary-tex {
    color: var(--secondary-color) !important;
}

.bg-orange-light {
    background-color: #fff3e0 !important;
}

.ls-1 {
    letter-spacing: 1px;
}

.ocultar {
    display: none !important;
}

/* Animación Suave */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transition-div {
    transition: all 0.3s ease-in-out;
}

/* --- CHECKBOX PERSONALIZADO (Mejora visibilidad) --- */
.custom-checkbox {
    width: 1.3em;
    height: 1.3em;
    border: 2px solid #adb5bd;
}

.custom-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox:focus {
    box-shadow: 0 0 0 0.25rem rgba(1, 66, 106, 0.25);
    border-color: var(--primary-color);
}

/* --- NAVBAR --- */
.tex-navbar {
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.img-logo-nav {
    width: 140px;
    height: auto;
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .img-logo-nav {
        width: 110px;
    }
}

/* MODIFICADO: Margen superior optimizado para desktop y mobile */
.main-content-container {
    margin-top: 150px;
    margin-bottom: 60px;
    flex: 1;
}

/* NUEVO: Ajustes para dispositivos móviles */
@media (max-width: 767px) {
    .main-content-container {
        margin-top: 100px;
    }

    .bg-orange-light {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* MODIFICADO: Fix para Labels de Form-floating que se desbordan en móviles */
    .form-floating>label {
        font-size: 0.85rem;
        /* Fuente más pequeña para que quepa el texto */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* Corta con puntos suspensivos si sigue siendo muy largo */
        width: 95%;
    }

    /* Ajuste específico para cuando el label flota (está arriba y pequeño) */
    .form-floating>.form-control:focus~label,
    .form-floating>.form-control:not(:placeholder-shown)~label,
    .form-floating>.form-select~label {
        font-size: 0.75rem;
        width: 100%;
        text-overflow: clip;
        /* Permitimos que se vea lo más posible al estar arriba */
    }
}

/* --- STEPPER (BARRA DE PROGRESO) --- */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.stepper-wrapper::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #dce4e8;
    z-index: 0;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 1;
}

.step-counter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dce4e8;
    color: #adb5bd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-bottom: 6px;
    transition: all 0.3s;
}

.step-name {
    font-size: 0.75rem;
    color: #adb5bd;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}

/* Estado Activo */
.stepper-item.active .step-counter {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 127, 50, 0.4);
}

.stepper-item.active .step-name {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Estado Completado */
.stepper-item.completed .step-counter {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.stepper-item.completed .step-name {
    color: var(--primary-color);
}

/* --- FORMULARIOS & TARJETAS --- */
.form-floating>.form-control,
.form-floating>.form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 127, 50, 0.15);
}

/* --- BOTONES --- */
.btn-tex-orange {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-tex-orange:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 106, 32, 0.3);
}

.btn-tex-orange:disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    transform: none;
    box-shadow: none;
}

/* --- MAPA --- */
#div-map-paso2 {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

/* --- FOOTER --- */
.footer-section {
    background-color: #001829;
    /* Al usar flex en body, esto siempre quedará al final si el contenido es corto */
    margin-top: auto;
}

.img-logo-footer {
    width: 160px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: width 0.3s ease;
}

@media (max-width: 991px) {
    .img-logo-footer {
        width: 130px;
    }
}

.hover-white:hover {
    color: white !important;
    text-decoration: underline !important;
}