/* Importar Montserrat si no se hace directamente en el HTML */
/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap'); */

/* Variables CSS para facilitar la personalización de colores */
:root {
    /* PRIMARIA: Azul KODIQ original, es un buen color de base */
    --bs-primary: #2873DE; 
    
    /* SECUNDARIA: El AMARILLO CHILPO. Este es el alma de la web. */
    /* Lo usamos para botones importantes y para resaltar nombres de negocios. */
    --bs-secondary: #FFCC00; 

    /* DARK: Un gris casi negro para que los textos no se vean "lavados" */
    --bs-dark: #1A1A1A;

    /* LIGHT: Blanco puro para que las secciones de categorías se vean limpias */
    --bs-light: #ffffff; 
    
    --bs-white: #ffffff;
    
    /* BODY: Gris oscuro para que la descripción de los negocios sea legible */
    --bs-body: #333333; 

    /* VARIABLES DEL LOGO: Aquí es donde arreglamos el choque visual */
    /* Cambiamos el turquesa por el azul de KODIQ y el terracota por un */
    /* naranja/amarillo quemado que sí combine con el amarillo principal. */
    --color-azul-logo: #2873DE; 
    --color-amarillo-logo: #FFCC00; 
}



body {
    font-family: 'Montserrat', sans-serif;
    /* Aplicar Montserrat a todo el cuerpo */
}

/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
    font-family: 'Montserrat', sans-serif;
    /* Aplicar Montserrat a los botones */
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    border: none;
    background-color: var(--bs-primary);
    /* Usar variable */
    color: var(--bs-white);
    /* Asegurar color de texto */
}

.btn.btn-primary:hover {
    background: var(--bs-secondary);
    /* Usar variable para hover */
}

.btn.btn-secondary {
    color: var(--bs-white);
    border: none;
    background-color: var(--bs-secondary);
    /* Usar variable */
}

.btn.btn-secondary:hover {
    background: var(--bs-primary);
    /* Usar variable para hover */
}

/*** Topbar Start - REVISADO ***/
.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--color-azul-logo);
    /* Fondo azul del logo */
}

/* Estilo para los enlaces de texto (ubicación, teléfono, email, horario) */
.topbar .d-flex.flex-wrap a,
.topbar .d-flex.align-items-center>a.text-muted {
    /* Apuntamos específicamente a los 'a' con text-muted */
    color: var(--bs-white) !important;
    /* Texto blanco para todos estos enlaces */
    font-weight: 600;
    /* Negrita para el texto */
    text-decoration: none;
    /* Eliminar subrayado si lo hubiera */
}

/* Estilo para los iconos dentro de esos enlaces de texto (ubicación, teléfono, email, reloj) */
.topbar .d-flex.flex-wrap a i,
.topbar .d-flex.align-items-center>a.text-muted i {
    /* Apuntamos a los 'i' dentro de los 'a' con text-muted */
    color: var(--color-amarillo-logo) !important;
    /* Iconos amarillos */
}


/* Estilo para los botones cuadrados de redes sociales en el topbar (estos no tienen la clase text-muted) */
.topbar .btn.btn-primary.btn-square {
    background: var(--color-amarillo-logo);
    /* Fondo amarillo */
    border-color: var(--bs-white) !important;
    /* Borde blanco */
    color: var(--color-azul-logo) !important;
    /* Icono en azul */
    transition: all 0.3s ease;
}

.topbar .btn.btn-primary.btn-square:hover {
    background: var(--bs-white) !important;
    /* Fondo blanco al pasar el ratón */
    border-color: var(--color-amarillo-logo) !important;
    /* Borde amarillo al pasar el ratón */
    color: var(--color-azul-logo) !important;
    /* Icono sigue siendo azul */
}

/*** Topbar End - REVISADO ***/

/*** Navbar ***/
.sticky-top {
    transition: 1s;
}

.navbar .navbar-nav .nav-item.nav-link,
.navbar .navbar-nav .nav-link {
    color: var(--bs-dark);
    font-family: 'Montserrat', sans-serif;
    /* Aplicar Montserrat */
    font-weight: 500;
    /* Ajustar peso */
}

.navbar .navbar-nav .nav-link {
    position: relative;
    padding: 10px;
    /* font-family: "Playfair Display", serif;  <-- REMOVIDO */
    font-size: 17px;
    transition: .5s;
    z-index: 99;
}

/* Estilo para el texto del logo "MAZATLÁN WEBPLAZA SHOP" */
.navbar-brand .logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    /* Puedes ajustar el peso */
    color: var(--bs-secondary) !important;
    /* Color del texto del logo */
    font-size: 2rem;
    /* Ajusta el tamaño si es necesario */
}

/* Estilo para la imagen del logo */
.navbar-brand img {
    height: 50px;
    /* Ajusta la altura de tu logo si es necesario */
    width: auto;
    margin-right: 10px;
}

.navbar .navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar .navbar-nav .nav-item::before,
.navbar .navbar-nav .nav-item::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    border: 2px solid var(--bs-secondary);
    opacity: 0;
    transition: 0.5s;
    z-index: 2 !important;
}

