:root {
    --primary-red: #E20B49;
    --primary-red-hover: #d10a43;
    --dark-bg: #0a0a0a;
    --black-bg: #000000;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.section-title,
.logo-text,
.font-montserrat,
.hero-buttons .btn {
    font-family: 'Montserrat', sans-serif;
}

.text-danger {
    color: var(--primary-red) !important;
}

.bg-danger {
    background-color: var(--primary-red) !important;
}

.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.btn-danger:hover {
    background-color: var(--primary-red-hover);
    border-color: var(--primary-red-hover);
    color: white;
}

/* Navbar */
.logo-text {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.nav-menu .nav-link {
    font-size: 0.75rem;
    font-weight: 400;
    color: #000;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: var(--primary-red);
}

.btn-contact-nav {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Floating left contact */
.floating-left-contact {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background-color: var(--primary-red);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
}

.floating-left-contact a {
    color: white;
    width: 48px;
    height: 48px;
    text-decoration: none;
    transition: background 0.3s;
}

.floating-left-contact a:hover {
    background-color: var(--primary-red-hover);
}

/* Floating Whatsapp */
.floating-wa {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: transform 0.3s;
}

.floating-wa:hover {
    transform: scale(1.1);
    color: white;
}

/* Footer elements */
.btn-social {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-social:hover {
    background-color: #fff !important;
    color: var(--primary-red) !important;
    transform: translateY(-3px);
}

.footer-links a,
.contact-list a {
    transition: color 0.3s ease;
}

.footer-links a:hover,
.contact-list a:hover {
    color: var(--primary-red) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .floating-left-contact {
        display: none !important;
    }
}

/* Custom right-up arrow for FontAwesome */
.fa-arrow-up-right-custom {
    transform: rotate(45deg);
}

/* Button standardization */
.btn {
    border-radius: 6px !important;
}

.btn:focus, .btn:active, .btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.btn:visited, a.btn:visited {
    color: inherit;
}
.btn-danger:visited {
    color: #fff !important;
}

/* Base link cleanup */
a:visited {
    color: inherit;
}

/* Ensure buttons don't change text color on active/focus/visited */
.btn-danger, .btn-danger:visited, .btn-danger:focus, .btn-danger:active, .btn-danger:hover {
    color: #ffffff !important;
}

.btn.bg-transparent.border-white, .btn.bg-transparent.border-white:visited, .btn.bg-transparent.border-white:focus, .btn.bg-transparent.border-white:active, .btn.bg-transparent.border-white:hover {
    color: #ffffff !important;
}

.btn-floating,
.floating-wa,
.btn-social,
.flag-icon {
    border-radius: 50% !important;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(226, 11, 73, 0.3);
    border-radius: 50% !important;
    border-top-color: var(--primary-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade-left.active,
.reveal-fade-right.active {
    opacity: 1;
    transform: translateX(0);
}
.z-index-1000 {
    z-index: 1000;
}

/* Contact Form 7 Professional Overrides */
.wpcf7 form .wpcf7-response-output,
form.wpcf7-form .wpcf7-response-output {
    margin: 1.5em 0 0 0 !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}
.wpcf7 form.sent .wpcf7-response-output,
form.wpcf7-form.sent .wpcf7-response-output {
    background-color: #198754 !important; /* Premium Green */
    color: #ffffff !important;
    border-color: #198754 !important;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
form.wpcf7-form.invalid .wpcf7-response-output,
form.wpcf7-form.failed .wpcf7-response-output {
    background-color: var(--primary-red) !important;
    color: #ffffff !important;
    border-color: var(--primary-red) !important;
}
span.wpcf7-not-valid-tip {
    color: var(--primary-red) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-top: 5px !important;
    display: block !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    width: 30px;
    height: 24px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1060;
}
.menu-toggle:focus {
    outline: none;
}
.menu-toggle .bar {
    position: absolute;
    height: 3px;
    width: 100%;
    background: #000;
    border-radius: 3px;
    left: 0;
    transition: all 0.3s ease;
}
.menu-toggle .bar-1 { top: 0; }
.menu-toggle .bar-2 { top: 10px; }
.menu-toggle .bar-3 { top: 20px; }
.menu-toggle.open .bar { background: #fff; }
.menu-toggle.open .bar-1 { top: 10px; transform: rotate(45deg); }
.menu-toggle.open .bar-2 { opacity: 0; }
.menu-toggle.open .bar-3 { top: 10px; transform: rotate(-45deg); }

/* Fullscreen Overlay Mobile Menu */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.97);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to prevent top cut-off on scroll */
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateY(-20px);
    overflow-y: auto;
    padding: 80px 20px 40px;
}
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Style wp_nav_menu links inside overlay */
.mobile-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-overlay ul li {
    margin-bottom: 0;
}
.mobile-overlay ul li a {
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
    padding: 10px 0;
    font-family: 'Montserrat', sans-serif;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}
.mobile-overlay ul li a:hover,
.mobile-overlay ul li a:focus {
    color: #ED1651;
    transform: translateX(5px);
}
.mobile-overlay ul li.current-menu-item > a,
.mobile-overlay ul li.current_page_item > a {
    color: #ED1651;
}
/* Sub-menus inside overlay */
.mobile-overlay ul .sub-menu {
    padding-left: 20px;
}
.mobile-overlay ul .sub-menu li a {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
}
.mobile-overlay ul .sub-menu li a:hover {
    color: #ED1651;
}
/* Legacy class fallback */
.mobile-nav-link {
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}
.mobile-nav-link:hover {
    color: #ED1651;
}

/* Mobile sub-menu accordion */
.mobile-overlay .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 0 !important;
}
.mobile-overlay .sub-menu.mw-open {
    margin-top: 8px;
    margin-bottom: 8px;
}
.mobile-overlay .sub-menu li a {
    font-size: 1rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    color: rgba(255,255,255,0.65) !important;
    padding: 8px 0 8px 16px !important;
    border-left: 2px solid rgba(237,22,81,0.3);
}
.mobile-overlay .sub-menu li a:hover {
    color: #ED1651 !important;
    border-left-color: #ED1651;
}
/* Parent item indicator */
.mobile-overlay .menu-item-has-children > a::after {
    content: '+';
    margin-left: 10px;
    font-size: 1.2rem;
    font-weight: 400;
    transition: transform 0.3s ease;
    display: inline-block;
}
.mobile-overlay .menu-item-has-children > a.mw-expanded::after,
.mobile-overlay .sub-menu.mw-open ~ a::after {
    content: '−';
}

/* ===================== MOBILE RESPONSIVE ===================== */
@media (max-width: 991.98px) {
    /* Navbar adjustments */
    .navbar { padding: 8px 0 !important; }
    .navbar-brand img,
    .custom-logo { max-height: 40px !important; width: auto; }
    .menu-toggle { display: block !important; margin-left: auto; }
    
    /* Hero / Banner */
    .hero-title { font-size: clamp(1.5rem, 5vw, 2.5rem) !important; }
    .hero-subtitle { font-size: 0.9rem !important; }
    .hero-buttons { flex-direction: column; align-items: flex-start; }
    .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
    
    /* About section */
    .section-heading { font-size: clamp(1.8rem, 4vw, 2.5rem) !important; }
    
    /* Contact section */
    .contact-card { border-radius: 20px !important; }
    
    /* Footer */
    .footer .col-lg-3 { margin-bottom: 1.5rem; }
    
    /* CTA */
    .single-cta-wrapper { padding: 1.5rem !important; border-radius: 16px !important; }
    .single-cta-title { font-size: 1.5rem !important; }
    
    /* Compromiso */
    .comp-hero-title { font-size: clamp(2rem, 5vw, 3rem) !important; }
    .comp-title { font-size: clamp(1.5rem, 4vw, 2rem) !important; }
    .comp-hero-btn { min-width: 150px !important; padding: 12px 20px !important; font-size: 0.85rem !important; }
    
    /* Floating contacts */
    .floating-left-contact { display: none !important; }
    
    /* Global Carousel Controls (Mobile) */
    .carousel-control-prev,
    .carousel-control-next {
        opacity: 0.1 !important;
        transition: opacity 0.3s ease !important;
    }
    .carousel-control-prev:active,
    .carousel-control-next:active,
    .carousel-control-prev:focus,
    .carousel-control-next:focus {
        opacity: 0.8 !important;
    }
}

/* Hero Title (Home Banner) */
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(32px, 5vw, 56px) !important; /* Base large size, up to 56px on big screens, min 32px on mobile */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}
@media (min-width: 992px) {
    .hero-title { font-size: 56px !important; }
}

/* Section Headings */
.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.section-heading .fw-light {
    font-weight: 400 !important;
}

/* ===================== DESKTOP DROPDOWN — WordPress Nav ===================== */
@media (min-width: 992px) {
    /* Desktop nav: sub-menu hidden by default */
    .navbar-nav .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1050;
        background: #fff;
        border: none;
        border-radius: 12px;
        box-shadow: 0 15px 50px rgba(0,0,0,0.12), 0 5px 15px rgba(0,0,0,0.06);
        padding: 12px 8px;
        min-width: 230px;
        list-style: none;
        animation: mwDropIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        transform-origin: top center;
        margin: 0;
    }
    
    /* Parent items need relative positioning */
    .navbar-nav > .menu-item-has-children {
        position: relative;
    }
    
    /* Show on hover */
    .navbar-nav .menu-item-has-children:hover > .sub-menu {
        display: block;
    }
    
    /* Sub-menu item styling */
    .navbar-nav .sub-menu li {
        margin: 0;
        padding: 0;
    }
    .navbar-nav .sub-menu li a {
        font-size: 0.88rem;
        font-weight: 500;
        color: #333;
        padding: 10px 16px;
        border-radius: 8px;
        transition: all 0.2s ease;
        text-decoration: none;
        display: block;
        letter-spacing: 0;
        text-transform: none;
        white-space: nowrap;
    }
    .navbar-nav .sub-menu li a:hover {
        background: #fef2f5;
        color: #ED1651;
        transform: translateX(4px);
    }
    .navbar-nav .sub-menu li.current-menu-item > a {
        color: #ED1651;
        background: #fef2f5;
        font-weight: 600;
    }
    
    /* Chevron for parent items */
    .navbar-nav .menu-item-has-children > a::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.6rem;
        margin-left: 6px;
        transition: transform 0.25s ease;
        display: inline-block;
    }
    .navbar-nav .menu-item-has-children:hover > a::after {
        transform: rotate(180deg);
    }
    
    /* Also support Bootstrap .dropdown / .dropdown-menu if a walker is used */
    .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
    .dropdown > .dropdown-menu { display: none; }
    .dropdown-menu {
        background: #fff; border: none; border-radius: 12px;
        box-shadow: 0 15px 50px rgba(0,0,0,0.12), 0 5px 15px rgba(0,0,0,0.06);
        padding: 12px 8px; min-width: 230px;
        animation: mwDropIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .dropdown-menu .dropdown-item,
    .dropdown-menu li a {
        font-size: 0.88rem; font-weight: 500; color: #333;
        padding: 10px 16px; border-radius: 8px;
        transition: all 0.2s ease; text-decoration: none; display: block;
    }
    .dropdown-menu .dropdown-item:hover,
    .dropdown-menu li a:hover {
        background: #fef2f5; color: #ED1651; transform: translateX(4px);
    }
}

@keyframes mwDropIn {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Nav link base */
.nav-link, .mobile-nav-link {
    white-space: nowrap !important;
}
a.nav-link, a.mobile-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* ===================== GLOBAL BULLET ALIGNMENT FIX ===================== */
/* Reset ALL list padding across content pages so bullets align with page margins */
main ul.list-unstyled,
section ul.list-unstyled,
.container ul.list-unstyled {
    padding-left: 0 !important;
    margin-left: 0 !important;
    padding-inline-start: 0 !important;
}
main ul.list-unstyled li,
section ul.list-unstyled li,
.container ul.list-unstyled li {
    padding-left: 0 !important;
    margin-left: 0 !important;
}
/* Rows inside bullet sections also need zero gutters on left */
.row ul.list-unstyled {
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.navbar-nav .nav-item {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

/* Fix Underscores a:visited purple color */
a:visited { color: inherit; }
.btn:visited { color: inherit; }
.btn-danger:visited, .btn-danger:hover, .btn-danger:active { color: white !important; }
.floating-wa:visited, .floating-wa:active { color: white !important; }
.floating-left-contact a:visited { color: white !important; }

/* Solución para WhatsApp Flotante Color Morado */
.floating-whatsapp {
    color: #ffffff !important;
}
.floating-whatsapp:visited,
.floating-whatsapp:hover,
.floating-whatsapp:focus,
.floating-whatsapp:active {
    color: #ffffff !important;
}

/* Forzar color blanco en los widgets del footer */
.footer .widget,
.footer .widget p,
.footer .widget span,
.footer .widget a,
.footer .widget li,
.footer .widget div {
    color: #ffffff !important;
}

/* Auto-estilo para widgets nativos de WordPress en el Footer */
.footer .widget_media_image img {
    max-width: 250px;
    height: auto;
    margin-bottom: 1.5rem;
}
.footer .widget_text p, 
.footer .widget_block p {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 2;
    opacity: 0.8;
}
.footer .widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer .widget_nav_menu ul li {
    margin-bottom: 1rem;
}
.footer .widget_nav_menu ul li a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

/* Forzar color rojo especifico para los titulos de contacto en footer */
.footer-contact-label {
    color: #ED1651 !important;
}
/* Asegurar que las listas del footer no tengan padding que desalinee (Forzado extremo para Widgets) */
.footer ul,
.footer .widget ul,
.footer .widget ol,
.footer .widget_nav_menu ul,
.footer .widget_custom_html ul {
    padding-left: 0 !important;
    margin-left: 0 !important;
    list-style: none !important;
}

/* Forzar color rojo #ED1651 en todos los labels (Telefono, Email, etc) de la columna de Contacto */
.footer .col-lg-3:last-child .widget ul li span:first-child,
.footer .col-lg-3:last-child .widget ul li strong:first-child,
.footer .col-lg-3:last-child .widget ul li b:first-child,
.footer-contact-label {
    color: #ED1651 !important;
}

/* Forzar que los iconos de redes sociales sean siempre del rojo correcto */
.footer .social-icons .btn-social,
.footer .social-icons .bg-danger {
    background-color: #ED1651 !important;
}
.footer .widget_nav_menu ul li a:hover {
    color: #dc3545 !important;
}
.footer .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

/* Controlar el tamaño del logo del sitio en la barra de navegación */
.navbar {
    height: 126px !important;
}
.navbar-brand img,
.navbar-brand img.custom-logo {
    width: 195px !important;
    height: 47px !important;
    max-height: none !important;
    object-fit: contain;
}

/* Hacer que la tarjeta de contacto flote sobre el footer */
.contact-section {
    position: relative;
}
.contact-card {
    position: relative;
    z-index: 10;
}
.footer {
    margin-top: auto;
    position: relative;
    z-index: 1;
}

/* Cards de Productos e Industrias */
.product-card,
.industry-card {
    height: 350px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5) !important;
}

.card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
    transition: background 0.3s ease;
}

.product-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(220, 53, 69, 0.95) 0%, rgba(0,0,0,0.4) 100%);
}

.industry-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0,0,0,0.6) 100%);
}

