.elementor-205 .elementor-element.elementor-element-b079adb{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--overflow:hidden;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;--z-index:999;}.elementor-theme-builder-content-area{height:400px;}.elementor-location-header:before, .elementor-location-footer:before{content:"";display:table;clear:both;}/* Start custom CSS for html, class: .elementor-element-9b9bda4 *//* ========================================== */
/* HEADER MODERNO CON GLASSMORPHISM          */
/* ========================================== */

/* Importar Google Font - Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600&display=swap');

/* Header Principal - Transparente por defecto */
.modern-header {
    /* Variables locales solo para el header */
    --header-height: 80px;
    --header-height-scroll: 70px;
    --header-primary: #E02826;
    --header-primary-dark: #c41f1e;
    --header-text-dark: #1a1a1a;
    --header-text-light: #4c4b4b;
    
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    /* Solo animar propiedades verticales específicas */
    transition: 
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    box-shadow: none;
    border-bottom: none;
}

/* Header con Scroll - Activado */
.modern-header.scrolled {
    padding: 0.5rem 0;
    background: linear-gradient(135deg, 
        rgba(224, 40, 38, 0.98) 0%, 
        rgba(196, 31, 30, 0.98) 50%,
        rgba(46, 125, 50, 0.98) 100%
    );
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    
    /* Borde de bastón de dulce solo cuando scrolled */
    border-bottom: 6px solid transparent;
    border-image: repeating-linear-gradient(
        -45deg,
        #ffffff,
        #ffffff 10px,
        #E02826 10px,
        #E02826 20px
    ) 1;
}


/* Contenedor del Header */
.modern-header .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    /* Forzar fuente Outfit */
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ========================================== */
/* LOGO                                       */
/* ========================================== */

.modern-header .header-logo {
    flex-shrink: 0;
    /* Fijar el ancho para evitar desplazamiento horizontal */
    width: 80px;
    min-width: 80px;
    /* Solo animar el transform del hover, NO del scroll */
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    /* Asegurar que no se mueva horizontalmente */
    transform: translateZ(0);
}

.modern-header .logo-img {
    height: 80px;
    width: auto;
    /* Solo animar altura y opacidad, NO posición */
    transition: 
        height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    /* Centrar el logo dentro de su contenedor */
    margin: 0 auto;
}

/* Logo normal (colorido) - Visible por defecto */
.modern-header .logo-normal {
    opacity: 1;
}

/* Logo blanco - Oculto por defecto */
.modern-header .logo-white {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Al hacer scroll, intercambiar logos */
.modern-header.scrolled .logo-normal {
    opacity: 0;
}

.modern-header.scrolled .logo-white {
    opacity: 1;
}

.modern-header.scrolled .logo-img {
    height: 70px;
}

.modern-header .header-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ========================================== */
/* NAVIGATION                                 */
/* ========================================== */

.modern-header .header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.modern-header .nav-link {
    padding: 0.75rem 1.5rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    font-family: 'Outfit', sans-serif !important;
    border-radius: 50px;
    /* Animar solo las propiedades necesarias */
    transition: 
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
    position: relative;
    white-space: nowrap;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-header .nav-link::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #d0d0d0;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.modern-header .nav-link:hover {
    background: #f5f5f5;
    color: #E02826;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-header .nav-link:hover::before {
    border-color: #999;
}

/* Botón Activo con Luz Navideña */
.modern-header .nav-link.active {
    font-weight: 400;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-header .nav-link.active::before {
    background: radial-gradient(circle, #ffeb3b 0%, #fdd835 40%, #f9a825 100%);
    border: 2px solid #f57f17;
    box-shadow: 
        0 0 15px rgba(255, 235, 59, 0.8),
        0 0 25px rgba(253, 216, 53, 0.6),
        0 0 35px rgba(249, 168, 37, 0.4),
        inset 0 0 8px rgba(255, 255, 255, 0.6);
    animation: christmasLightGlow 2s ease-in-out infinite;
}

/* Animación de luz navideña pulsante */
@keyframes christmasLightGlow {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(255, 235, 59, 0.8),
            0 0 25px rgba(253, 216, 53, 0.6),
            0 0 35px rgba(249, 168, 37, 0.4),
            inset 0 0 8px rgba(255, 255, 255, 0.6);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(255, 235, 59, 1),
            0 0 35px rgba(253, 216, 53, 0.8),
            0 0 50px rgba(249, 168, 37, 0.6),
            inset 0 0 12px rgba(255, 255, 255, 0.8);
    }
}

/* Header con scroll - Nav mantiene fondo blanco */
.modern-header.scrolled .nav-link {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
}

.modern-header.scrolled .nav-link:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modern-header.scrolled .nav-link.active {
    background: #ffffff;
}

/* ========================================== */
/* CONTACT BUTTON                             */
/* ========================================== */

.modern-header .header-actions {
    flex-shrink: 0;
}

.modern-header .btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    font-family: 'Outfit', sans-serif !important;
    border-radius: 50px;
    /* Animar solo las propiedades necesarias */
    transition: 
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    white-space: nowrap;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modern-header .btn-contact:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.modern-header .btn-contact:active {
    transform: translateY(0);
}

/* ========================================== */
/* MOBILE MENU TOGGLE                         */
/* ========================================== */

.modern-header .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10001;
    position: relative;
}

.modern-header .mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Hamburger blanco cuando hace scroll */
.modern-header.scrolled .mobile-menu-toggle span {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Animación de la X - Blanca y bien calculada */
.modern-header .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #ffffff;
}

.modern-header .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.modern-header .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #ffffff;
}