.navbar .navbar-nav .nav-item::before {
    top: 0;
    left: 0;
    border-bottom: 0;
    border-right: 0;
}

.navbar .navbar-nav .nav-item::after {
    bottom: 0;
    right: 0;
    border-top: 0;
    border-left: 0;
}

.navbar .navbar-nav .nav-item:hover::after,
.navbar .navbar-nav .nav-item:hover::before,
.navbar .navbar-nav .nav-item.active::after,
.navbar .navbar-nav .nav-item.active::before {
    width: 50%;
    height: 50%;
    opacity: 1;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top .navbar .navbar-nav .nav-link:hover,
.sticky-top .navbar .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107" !important;
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
}

.navbar .navbar-toggler {
    padding: 8px 15px;
    color: var(--bs-dark);
    background: var(--bs-secondary);
}

.nav-bar .navbar-toggler {
    color: var(--bs-dark);
    box-shadow: none !important;
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light);
    transition: .5s;
    opacity: 1;
}

.navbar .nav-item .dropdown-menu {
    background: var(--bs-light);
    transition: 0.5s;
}

.navbar .nav-item .dropdown-menu .dropdown-item {
    transition: 0.5s;
}

.dropdown .dropdown-menu .dropdown-item:hover,
.dropdown .dropdown-menu .dropdown-item.active {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        margin-top: 15% !important;
        transform: rotateX(-75deg);
        transform-origin: 0 0;
        border: 0;
        transition: .5s;
        opacity: 0;
        z-index: 9;
    }
}

@media (max-width: 991px) {
    .navbar .nav-item .dropdown-menu {
        position: relative;
        margin-top: 0;
        transition: 0.5s;
    }

    .navbar .navbar-nav .nav-item::after,
    .navbar .navbar-nav .nav-item::before {
        display: none;
    }

    .navbar .navbar-nav .nav-item:hover::after,
    .navbar .navbar-nav .nav-item:hover::before,
    .navbar .navbar-nav .nav-item.active::after,
    .navbar .navbar-nav .nav-item.active::before {
        display: none;

    }

    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
    }

    .navbar .navbar-nav .nav-item {
        margin: 0;
    }

    .navbar .navbar-nav .nav-item.nav-link {
        padding: 12px 0;
    }
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .6);
}

/*** Navbar End ***/

/* --- Hero Section - Adaptación de estilos para Montserrat y consistencia --- */
.carousel-item .carousel-caption h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    /* Asegura un estilo impactante */
    /* font-size: 36px;  Esto se controla con Bootstrap display-1 si se usa */
}

.carousel-item .carousel-caption p.fs-5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    /* font-size: 15px; Esto se controla con Bootstrap fs-5 si se usa */
}

/* Si tu imagen de fondo es 'mazatlan-guerrero-fondo.jpg' asegúrate que esté en img/ */
.carousel .carousel-inner .carousel-item img {
    /* Mantenemos tus animaciones existentes si quieres, solo ajusto object-fit */
    object-fit: cover;
    animation-name: image-zoom;
    animation-duration: 10s;
    animation-delay: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    transition: 0.5s;
}

@keyframes image-zoom {
    0% {
        width: 100%;
        height: 100%;
        -webkit-filter: blur(0px);
        opacity: 1;
    }

    25% {
        width: 115%;
        height: 115%;
        -webkit-filter: blur(3px);
        opacity: 0.9;
    }

    50% {
        width: 130%;
        height: 130%;
        -webkit-filter: blur(10px);
        opacity: 0.7;
    }

    75% {
        width: 115%;
        height: 115%;
        -webkit-filter: blur(3px);
        opacity: 0.9;
    }

    100% {
        width: 100%;
        height: 100%;
        -webkit-filter: blur(0px);
        opacity: 1;
    }
}

/* --- Fin de adaptación de Hero Section --- */


/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 18, 72, 0.7), rgba(0, 18, 72, 0.7)), url(../img/carousel-2.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0 60px 0;
}

.bg-breadcrumb .breadcrumb {
    position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}

/*** Single Page Hero Header End ***/

/*** Carousel Start ***/
.carousel .carousel-inner .carousel-item {
    position: relative;
    overflow: hidden;
    height: 100vh;
}

/* El CSS del carousel-item img y @keyframes image-zoom ya estaba, lo mantengo. */
/* Es importante que tengas la imagen 'mazatlan-guerrero-fondo.jpg' en la carpeta 'img/' */