.product-card .small-icon,
.industry-card .small-icon {
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.3s ease;
}

.product-card:hover .small-icon,
.industry-card:hover .small-icon {
    opacity: 1;
    transform: translateX(0);
}

.product-title,
.industry-title {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* WPForms Integration for Contact Card */
.contact-card .wpforms-container {
    margin: 0 !important;
}
.contact-card .wpforms-container .wpforms-field-label {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
}
.contact-card .wpforms-container .wpforms-field {
    width: 100% !important;
    clear: both !important;
}
.contact-card .wpforms-container input[type="text"],
.contact-card .wpforms-container input[type="email"],
.contact-card .wpforms-container input[type="tel"],
.contact-card .wpforms-container input[type="number"],
.contact-card .wpforms-container textarea {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.contact-card .wpforms-container input:focus,
.contact-card .wpforms-container textarea:focus {
    border-color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1) !important;
}
.contact-card .wpforms-container input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0d0d0d inset !important;
    -webkit-text-fill-color: #ffffff !important;
}
.contact-card .wpforms-container .wpforms-submit-container {
    text-align: right !important;
    clear: both !important;
}
.contact-card .wpforms-container button[type="submit"] {
    background-color: #ED1651 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.75rem 2.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: bold !important;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-block !important;
}
.contact-card .wpforms-container button[type="submit"]:hover {
    background-color: #c91244 !important;
}