/* X siempre blanca cuando está activa */
.modern-header.scrolled .mobile-menu-toggle.active span,
.modern-header .mobile-menu-toggle.active span {
    background: #ffffff !important;
}

/* ========================================== */
/* MOBILE MENU                                */
/* ========================================== */

.modern-header .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: calc(80px + 1rem);
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
    background: linear-gradient(135deg, 
        rgba(224, 40, 38, 0.98) 0%, 
        rgba(196, 31, 30, 0.98) 50%,
        rgba(46, 125, 50, 0.98) 100%
    );
    backdrop-filter: blur(10px);
    transform-origin: top right;
    transform: scale(0);
    opacity: 0;
    /* Animación rápida al cerrar (dissolve) */
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    overflow-y: auto;
}

.modern-header .mobile-menu.active {
    transform: scale(1);
    opacity: 1;
    /* Animación spring al abrir */
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Contenedor interno del menú con margen */
.modern-header .mobile-menu-content {
    max-width: 400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Copos de nieve decorativos en el menú */
.modern-header .mobile-menu::before {
    content: '❄';
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

.modern-header .mobile-menu::after {
    content: '❄';
    position: absolute;
    bottom: 20%;
    right: 10%;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    animation: float 4s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
}

.modern-header .mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Outfit', sans-serif !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(-30px);
}

/* Animación escalonada de los enlaces al ABRIR */
.modern-header .mobile-menu.active .mobile-nav-link {
    animation: slideInLink 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.modern-header .mobile-menu.active .mobile-nav-link:nth-child(1) {
    animation-delay: 0.1s;
}

.modern-header .mobile-menu.active .mobile-nav-link:nth-child(2) {
    animation-delay: 0.2s;
}

.modern-header .mobile-menu.active .mobile-nav-link:nth-child(3) {
    animation-delay: 0.3s;
}

.modern-header .mobile-menu.active .mobile-nav-link:nth-child(4) {
    animation-delay: 0.4s;
}

.modern-header .mobile-menu.active .mobile-nav-link:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes slideInLink {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Al CERRAR, los enlaces simplemente desaparecen rápido */
.modern-header .mobile-menu:not(.active) .mobile-nav-link {
    transition: opacity 0.1s ease-out;
    opacity: 0;
}

.modern-header .mobile-nav-link:hover,
.modern-header .mobile-nav-link.active {
    font-weight: 400;
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.modern-header .mobile-nav-link.mobile-contact {
    background: #1a1a1a;
    color: #ffffff;
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modern-header .mobile-nav-link.mobile-contact:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================== */
/* HERO SECTION ADJUSTMENT                    */
/* ========================================== */

.hero-section {
    padding-top: calc(80px + 4rem);
    text-align: center;
}

/* ========================================== */
/* RESPONSIVE DESIGN                          */
/* ========================================== */

@media (max-width: 1024px) {
    .modern-header .header-nav {
        gap: 0.25rem;
    }

    .modern-header .nav-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .modern-header .btn-contact {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 1023px) {
    .modern-header .header-container {
        padding: 0 1.5rem;
        padding-top: 24px;
        gap: 1rem;
    }

    .modern-header .header-nav,
    .modern-header .header-actions {
        display: none;
    }

    .modern-header .mobile-menu-toggle {
        display: flex;
    }

    .modern-header .mobile-menu {
        display: block;
        padding-top: calc(70px + 24px + 1rem);
    }

    .modern-header .logo-img {
        height: 70px;
    }

    .modern-header.scrolled .logo-img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .modern-header .header-container {
        padding: 0 1rem;
    }

    .modern-header .logo-img {
        height: 60px;
    }

    .modern-header.scrolled .logo-img {
        height: 50px;
    }

    .modern-header .mobile-menu {
        padding-top: calc(60px + 1rem);
    }

    .modern-header .mobile-menu-content {
        padding: 0.75rem;
    }
}

/* ========================================== */
/* ANIMATIONS                                 */
/* ========================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-header {
    animation: fadeInDown 0.6s ease-out;
}/* End custom CSS */