@media (min-width: 992px) {
    .carousel .carousel-inner .carousel-item img {
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 991px) {
    .carousel .carousel-inner .carousel-item {
        height: 700px;
    }

    .carousel .carousel-inner .carousel-item img {
        height: 700px;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    /* Ya modificado en el style.css de arriba para usar Montserrat directamente */
}

.carousel .carousel-inner .carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}

.carousel .carousel-inner .carousel-item .carousel-caption {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.carousel .carousel-indicators {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    z-index: 5;
}

.carousel .carousel-indicators li,
.carousel .carousel-indicators li,
.carousel .carousel-indicators li {
    margin-right: 30px !important;
    width: 10px;
    height: 10px;
    border: 6px solid var(--bs-secondary);
    background: var(--bs-white);
    transition: 0.5s;
}

.carousel .carousel-indicators li.active {
    border: 10px solid var(--bs-primary);
}

.carousel .carousel-control-prev,
.carousel .carousel-control-next {
    background: transparent;
}

.carousel .carousel-control-prev .carousel-control-prev-icon {
    position: absolute;
    left: 0;
    padding: 25px 30px;
    background: var(--bs-primary);

}

.carousel .carousel-control-next .carousel-control-next-icon {
    position: absolute;
    right: 0;
    padding: 25px 30px;
    background: var(--bs-primary);

}

.carousel .carousel-control-prev .carousel-control-prev-icon:hover,
.carousel .carousel-control-next .carousel-control-next-icon:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

/*** Carousel End ***/


/*** About Start ***/
.about .about-item-content-img {
    border: 4px solid;
    border-color: var(--bs-secondary) var(--bs-primary) var(--bs-primary) var(--bs-secondary);
}

.about .about-item-image {
    position: relative;
    background: var(--bs-light);
    background-image: url(../img/about-bg.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.about .about-item-image .img-1 {
    margin-bottom: 250px;
    margin-right: 0;
    border: 4px solid;
    border-color: var(--bs-secondary) var(--bs-light) var(--bs-light) var(--bs-secondary);
    z-index: 3;
}

.about .about-item-image .img-2 {
    margin-top: 250px;
    margin-left: 0;
    border: 4px solid;
    border-color: var(--bs-light) var(--bs-secondary) var(--bs-secondary) var(--bs-light);
    z-index: 3;
}

.about .about-item-image::before {
    width: 80%;
    height: 80%;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid;
    border-style: dotted;
    border-color: var(--bs-white);
    background: var(--bs-primary);
    z-index: 2;
}

.about .about-item-image .about-item-image-content {
    width: 55%;
    height: 55%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bs-secondary);
    border: 4px solid var(--bs-primary);
    opacity: 0.9;
    z-index: 4;
}

.about .about-item-image .about-item-image-effect {
    position: absolute;
    top: 0;
    right: 0;
}


/*** Features Start - REVISADO PARA CENTRAR EL CÍRCULO ***/
.feature .feature-item {
    position: relative;
    transition: 0.5s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bs-white);
    border: 1px solid var(--bs-light);
    border-radius: 8px;
    padding: 2.5rem !important; /* Aumenta el padding para que el contenido tenga más aire */
}
.feature .feature-item:hover {
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
    border-color: transparent;
}

/* Contenedor del icono: círculo amarillo perfecto */
.feature .feature-item .feature-img {
    background: var(--color-amarillo-logo) !important;
    border: transparent;
    transition: 0.5s;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex; /* CAMBIO CLAVE: Cambiar a 'flex' para centrarlo con 'margin: 0 auto;' */
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto; /* CAMBIO CLAVE: Centrar horizontalmente con 'margin: 0 auto;' y mantener espacio inferior */
}


/* Icono dentro del círculo */
.feature .feature-img i {
    color: var(--color-azul-logo) !important;
    font-size: 5rem !important;
    line-height: 1;
}

/* Estilo para el subtítulo "Explora Nuestra Variedad" */
.feature .text-uppercase.text-secondary.fs-5.mb-0 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--color-azul-logo) !important;
    letter-spacing: 1px;
}

/* Estilo para el título "Categorías Populares" */
.feature h2.display-4.text-capitalize.mb-3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--bs-dark);
}

/* Color y fuente del título de la categoría (Comida y Bebidas, etc.) */
.feature .feature-item a.h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--bs-dark);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 15px; /* Añade un poco más de espacio entre el título y la descripción */
}

.feature .feature-item a.h4:hover {
    color: var(--color-amarillo-logo) !important;
}

/* Color y fuente de la descripción de la categoría */
.feature .feature-item p.mb-0 {
    font-family: 'Open Sans', sans-serif;
    color: var(--bs-body);
    line-height: 1.6;
    font-size: 0.95rem;
}

.feature .feature-item:hover .feature-img {
    border: 1px solid var(--color-azul-logo);
    background: var(--bs-white) !important;
}


/* Aplica Montserrat globalmente al body y asegúrate de que se herede */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--bs-body);
}

/* ... (resto de tu CSS) ... */

/*** Services Start - MEJORADO PARA IMÁGENES CUADRADAS ***/
.service .service-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transition: 0.5s;
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* Contenedor de imagen cuadrada */
.service .service-item .service-img {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Esto crea un contenedor cuadrado */
    position: relative;
    overflow: hidden;
}

.service .service-item .service-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el área sin distorsión */
    transition: 0.5s;
}

.service .service-item:hover .service-img img {
    transform: scale(1.1); /* Zoom al pasar el ratón */
}

/* El after es el overlay oscuro en hover */
.service .service-item::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
    z-index: 2;
    background: rgba(0, 0, 0, .7); /* Overlay más oscuro para el contraste con el texto blanco */
}

.service .service-item:hover:after {
    height: 100%;
}

