/********** Template CSS **********/
:root {
    --primary: #225775;
    --secondary: #3898b3;
    --light: #fefefe;
    --dark: #181818;
    --grey: #ecedee;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bg-icon {
    background: url(../img/bg-icon.png) center center repeat;
    background-size: contain;
}


/*** 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;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover {
    color: #FFFFFF;
}

.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;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    font-family: "Kdam Thmor Pro", sans-serif;
    font-weight: 400;
    padding: 25px 15px;
    color: #181818;
    outline: none;
    font-size: 1.2rem;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #225775;
    font-weight: 400;
}

.dropdown-item {
    font-family: "Kdam Thmor Pro", sans-serif;
    font-weight: 400;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/banner-page.png) top right no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Section Header ***/
.section-header {
    position: relative;
    padding-top: 25px;
}

.section-header::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
}

.section-header::after {
    position: absolute;
    content: "";
    width: 90px;
    height: 2px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
}

.section-header.text-start::before,
.section-header.text-start::after {
    left: 0;
    transform: translateX(0);
}



/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background-image: -webkit-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -moz-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -ms-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -o-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-size: 20px 20px;
    transform: skew(20deg);
    z-index: 1;
}


/*** Product ***/
.nav-pills .nav-item .btn {
    color: var(--dark);
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #FFFFFF;
}

