/* =========================================
   PÁGINA: CONTACTO (ESTILO PREMIUM CLARO)
   ========================================= */

   /* =========================================
   HEADER PREMIUM PROCRECE (VERSIÓN CLARA)
========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all .35s ease;
}

.site-header.scrolled {
    padding: 0.2rem 5%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

/* LOGO */
.logo {
    font-family: var(--font-headers);
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--accent-premium);
    text-decoration: none;
    transition: .3s;
}

.logo:hover {
    opacity: .85;
}

/* NAV DESKTOP */
#nav-menu ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

#nav-menu ul li {
    display: flex;
    align-items: center;
}

/* LINKS */
#nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: .95rem;
    letter-spacing: .5px;
    font-weight: 600;
    transition: all .25s ease;
    position: relative;
}

#nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-premium);
    transition: .3s;
}

#nav-menu a:hover::after {
    width: 100%;
}

#nav-menu a:hover {
    color: var(--accent-premium);
}

#nav-menu i {
    font-size: 1.2rem;
    margin-right: 6px;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--accent-premium);
    cursor: pointer;
    transition: transform .3s ease;
}
/* SOLO aparece en pantallas menores a 768px */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Aquí lo hacemos visible */
    }
    
    #nav-menu {
        position: absolute;
        top: 100%;
        left: -100%; /* Oculto a la izquierda */
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        transition: left .4s ease;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    #nav-menu.nav-active {
        left: 0; /* Aparece cuando se activa con JS */
    }
}
/* Contenedor principal a 2 columnas */
.contacto-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem; /* Más aire para respirar */
    align-items: center; /* Centrado vertical para más elegancia */
}

/* Información lateral */
.contacto-info h2 {
    font-family: var(--font-headers);
    color: var(--text-main);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contacto-info p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

.info-item i {
    font-size: 1.3rem;
    color: var(--accent-premium);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(37, 99, 235, 0.1); /* Fondo circular suave para el ícono */
    border-radius: 50%;
}

/* Formulario Premium (Clean Design) */
.contacto-form {
    background: var(--bg-surface);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 3.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
}

/* Línea de acento superior */
.contacto-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent-premium);
    border-radius: 16px 16px 0 0;
}

.form-title {
    font-family: var(--font-headers);
    color: var(--text-main);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

/* Input box con íconos integrados */
.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.input-box i {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none; /* Evita que el ícono bloquee el clic */
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 15px 14px 45px; /* Espacio extra a la izquierda para el ícono */
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--montserrat);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    appearance: none; /* Quita la flecha nativa del select para un look más limpio */
}

/* Re-agregando una flecha personalizada al select */
.form-group select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    cursor: pointer;
}

.form-group select option {
    background-color: var(--bg-surface);
    color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-premium);
    background: var(--bg-surface);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); /* Resplandor azul */
}

/* Placeholder color */
::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* Enlaces interactivos laterales */
.contacto-link {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-link:hover {
    color: var(--accent-premium);
}

/* --- Responsividad --- */
@media (max-width: 768px) {
    .contacto-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin: 3rem auto;
    }

    .contacto-info h2 {
        font-size: 2.2rem;
    }

    .contacto-form {
        padding: 2.5rem 1.5rem;
    }
}

/* =========================================
   SIMULADOR DE AMORTIZACIÓN (PREMIUM)
   ========================================= */
.simulador-premium {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 3rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.simulador-premium h3 {
    font-family: var(--font-headers);
    color: var(--text-main);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.simulador-premium p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 1rem;
}

.control-group label span {
    color: var(--accent-premium);
    font-weight: 700;
}

/* Estilo del Slider (Rango) */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--accent-premium);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 5px;
}

input[type=range]:focus {
    outline: none;
}

/* Tabla de Resultados */
.simulador-resultados {
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.tabla-amortizacion {
    width: 100%;
    border-collapse: collapse;
}

.tabla-amortizacion td {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    font-weight: 500;
}

.tabla-amortizacion tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

.tabla-amortizacion td:last-child {
    text-align: right;
}

.resaltado-azul {
    color: var(--accent-premium) !important;
    font-weight: 700 !important;
}

.resaltado-oro {
    color: #10b981 !important; /* Verde financiero para el pago */
    font-size: 1.4rem;
    font-weight: 700 !important;
}

.nota-legal {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    text-align: center;
}