.btn-brochure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-width: 150px;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #1453a0, #0b3f7a);
    color: #ffffff !important;
    border: none;
    text-decoration: none !important;
    box-shadow: 0 12px 25px rgba(11, 63, 122, 0.45);
    transition: all 0.25s ease;
}

.btn-brochure:hover {
    background: linear-gradient(135deg, #0b3f7a, #062c55);
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 40px rgba(11, 63, 122, 0.6);
}

.btn-brochure:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-brochure i {
    font-size: 17px;
}

@media (max-width: 575px) {
    .btn-brochure {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }
}

.image-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.image-zoom-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-zoom-content img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    cursor: grab;
}

/* BOTONES */
.zoom-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.zoom-controls button {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}

.zoom-controls button:hover {
    background: #0d6efd;
}

/* ICONO LUPA SOBRE IMAGEN */
.zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
}


html,
body {
    font-family: 'Montserrat', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

p,
a,
li,
span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    display: none;
}

/* Mostrar submenú al hover */
.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

/* Evita que Bootstrap muestre todo */
.dropdown-menu .dropdown-menu {
    display: none;
}

/* Submenú */
.dropdown-submenu {
    position: relative;
}

/* Submenú oculto por defecto */
.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    border-radius: 6px;
    min-width: 220px;
}

/* Mostrar SOLO al hover */
.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

/* Flecha visual */
.submenu-arrow {
    float: right;
    font-weight: bold;
    opacity: 0.6;
}

/* Hover elegante */
.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Mobile: no mostrar submenú automático */
@media (max-width: 991px) {
    .dropdown-submenu>.dropdown-menu {
        left: 0;
        margin-left: 0;
    }
}

.brochure-btn {
    border: 1.5px solid #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Hover elegante (mismo concepto que login) */
.brochure-btn:hover {
    background-color: #ffffff !important;
    color: rgb(20, 85, 160) !important;
    border-color: #ffffff !important;
}

/* Icono animado */
.brochure-icon {
    transition: transform 0.35s ease;
}

/* Efecto descarga */
.brochure-btn:hover .brochure-icon {
    transform: translateY(3px);
}

/* Quitar pulso al hover (detalle PRO) */
.brochure-btn:hover {
    animation-play-state: paused;
}

/* Icono descarga */
.topbar .brochure-icon {
    transition: transform 0.3s ease;
}

/* Movimiento del icono */
.topbar .brochure-btn:hover .brochure-icon {
    transform: translateY(4px);
}

/* Animación pulse visible */
.animate__pulse {
    animation-duration: 1.8s;
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 9997;
}

.whatsapp-btn {
    width: 65px;
    height: 65px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px; 
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.cart-btn {
    width: 65px;
    height: 65px;
    background: rgb(20, 85, 160);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.cart-btn span {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: #fff;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.cart-item img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    background: #f4f4f4;
    border-radius: 6px;
}

.cart-float {
    position: fixed;
    bottom: 25px;
    right: 120px;
    z-index: 9998;
}

.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 9999;
}

.whatsapp-btn:hover {
    background-color: #1ebe5d;
    color: #ffffff !important;
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn::after {
    content: "¿Necesitas asesoría personalizada? ✅"; 
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    background-color: #ffffff;
    color: #333333;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-family: sans-serif;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.whatsapp-btn::before {
    content: "";
    position: absolute;
    right: 72px; 
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1); 
}

.whatsapp-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .whatsapp-btn::after {
        white-space: normal;
        width: 160px;
        text-align: center;
        font-size: 13px; 
        padding: 8px 12px; 
        line-height: 1.3; 
        right: 75px;
    }
}

/*** Contenedor del Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out, visibility 0s linear 0.6s;
    z-index: 99999;
    /* Fondo blanco semitransparente con desenfoque (estilo cristal) */
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px); 
}

#spinner.show {
    transition: opacity 0.4s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Spinner Profesional (Doble Anillo) ***/