/* Contenido que aparece al hacer hover (Círculo, Título, Descripción, Botón) */
.service .service-item .service-content {
    position: absolute;
    width: 100%;
    height: auto;
    top: 50%; 
    left: 0; 
    transform: translateY(-50%);
    transition: 0.5s;
    opacity: 0;
    z-index: 3;
    padding: 1rem; /* Asegura un buen padding interno */
}

.service .service-item:hover .service-content {
    opacity: 1;
}

/* Estilo para el Círculo de Icono en el hover */
.service .service-item .service-content .bg-secondary.btn-xl-square {
    background: var(--color-amarillo-logo) !important; /* Fondo amarillo */
    border-radius: 50%; /* ¡Esto es clave para el círculo! */
    width: 120px; /* Tamaño del círculo */
    height: 120px; /* Tamaño del círculo */
    display: flex; /* Para centrar el icono */
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto; /* Centra y da margen inferior */
}
.service .service-item .service-content .bg-secondary.btn-xl-square i {
    color: var(--color-azul-logo) !important; /* Icono azul */
}

/* Título de la tienda en el hover */
.service .service-item .service-content a.d-block.fs-4 {
    color: var(--bs-white); /* Título en blanco */
    font-family: 'Montserrat', sans-serif; /* Aplica Montserrat */
    font-weight: 700;
    transition: 0.3s;
    font-size: 1.8rem !important; /* Un poco más grande para destacar */
}

.service .service-item .service-content a.d-block.fs-4:hover {
    color: var(--color-amarillo-logo); /* Título en amarillo al hacer hover */
}

/* Párrafo de descripción en el hover */
.service .service-item .service-content p.text-white.mb-4 {
    font-family: 'Open Sans', sans-serif; /* Puedes usar Open Sans para descripciones, o Montserrat */
    font-weight: 400;
    margin-bottom: 1.5rem !important;
}

/* Botón 'Ver Menú' en el hover */
.service .service-item .service-content a.btn.btn-secondary {
    background: var(--color-azul-logo) !important; /* Botón azul */
    color: var(--bs-white) !important;
    border: 2px solid var(--color-azul-logo);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem; /* Ajusta el padding del botón */
    border-radius: 5px; /* Ligeramente redondeado */
}

.service .service-item .service-content a.btn.btn-secondary:hover {
    background: var(--color-amarillo-logo) !important; /* Botón amarillo en hover */
    color: var(--color-azul-logo) !important;
    border: 2px solid var(--color-amarillo-logo);
}

/* Estilos para la barra inferior (service-tytle) que se desplaza */
.service .service-item .service-tytle {
    position: absolute;
    width: 100%;
    height: 80px; 
    bottom: 0; 
    right: 0;
    background: var(--bs-white);
    display: flex;
    align-items: center; /* Centra verticalmente los elementos dentro */
    justify-content: space-between; /* Empuja el título a la izquierda y el icono a la derecha */
    transition: 0.5s;
    z-index: 3;
    padding-left: 1.5rem; /* Padding a la izquierda para el título */
    padding-right: 0.5rem; /* Padding a la derecha para el icono */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.03); /* Sombra sutil en la parte inferior */
}

.service .service-item:hover .service-tytle {
    margin-right: -100%; /* El efecto de hover original del template */
}

.service .service-item .service-tytle h4 {
    font-family: 'Montserrat', sans-serif; /* Aplica Montserrat */
    font-weight: 600;
    color: var(--bs-dark);
    font-size: 1.3rem; /* Tamaño adecuado para el título inferior */
    margin-bottom: 0; /* Quita el margen inferior por defecto de h4 */
}

/* Icono circular en la barra inferior */
.service .service-item .service-tytle .btn-xl-square {
    background: var(--color-amarillo-logo) !important; /* Fondo amarillo en el ícono de la barra inferior */
    border-radius: 50%; /* Asegura que la forma del icono inferior sea circular */
    width: 60px; /* Tamaño del círculo inferior */
    height: 60px; /* Tamaño del círculo inferior */
    display: flex;
    align-items: center;
    justify-content: center;
}
.service .service-item .service-tytle .btn-xl-square i {
    color: var(--color-azul-logo) !important; /* Icono azul en la barra inferior */
    font-size: 2rem !important; /* Ajusta el tamaño del icono */
}

/* Estilos para el texto de Categoría debajo de la tarjeta */
.service .service-category-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    padding: 0.25rem 0; /* Padding mínimo */
    margin-top: 1.5rem !important;
    color: var(--color-azul-logo) !important;
    font-weight: 600 !important;
    /* Asegurar que el texto se posicione correctamente bajo la tarjeta */
    position: absolute; /* Permite posicionar respecto al contenedor principal */
    width: 100%;
    text-align: center;
    bottom: -55px; /* Posicionarlo debajo de la tarjeta */
    left: 0;
    z-index: 0; /* Que no interfiera con el contenido de la tarjeta */
}

/* Ajuste para el col-lg-4 en el service para que funcione el absolute positioning */
.service .col-lg-4[data-category] {
    position: relative; /* Clave para que el 'position: absolute' de service-category-tag funcione */
    margin-bottom: 60px; /* Espacio adicional para la etiqueta de categoría */
}

/* Ajuste específico para el botón "Ver Todas las Tiendas" para que no se separe demasiado */
.service .col-12.text-center {
    margin-top: 20px;
}

