/* Variables con valores refinados */
:root {
    --primary: #0D2340;           /* Azul más oscuro y sofisticado */
    --primary-light: #1C3F6E;     /* Variación más clara para gradientes */
    --secondary: #1E75D9;         /* Azul secundario más vibrante */
    --secondary-light: #3A8BE8;   /* Variación más clara del azul secundario */
    --accent: #FF8C1A;            /* Naranja más vibrante para CTA */
    --accent-hover: #F07200;      /* Naranja más oscuro para hover */
    --light: #F9FBFD;             /* Blanco ligeramente azulado */
    --dark: #121820;              /* Negro azulado sofisticado */
    --gray: #5A6A7F;              /* Gris con tinte azul para textos secundarios */
    --transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); /* Transición más elegante */
    --shadow-sm: 0 10px 20px rgba(13, 35, 64, 0.06);
    --shadow-md: 0 20px 40px rgba(13, 35, 64, 0.1);
    --shadow-lg: 0 30px 60px rgba(13, 35, 64, 0.15);
}

/* ===== HEADER STYLES - BLANCO SIEMPRE ===== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: white !important; /* Fuerza fondo blanco */
    box-shadow: 0 5px 25px rgba(13, 35, 64, 0.1);
    border-bottom: 1px solid rgba(13, 35, 64, 0.05);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Mantener header blanco incluso con scroll */
header.scrolled {
    background-color: white !important;
    /* Mismos valores que el header normal */
    padding: 0.3rem 0;
    box-shadow: 0 5px 25px rgba(13, 35, 64, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Estilos del logo */
.logo {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    text-decoration: none;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-shield {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Sin filtros - logo con colores originales */
    filter: none;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1;
    order: 2;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary) !important; /* Azul oscuro para el logo */
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
    margin-bottom: 2px;
}

.logo-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    bottom: -3px;
    left: 0;
    transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0.7;
    border-radius: 50px;
}

.logo:hover .logo-text::after {
    width: 100%;
}

.tagline {
    font-size: 0.85rem;
    color: var(--secondary) !important; /* Azul secundario para el tagline */
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 500;
    transition: var(--transition);
}

/* Navegación */
nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark) !important; /* Oscuro para enlaces */
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent) !important; /* Naranja para hover/activo */
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

/* Botón de contacto */
.contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light)) !important;
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    box-shadow: 0 8px 20px rgba(30, 117, 217, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.contact-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 140, 26, 0.25);
}

/* Elementos para móvil */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary) !important;
    transition: var(--transition);
}

.mobile-toggle:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.close-nav {
    display: none;
    color: var(--primary);
}

/* ===== FOOTER STYLES - SE MANTIENE IGUAL ===== */
footer {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    z-index: 2;
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.footer-col h4 {
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    bottom: 0;
    left: 0;
    border-radius: 10px;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    bottom: 0;
    left: 60px;
    border-radius: 10px;
    opacity: 0.5;
}

.brand-col p {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 350px;
    font-size: 1.05rem;
}

.footer-links {
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
    list-style: none;
    position: relative;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding-left: 1.2rem;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(8px);
}

.footer-links a:hover::before {
    opacity: 1;
    background-color: var(--accent);
}

.contact-info {
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1.3rem;
    color: rgba(255, 255, 255, 0.75);
    list-style: none;
    transition: var(--transition);
}

.contact-info li:hover {
    color: white;
    transform: translateX(5px);
}

.contact-info li i {
    margin-right: 15px;
    color: var(--accent);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: var(--transition);
}

.contact-info li:hover i {
    transform: scale(1.2);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
    transform: scale(0);
    border-radius: 50%;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

.social-links a:hover::after {
    opacity: 1;
    transform: scale(1);
}

.social-links a i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover i {
    transform: scale(1.2);
}

.copyright {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
    nav ul {
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* Ajustes para móvil - Header */
    .mobile-toggle {
        display: block;
    }
    
    .contact-btn {
        display: none;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        padding: 6rem 2rem 2rem;
        z-index: 1001;
        overflow-y: auto;
        border-left: 1px solid rgba(13, 35, 64, 0.05);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    nav a, .transparent nav a, .scrolled nav a {
        color: var(--dark) !important;
        font-size: 1.2rem;
        text-shadow: none;
    }
    
    .close-nav {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
    }
    
    /* Ajustes para móvil - Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .brand-col p {
        max-width: 100%;
    }
    
    footer {
        padding: 5rem 0 2rem;
    }
}

@media (max-width: 576px) {
    .header-content {
        padding: 1.2rem 0;
    }
    
    .logo-shield {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .tagline {
        font-size: 0.7rem;
    }
    
    footer::after {
        display: none;
    }
    
    .footer-col h4 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}
/* Añade esto a tu archivo CSS */
@media (max-width: 768px) {
    .mobile-siniestro {
        color: var(--accent) !important;
        font-weight: 700;
    }
    
    .mobile-siniestro::before {
        content: '⚠️ ';  /* Emoji de advertencia opcional */
    }
}
/* Estilos para mostrar/ocultar elementos según dispositivo */
.mobile-only {
    display: none; /* Oculto por defecto en desktop */
}

.desktop-only {
    display: flex; /* Visible por defecto en desktop */
}

/* Estilo del botón siniestro en el header */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e71eb;
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:before {
    content: "⚠️";
    margin-right: 8px;
}

.contact-btn:hover {
    background-color: #1658c2;
    transform: translateY(-2px);
}

/* Estilo para el enlace de siniestro en el menú móvil */
.siniestro-link {
    color: #1e71eb !important;
    font-weight: bold !important;
}

/* Media queries para dispositivos móviles */
@media only screen and (max-width: 768px) {
    /* Mostrar elementos móviles y ocultar elementos desktop */
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    /* Estilos para destacar el ítem de siniestro en el menú móvil */
    .siniestro-link {
        display: flex;
        align-items: center;
        padding: 10px 15px;
        margin-top: 10px;
        background-color: rgba(30, 113, 235, 0.1);
        border-radius: 5px;
    }
    
    /* Asegurarse que el elemento siniestro esté al final del menú */
    nav ul li.mobile-only {
        order: 999;
        border-top: 1px solid #eee;
        margin-top: 10px;
        padding-top: 10px;
    }
}
