/*

Theme Name: Hestia Child

Theme URI: https://midispro.com.ec

Description: Estilos personalizados Midispro - Versión 7.0 (Ghost Image Fix)

Author: Axel

Template: hestia

Version: 7.0

*/



/* --- 1. MENÚ --- */

.navbar { min-height: 70px; box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important; }

.navbar .navbar-brand { height: 60px; padding: 10px 15px; font-weight: 700; letter-spacing: 1px; line-height: 40px; }

.navbar .navbar-nav > li > a { font-size: 0.9rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; padding-top: 25px; padding-bottom: 25px; }

.navbar-toggle .icon-bar { background-color: #333 !important; }

@media (max-width: 768px) {

    .navbar .navbar-collapse { background: #fff; margin-top: 10px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

    .navbar-nav > li > a { color: #333 !important; border-bottom: 1px solid #f0f0f0; padding: 15px 20px; }

}



/* --- 2. CABECERAS HERO --- */

.cabecera-hero-marcas { background: linear-gradient(135deg, #76181c 0%, #3a0b0e 100%); color: #ffffff; padding-top: 150px; padding-bottom: 160px; min-height: 350px; position: relative; width: 100%; margin-bottom: -60px; }

.hero-single-pdf { padding-bottom: 220px !important; }

.titulo-hero { font-size: 3rem; font-weight: 700; margin-bottom: 20px; color: #fff; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }

.subtitulo-hero { font-size: 1.2rem; font-weight: 300; opacity: 0.9; max-width: 700px; margin: 0 auto; line-height: 1.6; }

@media (max-width: 768px) {

    .cabecera-hero-marcas { padding-top: 160px; padding-bottom: 160px; min-height: auto; }

    .hero-single-pdf { padding-bottom: 240px !important; }

    .titulo-hero { font-size: 1.8rem; padding: 0 15px; }

    .subtitulo-hero { font-size: 1rem; padding: 0 20px; }

}



/* --- 3. COMPONENTES --- */

.tarjeta-marca, .tarjeta-marca-wrapper a { display: flex; flex-direction: column; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); overflow: hidden; text-decoration: none !important; transition: transform 0.2s, box-shadow 0.2s; height: 100%; border: 1px solid #f0f0f0; }

.tarjeta-marca:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 12px 25px rgba(118, 24, 28, 0.618); }

a.tarjeta-marca:hover { opacity: 1 !important; background-color: #fff !important; color: inherit !important; }

a.tarjeta-marca:hover .contenedor-imagen img { opacity: 1 !important; filter: none !important; }

.contenedor-imagen { height: 180px; display: flex; align-items: center; justify-content: center; padding: 20px; background-color: #ffffff; border-bottom: 1px solid #f5f5f5; }

.contenedor-imagen img { max-width: 100%; max-height: 100%; object-fit: contain; }

.info-marca { padding: 25px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }

.titulo-marca { font-size: 1.1rem; font-weight: 700; color: #333; margin: 0 0 15px 0; text-transform: uppercase; }

.desc-tarjeta { font-size: 1.1rem; color: #444; margin-bottom: 20px; line-height: 1.5; font-weight: 400; overflow: hidden; }

.btn-ver { margin-top: auto; }



/* --- 4. HOME --- */

.texto-grande { font-size: 1.3rem !important; }

.subtitulo-destacado { font-size: 1.5rem !important; color: #444; font-weight: 400; }



/* SLIDER 3D FIX */

.section-slider-3d { min-height: 500px !important; background-color: #fcfcfc; overflow: visible !important; }

.swiper { width: 100%; height: 450px !important; padding-top: 30px; padding-bottom: 60px; }



.swiper-slide {

    background-position: center; background-size: cover; background-repeat: no-repeat; background-color: #fff;

    width: 600px !important; height: 350px !important;

    border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.4);

    display: flex !important; align-items: center; justify-content: center; position: relative;

}



/* LA IMAGEN FANTASMA: Se expande para cubrir todo y hace que el link funcione */

.ghost-link {

    display: block !important;

    width: 100% !important;

    height: 100% !important;

    opacity: 0; /* Totalmente invisible */

    cursor: pointer;

    position: relative;

    z-index: 100; /* Encima de todo */

}



/* El enlace que genera el plugin (lo forzamos a cubrir todo también) */

.real3dflipbook-lightbox-link {

    display: block !important; width: 100% !important; height: 100% !important;

    position: absolute !important; top: 0; left: 0; z-index: 100 !important;

}



.click-indicator {

    position: absolute; bottom: 15px; right: 15px; width: 40px; height: 40px;

    background: rgba(233, 30, 99, 0.9); border-radius: 50%;

    display: flex; align-items: center; justify-content: center;

    color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.3);

    z-index: 50; pointer-events: none; opacity: 0.8;

}

.swiper-slide:hover .click-indicator { transform: scale(1.1); opacity: 1; }

.swiper-pagination-bullet { background: #ccc; opacity: 1; }

.swiper-pagination-bullet-active { background: #e91e63 !important; }



@media (max-width: 768px) {

    .section-slider-3d { min-height: 400px !important; }

    .swiper { height: 350px !important; }

    .swiper-slide { width: 85% !important; height: 250px !important; }

}



.badge-promo { display: inline-block; background: #e91e63; color: #fff; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; padding: 5px 15px; border-radius: 20px; margin-bottom: 10px; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(233, 30, 99, 0.4); }

.info-box { padding: 30px 20px; transition: transform 0.3s; }

.info-box:hover { transform: translateY(-10px); }

.info-title { font-weight: 700; margin-top: 20px; margin-bottom: 15px; color: #333; }

.icon i { transition: all 0.3s; }

.info-box:hover .icon i { transform: scale(1.1); color: #c2185b !important; }

.img-shadow-wrapper img { border-radius: 8px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); transition: transform 0.3s; }

.img-shadow-wrapper:hover img { transform: translateY(-5px); }

.infra-content-box { padding-left: 40px; }

.display-flex-center { display: flex; align-items: center; flex-wrap: wrap; }

.lista-ventajas { list-style: none; padding: 0; margin-top: 30px; }

.lista-ventajas li { display: flex; align-items: center; margin-bottom: 15px; font-size: 1.1rem; color: #333; }

.lista-ventajas li i { font-size: 1.3rem; margin-right: 15px; color: #76181c; }

.resaltado-zona { background-color: #fff3cd; padding: 2px 6px; border-radius: 4px; color: #856404; border-bottom: 2px solid #ffeeba; }

.stat-item { padding: 20px; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: default; }

.stat-item:hover { transform: scale(1.1) translateY(-10px); background: rgba(255,255,255,0.1); border-radius: 10px; }

.title-stat { color: #fff; font-size: 4rem; margin-bottom: 10px; font-weight: 800; text-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.desc-stat { font-size: 1.4rem; opacity: 0.9; font-weight: 300; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 768px) {

    .section-bienvenida { margin-top: 60px !important; padding-top: 40px !important; }

    .display-flex-center { flex-direction: column; }

    .col-md-6 { width: 100%; margin-bottom: 30px; }

    .infra-content-box { padding-left: 0; margin-top: 30px; text-align: center; }

    .lista-ventajas li { justify-content: flex-start; text-align: left; }

    .title-stat { font-size: 3rem; }

}



/* --- 5. ARCHIVO --- */

.contenedor-marcas-principal { padding: 60px 0; padding-top: 40px; }

.cabecera-archivo { margin-bottom: 50px; }

.grid-marcas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-bottom: 40px; }



/* --- 6. SINGLE --- */

.detalle-marca-container { padding: 50px 0; }

.marca-header { margin-bottom: 40px; align-items: center; }

.visor-container-frame { background: #ffffff; padding: 20px; border-radius: 8px; box-shadow: 0 5px 30px rgba(0,0,0,0.1); border: 1px solid #eee; position: relative; z-index: 10; overflow: hidden; margin-bottom: 80px !important; }

.visor-header { text-align: center; margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; }

.etiqueta-visor { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; color: #888; display: block; margin-bottom: 5px; }

.titulo-activo { margin: 0; font-weight: 700; color: #333; font-size: 1.5rem; }

.flipbook-wrapper { height: 70vh !important; min-height: 500px !important; width: 100%; background: #fcfcfc; border-radius: 4px; position: relative !important; display: block; z-index: 1; }

.flipbook-wrapper .real3dflipbook-container, .flipbook-wrapper > div { height: 100% !important; width: 100% !important; }

.seccion-coleccion { margin-top: 50px !important; padding-top: 20px; border-top: 1px solid #eaeaea; position: relative; z-index: 2; clear: both; }

.seccion-coleccion .text-center { margin-bottom: 20px !important; }

.separador-rojo { width: 50px; height: 3px; background: #e91e63; margin: 5px auto 15px auto; }

.grid-submarcas { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; width: 100%; max-width: 1200px; margin: 0 auto; }

.card-catalogo { width: 260px; background: #fff; border: 1px solid #e1e1e1; border-radius: 8px; overflow: hidden; text-align: center; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; text-decoration: none !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.card-catalogo:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.12); border-color: transparent; z-index: 5; }

.card-catalogo.active-card { border: 2px solid #e91e63; background-color: #fff; opacity: 0.6; pointer-events: none; }

.card-imagen-wrapper { height: 160px; width: 100%; background: #fff; padding: 20px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #f9f9f9; overflow: hidden; }

.img-submarca, .img-contain { max-width: 100%; max-height: 100%; object-fit: contain; }

.card-catalogo-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }

.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: #444; text-transform: uppercase; }

.texto-accion { font-size: 0.8rem; color: #e91e63; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.icon-pdf-placeholder { font-size: 50px; color: #cc3333; opacity: 0.5; }

@media (max-width: 768px) {

    .flipbook-wrapper { height: 50vh !important; min-height: 400px !important; }

    .seccion-coleccion .text-center { margin-bottom: 10px !important; }

    .seccion-coleccion h4.title { margin-top: 0 !important; font-size: 1.2rem !important; }

    .separador-rojo { margin: 5px auto 10px auto !important; height: 2px !important; width: 30px !important; }

    .seccion-coleccion { margin-top: 20px !important; padding-top: 10px !important; border-top: none !important; }

    html { scroll-padding-top: 120px; }

    .grid-submarcas { gap: 20px; }

    .card-catalogo { width: 100%; max-width: 320px; }

}



/* --- 7. FOOTER --- */

.footer { background-color: #1a1a1a !important; color: #ffffff !important; padding: 50px 0 30px 0; margin-top: 0 !important; position: relative; z-index: 99; border-top: 3px solid #76181c; }

.home .footer { background-color: transparent !important; box-shadow: none !important; border: none !important; margin-top: -120px !important; padding: 0 0 30px 0; border-top: none !important; }

.footer ul li a { color: #ffffff !important; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

.footer ul li a:hover { color: #e91e63 !important; text-decoration: none; }

.copyright { font-size: 0 !important; padding: 20px 0; }

.copyright a { display: none !important; }

.copyright::after { content: "© 2025 Midispro S.A. | Todos los derechos reservados."; font-size: 14px !important; color: #ffffff !important; display: block; text-align: center; font-weight: 500; letter-spacing: 1px; }

.home .copyright::after { color: #888 !important; }

body:not(.home) .copyright::after { color: #fff !important; opacity: 0.7; }

@media (max-width: 768px) {

    .home .footer { margin-top: -150px !important; }

    .footer { text-align: center; }

}





/* --- FIX ENLACE PROMO --- */

.promo-link-overlay {

    display: block !important;

    width: 100% !important;

    height: 100% !important;

    position: absolute !important;

    top: 0;

    left: 0;

    z-index: 100;

    background: transparent !important;

    border: none !important;

    text-decoration: none !important;

    outline: none !important;

}

/* Quitar borde al hacer foco o click */

.promo-link-overlay:focus,

.promo-link-overlay:active,

.promo-link-overlay:hover {

    border: none !important;

    outline: none !important;

    box-shadow: none !important;

}





/* --- BOTÓN WHATSAPP FLOTANTE --- */

.btn-whatsapp-flotante {

    position: fixed;

    width: 60px;

    height: 60px;

    bottom: 40px;

    right: 40px;

    background-color: #25d366; /* Color oficial WhatsApp */

    color: #fff;

    border-radius: 50%;

    text-align: center;

    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);

    z-index: 9999;

    /* Flexbox para centrar el SVG perfectamente */

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    transition: all 0.3s ease;

    padding: 12px; /* Espacio interno para que el logo respire */

}



.btn-whatsapp-flotante:hover {

    background-color: #20ba5a;

    transform: scale(1.1);

    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);

}



/* Animación de pulso */

@keyframes pulse-green {

    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }

    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }

    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }

}



.btn-whatsapp-flotante {

    animation: pulse-green 2s infinite;

}







/* =========================================

   ESTILOS PARA CABECERAS MODERNAS (Marcas y Páginas)

   ========================================= */



/* Contenedor Principal */

.midispro-page-header {

    position: relative;

    /* CORRECCIÓN: Empujamos el contenido hacia abajo para que no quede oculto tras el menú */

    margin-top: 180px; /* Ajusta este número si sigue chocando (prueba 200px o 150px) */

   

    padding: 60px 0 40px 0;

    background-color: #f9f9f9;

    border-bottom: 1px solid #e5e5e5;

    text-align: center;

   

    /* Aseguramos que el contenido tenga prioridad visual */

    z-index: 1;

    display: block;

    clear: both;

}



/* Capa de Imagen de Fondo */

.header-bg-image {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-size: cover;

    background-position: center;

    z-index: 1;

    opacity: 0.6; /* Qué tanto se ve la imagen tras el color */

    filter: grayscale(100%); /* (Opcional) Hace la foto blanco y negro para que sea elegante */

}



/* Capa de Color (Degradado Rojo Midispro) */

.header-overlay {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    z-index: 2;

    /* Degradado de Rojo Intenso a Vino Oscuro */

    background: linear-gradient(135deg, rgba(200, 25, 30, 0.85) 0%, rgba(60, 10, 15, 0.95) 100%);

}



/* Asegura que el texto esté encima del fondo */

.relative-z {

    position: relative;

    z-index: 3;

}



/* Título Principal */

.page-title-moderno {

    color: #fff;

    font-family: 'Montserrat', 'Helvetica', sans-serif; /* Tu fuente principal */

    font-weight: 800;

    font-size: 3.2rem;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin: 0 0 15px 0;

    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);

}



/* Subtítulo */

.page-subtitle-moderno {

    color: rgba(255, 255, 255, 0.9);

    font-size: 1.2rem;

    font-weight: 300;

    max-width: 700px;

    margin: 0 auto 20px auto;

    line-height: 1.5;

}



/* Migas de Pan (Inicio > Marcas...) */

.breadcrumbs-moderno {

    font-size: 0.9rem;

    color: rgba(255, 255, 255, 0.6);

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-top: 30px;

    font-weight: 600;

}



.breadcrumbs-moderno a {

    color: #fff;

    text-decoration: none;

    border-bottom: 1px solid transparent;

    transition: all 0.3s;

}



.breadcrumbs-moderno a:hover {

    border-bottom: 1px solid #fff;

    opacity: 1;

}



.breadcrumbs-moderno i {

    margin: 0 10px;

    font-size: 0.8rem;

    opacity: 0.5;

}



/* RESPONSIVE (Para celulares) */

@media (max-width: 768px) {

    .midispro-page-header {

        padding: 60px 0 40px 0;

    }

    .page-title-moderno {

        font-size: 2.2rem;

    }

    .page-subtitle-moderno {

        font-size: 1rem;

        padding: 0 15px;

    }

}

/* ==============================================
   TIPOGRAFÍA ROBUSTA (Para igualar Marcas y Sub-marcas)
   ============================================== */
.page-title-moderno {
    color: #fff;
    font-family: 'Montserrat', 'Helvetica', sans-serif; /* Fuente robusta */
    font-weight: 800; /* Grosor Extra Bold */
    font-size: 3.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}

.page-subtitle-moderno {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Ajuste responsive para celulares */
@media (max-width: 768px) {
    .page-title-moderno { font-size: 2.2rem; }
    .page-subtitle-moderno { font-size: 1rem; padding: 0 15px; }
}

/* =======================================================
   PARCHE FINAL: TIPOGRAFÍA ROBUSTA + CENTRADO
   (Agregar al final del CSS V7)
   ======================================================= */

/* 1. TIPOGRAFÍA ROBUSTA (Para el título "Nuestras Marcas") */
.page-title-moderno {
    color: #ffffff;
    font-family: 'Montserrat', 'Helvetica', sans-serif;
    font-weight: 800 !important; /* Grosor Extra Bold */
    font-size: 3.5rem; /* Tamaño grande */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .page-title-moderno { font-size: 2.2rem; }
}

/* 2. ARREGLO DE ALINEACIÓN (Flexbox para centrar) */
.grid-marcas-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra las tarjetas en la pantalla */
    margin: 0 -15px;
}

.col-marca-item {
    width: 33.333333%; /* 3 por fila */
    padding: 15px;
    box-sizing: border-box;
    display: flex; /* Para igualar alturas */
}

/* Asegurar que la tarjeta ocupe todo el espacio */
.col-marca-item .tarjeta-marca {
    width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    .col-marca-item { width: 50%; }
}
@media (max-width: 600px) {
    .col-marca-item { width: 100%; }
}


/* =======================================================
   OPTIMIZACIÓN PARA CELULARES (MOBILE FIRST)
   Este bloque arregla los márgenes, tamaños y grids 
   específicamente para pantallas menores a 768px.
   ======================================================= */

@media (max-width: 768px) {

    /* 1. ARREGLO DEL HEADER Y MARGEN SUPERIOR */
    .cabecera-hero-marcas, 
    .midispro-page-header {
        /* Reducimos el margen superior porque el menú móvil es más chico */
        margin-top: 80px !important; 
        
        /* Reducimos la altura de la franja roja */
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        min-height: auto !important;
        
        /* Quitamos el margen negativo para que no se monte el contenido en móvil */
        margin-bottom: 0 !important;
    }

    /* 2. TIPOGRAFÍA MÓVIL (Para que no se vea gigante) */
    .page-title-moderno, 
    .titulo-hero {
        font-size: 2rem !important; /* Bajamos de 3.5rem a 2rem */
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
        padding: 0 10px !important; /* Un poco de aire a los lados */
    }

    .page-subtitle-moderno, 
    .subtitulo-hero {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        padding: 0 15px !important;
    }

    .breadcrumbs-moderno {
        margin-top: 15px !important;
        font-size: 0.8rem !important;
    }

    /* 3. CONTENEDOR BLANCO (Quitamos el efecto flotante) */
    .wrapper-marcas .main-raised {
        margin-top: 0 !important; /* Pegado a la franja roja, sin montarse */
        width: 100% !important;   /* Ocupa todo el ancho */
        box-shadow: none !important; /* Quitamos sombra para diseño más plano y limpio */
        padding: 20px 10px !important; /* Menos relleno interno */
    }

    /* 4. GRID DE MARCAS (1 Columna y Tarjetas cómodas) */
    .col-marca-item,
    .tarjeta-marca-wrapper {
        width: 100% !important; /* 1 Tarjeta por fila */
        padding: 0 0 20px 0 !important; /* Espacio vertical entre tarjetas */
        display: block !important;
    }

    .tarjeta-marca {
        /* Aseguramos que la tarjeta se vea bien y clicable */
        flex-direction: row !important; /* Opcional: Poner imagen a la izq y texto a la derecha en móvil? */
        /* Si prefieres mantener imagen arriba y texto abajo, borra la linea de arriba 'flex-direction: row' */
        padding: 20px !important;
    }
    
    /* Si decides mantener el diseño vertical (imagen arriba), ajustamos la imagen */
    .contenedor-imagen {
        height: 120px !important; /* Un poco más bajito en móvil */
        margin-bottom: 15px !important;
    }

    /* 5. ARREGLO VISOR DE PDF EN MÓVIL */
    .flipbook-wrapper {
        height: 50vh !important; /* Mitad de pantalla, suficiente para ver */
        min-height: 300px !important;
    }
    
    .visor-container-frame {
        padding: 10px !important; /* Menos marco blanco */
        margin-bottom: 40px !important;
    }

    /* 6. BOTONES */
    .btn-ver {
        width: 100% !important; /* Botón ancho fácil de tocar */
        display: block !important;
        margin-top: 10px !important;
    }
}


/* EFECTOS MÓVIL (Activados por el Script de functions.php) */
@media (max-width: 768px) {
    
    /* Efecto Tarjetas Marcas */
    .tarjeta-marca.efecto-foco-movil {
        transform: scale(1.02) !important;
        border-color: transparent !important;
        box-shadow: 0 12px 25px rgba(118, 24, 28, 0.618) !important; /* Tu sombra concho de vino */
        transition: all 0.4s ease-out;
    }
    
    /* Efecto Sub-marcas */
    .card-catalogo.efecto-foco-movil {
        transform: translateY(-5px) !important;
        box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important;
        border-color: transparent !important;
    }

    /* Efecto Home Info Box */
    .info-box.efecto-foco-movil {
        transform: translateY(-5px) !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }
    .info-box.efecto-foco-movil .icon i {
        color: #c2185b !important;
        transform: scale(1.1);
    }
}
/* =======================================================
   EFECTO AUTOMÁTICO (SCROLL) PARA ESTADÍSTICAS
   ======================================================= */

@media (max-width: 768px) {
    
    .stat-item {
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Rebote suave */
        border-radius: 15px;
        padding: 20px; /* Asegura espacio para el efecto */
        border: 1px solid transparent; /* Prepara el borde */
    }

    /* ESTADO ACTIVO (Cuando pasa por el centro) */
    .stat-item.efecto-foco-movil {
        transform: scale(1.15) !important; /* Crece un 15% */
        background: rgba(255, 255, 255, 0.15) !important; /* Fondo iluminado */
        border: 1px solid rgba(255,255,255,0.3) !important; /* Borde sutil */
        box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important;
        z-index: 10;
    }
    
    /* Hacemos que el número brille más fuerte */
    .stat-item.efecto-foco-movil .title-stat {
        text-shadow: 0 0 15px rgba(255,255,255,1);
    }
}



/* Ocultar botón de "Volver arriba" */
.hestia-scroll-to-top, 
#return-to-top,
.scroll-to-top {
    display: none !important;
}


/* =======================================================
   CORRECCIONES FINALES DE ESTILO (Bienvenida Móvil + Botones)
   ======================================================= */

/* 1. ARREGLO ESPACIO BIENVENIDA EN CELULAR */
@media (max-width: 768px) {
    /* Hacemos la sección más alta y espaciosa */
    .section-bienvenida.midispro-page-header {
        padding-top: 100px !important;    /* Mucho más aire arriba */
        padding-bottom: 100px !important; /* Mucho más aire abajo */
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Aumentamos el tamaño del título solo en esta sección */
    .section-bienvenida .title {
        font-size: 2.5rem !important; /* Letra más grande e impactante */
        line-height: 1.2 !important;
    }

    /* Aumentamos el texto de descripción */
    .section-bienvenida .description {
        font-size: 1.1rem !important;
        margin-top: 20px !important;
        opacity: 1 !important;
    }
}

/* 2. NUEVO DISEÑO DE BOTONES (SECCIÓN FINAL CTA) */

/* Estilo base para ambos botones */
.section-cta .btn {
    border-radius: 50px;       /* Redondos */
    padding: 15px 40px;        /* Grandes y cómodos */
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* Preparamos borde */
    margin: 10px;              /* Separación entre ellos */
}

/* BOTÓN 1: CONTACTAR (Sólido Blanco - Resalta más) */
.section-cta .btn-danger {
    background-color: #ffffff !important;
    color: #b71c1c !important; /* Texto rojo oscuro */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

.section-cta .btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4) !important;
    background-color: #f0f0f0 !important;
}

/* BOTÓN 2: VER CATÁLOGOS (Transparente con Borde - Elegante) */
.section-cta .btn-white {
    background-color: transparent !important;
    border: 2px solid rgba(255,255,255,0.7) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.section-cta .btn-white:hover {
    background-color: #ffffff !important;
    color: #333 !important;
    border-color: #ffffff !important;
    transform: translateY(-3px);
}

/* AJUSTE BOTONES EN CELULAR */
@media (max-width: 768px) {
    .section-cta .btn {
        display: block;        /* Uno debajo del otro */
        width: 100%;           /* Ancho completo */
        margin: 15px 0 !important; /* Separación vertical */
        padding: 18px 0;       /* Más altos para el dedo */
    }
}

/* =======================================================
   CORRECCIÓN MENÚ MÓVIL (LOGO MUY PEGADO)
   ======================================================= */

@media (max-width: 768px) {
    
    /* 1. Separar el LOGO del borde izquierdo */
    .navbar .navbar-brand {
        margin-left: 20px !important; /* Empuja el logo hacia adentro */
        padding-left: 0 !important;
        max-width: 80% !important; /* Evita que el logo sea demasiado ancho y empuje el botón */
    }

    /* 2. Separar el BOTÓN DE MENÚ (Hamburguesa) del borde derecho */
    .navbar .navbar-toggle {
        margin-right: 20px !important; /* Empuja las rayitas hacia adentro */
    }

    /* 3. Centrar verticalmente los elementos en la barra móvil */
    .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 70px; /* Altura mínima de la barra */
    }
}


/* ==========================================================================
   RESET TOTAL DE SOLAPAMIENTOS (MODO BLOQUES)
   ========================================================================== */

/* 1. EL MENÚ: Sólido, pegajoso y empuja el contenido */
.navbar, 
.navbar-default, 
.navbar-fixed-top {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    background-color: #ffffff !important; /* Siempre blanco sólido */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    z-index: 99999;
}

/* 2. EL CONTENEDOR PRINCIPAL (Quitar efecto "Flotante") */
.main, 
.main-raised, 
.wrapper {
    margin-top: 0 !important; /* Hestia suele poner -60px aquí. Lo matamos a 0. */
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    box-shadow: none !important; /* Opcional: quita la sombra para que se vea plano */
    overflow: visible !important;
}

/* 3. CABECERAS HERO (Las franjas rojas) */
.cabecera-hero-marcas, 
.header-filter, 
.page-header {
    margin-top: 0 !important;
    margin-bottom: 0 !important; /* Aquí tenías -60px. Lo eliminamos. */
    padding-top: 60px !important; /* Espacio interno normal */
    padding-bottom: 60px !important;
    min-height: auto !important; /* Que la altura la decida el contenido */
}

/* 4. EL FOOTER (Pie de página) */
.footer, 
.home .footer {
    margin-top: 0 !important; /* Aquí tenías -120px. Lo eliminamos. */
    padding-top: 50px !important;
    position: relative !important; /* Que se comporte normal */
    background-color: #1a1a1a !important; /* Forzamos color oscuro siempre */
}

/* 5. CORRECCIÓN ESPECÍFICA PARA MÓVIL */
@media (max-width: 768px) {
    
    /* Forzar que el menú móvil no tape el logo */
    .navbar .navbar-collapse {
        position: absolute;
        top: 100%; /* Empieza justo donde termina la barra blanca */
        left: 0;
        width: 100%;
        margin: 0 !important;
        background-color: #ffffff !important;
        border-top: 1px solid #eee;
    }

    /* Espaciado extra en la primera sección para que respire */
    .midispro-page-header, 
    .section-bienvenida {
        margin-top: 0 !important; /* Ya no necesitamos márgenes gigantes */
        padding-top: 40px !important;
    }
}

/* =======================================================
   PARCHE FINAL: CERO SOLAPAMIENTOS EN CELULAR (BLOCK LAYOUT)
   ======================================================= */

@media (max-width: 768px) {

    /* 1. EL MENÚ: Lo convertimos en un bloque sólido (Relative) 
       Esto obliga a todo el sitio a bajar automáticamente. */
    .navbar, 
    .navbar-fixed-top,
    .navbar-default {
        position: relative !important; /* 'Relative' es la clave: ocupa espacio físico */
        top: 0 !important;
        margin-bottom: 0 !important;
        border: none !important;
        transform: none !important; /* Anula efectos de JS de Hestia */
        height: auto !important;
        min-height: 80px !important; /* Altura mínima para que quepa el logo */
    }

    /* 2. EL DESPLEGABLE (HAMBURGUESA): Aparece DEBAJO de la barra */
    .navbar-collapse.collapse.in, 
    .navbar-collapse.collapsing,
    .navbar .navbar-collapse {
        position: absolute !important;
        top: 100% !important; /* Se pega exactamente al borde inferior del menú */
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        background-color: #ffffff !important;
        z-index: 99999 !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    /* 3. CABECERA ROJA (HERO): Eliminamos el relleno exagerado */
    /* Como el menú ya no flota encima, quitamos los 160px de relleno */
    .cabecera-hero-marcas,
    .page-header, 
    .header-filter {
        margin-top: 0 !important;
        padding-top: 40px !important; /* Relleno normal */
        padding-bottom: 40px !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* 4. CUERPO DE LA PÁGINA (MAIN RAISED): Quitamos el efecto de "subida" */
    .main, 
    .main-raised {
        margin-top: 0 !important; /* El gran culpable: lo ponemos en 0 */
        margin-bottom: 0 !important;
        padding-top: 0 !important;
    }

    /* 5. EL FOOTER: Separado del contenido */
    .footer {
        margin-top: 0 !important;
        padding-top: 40px !important;
        position: static !important; /* Comportamiento normal */
    }
    
    /* 6. CORRECCIÓN EXTRA PARA LA HOME (Si usas Slider) */
    .home .header-filter {
        margin-top: 0 !important;
    }
    
    /* Aseguramos que el cuerpo empiece limpio */
    body {
        padding-top: 0 !important; 
    }
}