/* Estilos para el título principal y subtítulo de la sección */
.service .text-uppercase.text-secondary.fs-5.mb-0 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--color-azul-logo) !important;
    letter-spacing: 1px;
}

.service h2.display-4.text-capitalize.mb-3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--bs-dark);
}

/* Estilo para el botón general de "Ver Todas las Tiendas" */
.service .btn.btn-primary.py-3.px-5.mt-4 {
    background: var(--color-azul-logo) !important;
    border: 2px solid var(--color-azul-logo);
    color: var(--bs-white) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.service .btn.btn-primary.py-3.px-5.mt-4:hover {
    background: var(--color-amarillo-logo) !important;
    border-color: var(--color-amarillo-logo);
    color: var(--color-azul-logo) !important;
}

/* Responsividad adicional para pantallas pequeñas */
@media (max-width: 768px) {
    .service .service-item .service-content {
        padding: 0.5rem;
    }
    
    .service .service-item .service-content .bg-secondary.btn-xl-square {
        width: 100px;
        height: 100px;
    }
    
    .service .service-item .service-content a.d-block.fs-4 {
        font-size: 1.5rem !important;
    }
    
    .service .service-item .service-tytle h4 {
        font-size: 1.1rem;
    }
}

/*** Fact Counter ***/
.counter {
    background: linear-gradient(rgba(0, 18, 72, 0.9), rgba(0, 22, 89, 1)), url(../img/counter.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.counter .counter-btn:hover {
    background: var(--bs-white);
    color: var(--bs-secondary);
}

.counter .counter-box {
    padding-right: 20px;
    padding-bottom: 20px;
}

.counter .counter-item {
    width: 100%;
    height: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.counter .counter-item .counter-item-style {
    position: absolute;
    width: calc(100% - 20px);
    height: 100%;
    top: 0;
    left: 0;
    background: var(--bs-secondary);
    z-index: 2;
}

.counter .counter-item .counter-item-inner {
    position: relative;
    top: 20px;
    left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    background: var(--bs-white);
    box-shadow: 20px 20px rgba(255, 94, 21, 1);
    z-index: 3;
}

.counter .counter-item .counter-counting {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-primary);
    font-size: 30px;
}

/*** Fact Counter ***/

/*** Projects Start ***/
.project .project-item .project-img {
    position: relative;
}

.project .project-item .project-img::after {
    content: "";
    position: absolute;
    width: 70%;
    height: 70%;
    top: 0;
    left: 0;
    background: var(--bs-secondary);
    z-index: -1;
}

.project .project-item .project-content a.h4 {
    transition: 0.5s;
}

.project .project-item:hover .project-content a.h4:hover {
    color: var(--bs-secondary);
}

/*** Projects End ***/


/*** Team Start ***/
.team .team-item {
    position: relative;
    z-index: 1;
}

.team .team-item .team-img {
    position: relative;
    overflow: hidden;
}

.team .team-item .team-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .2);
    transition: 0.5s;
    z-index: 2;

}

.team .team-item:hover .team-img::after {
    height: 100%;
}

.team .team-item .team-img .team-icon {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    transform: scale(-1);
    margin-bottom: 100%;
    background: transparent;
    transition: 0.5s;
    opacity: 0;
    z-index: 5;

}

.team .team-item:hover .team-img .team-icon {
    transform: scale(1);
    margin-bottom: 0;
    opacity: 1;
}

.team .team-item .team-border-style-1,
.team .team-item .team-border-style-2 {
    width: 50%;
    height: 50%;
    position: absolute;
    background: var(--bs-secondary);
    transition: 0.5s;
    z-index: -1;
}

.team .team-item .team-border-style-1 {
    top: 0;
    left: 0;
}

.team .team-item .team-border-style-2 {
    right: 0;
    bottom: 0;
}

.team .team-item .team-border-style-3,
.team .team-item .team-border-style-4 {
    width: 0;
    height: 0;
    position: absolute;
    background: var(--bs-secondary);
    transition: 0.5s;
    z-index: -1;
}

.team .team-item .team-border-style-3 {
    top: 0;
    right: 0;
}

.team .team-item .team-border-style-4 {
    left: 0;
    bottom: 0;
}

.team .team-item:hover .team-border-style-1,
.team .team-item:hover .team-border-style-2 {
    width: 0%;
    height: 0%;
}

.team .team-item:hover .team-border-style-3,
.team .team-item:hover .team-border-style-4 {
    width: 50%;
    height: 50%;
}

/*** Team End ***/

/*** Blog Start ***/
.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.2);
}