.custom-spinner {
    width: 3.5rem;
    height: 3.5rem;
    border: 4px solid rgba(0, 0, 0, 0.05); 
    border-top-color: currentColor; 
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite; 
    position: relative;
}

.custom-spinner::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 3px solid rgba(0, 0, 0, 0.05);
    border-bottom-color: currentColor;
    border-radius: 50%;
    animation: spinReverse 1.2s linear infinite;
    opacity: 0.7;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}
/*** fin de los estilos del Spinner ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.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;
}

.btn.btn-primary:hover {
    background: var(--bs-secondary);
}

.btn.btn-secondary {
    color: var(--bs-white);
    border: none;
}

.btn.btn-secondary:hover {
    background: var(--bs-primary);
}

/*** Topbar Start ***/
.topbar {
    padding: 2px 10px 2px 20px;
    background: rgb(107, 179, 255) !important;
}

/*** Topbar End ***/

/*** Navbar ***/
.sticky-top {
    transition: 1s;
}

.navbar .navbar-nav .nav-item.nav-link,
.navbar .navbar-nav .nav-link {
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link {
    position: relative;
    padding: 10px;
    font-weight: 400;
    font-family: "Montserrat", serif;
    font-size: 17px;
    transition: .5s;
    z-index: 99;
}

.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;
}

/* BASE DEL LINK */
.navbar .navbar-nav .nav-link {
    position: relative;
    color: #fff;
}

/* LINEAS */
.navbar .navbar-nav .nav-link::before,
.navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
}

/* ESQUINA SUPERIOR */
.navbar .navbar-nav .nav-link::before {
    top: 0;
    left: 0;
    border-top-color: #fff;
    border-left-color: #fff;
}

/* ESQUINA INFERIOR */
.navbar .navbar-nav .nav-link::after {
    bottom: 0;
    right: 0;
    border-bottom-color: #fff;
    border-right-color: #fff;
}

/* HOVER / ACTIVO */
.navbar .navbar-nav .nav-link:hover::before,
.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::before,
.navbar .navbar-nav .nav-link.active::after {
    width: 50%;
    height: 50%;
    opacity: 1;
}

.navbar i,
.navbar .fa,
.navbar .fas {
    color: #ffffff;
}

#top .navbar {
    background-color: rgb(20, 83, 160) !important;
}

#top .navbar .nav-link {
    color: #ffffff !important;
    font-weight: 700;
    transition: color 0.3s ease;
}

#top .navbar .nav-link:hover,
#top .navbar .nav-link.active {
    color: rgb(255, 255, 255) !important;
}


#top .navbar .btn.btn-secondary {
    background-color: rgb(20, 85, 160) !important;
    color: #ffffff !important;
    font-weight: 700;
    border: 2px solid rgb(255, 255, 255) !important;
    transition: all 0.3s ease;
}

/* Hover botón Iniciar Sesión (inverso) */
#top .navbar .btn.btn-secondary:hover {
    background-color: #ffffff !important;
    color: rgb(20, 85, 160) !important;
    border-color: rgb(20, 85, 160) !important;
}

/*AQUI TERMINA, SI VAS A BORRAR QUE SEA HASTA AQUI*/

.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: "Montserrat", serif;
    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;
    }
}

/*** Navbar End ***/

/*** 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/banner005.jpeg);
    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: 666px !important;
}

/* IMAGEN: ancho completo, altura original */
.carousel .carousel-inner .carousel-item img {
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    display: block;
}

.carousel .carousel-inner .carousel-item::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
}

.carousel .carousel-inner .carousel-item .carousel-caption {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    padding: 80px 20px; 
}

@media (max-width: 576px) {
    .carousel-item .carousel-caption h1 {
        font-size: 36px;
    }

    .carousel-item .carousel-caption p.fs-5 {
        font-size: 15px;
    }
}

@media (max-width: 500px) {
    .carousel .carousel-inner .carousel-item {
        height: 400px;
    }
}

/* ESTILOS BOTONES DE CARRUSEL **/
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

