/* css/styles.css */

:root {
    /* IMPORTANTE: Esto obliga al celular a usar colores reales (anula el modo oscuro) */
    color-scheme: light; 
    
    /* Paleta de Marca */
    --color-azul-primary: #164a9a;
    --color-azul-dark: #283f62;
    --color-gris: #797870;
    --color-negro: #101010;
    --color-blanco: #ffffff;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    color: var(--color-negro);
    background-color: var(--color-blanco); /* Fondo base blanco asegurado */
    overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
    background-color: rgba(40, 63, 98, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    /* Asegúrate de que este nombre coincida EXACTAMENTE con tu archivo en la carpeta img */
    background-image: url('../img/Fondo_Ws5.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 74, 154, 0.8) 0%, rgba(40, 63, 98, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* === TIPOGRAFÍA === */
h1 { font-weight: 800; letter-spacing: -1px; }
h2, h3, h4, .text-primary { color: var(--color-azul-primary) !important; }

/* ICONOS GENERALES */
.bi { color: var(--color-azul-primary); }
/* Excepciones: Iconos dentro de botones o fondos oscuros deben heredar el color (blanco) */
.btn .bi, .text-white .bi { color: inherit; }

/* === BOTONES === */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-warning {
    background-color: #f1c40f !important;
    color: #212529 !important;
    border: none;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.6);
}

/* === FORMULARIO (Glassmorphism) === */
.form-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

/* === TARJETAS === */
.card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    background-color: #ffffff; /* Fondo blanco forzado para evitar modo oscuro */
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hover-card:hover {
    transform: translateY(-10px);
}

/* Ajuste de scroll para que el menú no tape el título */
section { scroll-margin-top: 80px; }

/* Forzar secciones con fondo blanco explícito */
.bg-white {
    background-color: #ffffff !important;
    color: var(--color-negro) !important;
}

/* === FOOTER (Ajuste de color) === */
footer.bg-dark {
    /* Reemplazamos el negro/gris por tu Azul Marino Corporativo */
    background-color: var(--color-azul-dark) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === BOTÓN FLOTANTE WHATSAPP === */
.btn-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white !important; /* Texto blanco forzado */
    width: 72px;
    height: 72px;
    border-radius: 50%;
    text-align: center;
    font-size: 40px;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
/* Icono interno blanco forzado */
.btn-whatsapp-float i {
    color: white !important;
}

.btn-whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white !important;
}

/* === ICONOS REDES SOCIALES FINOS === */
.social-icon-thin {
    font-size: 1.5rem; 
    font-weight: normal !important; 
    opacity: 0.9;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
}

.social-icon-thin i {
    color: white !important; /* Icono blanco por defecto */
}

.social-icon-thin:hover {
    background-color: white;
    border-color: white;
    transform: translateY(-3px);
}
.social-icon-thin:hover i {
    color: var(--color-azul-primary) !important; /* Azul al pasar el mouse */
}

/* === RESPONSIVE (Móviles) === */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
        min-height: auto;
        padding-bottom: 50px;
    }
    .display-4 { font-size: 2.5rem; }
    .btn-whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 32px;
        bottom: 20px;
        right: 20px;
    }
}

/* === NUEVO: TIPOGRAFÍA PARA "ASESORES" === */
.brand-text {
    font-family: 'Playfair Display', 'Times New Roman', serif; /* Tipo de letra más elegante */
    letter-spacing: 2px !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-top: 4px; /* Pequeño ajuste para alinear con el logo */
}