.blog .blog-item .blog-content {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.blog .blog-item .blog-content a {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-content a:hover {
    color: var(--bs-secondary);
}

/*** Blog End ***/

/*** testimonial Start ***/
.testimonial .owl-nav .owl-prev {
    position: absolute;
    top: -58px;
    right: 0;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    transition: 0.5s;
}

.testimonial .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    right: 88px;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    transition: 0.5s;
}

.testimonial .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial-carousel .owl-dots {
    display: flex;
    justify-content: center;
    margin-left: 20px;
    margin-top: 20px;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    border: 1px solid var(--bs-secondary);
    background: var(--bs-primary);
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 20px;
    height: 20px;
    border: 1px solid var(--bs-primary);
    background: var(--bs-secondary) !important;
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot span {
    position: relative;
    margin-top: 50%;
    margin-left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.testimonial-carousel .owl-dots .owl-dot span::after {
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-white);
}

@media (max-width: 992px) {
    .owl-carousel.testimonial-carousel {
        padding-top: 30px;
    }

    .testimonial .owl-nav .owl-prev,
    .testimonial .owl-nav .owl-next {
        top: -30px;
    }
}

/*** testimonial End ***/

/*** Contact Start ***/
.contact .contact-map {
    position: relative;
    overflow: hidden;
    padding: 20px;
    z-index: 1;
}

.contact .contact-map::before {
    content: "";
    width: 70%;
    height: 70%;
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--bs-primary);
    z-index: -1;
}

.contact .contact-map::after {
    content: "";
    width: 70%;
    height: 70%;
    position: absolute;
    top: 0;
    right: 0;
    background: var(--bs-secondary);
    z-index: -1;
}

/*** Contact End ***/

/* Footer Styles - Versión Mejorada */
.footer-main {
    background: linear-gradient(135deg, var(--bs-dark) 0%, #1a1a1a 100%);
    font-family: 'Montserrat', sans-serif;
    padding: 60px 0 0;
    border-top: 4px solid var(--color-amarillo-logo);
}

.footer-main .footer-item h4 {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--bs-white);
    position: relative;
    padding-bottom: 10px;
}

.footer-main .footer-item h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--color-amarillo-logo);
}

.footer-main .footer-item p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: #b0b0b0;
    font-size: 0.95rem;
}

.footer-main .footer-item a {
    color: #d1d1d1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-main .footer-item a:hover {
    color: var(--color-amarillo-logo);
    transform: translateX(8px);
}

.footer-main .footer-item a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
}

/* WhatsApp Button - Diseño Premium */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: white !important;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none !important;
    font-size: 0.95rem;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white !important;
}

.whatsapp-btn i {
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Social Media Icons - Más Estilizados */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.4s ease;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.social-icons a:hover::before {
    left: 100%;
}

.social-icons a:hover {
    background: var(--color-amarillo-logo);
    transform: translateY(-5px) scale(1.1);
    border-color: var(--color-amarillo-logo);
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.3);
}

.social-icons a i {
    font-size: 1.3rem;
    color: white;
    z-index: 2;
    position: relative;
}

/* Efectos específicos para cada red social */
.social-icons a:hover i.fa-facebook-f {
    color: #1877F2;
}

.social-icons a:hover i.fa-twitter {
    color: #1DA1F2;
}

.social-icons a:hover i.fa-instagram {
    color: #E4405F;
}

.social-icons a:hover i.fa-linkedin-in {
    color: #0A66C2;
}

/* Footer Bottom - Diseño Elegante */
.footer-bottom {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom span,
.footer-bottom p {
    color: #a0a0a0 !important;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #c0c0c0 !important;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--color-amarillo-logo) !important;
    transform: none;
}

/* Logo Kodiq - Más Grande y Sin Filtros */
.kodiq-logo {
    height: 35px !important;
    margin-right: 10px;
    transition: all 0.3s ease;
    /* Se removió el filter para mostrar el color original */
}

.kodiq-logo:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-main {
        text-align: center;
        padding: 40px 0 0;
    }
    
    .footer-main .footer-item h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-main .footer-item a:hover {
        transform: none;
    }
    
    .social-icons {
        justify-content: center;
        gap: 12px;
    }
    
    .social-icons a {
        width: 44px;
        height: 44px;
    }
    
    .footer-bottom .text-md-start,
    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .footer-main .footer-item {
        margin-bottom: 30px;
    }
    
    .whatsapp-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
    }
    
    .social-icons a i {
        font-size: 1.1rem;
    }
    
    .kodiq-logo {
        height: 30px !important;
    }
}

/* Copyright Section */
.copyright {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright span,
.copyright p {
    color: #cbd5e0 !important;
    margin-bottom: 0;
}

.copyright a {
    color: #cbd5e0 !important;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
}

.copyright a:hover {
    color: var(--color-amarillo-logo) !important;
    transform: none;
}

/* Logo Kodiq más grande */
.copyright img {
    height: 35px !important;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.copyright img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer a:hover {
        transform: none;
    }
    
    .footer-btn {
        justify-content: center;
    }
    
    .copyright .text-md-start,
    .copyright .text-md-end {
        text-align: center !important;
    }
}

/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark);
}

/*** copyright end ***/

/* Carrusel de Categorías en Directorio */
.category-item {
    transition: all 0.3s ease;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eee !important;
}

