

/********** Template CSS **********/
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/*** Spinner ***/
#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;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

img.animated.pulse {
    animation-duration: 5s;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: var(--bs-white);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

.btn-outline-primary {
    color: #000000 !important;
    border-color: #d2b530 !important;
}

.btn-outline-primary:hover {
    background-color: #000000 !important;
    /* Color de fondo al pasar el mouse */
    color: #d2b530 !important;
    /* Color del texto al pasar el mouse */
    border-color: #d2b530 !important;
    /* Bordes (opcional si ya coincide) */
}

/*** Navbar ***/
.sticky-top {
    top: 0;
    transition: .5s;
    z-index: 1050;
    background: transparent;
}

.navbar {
    padding: 10px 0 !important;
    min-height: 80px;
}

.navbar-brand {
    padding: 0 !important;
}

.navbar-brand img, .navbar-logo-img {
    max-height: 55px;
    width: auto;
    transition: all 0.3s ease;
    object-fit: cover;
    object-position: top;
    display: block;
    mix-blend-mode: multiply; /* Asegura integración total incluso en PNGs */
}

/* Botón de acceso estilo Avatar */
.login-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #000;
    color: #d2b530;
    border: 2px solid #d2b530;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-trigger-btn:hover {
    background-color: #d2b530;
    color: #000 !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(210, 181, 48, 0.3);
}

.login-trigger-btn i {
    font-size: 1.3rem;
}

@media (max-width: 991.98px) {
    .login-trigger-btn {
        margin-top: 15px;
        margin-left: 0;
    }
}

.navbar .navbar-nav .nav-link {
    margin-right: 15px; /* Reducido para evitar encimamiento con el logo */
    padding: 0;
    color: var(--bs-dark);
    font-weight: 500;
    font-size: 0.95rem; /* Ligeramente más pequeño para optimizar espacio */
    transition: .5s;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #d2b530;
    /*    color: var(--bs-red);*/
}

/* Ajustes específicos para el rango 992px - 1200px (donde se encimaba el logo) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar {
        min-height: 70px !important;
    }
    
    .navbar-brand img, .navbar-logo-img {
        max-height: 45px !important;
    }
    
    .navbar .navbar-nav .nav-link {
        margin-right: 8px !important;
        font-size: 0.85rem !important;
    }
    
    .user-dropdown .NombreUsuario {
        display: none !important; /* Forzamos ocultar el nombre en este rango */
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
    color: #d2b530 !important; /* Asegura que la flecha sea dorada */
}

@media (max-width: 991.98px) {
    .sticky-top {
        position: fixed !important;
        width: 100%;
        background: #ffffff !important;
        box-shadow: 0 0 10px rgba(0,0,0,.1);
    }

    body {
        padding-top: 80px; /* Offset para la navbar fija en móvil */
    }

    .navbar {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
    }

    .navbar-brand {
        max-width: 180px;
        margin-right: 0 !important;
        padding: 0 !important;
        transition: opacity 0.3s ease;
    }

    /* Ocultar logo cuando el menú esté abierto (usando tanto :has como .menu-open para compatibilidad) */
    .navbar:has(.navbar-collapse.show) .navbar-brand,
    .navbar.menu-open .navbar-brand {
        display: none !important;
    }

    /* Asegurar que el botón de hamburguesa siempre esté en la esquina superior derecha fija */
    .navbar-toggler {
        position: absolute !important;
        right: 15px;
        top: 25px; /* Fijamos la posición desde arriba en lugar del centro variable */
        z-index: 1001;
        margin-left: 0 !important;
        border: 2px solid #d2b530; /* Añadimos borde dorado para armonía */
    }

    /* Ajuste para el menú de usuario en móvil */
    .user-dropdown .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 15px !important;
    }

    .user-dropdown .dropdown-item {
        color: #000000 !important;
        padding: 10px 0 !important;
    }

    /* Ajuste para el navbar cuando el menú está abierto */
    .navbar:has(.navbar-collapse.show),
    .navbar.menu-open {
        justify-content: flex-end !important;
        min-height: 60px; /* Asegurar espacio para el botón absoluto */
    }

    .navbar-brand img {
        max-height: 45px !important;
        width: auto !important;
        mix-blend-mode: multiply;
    }

    .navbar .navbar-nav {
        padding: 0 15px;
        background: #ffffff !important;
    }

    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
        color: #000000 !important;
        cursor: pointer;
    }

    .navbar .navbar-collapse {
        background: #ffffff !important;
        margin-top: 15px;
        border-top: 1px solid rgba(210, 181, 48, .3);
    }

    .hero-header {
        margin-top: -80px !important; /* Compensa el padding-top del body */
        padding-top: 12rem !important; 
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:hover {
    background-color: black !important;
    /* o cualquier color que prefieras */
    color: white !important;
    /* texto en blanco opcional */
}


/*** Hero Header ***/
.hero-header {
    position: relative;
    margin-top: -80px; /* Ajustado a la nueva altura de la navbar */
    padding-top: 10rem; /* Reducido ligeramente para desktop */
    padding-bottom: 6rem;
    background: url(../img/bgTG2.png) center center no-repeat;
    background-size: cover;
    /*    opacity:0.3;*/
}

.hero-header::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /*        background: rgba(255, 255, 255, .3);
        clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);*/
    z-index: 0;
}

