/* ==========================================================================
   ESTILOS GLOBALES Y NAVEGACIÓN - TU LUZ INTERIOR
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #fcfbf9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* MENÚ DE NAVEGACIÓN PRINCIPAL */
.main-nav {
    background-color: #1a237e;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    /* Animación de entrada para el Logo */
    opacity: 0;
    animation: fadeInUpMenu 0.8s ease forwards;
    animation-delay: 0.1s;
}

/* FIX ESTÉTICO DEL LOGO: Corte circular para quitar el fondo cuadrado blanco */
.nav-brand .logo-img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #c5a059;
    background-color: #ffffff;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-tagline {
    color: #c5a059;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 18px;
    align-items: center;
}

/* Reducción de fuente para balancear los botones adicionales y Efecto Escalonado */
.nav-links li {
    opacity: 0;
    animation: fadeInUpMenu 0.6s ease forwards;
}

/* Retrasos de animación individuales para lograr la entrada escalonada bonita */
.nav-links li:nth-child(1) { animation-delay: 0.2s; }
.nav-links li:nth-child(2) { animation-delay: 0.3s; }
.nav-links li:nth-child(3) { animation-delay: 0.4s; }
.nav-links li:nth-child(4) { animation-delay: 0.5s; }
.nav-links li:nth-child(5) { animation-delay: 0.6s; }
.nav-links li:nth-child(6) { animation-delay: 0.7s; }
.nav-links li:nth-child(7) { animation-delay: 0.8s; }

.nav-links a {
    color: #e0e2ed;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 4px;
    display: inline-block;
}

.nav-links a:hover, .nav-links a.active {
    color: #c5a059;
    transform: translateY(-2px);
}

/* BOTONES RESALTADOS DEL MENÚ */
.nav-links a.nav-btn-red {
    background-color: #d32f2f;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-links a.nav-btn-red:hover {
    background-color: #b71c1c;
    color: #ffffff !important;
}

.nav-links a.nav-btn-gold {
    background-color: #c5a059;
    color: #0b0f26 !important;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a.nav-btn-gold:hover {
    background-color: #b38f43;
    color: #0b0f26 !important;
}

/* MENÚ MÓVIL (HAMBURGUESA) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* KEYFRAMES PARA EFECTOS DE ENTRADA DEL MENÚ */
@keyframes fadeInUpMenu {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   ESTILOS DEL FOOTER GLOBAL
   ========================================================================== */
.main-footer {
    background-color: #0b0f26;
    color: #ffffff;
    padding: 60px 0 20px 0;
    margin-top: auto;
    border-top: 3px solid #c5a059;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.footer-tagline {
    color: #c5a059;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-desc {
    color: #a0a5c0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-nav h4, .footer-contacto h4 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: #a0a5c0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #c5a059;
}

.footer-contacto p {
    color: #a0a5c0;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-contacto p i {
    color: #c5a059;
    margin-right: 10px;
    width: 15px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    display: inline-block;
    width: 38px;
    height: 38px;
    background-color: #161c3d;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background-color: #c5a059;
    color: #0b0f26;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #161c3d;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #717799;
    font-size: 0.85rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: #1a237e;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        gap: 15px;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav-links a.nav-btn-red, .nav-links a.nav-btn-gold {
        width: 80%;
        margin: 0 auto;
    }
    
    /* Desactivar escalonado en móvil para evitar retrasos innecesarios al expandir */
    .nav-links li {
        opacity: 1;
        animation: none;
    }
    .nav-brand {
        opacity: 1;
        animation: none;
    }
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP GLOBAL
   ========================================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: block;
    transition: all 0.3s ease;
}

.whatsapp-btn i {
    line-height: 60px;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    .whatsapp-btn i {
        line-height: 50px;
    }
}