.category-item:hover {
    background: #8B0000; /* Rojo Chilpo */
    border-color: #8B0000 !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-item:hover p, 
.category-item:hover i {
    color: #ffffff !important;
}

/* Ajuste de flechas de navegación Owl */
.category-carousel .owl-nav button {
    background: none !important;
    color: #8B0000 !important;
}

.category-carousel .owl-nav .owl-prev,
.category-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.category-carousel .owl-prev { left: -40px; }
.category-carousel .owl-next { right: -40px; }
/* ===== Home UX: categor�as + negocios (m�vil 2 columnas) ===== */
.home-cat-card {
    padding: 1rem 0.75rem !important;
    border-radius: 12px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    background: #fff;
}
.home-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(26, 54, 93, 0.12);
    border-color: transparent !important;
}
.home-cat-card .home-cat-icon,
.feature .feature-item .home-cat-icon.feature-img {
    width: 64px !important;
    height: 64px !important;
    margin-bottom: 0.75rem !important;
    padding: 0 !important;
}
.home-cat-card .home-cat-icon i,
.feature .feature-img.home-cat-icon i {
    font-size: 1.65rem !important;
}
.home-cat-title {
    font-size: 0.92rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em;
}
.home-cat-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.75rem !important;
    line-height: 1.35;
}
@media (max-width: 575.98px) {
    .home-cat-desc { display: none; }
    .home-cat-card { padding: 0.85rem 0.5rem !important; }
    .home-cat-title { font-size: 0.82rem; min-height: 2.1em; }
}

