/* =========================================
   RESET BASE Y VARIABLES
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; outline: none; }

body { 
    background-color: #050505; 
    font-family: 'Inter', sans-serif; 
    color: #fff; 
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
}

/* =========================================
   PRELOADER
   ========================================= */
#preloader { position: fixed; inset: 0; background: #000; z-index: 10000; display: flex; justify-content: center; align-items: center; transition: opacity 1s; }
#canvas-preloader { position: absolute; inset: 0; z-index: 1; }
.preloader-content { position: relative; z-index: 10; text-align: center; }
.mccann-logo { font-size: clamp(40px, 8vw, 80px); font-weight: 900; text-transform: uppercase; color: #fff; }
.red-text { color: #d63c2b !important; }
.mccann-sub { color: #666; margin-top: 20px; opacity: 0; transition: 1s; }

/* =========================================
   NAVBAR Y LOGOS ESCRITORIO
   ========================================= */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 20px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    z-index: 10000; 
    transition: all 0.3s ease; 
    background: rgba(5, 5, 5, 0.1);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 15px 5%;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-logos { display: flex; align-items: center; }
.home-link { display: flex; align-items: center; gap: 15px; text-decoration: none; cursor: pointer; transition: opacity 0.3s; }
.home-link:hover { opacity: 0.8; }
.logo-main.primary { height: 44px; filter: drop-shadow(0 0 10px rgba(241,189,77,0.3)); transition: 0.3s; }
.logo-main.secondary { height: 36px; opacity: 1; margin-left: 0; transition: 0.3s; } 

.navbar.scrolled .logo-main.primary { height: 38px; }
.navbar.scrolled .logo-main.secondary { height: 30px; }

.logo-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 5px;
}

.nav-tools { display: flex; gap: 20px; align-items: center; transition: 0.4s ease; }

/* Dropdown Container */
.nav-item-dropdown { position: relative; display: inline-block; }

.tool-link { 
    color: #fff !important; font-size: 0.85rem; font-weight: 900; text-transform: uppercase; 
    letter-spacing: 1.5px; padding: 10px 0; background: transparent; border: none; 
    transition: 0.3s ease; white-space: nowrap; cursor: pointer; position: relative;
    display: flex; align-items: center; gap: 5px;
}

.tool-link svg.chevron { width: 10px; height: 10px; transition: 0.3s; opacity: 0.5; }
.nav-item-dropdown:hover svg.chevron { transform: rotate(180deg); opacity: 1; color: #ff0000; }

.tool-link::after {
    content: ''; position: absolute; bottom: 5px; left: 0; width: 0; height: 2px;
    background-color: #ff0000; transition: width 0.3s ease;
}
.tool-link:hover::after, .tool-link.active::after { width: 100%; }
.tool-link:hover, .tool-link.active { color: #ff0000 !important; }

/* Dropdown Content */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
    z-index: 1000;
}

@media (min-width: 1201px) {
    .nav-item-dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        display: block !important;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-content a {
    color: #ccc;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.dropdown-content a:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    padding-left: 25px;
}

.ubicacion { font-size: 0.6rem; font-weight: 900; color: #444; letter-spacing: 1px; margin-left: 10px; }
.hamburger { display: none !important; flex-direction: column; gap: 6px; cursor: pointer; z-index: 5100; pointer-events: auto; }
.hamburger span { width: 30px; height: 3px; background-color: #fff; border-radius: 3px; transition: 0.3s ease-in-out; pointer-events: none; }

/* =========================================
   LAYOUT PRINCIPAL (HERO)
   ========================================= */
.split-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 100vh; width: 100%; position: relative; }
.visual-side { position: relative; overflow: hidden; background: radial-gradient(circle at 15%, #151515, #050505); display: flex; align-items: flex-end; }
.character-container { height: 90%; padding-left: 2%; display: flex; align-items: flex-end; z-index: 2; transition: transform 0.1s ease-out; }
@keyframes floatScrib {
    0% { transform: translateY(0); filter: drop-shadow(0 20px 10px rgba(0,0,0,0.5)); }
    50% { transform: translateY(-25px); filter: drop-shadow(0 40px 15px rgba(0,0,0,0.3)) drop-shadow(0 0 30px rgba(241, 189, 77, 0.25)); }
    100% { transform: translateY(0); filter: drop-shadow(0 20px 10px rgba(0,0,0,0.5)); }
}
#scrib-giant { height: 80%; width: auto; object-fit: contain; animation: floatScrib 6s ease-in-out infinite; transform-origin: bottom center; }
#box-canvas { position: fixed; inset: 0; z-index: 5; pointer-events: none; }

/* CONTENIDO DE TEXTO */
.content-side { padding: 0 8%; display: flex; align-items: center; background: rgba(5, 5, 5, 0.75); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 10; }
.label { color: #ffffff; font-weight: 700; letter-spacing: 0.5px; font-size: 0.8rem; display: block; margin-bottom: 10px; }

/* Efecto en el título */
.main-title { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 900; 
    line-height: 1.1; /* Ajustado de 0.99 para evitar cortes */
    letter-spacing: 0.5px; 
    margin-bottom: 25px; 
    color: #ffffff;
    filter: drop-shadow(0 5px 15px rgba(214, 60, 43, 0.3));
    transition: transform 0.5s ease;
}

.main-subtitle { font-size: 1.1rem; margin-bottom: 40px; color: #ccc; }

.reveal { opacity: 0; transform: translateY(30px); transition: 1.2s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Carrusel de Textos */
.text-carousel { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; align-items: center; }
.carousel-slide { grid-area: 1 / 1; opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; pointer-events: none; }
.carousel-slide.active { opacity: 1; transform: translateY(0); pointer-events: all; }

/* BOTÓN DE SCROLL */
.scroll-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 24px;
    background: transparent;
    color: #f1bd4d;
    border: 1px solid #f1bd4d;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 20;
    position: relative;
}
.scroll-btn:hover { background: #f1bd4d; color: #fff; }

/* BOTON WHATSAPP FLOTANTE - OMNIPRESENTE */
.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.wa-badge {
    background: #0a0a0a;
    color: #fff;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 900;
    margin-bottom: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-right: 4px solid #25D366;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.wa-widget-container:hover .wa-badge {
    opacity: 1;
    transform: translateX(0);
}

/* Mostrar badge por defecto con animación de entrada lenta */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.wa-badge.active {
    opacity: 1;
    transform: translateX(0);
    animation: fadeInRight 0.8s ease-out forwards;
}

.wa-float-new { 
    width: 65px; 
    height: 65px; 
    background: #25d366; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    pointer-events: auto;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    animation: wa-pulse 2s infinite;
}

.wa-float-new:hover { 
    transform: scale(1.1) rotate(5deg); 
    background: #20ba5a;
}

.wa-float-new svg { width: 35px; height: 35px; fill: #fff; }

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 1200px) {
    .wa-widget-container { bottom: 20px; right: 20px; }
    .wa-float-new { width: 55px; height: 55px; }
    .wa-badge { display: none; } /* Ocultar badge en móvil para no tapar contenido */
}

/* =========================================
   SIDEBAR PRODUCTION NAV (NEW)
   ========================================= */
.side-prod-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.side-nav-item {
    width: 48px;
    height: 48px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.side-nav-item svg { width: 20px; height: 20px; z-index: 2; transition: transform 0.3s; }
.side-nav-label {
    position: absolute;
    left: 60px;
    background: #ff0000;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
    pointer-events: none;
}
.side-nav-item:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}
.side-nav-item:hover .side-nav-label {
    opacity: 1;
    transform: translateX(0);
}
.side-nav-item:hover svg { transform: scale(1.1); }

@media (max-width: 1200px) {
    .side-prod-nav { display: none; }
}

/* =========================================
   FLOATING CTA COTIZAR (NEW)
   ========================================= */
.floating-cta-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #ff0000;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
    transition: 0.4s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.floating-cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.5);
    background: #111;
    color: #ff0000;
}
.floating-cta-btn svg { width: 18px; height: 18px; }

@media (max-width: 1200px) {
    .floating-cta-btn {
        bottom: 100px;
        left: 20px;
        padding: 12px 20px;
        font-size: 0.75rem;
    }
}

/* =========================================
   CONTACT SECTION & FORM (NEW)
   ========================================= */
.contact-block-section {
    padding: 120px 8%;
    background: #0a0a0a;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.contact-info-panel h2 { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; color: #fff; }
.contact-info-panel p { color: #888; font-size: 1.1rem; line-height: 1.6; margin-bottom: 40px; }

.contact-method-list { display: flex; flex-direction: column; gap: 30px; }
.method-item { display: flex; gap: 15px; align-items: center; }
.method-icon {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #ff0000; transition: 0.3s;
    flex-shrink: 0;
}
.method-item:hover .method-icon { background: #ff0000; color: #fff; border-color: #ff0000; box-shadow: 0 0 15px rgba(255,0,0,0.3); }
.method-icon svg { width: 22px; height: 22px; }
.method-text h4 { font-size: 1rem; margin-bottom: 2px; color: #fff; }
.method-text p, .method-text a { color: #888; text-decoration: none; font-size: 0.9rem; }
.method-text .msg-only { color: #ff0000; font-size: 0.75rem; font-weight: 700; display: block; margin-top: 2px; }
.method-text a:hover { color: #ff0000; }

.contact-form-panel {
    background: #111;
    padding: 50px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.05);
}
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.form-group input, .form-group textarea {
    color: #fff;
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #ff0000;
    background: rgba(255,0,0,0.02);
}
.submit-btn {
    width: 100%;
    padding: 18px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}
.submit-btn:hover { background: #fff; color: #ff0000; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* Overrides para tema claro */
.light-gray-theme { background: #f4f4f4 !important; color: #050505 !important; }
.light-gray-theme h2 { color: #050505 !important; }
.light-gray-theme .method-text h4 { color: #050505 !important; }
.light-gray-theme .method-text p, .light-gray-theme .method-text a { color: #444 !important; }
.light-gray-theme .method-icon { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }
.light-gray-theme .contact-info-panel p { color: #333 !important; }

@media (max-width: 1200px) {
    .contact-block-section { grid-template-columns: 1fr; gap: 50px; padding: 80px 5%; }
    .contact-info-panel h2 { font-size: 2.5rem; }
    .contact-form-panel { padding: 30px; }
}

/* =========================================
   CATÁLOGO TÉCNICO INTERACTIVO (NEW)
   ========================================= */
.catalog-tech-section { padding: 120px 8%; background: #050505; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin-top: 60px; }
.catalog-card {
    height: 350px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
}
.catalog-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1); }
.catalog-card:hover img { transform: scale(1.1) rotate(2deg); }
.catalog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}
.catalog-card h3 { font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.catalog-card p { color: #ccc; font-size: 0.95rem; margin-bottom: 20px; opacity: 0.8; }
.tech-badge-row { display: flex; gap: 10px; }
.tech-badge { padding: 5px 12px; background: rgba(255,0,0,0.2); color: #ff0000; border: 1px solid #ff0000; border-radius: 20px; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }

@media (max-width: 768px) {
    .catalog-card { height: 350px; }
}

/* =========================================
   SECCIÓN DE SERVICIOS (ESTILO BBDO)
   ========================================= */
.services-bbdo-section { padding: 80px 3%; background-color: #050505; position: relative; z-index: 20; display: flex; align-items: stretch; gap: 20px; overflow: hidden; }
.bbdo-vertical-title { width: auto; flex-shrink: 0; display: flex; align-items: center; padding-left: 20px; }
.bbdo-vertical-title h2 { 
    writing-mode: vertical-rl; 
    transform: rotate(180deg); 
    font-size: 2.8rem; 
    font-weight: 900; 
    color: #ff0000; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    line-height: 1; 
    margin: 0;
    user-select: none;
    opacity: 0.8;
}

.accordion-gallery {
    display: flex;
    gap: 15px;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    width: 100%;
}
.accordion-card {
    position: relative;
    flex: 1;
    border-radius: 30px;
    background: #0a0a0a;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.08);
}
.accordion-card:hover {
    flex: 6;
    border-color: #ff0000;
    box-shadow: 0 0 40px rgba(255,0,0,0.15);
}
.accordion-giant-icon {
    display: none;
}
.accordion-giant-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.accordion-card:hover .accordion-giant-icon {
    color: rgba(255,0,0,0.08);
    transform: scale(1.1) rotate(-10deg);
}
.accordion-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
    transition: 0.6s;
    backdrop-filter: grayscale(100%) contrast(1.2);
}
.accordion-card:hover .accordion-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 100%);
    backdrop-filter: grayscale(0%) contrast(1);
}
.accordion-icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    display: flex; justify-content: center; align-items: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    border: 2px solid #ff0000;
}
.accordion-card:hover .accordion-icon-wrapper {
    top: 50px;
    left: 50px;
    transform: translate(0, 0);
    background: #ff0000;
    box-shadow: 0 0 30px rgba(255,0,0,0.6);
}
.accordion-icon-wrapper svg {
    width: 30px; height: 30px;
    color: #ff0000;
    transition: 0.6s;
}
.accordion-card:hover .accordion-icon-wrapper svg {
    color: #fff;
}
.accordion-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 350px;
    pointer-events: none;
    z-index: 2;
}
.accordion-card:hover .accordion-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}
.accordion-content h3 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px;
    text-transform: uppercase;
    line-height: 1.1;
}
.accordion-content p {
    color: #aaa;
    font-size: 1.05rem;
    margin: 0;
}
.accordion-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.accordion-tag.smart { background: rgba(255,0,0,0.15); color: #ff0000; border: 1px solid rgba(255,0,0,0.3); }
.accordion-tag.mrbox { background: rgba(241,189,77,0.15); color: #f1bd4d; border: 1px solid rgba(241,189,77,0.3); }

@media (max-width: 900px) {
    .accordion-gallery {
        flex-direction: column;
        height: auto; /* Dejar que crezca según el contenido */
        min-height: auto;
    }
    .accordion-card {
        width: 100%;
        height: 150px; /* Altura fija para móviles para que se vean todos */
        flex: none; /* No usar flexbox para el tamaño */
    }
    .accordion-card:hover {
        flex: none;
        height: 180px; /* Un pequeño cambio al tocar */
    }
    .accordion-card .accordion-icon-wrapper {
        top: 50%;
        left: 25px;
        transform: translateY(-50%);
        width: 50px; height: 50px;
    }
    .accordion-card:hover .accordion-icon-wrapper {
        top: 25px;
        left: 25px;
        transform: none;
    }
    .accordion-card .accordion-content {
        left: 90px; /* Espacio para el icono a la izquierda */
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        opacity: 1; /* SIEMPRE VISIBLE EN MÓVIL */
        width: calc(100% - 110px);
        pointer-events: auto;
    }
    .accordion-content h3 { font-size: 1.3rem; margin-bottom: 2px; }
    .accordion-content p { font-size: 0.85rem; }
    .accordion-tag { margin-bottom: 5px; padding: 3px 8px; font-size: 0.6rem; }
    
    .accordion-giant-icon { display: none; } /* Ocultar el icono gigante en móvil */
}

/* =========================================
   SECCIÓN DE VIDEO FULLSCREEN
   ========================================= */
.video-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3); /* Oscurece el video ligeramente */
    pointer-events: none;
}

/* =========================================
   FOOTER (PIE DE PÁGINA)
   ========================================= */
.site-footer { background: #050505; border-top: 1px solid rgba(255,255,255,0.05); padding: 60px 8% 20px; position: relative; z-index: 20; }
.footer-container { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-logos { margin-bottom: 20px; width: max-content; }
.footer-logo { height: 40px; }
.mrbox-footer { height: 32px; }
.footer-sep { font-size: 1.5rem; }
.footer-desc { color: #888; font-size: 0.9rem; margin-bottom: 20px; }
.contact-details p { color: #ccc; font-size: 0.9rem; margin-bottom: 8px; }
.contact-details a { color: #f1bd4d; transition: 0.3s; }
.contact-details a:hover { color: #d63c2b; }
.social-icons { display: flex; gap: 20px; margin-top: 20px; }
.social-icons a { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 6px;
    text-decoration: none;
}
.social-icon-circle {
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 40px; 
    height: 40px; 
    color: #fff; 
    background: #111; 
    padding: 10px; 
    border-radius: 50%; 
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
}
.social-icons a:hover .social-icon-circle { 
    background: #d63c2b; 
    transform: translateY(-3px) scale(1.05); 
    border-color: #ff0000;
    box-shadow: 0 5px 15px rgba(214, 60, 43, 0.4);
}
.social-label {
    font-size: 0.6rem;
    font-weight: 900;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}
.social-icons a:hover .social-label { color: #fff; }
.footer-hours h4, .footer-map h4 { color: #fff; font-size: 1.1rem; font-weight: 900; margin-bottom: 20px; }
.footer-hours ul { list-style: none; }
.footer-hours li { color: #aaa; font-size: 0.9rem; margin-bottom: 12px; line-height: 1.5; }
.footer-hours span { display: block; color: #f1bd4d; font-weight: bold; }
.footer-map p { color: #aaa; font-size: 0.9rem; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; color: #777; font-size: 0.8rem; }

/* =========================================
   MODAL PROMOCIONALES
   ========================================= */
.promo-modal {
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(5px);
    z-index: 100000; 
    align-items: center; 
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.promo-modal.show {
    display: flex;
    opacity: 1;
}
.promo-modal-content {
    background: #111; 
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px; 
    border-radius: 20px; 
    width: 90%; 
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.promo-modal.show .promo-modal-content {
    transform: translateY(0);
}
.close-modal {
    position: absolute; 
    top: 20px; 
    right: 25px; 
    font-size: 2rem; 
    color: #fff; 
    cursor: pointer; 
    transition: color 0.3s;
}
.close-modal:hover { color: #ff0000; }
.promo-modal h2 { font-size: 1.8rem; margin-bottom: 15px; color: #fff; text-transform: uppercase; font-weight: 900; }
.promo-modal p { color: #ccc; margin-bottom: 30px; font-size: 1rem; line-height: 1.5; }
.promo-btn-container { display: flex; flex-direction: column; gap: 15px; }
.promo-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #ff0000;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    font-size: 1rem;
    text-transform: uppercase;
    transition: 0.3s;
    border: 2px solid #ff0000;
}
.promo-btn:hover { background: transparent; color: #ff0000; }

.promo-modal-large {
    width: 95%;
    max-width: 1000px;
    height: 85vh;
    display: flex;
    flex-direction: column;
}
.embedded-iframe {
    flex-grow: 1;
    width: 100%;
    border: none;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #111;
}
.modal-desc {
    color: #ccc; 
    margin-bottom: 20px; 
    font-size: 1rem; 
}

/* =========================================
   INSTAGRAM SLIDER
   ========================================= */
.instagram-slider-section {
    background-color: #050505;
    padding: 60px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.insta-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 5%;
}
.insta-header h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
}
.insta-header h3 a {
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: 0.3s;
}
.insta-header h3 a:hover { opacity: 0.8; }
.insta-header p {
    color: #888;
    font-size: 1rem;
}

.insta-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.insta-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollInsta 35s linear infinite;
}
.insta-track:hover {
    animation-play-state: paused;
}
@keyframes scrollInsta {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}
.insta-item {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
}
.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.insta-overlay span {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    gap: 15px;
}
.insta-item:hover img {
    transform: scale(1.1);
}
.insta-item:hover .insta-overlay {
    opacity: 1;
}

/* =========================================
   MR BOX MASCOT INTERACTIONS (ADVANCED)
   ========================================= */

/* 1. Worker (A la derecha, mirando a la izq hacia adentro) */
.mrbox-worker {
    position: absolute;
    bottom: -60px;
    right: 5%; /* Vuelve a la derecha */
    width: 350px;
    z-index: 5;
    pointer-events: none;
    transform: translateY(150%); /* Naturalmente mira a la izq */
    filter: drop-shadow(0 -10px 15px rgba(0,0,0,0.4));
}
.services-bbdo-section.section-active .mrbox-worker {
    animation: scrollPeekaboo 6s ease-in-out forwards;
}

/* 2. Selfie (A la izq, mirando a la derecha hacia adentro) */
.mrbox-selfie {
    position: absolute;
    bottom: -60px;
    left: 5%; /* Vuelve a la izq */
    width: 340px;
    z-index: 10;
    pointer-events: none;
    transform: scaleX(-1) translateY(150%); /* Volteado para mirar a la derecha */
    filter: drop-shadow(0 -10px 15px rgba(0,0,0,0.4));
}
.instagram-slider-section.section-active .mrbox-selfie {
    animation: scrollPeekabooFlip 6s ease-in-out 0.5s forwards;
}

/* 3. Support (Vuelve a la derecha en Footer) */
.mrbox-support {
    position: absolute;
    bottom: -60px;
    right: 15%; /* Vuelve a la derecha */
    width: 360px;
    z-index: 10;
    pointer-events: none;
    transform: translateY(150%);
    filter: drop-shadow(0 -10px 15px rgba(0,0,0,0.4));
}
.site-footer.section-active .mrbox-support {
    animation: scrollPeekaboo 6s ease-in-out 0.8s forwards;
}

@keyframes scrollPeekaboo {
    0% { transform: translateY(150%); }
    15%, 85% { transform: translateY(0%); } /* Sale por completo a la vista */
    100% { transform: translateY(150%); }
}
@keyframes scrollPeekabooFlip {
    0% { transform: scaleX(-1) translateY(150%); }
    15%, 85% { transform: scaleX(-1) translateY(0%); } /* Sale por completo a la vista */
    100% { transform: scaleX(-1) translateY(150%); }
}

/* =========================================
   RESPONSIVE MÓVIL CREATIVO (Celulares)
   ========================================= */
@media (max-width: 1200px) {
    /* Navbar compacta */
    .navbar { 
        flex-direction: row; 
        justify-content: space-between; 
        padding: 15px 5%; 
        background: rgba(5,5,5,0.95); 
        position: fixed; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
        z-index: 5000; 
        width: 100vw; 
        overflow: visible; 
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: none; /* No bloquea el scroll de la página */
    }
    .brand-logos, .hamburger { pointer-events: auto; }
    .brand-logos { gap: 10px; max-width: 70%; overflow: hidden; }
    .logo-main.primary { height: 32px; }
    .logo-main.secondary { display: block; height: 26px; } 
    .ubicacion { display: none; }
    
    .hamburger { display: flex !important; } 
    
    /* Layout Hero Modificado */
    .split-layout { display: block; position: relative; min-height: 100vh; padding-top: 80px; }
    
    /* Fondo animado detrás de Scrib */
    .visual-side { 
        position: absolute; inset: 0; height: 100%; width: 100%; 
        background: radial-gradient(circle at 50% 50%, #1a1a1a, #050505);
        background-size: 200% 200%;
        animation: glow 8s ease infinite;
        z-index: 1; pointer-events: none; overflow: hidden; 
    }

    @keyframes glow {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }
    
    .character-container { height: 100%; width: 100%; justify-content: center; align-items: flex-end; padding: 0; opacity: 0.25; }
    @keyframes floatScribMobile {
        0% { transform: scale(1.1) translateY(5%); filter: drop-shadow(0 10px 5px rgba(0,0,0,0.5)); }
        50% { transform: scale(1.1) translateY(0%); filter: drop-shadow(0 20px 10px rgba(0,0,0,0.3)) drop-shadow(0 0 20px rgba(241, 189, 77, 0.2)); }
        100% { transform: scale(1.1) translateY(5%); filter: drop-shadow(0 10px 5px rgba(0,0,0,0.5)); }
    }
    #scrib-giant { height: 68vh; object-fit: contain; animation: floatScribMobile 6s ease-in-out infinite; transform-origin: bottom center; }
    
    /* Textos centrados */
    .content-side { position: relative; z-index: 10; padding: 12vh 8% 160px; text-align: center; background: transparent; backdrop-filter: none; }
    
    /* Menú Overlay Pantalla Completa */
    .nav-tools {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Empezar desde arriba */
        align-items: center;
        gap: 15px; /* Menos espacio entre itemás */
        transform: translateX(100%); 
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 4000;
        padding: 80px 0 40px; /* Padding superior para no chocar con la barra */
        pointer-events: auto;
        overflow-y: auto; /* Habilitar scroll vertical */
    }

    .nav-tools.active {
        transform: translateX(0);
        opacity: 1;
    }

    .tool-link {
        font-size: 0.95rem; /* Tamaño más balanceado */
        padding: 12px 20px;
        width: 85%;
        max-width: 280px;
        text-align: center;
        background: rgba(255, 255, 255, 0.05); 
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        white-space: normal; 
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        font-weight: 900;
        letter-spacing: 2px;
    }
    
    .tool-link::after { display: none; }
    
    .tool-link:hover, .tool-link.active {
        background: #ff0000;
        color: #fff !important;
        transform: scale(1.05);
        border-color: #ff0000;
    }

    /* Mobile Dropdown Styling - Estilo Acordeón */
    .nav-item-dropdown { width: 100%; display: flex; flex-direction: column; align-items: center; }
    .nav-item-dropdown .dropdown-content {
        display: none;
        position: static !important; /* Forzar que salga debajo */
        transform: none !important;
        left: auto !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        box-shadow: none;
        border-radius: 12px;
        margin-top: 5px;
        padding: 10px 0;
    }
    .nav-item-dropdown.open .dropdown-content { 
        display: flex; 
        flex-direction: column;
    }
    .nav-item-dropdown.open .tool-link { 
        background: rgba(255, 0, 0, 0.1); 
        color: #ff0000 !important;
        border-radius: 12px;
    }
    .dropdown-content a {
        text-align: center; 
        padding: 12px; 
        font-size: 0.9rem;
        width: 100%;
        color: #aaa;
    }
    .dropdown-content a:hover {
        color: #fff;
        background: transparent;
    }


    /* Animación del Hamburger */
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* Responsive Servicios Estilo BBDO */
    .services-bbdo-section { flex-direction: column; padding: 60px 5% 120px; gap: 30px; }
    .bbdo-vertical-title { width: 100%; margin-bottom: 10px; }
    .bbdo-vertical-title h2 { writing-mode: horizontal-tb; transform: none; font-size: 4rem; text-align: left; }
    
    /* Accordion Gallery Mobile (Vertical Stack) */
    .accordion-gallery {
        flex-direction: column;
        height: auto;
        min-height: unset;
        max-height: none;
        gap: 10px;
    }
    .accordion-card {
        width: 100%;
        min-height: 90px;
        flex: none;
    }
    .accordion-card:hover, .accordion-card:focus, .accordion-card:active {
        flex: none;
        height: 350px;
    }
    .accordion-content {
        bottom: 20px;
        left: 20px;
        width: 90%;
    }
    .accordion-content h3 {
        font-size: 1.8rem;
    }
    .accordion-giant-icon {
        width: 250px;
        height: 250px;
        right: -20px;
        bottom: -20px;
    }

    /* Ocultar logo WA si estorba al menú (Opcional, lo movemos arriba) */
    .wa-float { bottom: 160px; right: 20px; width: 50px; height: 50px; }

    .footer-container { grid-template-columns: 1fr; gap: 30px; }

    /* Instagram Mobile */
    .insta-item { width: 220px; height: 220px; }
    .insta-header h3 { font-size: 1.5rem; }

    /* Mascot Mobile */
    .mrbox-worker { width: 180px; bottom: -20px; right: 2%; left: auto; }
    .mrbox-selfie { width: 170px; bottom: -20px; left: 2%; right: auto; }
    .mrbox-support { width: 180px; bottom: -20px; right: 5%; left: auto; }
}

/* =========================================
   PORTAFOLIO / CASOS DE ÉXITO (BEHANCE STYLE)
   ========================================= */
.featured-portfolio {
    padding: 120px 8%;
    background: #050505;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    aspect-ratio: 16/10;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-img {
    cursor: zoom-in;
}
.success-images img, .detail-image img, .gallery-grid img {
    cursor: zoom-in;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

.project-overlay {
    position: absolute;
    inset: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: 0.5s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.project-card:hover .project-overlay {
    opacity: 1;
}
.project-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 5;
}
.zoom-project {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}
.zoom-project:hover {
    background: #ff0000;
    border-color: #ff0000;
    transform: scale(1.1);
}
.zoom-project svg { width: 20px; height: 20px; }

.project-category {
    color: #ff0000;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.project-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.project-desc {
    color: #bbb;
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .portfolio-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .featured-portfolio { padding: 60px 5%; }
    .project-card { aspect-ratio: 1/1; } /* More square on mobile */
    .project-title { font-size: 1.3rem; }
    .project-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 70%); }
}

/* =========================================
   GLOBAL LIGHTBOX
   ========================================= */
.global-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 20000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.global-lightbox.active { display: flex; opacity: 1; }
.global-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.global-lightbox.active img { transform: scale(1); }
.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 20001;
}
.close-lightbox:hover { color: #ff0000; }

/* =========================================
   SUCCESS CASES (SHARED)
   ========================================= */
.success-case-section { 
    padding: 100px 8%; 
    background: #0a0a0a; 
    border-top: 1px solid rgba(255,255,255,0.05); 
}
.success-grid { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; 
    gap: 60px; 
    align-items: center; 
    margin-top: 60px; 
}
.success-images { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
}
.success-images img { 
    width: 100%; 
    border-radius: 15px; 
    border: 1px solid rgba(255,255,255,0.1); 
    cursor: zoom-in;
}
.success-images img:first-child { 
    grid-column: span 2; 
}
.success-info h2 { 
    font-size: 3rem; 
    font-weight: 900; 
    margin-bottom: 25px; 
}
.success-info p { 
    color: #aaaaaa; 
    line-height: 1.8; 
    margin-bottom: 20px; 
}
.success-info strong { color: #fff; }

@media (max-width: 1200px) { 
    .success-grid { grid-template-columns: 1fr; gap: 40px; } 
    .success-info h2 { font-size: 2.2rem; }
}

/* =========================================
   GLOBAL SEARCH OVERLAY
   ========================================= */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 100px 5% 50px;
}
.search-overlay.active { display: block; opacity: 1; }
.search-container { max-width: 800px; margin: 0 auto; }
.search-header {
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 2px solid #ff0000;
    padding-bottom: 15px;
    margin-bottom: 40px;
}
#search-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.close-search {
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.close-search:hover { color: #ff0000; }
.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 15px;
}
.search-results::-webkit-scrollbar { width: 5px; }
.search-results::-webkit-scrollbar-thumb { background: #ff0000; border-radius: 10px; }

.result-item {
    background: #111;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}
.result-item:hover { background: #1a1a1a; transform: translateY(-5px); border-color: #ff0000; }
.result-item h4 { color: #ff0000; margin: 0 0 5px; font-size: 1.1rem; text-transform: uppercase; font-weight: 900; }
.result-item p { color: #888; font-size: 0.85rem; margin: 0; line-height: 1.4; }

/* =========================================
   CONVERSION SERVICE SECTIONS (NEW)
   ========================================= */
.conversion-section {
    padding: 120px 8%;
    background: #ffffff;
    color: #000000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.conversion-section:nth-child(even) {
    background: #fcfcfc;
}

.conversion-section .conversion-content {
    max-width: 600px;
}

.conversion-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: #000000;
    line-height: 1.05;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.conversion-title span {
    color: #ff0000;
}

.conversion-body {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 45px;
}

.conversion-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-conversion-solid {
    background: #ff0000;
    color: #ffffff;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #ff0000;
    display: inline-block;
    text-align: center;
}

.btn-conversion-solid:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.btn-conversion-outline {
    background: transparent;
    color: #ff0000;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    border: 2px solid #ff0000;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    text-align: center;
}

.btn-conversion-outline:hover {
    background: #ff0000;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255,0,0,0.2);
}

.btn-conversion-outline svg {
    width: 20px;
    height: 20px;
}

.conversion-infographic {
    position: relative;
    z-index: 2;
}

.infographic-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border: 1px solid #eeeeee;
    transition: transform 0.5s;
}

.infographic-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
}

.infographic-wrapper img {
    width: 100%;
    border-radius: 15px;
    display: block;
}

.infographic-label {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

@media (max-width: 1200px) {
    .conversion-section {
        grid-template-columns: 1fr;
        padding: 80px 5%;
        text-align: center;
    }
    .conversion-content {
        max-width: 100%;
        margin: 0 auto;
    }
    .conversion-ctas {
        justify-content: center;
    }
    .conversion-infographic {
        margin-top: 50px;
    }
}

/* Ocultar elementos PWA en escritorio por defecto */
.bottom-nav,
.bottom-sheet,
.bottom-sheet-overlay {
    display: none;
}

/* ==========================================================================
   MOBILE-FIRST NATIVE APP OVERRIDES (PWA EXPERIENCE) - SMART POINT & MR BOX
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Header Superior Ultra-Delgado */
    .navbar {
        height: 54px !important;
        padding: 0 16px !important;
        background: rgba(5, 5, 5, 0.92) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        pointer-events: auto !important;
        z-index: 10003 !important;
    }
    .brand-logos {
        max-width: 80% !important;
    }
    .logo-main.primary {
        height: 28px !important;
    }
    .logo-main.secondary {
        height: 22px !important;
    }
    .logo-separator {
        font-size: 1.2rem !important;
    }
    .hamburger {
        display: none !important; /* Reemplazado por Bottom Nav */
    }
    .nav-tools {
        display: none !important; /* Evita que el menú anterior se active */
    }

    /* Ajuste de Espaciado Superior de Páginas para evitar cortes */
    .split-layout,
    .contact-hero,
    .hero-tech {
        padding-top: 70px !important;
    }
    
    .content-side {
        padding: 4vh 6% 120px !important;
    }

    /* 2. Bottom Navigation Bar Fija */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        height: calc(64px + env(safe-area-inset-bottom));
        background: rgba(10, 10, 10, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        z-index: 10002;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
    }
    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #888888;
        text-decoration: none;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        gap: 4px;
        height: 100%;
        cursor: pointer;
        transition: color 0.2s ease, transform 0.1s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .bottom-nav-item svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        transition: transform 0.2s ease;
    }
    .bottom-nav-item.active {
        color: #ff0000;
    }
    .bottom-nav-item:active {
        transform: scale(0.92);
        color: #ff3333;
    }

    /* 3. Bottom Sheets & Overlay */
    .bottom-sheet-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    }
    .bottom-sheet-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .bottom-sheet {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #0d0d0d;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: none;
        z-index: 10001;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 75vh;
        overflow-y: auto;
        padding: 20px 20px 20px;
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
        box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.8);
    }
    .bottom-sheet.active {
        transform: translateY(0);
    }
    .bottom-sheet-handle {
        width: 44px;
        height: 5px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 3px;
        margin: -10px auto 18px;
    }
    .bottom-sheet-title {
        font-size: 1.25rem;
        font-weight: 900;
        color: #ffffff;
        text-align: center;
        margin-bottom: 22px;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }
    
    /* Layouts dentro de las Bottom Sheets */
    .bottom-sheet-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .bottom-sheet-btn {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 16px;
        padding: 16px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #ffffff;
        text-decoration: none;
        font-weight: 900;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        gap: 8px;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .bottom-sheet-btn svg {
        width: 24px;
        height: 24px;
        color: #ff0000;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }
    .bottom-sheet-btn:active {
        transform: scale(0.96);
        background: rgba(255, 0, 0, 0.08);
        border-color: #ff0000;
    }
    
    .bottom-sheet-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .bottom-sheet-list-item {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 14px;
        padding: 14px 18px;
        display: flex;
        align-items: center;
        gap: 14px;
        color: #ffffff;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .bottom-sheet-list-item svg {
        width: 20px;
        height: 20px;
        color: #ff0000;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }
    .bottom-sheet-list-item:active {
        transform: scale(0.98);
        background: rgba(255, 0, 0, 0.08);
        border-color: #ff0000;
    }

    /* 4. Carruseles Horizontales Swipables (Grids Re-estructuradas) */
    .portfolio-grid,
    .catalog-grid,
    .use-grid,
    .dtf-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0 !important;
        padding: 10px 5vw 25px !important;
        margin-left: -5vw !important;
        margin-right: -5vw !important;
        scrollbar-width: none !important;
    }
    .portfolio-grid::-webkit-scrollbar,
    .catalog-grid::-webkit-scrollbar,
    .use-grid::-webkit-scrollbar,
    .dtf-grid::-webkit-scrollbar {
        display: none !important;
    }

    .project-card,
    .catalog-card,
    .use-card,
    .dtf-card {
        flex: 0 0 82vw !important;
        width: 82vw !important;
        max-width: 82vw !important;
        scroll-snap-align: start !important;
        margin-right: 16px !important;
        display: inline-block !important;
    }

    .project-card:last-child,
    .catalog-card:last-child,
    .use-card:last-child,
    .dtf-card:last-child {
        margin-right: 5vw !important;
    }

    /* 5. Optimización Táctil de Campos e Inputs */
    button, a, input, select, textarea {
        min-height: 48px;
    }
    
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        font-size: 16px !important; /* Previene zoom forzado en iOS */
        padding: 14px 18px !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Botones 100% Ancho y micro-escalado al tacto */
    .btn-primary,
    .btn-calc,
    .submit-btn,
    .scroll-btn,
    .promo-btn {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 14px !important;
        font-size: 0.9rem !important;
        padding: 16px !important;
        transition: transform 0.1s ease !important;
    }
    .btn-primary:active,
    .btn-calc:active,
    .submit-btn:active,
    .scroll-btn:active,
    .promo-btn:active {
        transform: scale(0.96) !important;
    }

    /* 6. Tooltips Táctiles interactivos */
    .tooltip {
        position: relative;
        cursor: pointer;
    }
    .tooltip::after {
        content: attr(data-help);
        position: absolute;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: rgba(15, 15, 15, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #ffffff;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 0.8rem;
        font-weight: 500;
        width: 220px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        z-index: 1000;
        pointer-events: none;
        text-align: center;
        line-height: 1.4;
    }
    .tooltip.active::after {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    /* 7. Reubicación del Botón Flotante de WhatsApp para no solaparse */
    .wa-widget-container {
        bottom: 80px !important; /* Desplazado arriba de la Bottom Nav */
        right: 16px !important;
    }
    .wa-float-new {
        width: 50px !important;
        height: 50px !important;
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4) !important;
    }
    .wa-float-new svg {
        width: 28px !important;
        height: 28px !important;
    }
    .wa-badge {
        display: none !important; /* Oculto en móvil para liberar pantalla */
    }
    
    .floating-cta-btn {
        display: none !important; /* Oculto ya que la barra inferior lo maneja */
    }

    /* Corrección de Margen de Pie de Página para no quedar tapado */
    .site-footer {
        padding-bottom: 90px !important;
    }
}