/*.hero-header .background-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);*/
/* ajusta el color y la opacidad */
/*z-index: 0;
    }*/

.hero-header .container {
    position: relative;
    z-index: 1;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-light);
}


/*** Feature ***/
.feature-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.feature-item .border {
    position: relative;
    border-color: rgba(255, 255, 255, .2) !important;
    z-index: 1;
}


/*** Deal ***/
.deal {
    position: relative;
    background: url(../img/bgTG2.png) center center no-repeat;
    background-size: cover;
}

.deal::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.deal .bg-white {
    position: relative;
    z-index: 1;
}

.deal .cdt span {
    display: block;
    font-size: 16px;
    font-style: italic;
    font-weight: 200;
    text-transform: capitalize;
}


/*** How To Use ***/
.how-to-use {
    position: relative;
    background: url(../img/bgTG2.png) center center no-repeat;
    background-size: cover;
}

.how-to-use::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.how-to-use .container {
    position: relative;
    z-index: 1;
}

.how-to-use .border {
    border-color: rgba(255, 255, 255, .2) !important;
}


/*** Product ***/
.product-item {
    transition: .1s;
}

.product-item:hover {
    border-width: 0 !important;
    box-shadow: 0 0 35px rgba(210, 181, 48, .25);
}

.product-item:hover a.btn {
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Testimonial ***/
.testimonial {
    position: relative;
    background: url(../img/bgTG2.png) center center no-repeat;
    background-size: cover;
    overflow: hidden; /* Evitar que el carrusel desborde */
}

.testimonial::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.testimonial .testimonial-carousel {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
    border-color: rgba(255, 255, 255, .2) !important;
    margin: 0 auto 20px auto;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid rgb(210, 181, 48);
    border-radius: 35px;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    transition: .5s;
    cursor: pointer;
}

.testimonial-carousel .owl-dot.active {
    background: #000;
    color: rgb(210, 181, 48);
}


/*** Blog ***/
.blog-item {
    transition: .1s;
}

.blog-item:hover {
    border-width: 0 !important;
    box-shadow: 0 0 35px rgba(144, 188, 121, .25);
}

.blog-item:hover a.btn {
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Contact ***/
.contact-info-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.contact-info-item .border {
    position: relative;
    border-color: rgba(255, 255, 255, .2) !important;
    z-index: 1;
}


/*** Newsletter ***/
.newsletter {
    position: relative;
    background: url(../img/bgTG2.png) center center no-repeat;
    background-size: cover;
}

.newsletter::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.newsletter .container {
    position: relative;
    z-index: 1;
}

.newsletter .form-control {
    background: rgba(255, 255, 255, .3);
}

.form-control {
    background: rgba(255, 255, 255, .3);
    border-color: rgb(210 181 48 / 25%) !important;
    margin-bottom: 1% !important;
}

.form-control:focus {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5) !important;
}

.GuiaPlantilla {
    position: relative;
    background: url(../img/bgTG2.png) center center no-repeat;
    background-size: cover;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--bs-body);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    /* color: var(--bs-primary); */
    color: #d2b530;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 3px solid var(--bs-light);
}