/* Ocultar el widget nativo de Google Translate / GTranslate pero mantenerlo en el DOM */
.goog-te-banner-frame { display: none !important; }
body { top: 0px !important; }
.goog-te-gadget { color: transparent !important; }
.goog-te-gadget .goog-te-combo { display: block !important; }
#google_translate_element { 
    opacity: 0; 
    position: absolute; 
    z-index: -100; 
    pointer-events: none; 
    overflow: hidden;
}
/* =====================================================
   BANDERAS DE IDIOMA (.mw-flag) — Sistema propio
   ===================================================== */
.mw-flag {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    display: block;
    border: 2px solid transparent;
}
.mw-flag:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.mw-flag-active {
    border: 2px solid #ED1651 !important;
    box-shadow: 0 0 6px rgba(237,22,81,0.4);
}
.mobile-overlay .mw-flag {
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255,255,255,0.8);
}
.mobile-overlay .mw-flag-active {
    border-color: #ED1651 !important;
}

/* Eliminar barra blanca después del footer */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}
html {
    overflow-x: hidden;
}
.site, #page, #content, .entry-content, .site-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.footer {
    margin-bottom: 0 !important;
}

/* Hero Background Animation (Ken Burns Effect) */
.carousel-bg {
    transform: scale(1);
    transition: transform 8s ease-in-out;
    will-change: transform;
}
.carousel-item.active .carousel-bg {
    transform: scale(1.08);
}