/* ESTILO DEL BOTÓN */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background: rgba(0, 0, 0, 0.5); 
    border-radius: 50%;
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s ease;
}

/* ICONO (FONT AWESOME) */
.carousel-control-prev-icon i,
.carousel-control-next-icon i {
    color: #fff;
    font-size: 22px;
    transition: all 0.3s ease;
}

/* HOVER EFECTO PRO */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background: #0d6efd;
    transform: scale(1.1);
}

/* HOVER ICONO */
.carousel-control-prev:hover i,
.carousel-control-next:hover i {
    transform: scale(1.2);
}

/* POSICIÓN LATERAL */
.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* MÓVIL: BOTONES MÁS PEQUEÑOS */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev-icon i,
    .carousel-control-next-icon i {
        font-size: 16px;
    }
}

/*** Carousel End ***/


/*** Services Start ***/
.service .service-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transition: 0.5s;
    z-index: 1;
}

.service .service-item .service-img img {
    transition: 0.5s;
}

.service .service-item:hover .service-img img {
    transform: scale(1.2);
}

.service .service-item::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
    z-index: 2;
}

.service .service-item:hover:after {
    height: 100%;
    background: rgba(0, 0, 0, .4);
}

.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;
}

.service .service-item:hover .service-content {
    opacity: 1;
}

.service .service-item:hover .service-content a.fs-4 {
    color: var(--bs-white);
    transition: 0.5s;
}

.service .service-item:hover .service-content a.fs-4:hover {
    color: var(--bs-secondary);
}

.service .service-item .service-title {
    position: absolute;
    width: 100%;
    height: 80px;
    bottom: 0;
    right: 0;
    background: var(--bs-light);
    display: flex;
    transition: 0.5s;
    z-index: 3;
}

.service .service-item:hover .service-title {
    margin-right: -100%;
}

.service .btn.btn-secondary {
    background-color: rgb(20, 85, 160) !important;
    color: #ffffff !important;
    font-weight: 700;
    border: 2px solid rgb(20, 85, 160) !important;
    transition: all 0.3s ease;
}

/* Hover inverso */
.service .btn.btn-secondary:hover {
    background-color: #ffffff !important;
    color: rgb(20, 85, 160) !important;
    border-color: rgb(20, 85, 160) !important;
}

/* Fondo del contenedor del icono */
.service .bg-secondary {
    background-color: rgb(20, 83, 160) !important;
}

/* Color del icono */
.service .bg-secondary i {
    color: rgb(107, 179, 255) !important;
}

.service .btn-xl-square {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service .custom-icon-large {
    width: 65px; 
    height: auto;
    object-fit: contain;
}

.service .custom-icon-small {
    width: 35px;
    height: auto;
    object-fit: contain;
}

.clients-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
}

.client-logo {
    flex: 0 0 auto;
    width: 280px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    transition: all 0.3s ease;
}

.client-logo img:hover {
    transform: scale(1.1);
}