.footer .copyright a {
    /* color: var(--bs-body); */
    color: #656565;
    transition: .3s;
}

.footer .copyright a:hover {
    /* color: var(--bs-primary); */
    color: #d2b530;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 3px solid var(--bs-light);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.text-black {
    -webkit-text-stroke: 1px #d2b530 !important;
    color: black !important;
}

.text-dark {
    -webkit-text-stroke: 1px #d2b530 !important;
    color: black !important;
}

.text-sec-planes {
    -webkit-text-stroke: 1px #d2b530 !important;
    color: black !important;
    font-size: 160% !important;
}

.text-parrafo {
    -webkit-text-stroke: 0.2px #d2b530 !important;
    color: #656565 !important;
}

.btn-dark {
    background-color: black;
    border-color: #d2b530;
    border-width: 0.2rem;
}

.h5-calculadora {
    margin-top: 0 !important;
    margin-bottom: .5rem !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    /*    color: black !important;*/

    color: #33302c !important;
    -webkit-text-stroke: 1px #a17e4c !important;
}



.ico-prod {
    width: 50% !important;
}

.detalle-prod {
    /* padding-bottom: 5% !important; */
    color: rgb(210, 181, 48) !important
}

.price-prod {
    -webkit-text-stroke: 1px #000000 !important;
    color: #d2b530 !important;
    font-size: 40px !important;
    padding-top: 4% !important;
    padding-bottom: 4% !important;
}

.name-prod {
    color: #33302c !important;
    font-size: 26px !important;
    -webkit-text-stroke: 1px #a17e4c !important;
    padding-top: 3% !important;
}

.btn-buy-prod {
    background-color: #1f1f1f !important;
    /* Fondo oscuro elegante */
    color: #d2b530 !important;
    /* Texto blanco */
    padding: 12px 24px !important;
    /* Espaciado cómodo */
    border: none !important;
    /* Sin borde predeterminado */
    border-radius: 8px !important;
    /* Bordes redondeados */
    font-size: 16px !important;
    /* Tamaño de fuente legible */
    font-weight: 500 !important;
    /* Peso de fuente medio */
    cursor: pointer !important;
    /* Indicador de clic */
    transition: all 0.3s ease !important;
    /* Transición suave */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    /* Sombra sutil */
}

.btn-confirm-modal {
    background-color: #1f1f1f !important;
    /* Fondo oscuro elegante */
    color: #d2b530 !important;
    /* Texto blanco */
    padding: 12px 24px !important;
    /* Espaciado cómodo */
    border: none !important;
    /* Sin borde predeterminado */
    border-radius: 8px !important;
    /* Bordes redondeados */
    font-size: 16px !important;
    /* Tamaño de fuente legible */
    font-weight: 500 !important;
    /* Peso de fuente medio */
    cursor: pointer !important;
    /* Indicador de clic */
    transition: all 0.3s ease !important;
    /* Transición suave */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    /* Sombra sutil */
}

.btn-confirm-modal:hover {
    background-color: #d2b530 !important;
    /* Cambio sutil en hover */
    color: #000 !important;
    transform: translateY(-2px) !important;
    /* Ligero levantamiento */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    /* Más sombra */
    transform: translateY(-2px) !important;
}

.btn-confirm-modal:active {
    transform: translateY(0) !important;
    /* Restablecer posición al hacer clic */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    /* Sombra más suave */
}

.btn-cancel-modal {
    background-color: #1f1f1f !important;
    /* Fondo oscuro elegante */
    color: #ffffff !important;
    /* Texto blanco */
    padding: 12px 24px !important;
    /* Espaciado cómodo */
    border: none !important;
    /* Sin borde predeterminado */
    border-radius: 8px !important;
    /* Bordes redondeados */
    font-size: 16px !important;
    /* Tamaño de fuente legible */
    font-weight: 500 !important;
    /* Peso de fuente medio */
    cursor: pointer !important;
    /* Indicador de clic */
    transition: all 0.3s ease !important;
    /* Transición suave */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    /* Sombra sutil */
}