.product-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.product-item img {
    transition: .5s;
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-item small a:hover {
    color: var(--primary) !important;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-item.center .testimonial-item i {
    color: var(--secondary) !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #999999;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

.title-header {
    font-family: "Kdam Thmor Pro", sans-serif;
    font-weight: 400;
    font-size: 60px;
    line-height: 1.2;
    color: #fff;
}

.description-header {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 400;
    color: #fff;
}

.mlr-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.icon-contacto {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-image {
            max-height: 500px;
            object-fit: cover;
        }
        .thumbnail {
            width: 90px;
            height: 90px;
            object-fit: cover;
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.3s ease;
            margin: 0 20px;
        }
        .thumbnail:hover, .thumbnail.active {
            opacity: 1;
        }

        .accordion-button:not(.collapsed) {
    background-color: #F65005;
    color: white;
}

.accordion-button {
    background-color: #F65005;
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.btn-container button {
    margin: 0 3px;
}

.logo {
    max-width: 165px;
    width: 80%;
}

.kdam-thmor-pro-regular {
  font-family: "Kdam Thmor Pro", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.title-seccion-home {
    font-size: 3rem;
    font-family: "Kdam Thmor Pro", sans-serif;
    font-weight: 400;
    line-height: 1.2;
    color: #3898b3;
    margin-bottom: 20px;
}

.title-seccion-product {
    font-size: 1.5rem;
    font-family: "Kdam Thmor Pro", sans-serif;
    font-weight: 400;
    line-height: 1.2;
    color: #3898b3;
    margin-bottom: 10px;
}

p strong {
    color: #225775;
}

.title-banner-home {
    font-size: 3rem;
    font-family: "Kdam Thmor Pro", sans-serif;
    font-weight: 400;
    line-height: 1.2;
    color: #fefefe;
    margin-bottom: 20px;
}

.title-banner-home2 {
    font-size: 1.5rem;
    font-family: "Kdam Thmor Pro", sans-serif;
    font-weight: 400;
    line-height: 1.2;
    color: #fefefe;
    margin-bottom: 10px;
}

/* Custom CSS para Dropdowns en Hover (solo en Desktop) */
@media (min-width: 992px) { /* breakpoint 'lg' de Bootstrap para desktop */
    /* Regla base para ocultar todos los dropdowns por defecto en desktop */
    .navbar-expand-lg .navbar-nav .dropdown .dropdown-menu {
        display: none; /* Asegura que no se muestre por defecto en HTML/CSS puro */
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none; /* Permite interactuar con elementos detrás del menú oculto */
        transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out; /* Suaviza la aparición/desaparición */
    }

    /* Cuando el contenedor del dropdown PRINCIPAL tiene hover, muestra su menú */
    .navbar-expand-lg .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block; /* IMPORTANTE: Anula el 'display: none' base */
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Habilita la interacción con el menú */
    }

    /* *** LA REGLA CLAVE PARA LOS SUBMENÚS ANIDADOS *** */
    /* Cuando un contenedor DROPSTART ANIDADO tiene hover, muestra su menú */
    /* Apunta a .dropdown-menu .dropstart:hover > .dropdown-menu */
    .navbar-expand-lg .navbar-nav .dropdown-menu .dropstart:hover > .dropdown-menu {
        display: block; /* Crucial para que aparezca */
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }


    /* POSICIONAMIENTO para el dropdown principal (Productos) si es 'dropstart' */
    /* Asegúrate de que el .nav-item.dropdown tiene la clase 'dropstart' */
    .navbar-expand-lg .navbar-nav .dropdown.dropstart > .dropdown-menu {
        left: auto;
        right: 100%; /* Abre a la izquierda */
        transform: translateX(0); /* Anula cualquier transformación previa */
    }

    /* POSICIONAMIENTO para los SUBMENÚS ANIDADOS que son 'dropstart' */
    /* (dentro de un .dropdown-menu, busca un .dropstart hijo) */
    .navbar-expand-lg .navbar-nav .dropdown-menu .dropstart > .dropdown-menu {
        position: absolute; /* Es crucial para que el submenú se posicione correctamente */
        top: 0; /* Alinea con la parte superior del elemento padre */
        left: auto; /* Anula cualquier left:100% o similar */
        right: 100%; /* Abre a la izquierda del elemento padre del submenú */
        transform: translateX(0); /* Asegura que no haya traslaciones incorrectas */
    }

    /* Ajuste para la flecha del dropdown-toggle si es necesario */
    .navbar-expand-lg .navbar-nav .dropdown-toggle::after {
        vertical-align: middle;
        margin-left: .255em;
    }
}

.gallery-item {
            position: relative;
            overflow: hidden; /* Asegura que la imagen no se desborde */
            border-radius: 8px; /* Bordes ligeramente redondeados */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
            cursor: pointer;
            transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        }

        .gallery-item:hover {
            transform: translateY(-5px); /* Pequeño efecto de elevación */
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
        }

        .gallery-thumbnail {
            width: 100%; /* La imagen ocupa todo el ancho de su columna */
            height: 300px; /* Altura fija para todas las miniaturas */
            object-fit: cover; /* Recorta la imagen para cubrir el área sin distorsionar */
            display: block; /* Elimina espacios extra debajo de la imagen */
        }

        /* Estilo para el contenedor general de la galería */
        .gallery-container {
            padding: 30px 0;
            background-color: #f8f9fa;
        }

        .icon-services {
            width: 100%;
            max-width: 90px;
            margin-bottom: 10px;
        }

        .icon-services2 {
            width: 100%;
            max-width: 90px;
            margin-bottom: 20px;
            margin: 0 auto 20px auto;
            display: flex;
        }

        .footer h4 {
            color: #fefefe;
            margin-bottom: 10px;
            font-size: 1.5rem;
            font-family: "Kdam Thmor Pro", sans-serif;
            font-weight: 400;
        }

        .text-blog {
                font-size: 1.25rem;
                color: #225775;
        }
        .miga-link {
            color: #fff;
            font-weight: 500;
        }
        .miga-link:hover {
            text-decoration: underline;
            color: #fff;
        }
        .title-bor {
            font-size: 1.5rem;
            color: #225775;
            margin-bottom: 0;
            text-align: center;
        }
        .title-services-home {
            font-size: 1.5rem;
            color: #225775;
            text-align: center;
            margin-bottom: 1rem;
            font-family: "Kdam Thmor Pro", sans-serif;
            font-weight: 400;
            line-height: 1.2;
        }
        .title-services-home:hover {
            color: #3898b3;
        }
        .title-about-us {
            font-size: 1.5rem;
            color: #225775;
            text-align: center;
            font-family: "Kdam Thmor Pro", sans-serif;
            font-weight: 400;
            line-height: 1.2;
        }
        .title-about-us:hover {
            color: #3898b3;
        }
        .logo-footer {
            max-width: 165px;
            width: 80%;
        }
        .title-contact {
            font-size: 1.25rem;
            color: #fff;
            margin-bottom: .5rem;
            font-family: "Kdam Thmor Pro", sans-serif;
            font-weight: 400;
            line-height: 1.2;
        }
        .parrafo-contact {
            font-size: 1rem;
            color: #fff;
            margin-bottom: .25rem;
            margin-top: 0;
        }
        .desktop {
            display: contents;
        }
        .mobile {
            display: none;
        }
        @media (max-width: 430px) {
            .title-header {
                text-align: center !important;
                font-size: 2rem !important;
            }
            .description-header {
                text-align: center !important;
                font-size: 1.5rem !important;
            }
            .btn.btn-primary {
                display: block !important;
                align-content: center !important;
                width: 100% !important;
                text-align: center !important;
                padding: 10px !important;
                font-size: 1.5rem !important;
            }
            .btn.btn-secondary {
                display: block !important;
                align-content: center !important;
                width: 100% !important;
                text-align: center !important;
                padding: 10px !important;
                font-size: 1.5rem !important;
            }
            .about-img {
                padding-top: 0px !important;
                padding-bottom: 0px !important;
            }
            .title-seccion-home {
                text-align: center !important;
                font-size: 2.5rem !important;
            }
            p {
                font-size: 1.5rem !important;
                text-align: center !important;
            }
            .title-services-home {
                text-align: center !important;
                font-size: 2rem !important;
            }
            .title-banner-home {
               text-align: center !important;
                font-size: 2.5rem !important; 
            }
            .logo-footer {
                display: block !important;
                margin-left: auto !important;
                margin-right: auto !important;
            }
            .social-btn {
                justify-content: center !important;
            }
            .btn-square {
                width: 50px !important;
                height: 50px !important;
                font-size: 1.5rem !important;
            }
            .footer h4 {
                text-align: center !important;
            }
            .footer p {
                text-align: center !important;
                font-size: 1.3rem !important;
            }
            .footer .btn.btn-link {
                text-align: center !important;
                font-size: 1.5rem !important;
            }
            .footer .btn.btn-primary {
                display: inline-block !important;
                padding: .375rem .75rem !important;
                width: 58px !important;
                height: 58px !important;
                margin-top: 0 !important;
                margin-right: 0 !important;
            }
            .back-to-top {
                right: 13px !important;
                bottom: 13px !important;
            }
            .icon-contacto {
                text-align: center !important;
                font-size: 3rem !important;
            }
            .title-contact {
                text-align: center !important;
                font-size: 1.5rem !important;
            }
            .parrafo-contact {
                font-size: 1rem !important;
                text-align: center !important;
            }
            .breadcrumb {
                justify-content: center !important;
            }
            .title-seccion-product {
                text-align: center !important;
                font-size: 2rem !important;
            }
            .nav-tabs {
                justify-content: center !important;
                font-size: 1.5rem !important;
            }
            select:not(:-internal-list-box):not([multiple]) option {
                display: block !important;
                width: auto !important;
            }
            .desktop {
            display: none !important;
        }
        .mobile {
            display: contents !important;
        }
        .page-header {
            background: url(../img/banner-page-mobile.png) top right no-repeat !important;
        }
        }
        @media (max-width: 414px) { 
        }
        @media (max-width: 412px) { 
        }
        @media (max-width: 390px) { 
        }
        @media (max-width: 3750px) { 
        }
        @media (max-width: 360px) { 
        }