/*** 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 Start ***/
.footer {
    background: linear-gradient(rgba(20, 83, 160, 0.95), rgba(20, 83, 160, 0.962)), url(../img/banner006.jpeg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgb(20, 83, 160) !important;
    color: #ffffff;
}

/* Control estricto de títulos */
.footer .footer-title {
    font-size: 22px; /* Tamaño mayor para títulos */
    font-weight: 600; /* Semibold para destacar, pero no excesivamente grueso */
    color: #ffffff;
}

/* Reemplaza esta regla en tu CSS */
.footer .footer-link {
    font-size: 16px; 
    font-weight: 400 !important; 
    line-height: 30px; 
    color: #ffffff !important; 
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

/* Hover enlaces footer */
.footer .footer-link:hover {
    color: rgb(107, 179, 255) !important;
    letter-spacing: 0.5px;
}

/* Botones de redes sociales del footer */
.footer .btn.btn-secondary {
    background-color: rgb(20, 85, 160) !important;
    color: #ffffff !important;
    border: 2px solid rgb(20, 85, 160) !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover botones redes sociales */
.footer .btn.btn-secondary:hover {
    background-color: #ffffff !important;
    color: rgb(20, 85, 160) !important;
    border-color: rgb(20, 85, 160) !important;
}

.footer .btn.btn-secondary:hover i {
    color: rgb(20, 85, 160) !important;
}

/* Botón descargar brochure */
.footer .btn-brochure {
    background-color: #ffffff;
    color: rgb(20, 83, 160);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.footer .btn-brochure:hover {
    background-color: rgb(107, 179, 255);
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer .footer-item {
        align-items: flex-start !important;
        text-align: left !important;
        margin-bottom: 40px; 
    }

    .footer .footer-btn {
        justify-content: flex-start !important;
        width: 100% !important;
        margin-top: 10px;
        margin-bottom: 20px !important;
    }

    .footer .btn-brochure {
        margin-left: 0;
    }

    .copyright .text-center {
        text-align: left !important;
    }
    
    .copyright .col-md-6 {
        margin-bottom: 15px; 
    }
}

/* ===== COPYRIGHT ===== */
.copyright {
    background-color: rgb(107, 179, 225) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copyright,
.copyright a,
.copyright span {
    color: #ffffff !important;
    font-weight: 500;
}

.copyright a:hover {
    color: rgb(20, 83, 160) !important;
}
/*** Footer End ***/

/*efectos al carrusel y a todo lo que se quiera dar efecto*/
/* Animación slide-in desde la izquierda */
@keyframes slideInLeftCustom {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estado inicial (oculto) */
.carousel-caption>* {
    opacity: 0;
}

/* Cuando el slide está activo */
.carousel-item.active .carousel-caption>* {
    animation: slideInLeftCustom 0.9s ease forwards;
}

/* Retrasos progresivos */
.carousel-item.active .carousel-caption p {
    animation-delay: 0.3s;
}

.carousel-item.active .carousel-caption h1 {
    animation-delay: 0.6s;
}

.carousel-item.active .carousel-caption .mb-5 {
    animation-delay: 0.9s;
}

.carousel-item.active .carousel-caption .btn {
    animation-delay: 1.2s;
}

/*NUEVA SECCION*/
/* ===== SERVICE DESCRIPTION ===== */

.service-description {
    background-color: #f8f9fa;
}

/* Imagen */
.service-desc-image {
    overflow: hidden;
}

.service-desc-image img {
    transition: transform 0.6s ease;
}

.service-desc-image:hover img {
    transform: scale(1.05);
}

/* Ícono overlay */
.service-desc-overlay {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 90px;
    height: 90px;
    background-color: rgb(20, 83, 160);
    color: rgb(107, 179, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Features */
.service-feature i {
    font-size: 28px;
    color: rgb(20, 83, 160);
    transition: transform 0.3s ease;
}

.service-feature:hover i {
    transform: translateY(-5px);
}

.service-feature h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.service-description .btn.btn-secondary {
    font-weight: 700;
}

/* ===== SERVICE DESCRIPTION PRO ===== */

.service-description {
    background-color: #f8f9fa;
}

.service-desc-image img {
    transition: transform 0.6s ease;
}

.service-desc-image:hover img {
    transform: scale(1.05);
}

.service-desc-overlay {
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 90px;
    height: 90px;
    background-color: rgb(20, 83, 160);
    color: rgb(107, 179, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Features */
.service-feature i {
    font-size: 30px;
    color: rgb(20, 83, 160);
    margin-bottom: 10px;
}

.service-feature h5 {
    font-weight: 700;
}

/* Timeline */
.service-step {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.service-step:hover {
    transform: translateY(-8px);
}

.service-step span {
    display: inline-block;
    font-size: 28px;
    font-weight: 800;
    color: rgb(20, 83, 160);
}

.counter {
    font-size: 42px;
    font-weight: 800;
    color: rgb(20, 83, 160);
}

/* ===== MORE SERVICES ===== */

.more-services {
    background-color: #ffffff;
}

.more-services .service-item {
    background: #f8f9fa;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
}

.more-services .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.more-services .service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: rgb(20, 83, 160);
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-services .service-icon i {
    font-size: 36px;
    color: rgb(107, 179, 255);
}

/* Botón estilo Login (reutilizable) */
.btn-login,
.btn.btn-secondary {
    background-color: rgb(20, 85, 160);
    color: #fff;
    font-weight: 600;
    border: 2px solid rgb(20, 85, 160);
    transition: all 0.3s ease;
}

.btn-login:hover,
.btn.btn-secondary:hover {
    background-color: #fff;
    color: rgb(20, 85, 160);
    border-color: rgb(20, 85, 160);
}

/* Mobile: comportamiento normal en cascada */
@media (max-width: 991px) {
    .dropdown-submenu>.dropdown-menu {
        position: static;
        margin-left: 0;
    }
}

/* Base */
.navbar .dropdown-menu {
    margin-top: 0;
}

/* Submenú contenedor */
.navbar .dropdown-submenu {
    position: relative;
}

/* Ocultar TODOS los submenús por defecto */
.navbar .dropdown-menu .dropdown-menu {
    display: none !important;
}

/* Submenú alineado correctamente */
.navbar .dropdown-submenu>.dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.2rem;
    min-width: 260px;
    z-index: 1050;
    border-radius: 6px;
}

/* Mostrar SOLO al hover */
@media (min-width: 992px) {
    .navbar .dropdown-submenu:hover>.dropdown-menu {
        display: block !important;
    }
}

/* Evitar que se salga de la pantalla (abre a la izquierda si es necesario) */
@media (min-width: 992px) {

    .navbar .dropdown-submenu:last-child>.dropdown-menu,
    .navbar .dropdown-submenu.open-left>.dropdown-menu {
        left: auto;
        right: 100%;
        margin-left: 0;
        margin-right: 0.2rem;
    }
}

/* Flecha */
.submenu-arrow {
    float: right;
    opacity: 0.6;
    font-weight: bold;
}

/* Mejora de hover */
.navbar .dropdown-item {
    white-space: normal;
}

.navbar .dropdown-item:hover {
    background-color: rgba(20, 85, 160, 0.08);
}

/* PRODUCTOS */
.product-categories li {
    margin-bottom: 8px;
}

.product-categories a {
    color: #0d6efd;
    text-decoration: none;
    font-size: 14px;
}

.product-categories a:hover {
    text-decoration: underline;
}

/* More products */
.more-product img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Product card */
.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-card img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-category {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 5px;
}

.product-card h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

.price {
    font-weight: 700;
    color: #000;
}

/* Botones */
.btn-login-style {
    background: #0d6efd;
    color: #fff;
    border-radius: 6px;
    border: 1px solid #0d6efd;
}

.btn-login-style:hover {
    background: #084298;
    color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border-radius: 6px;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
}

/* Floating cart */
.cart-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.cart-btn {
    background: #fff;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    border: 2px solid rgb(20, 85, 160);
    position: relative;
}

.cart-btn i {
    color: rgb(20, 85, 160);
    font-size: 22px;
}

.cart-btn span {
    position: absolute;
    top: -6px;
    right: -6px;
    background: rgb(20, 85, 160);
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
}

/* Overlay */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 9998;
    display: none;
}

/* Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: .4s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.show {
    right: 0;
}

.cart-overlay.show {
    display: block;
}

/* Header */
.cart-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.close-cart {
    background: none;
    border: none;
    font-size: 26px;
}

/* Items */
.cart-items {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.cart-item img {
    width: 60px;
}

/* Footer */
.cart-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

.cart-table img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 6px;
}

.qty-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.qty-control button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    font-weight: bold;
    cursor: pointer;
}

.qty-control span {
    width: 30px;
    text-align: center;
}

.cart-summary {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
}

.carousel-caption {
    pointer-events: none;
}

.carousel-caption a,
.carousel-caption button {
    pointer-events: auto;
}