.home-biz-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}
.home-biz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(26, 54, 93, 0.14);
}
.home-biz-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #e8eef5 0%, #d5dde8 100%);
}
.home-biz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.home-biz-card:hover .home-biz-media img {
    transform: scale(1.06);
}
.home-biz-badge {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--color-amarillo-logo, #f6c344);
    color: var(--color-azul-logo, #1a365d);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.home-biz-body {
    padding: 0.85rem 0.9rem 1rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.home-biz-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-biz-desc {
    flex: 1 1 auto;
}
.home-biz-cta {
    align-self: flex-start;
    margin-top: auto;
}
@media (max-width: 575.98px) {
    .home-biz-title { font-size: 0.82rem; }
    .home-biz-body { padding: 0.65rem 0.65rem 0.85rem; }
    .home-biz-cta { font-size: 0.75rem; padding: 0.25rem 0.55rem; }
}

/* ===== Overflow m�vil + m�scara service-item en grid ===== */
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    position: relative;
}
.container,
.container-fluid {
    max-width: 100%;
}
.carousel,
.carousel-inner,
.carousel-item {
    max-width: 100%;
    overflow: hidden;
}
.carousel .carousel-indicators li {
    margin-right: 10px !important;
}
@media (max-width: 991.98px) {
    .carousel .carousel-indicators {
        margin-bottom: 16px;
        flex-wrap: wrap;
        gap: 6px;
        padding: 0 12px;
    }
    .carousel .carousel-indicators li {
        margin-right: 6px !important;
    }
    .carousel-item .carousel-caption {
        padding-left: 12px !important;
        padding-right: 12px !important;
        left: 0 !important;
        right: 0 !important;
        max-width: 100%;
    }
    .carousel-item .carousel-caption h1 {
        font-size: clamp(1.35rem, 6vw, 2rem) !important;
        word-break: break-word;
    }
    .carousel .carousel-control-prev,
    .carousel .carousel-control-next {
        width: 12%;
    }
}

/* Tap / hover mascara en destacados y recientes */
.home-destacados-grid .home-service-card.is-active::after,
.home-destacados-grid .home-service-card:focus-within::after,
.home-recientes-grid .home-service-card.is-active::after,
.home-recientes-grid .home-service-card:focus-within::after {
    height: 100%;
}
.home-destacados-grid .home-service-card.is-active .service-content,
.home-destacados-grid .home-service-card:focus-within .service-content,
.home-recientes-grid .home-service-card.is-active .service-content,
.home-recientes-grid .home-service-card:focus-within .service-content {
    opacity: 1;
}
.home-destacados-grid .home-service-card.is-active .service-tytle,
.home-destacados-grid .home-service-card:focus-within .service-tytle,
.home-recientes-grid .home-service-card.is-active .service-tytle,
.home-recientes-grid .home-service-card:focus-within .service-tytle {
    margin-right: 0 !important;
    opacity: 0;
    pointer-events: none;
}

/* ===== Uniformidad grids home (fix overflow) ===== */
.home-cats-grid > [class*='col-'],
.home-destacados-grid > [class*='col-'],
.home-recientes-grid > [class*='col-'] {
    min-width: 0;
    max-width: 100%;
}
.home-cat-card {
    min-height: 148px;
    width: 100%;
    box-sizing: border-box;
}
.home-cat-title {
    width: 100%;
    min-height: 2.5em;
}
@media (min-width: 768px) {
    .home-cat-card { min-height: 200px; }
}
.home-biz-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.home-biz-media {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}
.home-biz-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-biz-badge {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
    right: 0.45rem;
    bottom: 0.45rem;
}
.home-recientes-section img {
    max-width: 100%;
    height: auto;
}
.home-recientes-section .home-biz-media img {
    height: 100%;
}

/* ===== Overlay home: Destacados + Reci�n (iconos visibles, 2 cols m�vil) ===== */
.home-destacados-grid .home-service-card,
.home-recientes-grid .home-service-card {
    min-width: 0;
    max-width: 100%;
    height: auto !important;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.home-destacados-grid .service-item .service-img,
.home-recientes-grid .service-item .service-img {
    border-radius: 12px 12px 0 0;
}

.home-destacados-grid .service-item .service-tytle,
.home-recientes-grid .service-item .service-tytle {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    width: 100%;
    height: 54px;
    margin: 0 !important;
    padding: 0 0.45rem 0 0.7rem !important;
    background: #fff;
    border-top: 1px solid #eef2f7;
    border-radius: 0 0 12px 12px;
    box-shadow: none;
    overflow: visible;
    z-index: 3;
}

.home-destacados-grid .service-item .service-tytle h4,
.home-destacados-grid .service-item .service-tytle .h6,
.home-recientes-grid .service-item .service-tytle h4,
.home-recientes-grid .service-item .service-tytle .h6 {
    font-size: 0.86rem !important;
    line-height: 1.2;
    max-width: calc(100% - 48px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-destacados-grid .service-item .service-tytle .btn-xl-square,
.home-recientes-grid .service-item .service-tytle .btn-xl-square {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    flex-shrink: 0;
    margin: 0 !important;
    background: #ffcc00 !important;
}

.home-destacados-grid .service-item .service-tytle .btn-xl-square i,
.home-recientes-grid .service-item .service-tytle .btn-xl-square i {
    font-size: 0.9rem !important;
    color: #001659 !important;
}

.home-destacados-grid .home-service-card.is-active::after,
.home-destacados-grid .home-service-card:focus-within::after,
.home-destacados-grid .home-service-card:hover::after,
.home-recientes-grid .home-service-card.is-active::after,
.home-recientes-grid .home-service-card:focus-within::after,
.home-recientes-grid .home-service-card:hover::after {
    height: 100%;
    border-radius: 12px;
}

.home-destacados-grid .home-service-card.is-active .service-content,
.home-destacados-grid .home-service-card:focus-within .service-content,
.home-destacados-grid .home-service-card:hover .service-content,
.home-recientes-grid .home-service-card.is-active .service-content,
.home-recientes-grid .home-service-card:focus-within .service-content,
.home-recientes-grid .home-service-card:hover .service-content {
    opacity: 1;
}

.home-destacados-grid .home-service-card.is-active .service-tytle,
.home-destacados-grid .home-service-card:focus-within .service-tytle,
.home-destacados-grid .home-service-card:hover .service-tytle,
.home-recientes-grid .home-service-card.is-active .service-tytle,
.home-recientes-grid .home-service-card:focus-within .service-tytle,
.home-recientes-grid .home-service-card:hover .service-tytle {
    margin-right: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.home-destacados-grid > [class*='col-'],
.home-recientes-grid > [class*='col-'] {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .home-destacados-grid > .col-6,
    .home-recientes-grid > .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
    }

    .home-destacados-grid .service-item .service-tytle,
    .home-recientes-grid .service-item .service-tytle {
        height: 48px;
        padding-left: 0.5rem !important;
        padding-right: 0.35rem !important;
    }

    .home-destacados-grid .service-item .service-tytle h4,
    .home-destacados-grid .service-item .service-tytle .h6,
    .home-recientes-grid .service-item .service-tytle h4,
    .home-recientes-grid .service-item .service-tytle .h6 {
        font-size: 0.72rem !important;
        max-width: calc(100% - 40px);
    }

    .home-destacados-grid .service-item .service-tytle .btn-xl-square,
    .home-recientes-grid .service-item .service-tytle .btn-xl-square {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px;
    }

    .home-destacados-grid .service-item .service-tytle .btn-xl-square i,
    .home-recientes-grid .service-item .service-tytle .btn-xl-square i {
        font-size: 0.8rem !important;
    }

    .home-destacados-grid .service-item .service-content .bg-secondary.btn-xl-square,
    .home-recientes-grid .service-item .service-content .bg-secondary.btn-xl-square {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 0.4rem !important;
    }

    .home-destacados-grid .service-item .service-content a.d-block.fs-5,
    .home-recientes-grid .service-item .service-content a.d-block.fs-5 {
        font-size: 0.82rem !important;
        line-height: 1.2;
    }

    .home-destacados-grid .service-item .service-content .btn,
    .home-recientes-grid .service-item .service-content .btn {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.55rem !important;
    }
}


/* CTA registro: alto contraste */
.home-cta-register {
    background: linear-gradient(135deg, #12263a 0%, #1a365d 55%, #0f766e 100%);
    color: #ffffff;
}
.home-cta-title {
    color: #ffffff !important;
    font-weight: 800;
}
.home-cta-text {
    color: rgba(255, 255, 255, 0.92) !important;
}
.home-cta-text strong {
    color: #f6c344;
}
.home-cta-btn-primary {
    background: #f6c344 !important;
    border: 2px solid #f6c344 !important;
    color: #12263a !important;
}
.home-cta-btn-primary:hover {
    background: #ffd666 !important;
    border-color: #ffd666 !important;
    color: #0b1724 !important;
}
.home-cta-btn-secondary {
    background: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}
.home-cta-btn-secondary:hover {
    background: #ffffff !important;
    color: #12263a !important;
}