.btn-cancel-modal:hover {
    background-color: #d23330 !important;
    /* Cambio sutil en hover */
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    /* Ligero levantamiento */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    /* Más sombra */
    transform: translateY(-2px) !important;
}

.btn-cancel-modal:active {
    transform: translateY(0) !important;
    /* Restablecer posición al hacer clic */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    /* Sombra más suave */
}

.btn-buy-prod:hover {
    background-color: #d2b530 !important;
    /* Cambio sutil en hover */
    color: #000 !important;
    transform: translateY(-2px) !important;
    /* Ligero levantamiento */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    /* Más sombra */
    transform: translateY(-2px) !important;
}

.btn-buy-prod:active {
    transform: translateY(0) !important;
    /* Restablecer posición al hacer clic */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    /* Sombra más suave */
}

.ribbon {
    width: 100px;
    background: #e63946;
    /* Color rojo oferta, puedes cambiarlo según el diseño */
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 5px 0;
    position: absolute;
    top: 10px;
    right: -30px;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    font-size: 14px;
    animation: pulso 1.5s infinite ease-in-out;
}

/* Definición de la animación */
@keyframes pulso {

    0%,
    100% {
        transform: rotate(45deg) scale(1);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: rotate(45deg) scale(1.1);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    }
}

/* Asegúrate de que el contenedor tenga posición relativa */
.product-item {
    position: relative;
    overflow: hidden;
}

.card-custom {
    width: 100%;
    /* Default full width inside column */
    max-width: 100%;
    /* Controla el ancho máximo (28% aprox. del contenedor) */
}

/* Hover solo en pantallas grandes */
@media (min-width: 992px) {
    .user-dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        /* evita salto */
    }

    .user-dropdown .dropdown-toggle::after {
        display: none;
        /* quita caret para look minimalista */
    }
}

.avatar i {
    line-height: 1;
}

.confirm-boton-swal {
    background-color: #000000 !important;
    /* Color de fondo negro */
    color: #d2b530 !important;
    /* Color de texto dorado */
    border: 1px solid #d2b530 !important;
    /* Borde dorado */
    border-radius: 5px !important;
    /* Bordes redondeados */
    font-weight: bold !important;
}

/* Estilo para cuando pasas el mouse por encima */
.confirm-boton-swal:hover {
    background-color: #d2b530 !important;
    /* Fondo dorado */
    color: #000000 !important;
    /* Texto negro */
}

.cancel-boton-swal {
    background-color: #1f1f1f !important;
    /* Color de fondo negro */
    color: #ffffff !important;
    /* Color de texto dorado */
    border: 1px solid #d2b530 !important;
    /* Borde dorado */
    border-radius: 5px !important;
    /* Bordes redondeados */
    font-weight: bold !important;
}

/* Estilo para cuando pasas el mouse por encima */
.cancel-boton-swal:hover {
    background-color: #d23330 !important;
    /* Fondo dorado */
    color: #ffffff !important;
    /* Texto negro */
}

.NombreUsuario {
    /* color: var(--bs-body); */
    color: #d2b530;
    transition: .3s;
}

.NombreUsuario:hover {
    /* color: var(--bs-primary); */
    color: #656565;
    box-shadow: none;
}

/* =====================================================
   FIX: Bootstrap Modal desplazado por OwlCarousel transform
   OwlCarousel aplica transform: translate3d() al track,
   lo que rompe position:fixed de los modales de Bootstrap.
   La solución es anclar los modales al viewport directamente.
   ===================================================== */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
}

.modal-dialog {
    transform: none !important;
    margin: 1.75rem auto !important;
    position: relative !important;
}

/* Asegurar que el backdrop también quede fijo */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
}

/* =====================================================
   FIX: OwlCarousel - permitir que el JS calcule el ancho
   ===================================================== */
.testimonial-carousel.owl-carousel {
    overflow: hidden !important;
}