/********** Template CSS **********/
:root {
    --primary: hsla(230, 84%, 29%, 0.938);
    --secondary: #555555;
    --light: #F1F3FA;
    --dark: #1C2035;
}

.back-to-top {
    position: fixed;
    /* keep element in the flow for transitions; JS will toggle .show */
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
    /* align horizontally with the whatsapp button and sit above it vertically */
    right: 1rem;
    bottom: 3.2rem; /* higher than whatsapp's z-index */
    z-index: 1070; /* above whatsapp's z-index */
    pointer-events: none; /* avoid accidental clicks when hidden */
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.fw-medium {
    font-weight: 500;
}


/*** 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 {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--dark);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.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 ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }

    /* Hide topbar on mobile */
    .container-fluid.bg-dark.text-white.d-none.d-lg-flex {
        display: none !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;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
    z-index: 1;
}

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

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

@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 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}

/* Contact form improvements */
.contact-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(18,30,47,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}
.contact-card .form-floating .form-control {
    border-radius: 8px;
    padding: 1rem .75rem;
}
.contact-card .form-floating label {
    left: 1rem;
}
.contact-card .form-control:focus {
    border-color: #25D366;
    box-shadow: 0 6px 20px rgba(37,211,102,0.12);
}
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1FA851 100%);
    border: none;
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(37,211,102,0.18);
    transition: transform .14s ease, box-shadow .18s ease, background .12s ease, opacity .12s ease;
}
.btn-whatsapp i {
    font-size: 1.15rem;
}

/* Interaction states: hover, focus, active, and keyboard-visible focus */
.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(37,211,102,0.22);
}
.btn-whatsapp:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(18,122,72,0.18);
    background: linear-gradient(135deg, #1FA851 0%, #179944 100%);
}
.btn-whatsapp:hover, .btn-whatsapp:focus, .btn-whatsapp:focus-visible { color: #fff; }
.btn-whatsapp:focus,
.btn-whatsapp:focus-visible,
.btn-whatsapp[aria-pressed="true"] {
    outline: none;
    box-shadow: 0 18px 44px rgba(37,211,102,0.22), 0 0 0 6px rgba(37,211,102,0.10);
    background: linear-gradient(135deg, #20C65A 0%, #17B24A 100%);
}

/* subtle disabled state */
.btn-whatsapp:disabled {
    opacity: .65;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 767.98px) {
    .contact-card { padding: 16px; }
    .back-to-top { right: .8rem; bottom: 3.8rem; }
}

/* live search dropdown */
.site-search-results {
    position: absolute;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(14,24,40,0.12);
    z-index: 99999;
    overflow: hidden;
    max-height: 60vh;
}
.site-search-item {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    color: var(--dark);
    text-decoration: none;
}
.site-search-item:hover { background: #f7fff7; }
.site-search-snippet { font-size: 13px; color: #666; margin-top: 4px; }

@media (max-width: 767.98px) {
    .site-search-results { left: 8px !important; right: 8px !important; width: auto !important; }
}


/*** Features ***/
.feature-row {
    box-shadow: 0 0 45px rgba(4, 87, 241, 0.08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03);
}

.centrarImagen
{
 text-align:center;
 display:block;
}



/*** About ***/
.about {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/about.jpg) left center no-repeat;
    background-size: cover;
    max-width: 100%;
    min-height: 500px;
    height: auto;
}

@media (min-width: 768px) {
    .about {
        min-height: 600px;
    }
}

@media (min-width: 1200px) {
    .about {
        min-height: 800px;
    }
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 36px;
    height: 46px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: 3px;
    border-left: 30px solid #FFFFFF;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}

/*** Historia ***/
.historia {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/historia.PNG) left center no-repeat;
    background-size: cover;
    max-width: 100%;
    min-height: 500px;
    height: auto;
}

@media (min-width: 768px) {
    .historia {
        min-height: 600px;
    }
}

@media (min-width: 1200px) {
    .historia {
        min-height: 800px;
    }
}

/*** Vision y Mision ***/
.visimisi {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/visimisi.JPG) left center no-repeat;
    background-size: cover;
    max-width: 100%;
    min-height: 500px;
    height: auto;
}

@media (min-width: 768px) {
    .visimisi {
        min-height: 600px;
    }
}

@media (min-width: 1200px) {
    .visimisi {
        min-height: 800px;
    }
}

/*** instalaciones ***/
.instala {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/instala.png) left center no-repeat;
    background-size: cover;
    max-width: 100%;
    min-height: 500px;
    height: auto;
}

@media (min-width: 768px) {
    .instala {
        min-height: 600px;
    }
}

@media (min-width: 1200px) {
    .instala {
        min-height: 800px;
    }
}

/*** nuestra organizacion ***/
.nuestraorg {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/nuestraorg.jpg) left center no-repeat;
    background-size: cover;
    max-width: 100%;
    min-height: 500px;
    height: auto;
}

@media (min-width: 768px) {
    .nuestraorg {
        min-height: 600px;
    }
}

@media (min-width: 1200px) {
    .nuestraorg {
        min-height: 800px;
    }
}

/*** team ***/
.team {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/team-1.jpg) left center no-repeat;
    background-size: cover;
    max-width: 100%;
    min-height: 500px;
    height: auto;
}

@media (min-width: 768px) {
    .team {
        min-height: 600px;
    }
}

@media (min-width: 1200px) {
    .team {
        min-height: 800px;
    }
}

/*** testimonial ***/
.ofertalabo {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/ofertalabo.png) left center no-repeat;
    background-size: cover;
    max-width: 100%;
    min-height: 500px;
    height: auto;
}

@media (min-width: 768px) {
    .ofertalabo {
        min-height: 600px;
    }
}

@media (min-width: 1200px) {
    .ofertalabo {
        min-height: 800px;
    }
}

/*** Service ***/
.service-item .service-text {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
    transition: .5s;
    z-index: 1; /* ensure text/card sits below the VER MÁS button */
}

/* Ensure service/certificate cards keep consistent proportions */
.service-item {
    display: flex;
    flex-direction: column;
}

.service-item .service-text {
    flex: 1 1 auto; /* allow text area to grow so cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Make the title sizing consistent across cards */
.service-item .service-text {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
    transition: .5s;
    z-index: 2; /* keep card above the VER MÁS button */
}

/* Homologacion: MEGA proportions only apply on small+ screens; mobile keeps compact icons */
@media (min-width: 576px) {
    .homologacion-carousel .btn-square {
        width: 150px !important;
        height: 80px !important;
    }
    .homologacion-carousel .btn-square img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    .homologacion-carousel .service-text {
        /* tuned to visually match the MEGA card proportions */
        min-height: 300px;
    }
}

@media (min-width: 768px) {
    .homologacion-carousel .service-text { min-height: 330px; }
}

@media (min-width: 1200px) {
    .homologacion-carousel .service-text { min-height: 350px; }
}
.service-item .service-btn {
    position: absolute;
    width: 80%;
    height: 3rem;
    left: 10%;
    bottom: 0; /* anchored to the bottom of the card */
    /* start positioned at the card bottom, behind it; card has higher z-index */
    transform: translateY(0) !important;
    opacity: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: transform .35s cubic-bezier(.2,.9,.3,1), opacity .25s ease;
    z-index: 0; /* remain behind the card */
}

.service-item:hover .service-btn {
    transform: translateY(160%) !important; /* slide downwards out from beneath the card */
    opacity: 1 !important; /* fully visible once it exits */
    /* visually appears from under the card (card keeps z-index above) */
}

/* Politi page specific styles */
.politi-page .service-item .btn-square {
    background-color: black !important;
    border-radius: 50% !important;
}

.politi-page .btn-primary {
    background-color: white;
    color: #4761FF;
    border-color: #4761FF;
}

.politi-page .btn-primary:hover {
    background-color: #4761FF;
    color: white;
}

/* allow the animated button to escape carousel clipping */
.homologacion-carousel,
.homologacion-carousel .owl-stage-outer,
.homologacion-carousel .owl-item,
.homologacion-carousel .item,
.service-item {
    overflow: visible !important;
}

/* allow the animated button to escape carousel clipping for certi carousels */
.certi-carousel,
.certi-carousel .owl-stage-outer,
.certi-carousel .owl-item,
.certi-carousel .item,
.service-item {
    overflow: visible !important;
}

/* Ensure service buttons are visible and functional for certi carousels */
.certi-carousel .service-item .service-btn {
    position: absolute !important;
    width: 80% !important;
    height: 3rem !important;
    left: 10% !important;
    bottom: 0 !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07) !important;
    transition: transform .35s cubic-bezier(.2,.9,.3,1), opacity .25s ease !important;
    z-index: 0 !important;
}

.certi-carousel .service-item:hover .service-btn {
    transform: translateY(160%) !important;
    opacity: 1 !important;
}

/* Ensure service text has proper z-index for certi carousels */
.certi-carousel .service-item .service-text {
    position: relative !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    text-align: center !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .06) !important;
    transition: .5s !important;
    z-index: 2 !important;
}

/* Ensure service buttons are visible and functional for servicios carousel */
.servicios-carousel .service-item .service-btn {
    position: relative !important;
    width: 100% !important;
    height: 3rem !important;
    margin-top: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07) !important;
    transition: transform .35s cubic-bezier(.2,.9,.3,1), opacity .25s ease !important;
    z-index: 10 !important;
}

.servicios-carousel .service-item:hover .service-btn {
    transform: translateY(-5px) !important;
    opacity: 1 !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .15) !important;
}

/* Additional visibility rules for servicios carousel buttons */
.servicios-carousel .service-item .service-btn a {
    color: #0d6efd !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    transition: all 0.3s ease !important;
}

/* Ensure button is always visible with subtle styling */
.servicios-carousel .service-item .service-btn {
    border-top: 1px solid #dee2e6 !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Hover effect for button links */
.servicios-carousel .service-item .service-btn a:hover {
    background-color: #f8f9fa !important;
    color: #0056b3 !important;
    text-decoration: none !important;
}

/* Ensure service text has proper z-index for servicios carousel */
.servicios-carousel .service-item .service-text {
    position: relative !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    text-align: center !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .06) !important;
    transition: .5s !important;
    z-index: 1 !important;
    min-height: 160px !important; /* Reduced for more compact design */
}

/* Ensure service items have consistent height for servicios carousel */
.servicios-carousel .service-item {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 320px !important; /* Reduced for more compact design */
}

/* Ensure uniform image sizes for servicios carousel */
.servicios-carousel .service-img {
    position: relative !important;
    width: 100% !important;
    height: 180px !important; /* Reduced for more compact design */
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f9fa !important; /* Light background for consistency */
}

.servicios-carousel .service-img a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.servicios-carousel .service-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Ensures images fill the container uniformly */
    object-position: center !important;
    display: block !important;
    transition: opacity 0.3s ease !important; /* Smooth transition for image loading */
}

/* Ensure images maintain aspect ratio and don't break layout */
.servicios-carousel .service-img img[src=""] {
    opacity: 0 !important; /* Hide broken images */
}

.servicios-carousel .service-img img:not([src=""]) {
    opacity: 1 !important; /* Show loaded images */
}

/* Ensure uniform image sizes for servicios carousel - responsive adjustments */
@media (max-width: 767.98px) {
    .servicios-carousel .service-item {
        min-height: 280px !important;
    }
    .servicios-carousel .service-item .service-text {
        min-height: 140px !important;
    }
    .servicios-carousel .service-img {
        height: 160px !important; /* Slightly smaller on mobile */
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .servicios-carousel .service-item {
        min-height: 300px !important;
    }
    .servicios-carousel .service-item .service-text {
        min-height: 150px !important;
    }
    .servicios-carousel .service-img {
        height: 170px !important; /* Medium size for tablets */
    }
}

@media (min-width: 992px) {
    .servicios-carousel .service-item {
        min-height: 340px !important;
    }
    .servicios-carousel .service-item .service-text {
        min-height: 170px !important;
    }
    .servicios-carousel .service-img {
        height: 180px !important; /* Larger size for desktop */
    }
}



/*** Project ***/
.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.project-item .project-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    padding-top: 60px;
    transition: .5s;
}

.project-item:hover .project-overlay {
    opacity: 1;
    padding-top: 0;
}

.project-carousel .owl-nav {
    position: absolute;
    top: -100px;
    right: 0;
    display: flex;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin-left: 15px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    transition: .5s;
}

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

/* Homologacion carousel nav positioned at extremes */
.homologacion-carousel { position: relative; }
.homologacion-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between; /* put prev at left edge and next at right edge */
    pointer-events: none; /* allow clicks only on buttons */
    padding: 0; /* keep container full-width; arrows will be at page edges */
}
.homologacion-carousel .owl-nav .owl-prev,
.homologacion-carousel .owl-nav .owl-next {
    pointer-events: auto;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    background: transparent;
    transition: .25s;
}
.homologacion-carousel .owl-nav .owl-prev:hover,
.homologacion-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #fff;
}

/* Strong overrides to keep homologacion nav arrows at the horizontal extremes
   across all breakpoints. This prevents project-carousel rules (which center
   nav on small screens) from moving the buttons into the center above cards. */
.homologacion-carousel .owl-nav {
    left: 0 !important;
    right: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    justify-content: space-between !important;
    pointer-events: none !important;
}
.homologacion-carousel .owl-nav .owl-prev,
.homologacion-carousel .owl-nav .owl-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
}
.homologacion-carousel .owl-nav .owl-prev { left: 12px !important; }
.homologacion-carousel .owl-nav .owl-next { right: 12px !important; }

/* Certi carousel nav positioned at extremes */
.certi-carousel { position: relative; }
.certi-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between; /* put prev at left edge and next at right edge */
    pointer-events: none; /* allow clicks only on buttons */
    padding: 0; /* keep container full-width; arrows will be at page edges */
}
.certi-carousel .owl-nav .owl-prev,
.certi-carousel .owl-nav .owl-next {
    pointer-events: auto;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    background: transparent;
    transition: .25s;
}
.certi-carousel .owl-nav .owl-prev:hover,
.certi-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #fff;
}

/* Strong overrides to keep certi nav arrows at the horizontal extremes
   across all breakpoints. This prevents project-carousel rules (which center
   nav on small screens) from moving the buttons into the center above cards. */
.certi-carousel .owl-nav {
    left: 0 !important;
    right: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    justify-content: space-between !important;
    pointer-events: none !important;
}
.certi-carousel .owl-nav .owl-prev,
.certi-carousel .owl-nav .owl-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
}
.certi-carousel .owl-nav .owl-prev { left: 12px !important; }
.certi-carousel .owl-nav .owl-next { right: 12px !important; }

/* Politi carousel nav positioned at extremes */
.politi-carousel { position: relative; }
.politi-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between; /* put prev at left edge and next at right edge */
    pointer-events: none; /* allow clicks only on buttons */
    padding: 0; /* keep container full-width; arrows will be at page edges */
}
.politi-carousel .owl-nav .owl-prev,
.politi-carousel .owl-nav .owl-next {
    pointer-events: auto;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    background: transparent;
    transition: .25s;
}
.politi-carousel .owl-nav .owl-prev:hover,
.politi-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #fff;
}

/* Strong overrides to keep politi nav arrows at the horizontal extremes
   across all breakpoints. This prevents project-carousel rules (which center
   nav on small screens) from moving the buttons into the center above cards. */
.politi-carousel .owl-nav {
    left: 0 !important;
    right: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    justify-content: space-between !important;
    pointer-events: none !important;
}
.politi-carousel .owl-nav .owl-prev,
.politi-carousel .owl-nav .owl-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
}
.politi-carousel .owl-nav .owl-prev { left: 12px !important; }
.politi-carousel .owl-nav .owl-next { right: 12px !important; }

/* Servicios carousel nav positioned at extremes */
.servicios-carousel { position: relative; }
.servicios-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between; /* put prev at left edge and next at right edge */
    pointer-events: none; /* allow clicks only on buttons */
    padding: 0; /* keep container full-width; arrows will be at page edges */
}
.servicios-carousel .owl-nav .owl-prev,
.servicios-carousel .owl-nav .owl-next {
    pointer-events: auto;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    background: transparent;
    transition: .25s;
}
.servicios-carousel .owl-nav .owl-prev:hover,
.servicios-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #fff;
}

/* Strong overrides to keep servicios nav arrows at the horizontal extremes
   across all breakpoints. This prevents project-carousel rules (which center
   nav on small screens) from moving the buttons into the center above cards. */
.servicios-carousel .owl-nav {
    left: 0 !important;
    right: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    justify-content: space-between !important;
    pointer-events: none !important;
}
.servicios-carousel .owl-nav .owl-prev,
.servicios-carousel .owl-nav .owl-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
}
.servicios-carousel .owl-nav .owl-prev { left: 12px !important; }
.servicios-carousel .owl-nav .owl-next { right: 12px !important; }

/* Mirror homologacion carousel nav placement for instalaciones so arrows
   are pinned to the horizontal extremes like on the index page. */
.instalaciones-carousel { position: relative; }
.instalaciones-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between; /* put prev at left edge and next at right edge */
    pointer-events: none; /* allow clicks only on buttons */
    padding: 0; /* keep container full-width; arrows will be at page edges */
}
.instalaciones-carousel .owl-nav .owl-prev,
.instalaciones-carousel .owl-nav .owl-next {
    pointer-events: auto;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    background: transparent;
    transition: .25s;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
}
.instalaciones-carousel .owl-nav .owl-prev { left: 12px !important; }
.instalaciones-carousel .owl-nav .owl-next { right: 12px !important; }

@media (max-width: 768px) {
    .instalaciones-carousel .owl-nav {
        top: 50% !important;
        bottom: auto !important;
        justify-content: space-between !important;
        padding: 0 12px !important;
    }
    .instalaciones-carousel .owl-nav .owl-prev { left: 8px !important; }
    .instalaciones-carousel .owl-nav .owl-next { right: 8px !important; }
}

/* Mobile fallback: keep arrows centered below if necessary (mirrors homologacion mobile tweaks) */
@media (max-width: 768px) {
    .instalaciones-carousel .owl-nav {
        top: auto;
        bottom: -60px;
        transform: none;
        justify-content: center;
        gap: 12px;
        padding: 0 20px; /* smaller padding on mobile */
    }
    .instalaciones-carousel .owl-nav .owl-prev,
    .instalaciones-carousel .owl-nav .owl-next {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Desktop: place nav buttons at page extremes (fixed) */
@media (min-width: 992px) {
    .instalaciones-carousel { position: relative; padding-left: 110px; padding-right: 110px; }
    .instalaciones-carousel .owl-nav { pointer-events: none; }
    .instalaciones-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -96px; /* outside the carousel edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .instalaciones-carousel .owl-nav .owl-next {
        position: absolute;
        right: -96px; /* outside the carousel edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    .instalaciones-carousel .owl-nav .owl-prev,
    .instalaciones-carousel .owl-nav .owl-next {
        width: 64px;
        height: 64px;
        font-size: 28px;
        border-radius: 64px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    }
}

@media (min-width: 769px) and (max-width: 991.98px) {
    .instalaciones-carousel { position: relative; padding-left: 72px; padding-right: 72px; }
    .instalaciones-carousel .owl-nav { pointer-events: none; }
    .instalaciones-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -64px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .instalaciones-carousel .owl-nav .owl-next {
        position: absolute;
        right: -64px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    .instalaciones-carousel .owl-nav .owl-prev,
    .instalaciones-carousel .owl-nav .owl-next {
        width: 58px;
        height: 58px;
        font-size: 24px;
        border-radius: 58px;
        box-shadow: 0 8px 26px rgba(0,0,0,0.14);
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .instalaciones-carousel { position: relative; padding-left: 52px; padding-right: 52px; }
    .instalaciones-carousel .owl-nav { pointer-events: none; }
    .instalaciones-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -48px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .instalaciones-carousel .owl-nav .owl-next {
        position: absolute;
        right: -48px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    .instalaciones-carousel .owl-nav .owl-prev,
    .instalaciones-carousel .owl-nav .owl-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 50px;
    }
}

/* Also override any project-carousel centering on small screens so homologacion
   keeps its side-positioned arrows even when window is narrow. */
@media (max-width: 768px) {
    .homologacion-carousel .owl-nav {
        top: 50% !important;
        bottom: auto !important;
        justify-content: space-between !important;
        padding: 0 12px !important;
    }
    .homologacion-carousel .owl-nav .owl-prev { left: 8px !important; }
    .homologacion-carousel .owl-nav .owl-next { right: 8px !important; }
}

@media (max-width: 768px) {
    .homologacion-carousel .owl-nav {
        top: auto;
        bottom: -60px;
        transform: none;
        justify-content: center;
        gap: 12px;
        padding: 0 20px; /* smaller padding on mobile */
    }
    .homologacion-carousel .owl-nav .owl-prev,
    .homologacion-carousel .owl-nav .owl-next {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Also override any project-carousel centering on small screens so certi
   keeps its side-positioned arrows even when window is narrow. */
@media (max-width: 768px) {
    .certi-carousel .owl-nav {
        top: 50% !important;
        bottom: auto !important;
        justify-content: space-between !important;
        padding: 0 12px !important;
    }
    .certi-carousel .owl-nav .owl-prev { left: 8px !important; }
    .certi-carousel .owl-nav .owl-next { right: 8px !important; }
}

@media (max-width: 768px) {
    .certi-carousel .owl-nav {
        top: auto;
        bottom: -60px;
        transform: none;
        justify-content: center;
        gap: 12px;
        padding: 0 20px; /* smaller padding on mobile */
    }
    .certi-carousel .owl-nav .owl-prev,
    .certi-carousel .owl-nav .owl-next {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Also override any project-carousel centering on small screens so politi
   keeps its side-positioned arrows even when window is narrow. */
@media (max-width: 768px) {
    .politi-carousel .owl-nav {
        top: 50% !important;
        bottom: auto !important;
        justify-content: space-between !important;
        padding: 0 12px !important;
    }
    .politi-carousel .owl-nav .owl-prev { left: 8px !important; }
    .politi-carousel .owl-nav .owl-next { right: 8px !important; }
}

@media (max-width: 768px) {
    .politi-carousel .owl-nav {
        top: auto;
        bottom: -60px;
        transform: none;
        justify-content: center;
        gap: 12px;
        padding: 0 20px; /* smaller padding on mobile */
    }
    .politi-carousel .owl-nav .owl-prev,
    .politi-carousel .owl-nav .owl-next {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Also override any project-carousel centering on small screens so servicios
   keeps its side-positioned arrows even when window is narrow. */
@media (max-width: 768px) {
    .servicios-carousel .owl-nav {
        top: 50% !important;
        bottom: auto !important;
        justify-content: space-between !important;
        padding: 0 12px !important;
    }
    .servicios-carousel .owl-nav .owl-prev { left: 8px !important; }
    .servicios-carousel .owl-nav .owl-next { right: 8px !important; }
}

@media (max-width: 768px) {
    .servicios-carousel .owl-nav {
        top: auto;
        bottom: -60px;
        transform: none;
        justify-content: center;
        gap: 12px;
        padding: 0 20px; /* smaller padding on mobile */
    }
    .servicios-carousel .owl-nav .owl-prev,
    .servicios-carousel .owl-nav .owl-next {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Desktop: place nav buttons at page extremes (fixed) */
@media (min-width: 992px) {
    /* Larger desktops: generous offsets and padding so arrows remain outside cards */
    .homologacion-carousel { position: relative; padding-left: 110px; padding-right: 110px; }
    .homologacion-carousel .owl-nav { pointer-events: none; }
    .homologacion-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -96px; /* outside the carousel edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .homologacion-carousel .owl-nav .owl-next {
        position: absolute;
        right: -96px; /* outside the carousel edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    /* Make desktop nav buttons larger so they don't visually collide with cards */
    .homologacion-carousel .owl-nav .owl-prev,
    .homologacion-carousel .owl-nav .owl-next {
        width: 64px;
        height: 64px;
        font-size: 28px;
        border-radius: 64px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    }
}

@media (min-width: 769px) and (max-width: 991.98px) {
    /* Medium desktops / large tablets: slightly reduced offsets and padding */
    .homologacion-carousel { position: relative; padding-left: 72px; padding-right: 72px; }
    .homologacion-carousel .owl-nav { pointer-events: none; }
    .homologacion-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -64px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .homologacion-carousel .owl-nav .owl-next {
        position: absolute;
        right: -64px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    .homologacion-carousel .owl-nav .owl-prev,
    .homologacion-carousel .owl-nav .owl-next {
        width: 58px;
        height: 58px;
        font-size: 24px;
        border-radius: 58px;
        box-shadow: 0 8px 26px rgba(0,0,0,0.14);
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .homologacion-carousel { position: relative; padding-left: 52px; padding-right: 52px; }
    .homologacion-carousel .owl-nav { pointer-events: none; }
    .homologacion-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -48px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .homologacion-carousel .owl-nav .owl-next {
        position: absolute;
        right: -48px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    .homologacion-carousel .owl-nav .owl-prev,
    .homologacion-carousel .owl-nav .owl-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 50px;
    }
}

/* Desktop: place nav buttons at page extremes (fixed) */
@media (min-width: 992px) {
    /* Larger desktops: generous offsets and padding so arrows remain outside cards */
    .certi-carousel { position: relative; padding-left: 110px; padding-right: 110px; }
    .certi-carousel .owl-nav { pointer-events: none; }
    .certi-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -96px; /* outside the carousel edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .certi-carousel .owl-nav .owl-next {
        position: absolute;
        right: -96px; /* outside the carousel edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    /* Make desktop nav buttons larger so they don't visually collide with cards */
    .certi-carousel .owl-nav .owl-prev,
    .certi-carousel .owl-nav .owl-next {
        width: 64px;
        height: 64px;
        font-size: 28px;
        border-radius: 64px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    }
}

@media (min-width: 769px) and (max-width: 991.98px) {
    /* Medium desktops / large tablets: slightly reduced offsets and padding */
    .certi-carousel { position: relative; padding-left: 72px; padding-right: 72px; }
    .certi-carousel .owl-nav { pointer-events: none; }
    .certi-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -64px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .certi-carousel .owl-nav .owl-next {
        position: absolute;
        right: -64px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    .certi-carousel .owl-nav .owl-prev,
    .certi-carousel .owl-nav .owl-next {
        width: 58px;
        height: 58px;
        font-size: 24px;
        border-radius: 58px;
        box-shadow: 0 8px 26px rgba(0,0,0,0.14);
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .certi-carousel { position: relative; padding-left: 52px; padding-right: 52px; }
    .certi-carousel .owl-nav { pointer-events: none; }
    .certi-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -48px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .certi-carousel .owl-nav .owl-next {
        position: absolute;
        right: -48px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    .certi-carousel .owl-nav .owl-prev,
    .certi-carousel .owl-nav .owl-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 50px;
    }
}

/* Desktop: place nav buttons at page extremes (fixed) */
@media (min-width: 992px) {
    /* Larger desktops: generous offsets and padding so arrows remain outside cards */
    .politi-carousel { position: relative; padding-left: 110px; padding-right: 110px; }
    .politi-carousel .owl-nav { pointer-events: none; }
    .politi-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -96px; /* outside the carousel edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .politi-carousel .owl-nav .owl-next {
        position: absolute;
        right: -96px; /* outside the carousel edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    /* Make desktop nav buttons larger so they don't visually collide with cards */
    .politi-carousel .owl-nav .owl-prev,
    .politi-carousel .owl-nav .owl-next {
        width: 64px;
        height: 64px;
        font-size: 28px;
        border-radius: 64px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    }
}

@media (min-width: 769px) and (max-width: 991.98px) {
    /* Medium desktops / large tablets: slightly reduced offsets and padding */
    .politi-carousel { position: relative; padding-left: 72px; padding-right: 72px; }
    .politi-carousel .owl-nav { pointer-events: none; }
    .politi-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -64px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .politi-carousel .owl-nav .owl-next {
        position: absolute;
        right: -64px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    .politi-carousel .owl-nav .owl-prev,
    .politi-carousel .owl-nav .owl-next {
        width: 58px;
        height: 58px;
        font-size: 24px;
        border-radius: 58px;
        box-shadow: 0 8px 26px rgba(0,0,0,0.14);
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .politi-carousel { position: relative; padding-left: 52px; padding-right: 52px; }
    .politi-carousel .owl-nav { pointer-events: none; }
    .politi-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -48px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .politi-carousel .owl-nav .owl-next {
        position: absolute;
        right: -48px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    .politi-carousel .owl-nav .owl-prev,
    .politi-carousel .owl-nav .owl-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 50px;
    }
}

/* Desktop: place nav buttons at page extremes (fixed) */
@media (min-width: 992px) {
    /* Larger desktops: generous offsets and padding so arrows remain outside cards */
    .servicios-carousel { position: relative; padding-left: 110px; padding-right: 110px; }
    .servicios-carousel .owl-nav { pointer-events: none; }
    .servicios-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -96px; /* outside the carousel edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .servicios-carousel .owl-nav .owl-next {
        position: absolute;
        right: -96px; /* outside the carousel edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    /* Make desktop nav buttons larger so they don't visually collide with cards */
    .servicios-carousel .owl-nav .owl-prev,
    .servicios-carousel .owl-nav .owl-next {
        width: 64px;
        height: 64px;
        font-size: 28px;
        border-radius: 64px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    }
}

@media (min-width: 769px) and (max-width: 991.98px) {
    /* Medium desktops / large tablets: slightly reduced offsets and padding */
    .servicios-carousel { position: relative; padding-left: 72px; padding-right: 72px; }
    .servicios-carousel .owl-nav { pointer-events: none; }
    .servicios-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -64px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .servicios-carousel .owl-nav .owl-next {
        position: absolute;
        right: -64px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    .servicios-carousel .owl-nav .owl-prev,
    .servicios-carousel .owl-nav .owl-next {
        width: 58px;
        height: 58px;
        font-size: 24px;
        border-radius: 58px;
        box-shadow: 0 8px 26px rgba(0,0,0,0.14);
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .servicios-carousel { position: relative; padding-left: 52px; padding-right: 52px; }
    .servicios-carousel .owl-nav { pointer-events: none; }
    .servicios-carousel .owl-nav .owl-prev {
        position: absolute;
        left: -48px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }
    .servicios-carousel .owl-nav .owl-next {
        position: absolute;
        right: -48px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1080;
        pointer-events: auto;
    }

    .servicios-carousel .owl-nav .owl-prev,
    .servicios-carousel .owl-nav .owl-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 50px;
    }
}

/* Site loader (full-screen overlay) */
#site-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity .45s ease, visibility .45s ease;
  opacity: 1;
  visibility: visible;
}
#site-loader .loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#site-loader img {
  width: 120px;
  height: auto;
  display: block;
}
#site-loader .loader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.08);
  border-top-color: rgba(0,0,0,0.18);
  animation: rj-spinner 1s linear infinite;
}
@keyframes rj-spinner { to { transform: rotate(360deg); } }

/* When page is loaded, hide the loader */
body.site-loaded #site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Small screens tweak */
@media (max-width: 576px) {
  #site-loader img { width: 92px; }
  #site-loader .loader-spinner { width: 36px; height: 36px; border-width: 3px; }
}

/* ===== Site loader (global using img/icon/LogoG12.png) ===== */
#site-loader.site-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 2000;
    opacity: 1;
    transition: opacity .42s ease;
    pointer-events: auto;
}
#site-loader.site-loader--hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-content {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 14px;
    background: transparent;
}
.loader-logo {
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
}
.loader-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.08);
    border-top-color: #0d6efd; /* bootstrap primary */
    animation: rj-loader-spin .8s linear infinite;
}
@keyframes rj-loader-spin { to { transform: rotate(360deg); } }

@media (max-width: 576px) {
    .loader-logo { height: 56px; }
}

/* End of global site-loader CSS */

/* ===== Site loader (global using img/icon/LogoG12.png) ===== */
#site-loader.site-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 2000;
    opacity: 1;
    transition: opacity .42s ease;
    pointer-events: auto;
}
#site-loader.site-loader--hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-content {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 14px;
    background: transparent;
}
.loader-logo {
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
}
.loader-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.08);
    border-top-color: #0d6efd; /* bootstrap primary */
    animation: rj-loader-spin .8s linear infinite;
}
@keyframes rj-loader-spin { to { transform: rotate(360deg); } }

@media (max-width: 576px) {
    .loader-logo { height: 56px; }
}

/* End of global site-loader CSS */

/* Small-screen tweak: keep spacing consistent on very small devices */
@media (max-width: 575.98px) {
    .back-to-top {
        right: 0.8rem;
        bottom: 4.6rem;
    }
}

/* Tiny icon resets to avoid any vertical/horizontal offset */
.back-to-top i,
.back-to-top svg {
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    transform: none !important;
    position: relative !important;
    top: 0 !important;
}

/* ========== ADDITIONAL RESPONSIVE COMPONENTS ========== */

/* Contact form responsive */
@media (max-width: 575.98px) {
    .contact-form .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Tables responsive */
@media (max-width: 767.98px) {
    .table-responsive {
        border: none;
    }
    
    .table {
        font-size: 0.875rem;
    }
}

/* Cards and panels responsive */
@media (max-width: 575.98px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

/* Lightbox responsive improvements */
@media (max-width: 767.98px) {
    .lightbox .lb-nav {
        height: 50px;
    }
    
    .lightbox .lb-nav a {
        width: 50px;
        height: 50px;
    }
    
    .lightbox .lb-closeContainer {
        width: 50px;
        height: 50px;
    }
}

/* Owl Carousel responsive improvements */
@media (max-width: 575.98px) {
    .owl-carousel .owl-item {
        padding: 0 5px;
    }
    
    .owl-carousel .owl-dots {
        text-align: center;
        margin-top: 1rem;
    }
    
    .owl-carousel .owl-dot {
        margin: 0 3px;
    }
}

/* Section spacing responsive */
@media (max-width: 575.98px) {
    section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h1,
    .section-header h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
}

/* Breadcrumb responsive */
@media (max-width: 575.98px) {
    .breadcrumb {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }
    
    .breadcrumb-item {
        margin-bottom: 0.25rem;
    }
}

/* Page-specific small extra spacing for homologaciones (subtle, safe) */
.homologacion-spacing {
    margin-bottom: 1.25rem; /* small extra gap before footer */
}

@media (min-width: 768px) {
    .homologacion-spacing {
        margin-bottom: 2.5rem; /* slightly larger gap on tablets+ */
    }
}

/* Clients carousel: adopt homologacion visual proportions and add page spacing
   This keeps client cards visually consistent with the homologaciones (MEGA) size. */
.clients-carousel .btn-square {
    width: 150px !important;
    height: 80px !important;
}
.clients-carousel .btn-square img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.clients-carousel .service-text {
    min-height: 300px; /* visually align with homologacion cards */
}

@media (min-width: 768px) {
    .clients-carousel .service-text { min-height: 330px; }
}

@media (min-width: 1200px) {
    .clients-carousel .service-text { min-height: 350px; }
}

/* Slight extra page growth space for client section so the page extends downward */
.clients-spacing { margin-bottom: 2rem; }
@media (min-width: 768px) { .clients-spacing { margin-bottom: 3.5rem; } }

/* Remove the oval/rounded background behind icons for clients (index) and
   homologaciones cards so only the images are shown. This keeps sizing and
   centering but removes the white circle and shadow. */
.clients-carousel .btn-square,
.homologacion-carousel .btn-square {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Stronger overrides to catch any remaining backgrounds, borders or pseudo-elements
   applied by other rules or cached CSS (helps ensure XAMPP-served pages show the change).
   Also ensure the img itself has no background and the pseudo-elements are hidden. */
.clients-carousel .btn-square,
.homologacion-carousel .btn-square,
.clients-carousel .service-text .btn-square,
.homologacion-carousel .service-text .btn-square,
.service-text .btn-square {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.clients-carousel .btn-square::before,
.homologacion-carousel .btn-square::before,
.service-text .btn-square::before {
    display: none !important;
    content: none !important;
}

.clients-carousel .btn-square img,
.homologacion-carousel .btn-square img,
.service-text .btn-square img {
    background: transparent !important;
    box-shadow: none !important;
}

/* If some pages still show the oval due to cached CSS, use a highly specific selector
   targeting the typical structure so the rule wins. */
#content .clients-carousel .btn-square,
#content .homologacion-carousel .btn-square {
    background: transparent !important;
}


/* Modal responsive */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* Site loader (full-screen overlay) */
#site-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity .45s ease, visibility .45s ease;
  opacity: 1;
  visibility: visible;
}
#site-loader .loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#site-loader img {
  width: 120px;
  height: auto;
  display: block;
}
#site-loader .loader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.08);
  border-top-color: rgba(0,0,0,0.18);
  animation: rj-spinner 1s linear infinite;
}
@keyframes rj-spinner { to { transform: rotate(360deg); } }

/* When page is loaded, hide the loader */
body.site-loaded #site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Small screens tweak */
@media (max-width: 576px) {
  #site-loader img { width: 92px; }
  #site-loader .loader-spinner { width: 36px; height: 36px; border-width: 3px; }
}

/* ===== Site loader (global using img/icon/LogoG12.png) ===== */
#site-loader.site-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 2000;
    opacity: 1;
    transition: opacity .42s ease;
    pointer-events: auto;
}
#site-loader.site-loader--hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-content {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 14px;
    background: transparent;
}
.loader-logo {
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
}
.loader-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.08);
    border-top-color: #0d6efd; /* bootstrap primary */
    animation: rj-loader-spin .8s linear infinite;
}
@keyframes rj-loader-spin { to { transform: rotate(360deg); } }

@media (max-width: 576px) {
    .loader-logo { height: 56px; }
}

/* End of global site-loader CSS */

/* Small-screen tweak: keep spacing consistent on very small devices */
@media (max-width: 575.98px) {
    .back-to-top {
        right: 0.8rem;
        bottom: 4.6rem;
    }
}

/* Tiny icon resets to avoid any vertical/horizontal offset */
.back-to-top i,
.back-to-top svg {
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    transform: none !important;
    position: relative !important;
    top: 0 !important;
}

/* ========== ADDITIONAL RESPONSIVE COMPONENTS ========== */

/* Contact form responsive */
@media (max-width: 575.98px) {
    .contact-form .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Tables responsive */
@media (max-width: 767.98px) {
    .table-responsive {
        border: none;
    }
    
    .table {
        font-size: 0.875rem;
    }
}

/* Cards and panels responsive */
@media (max-width: 575.98px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

/* Lightbox responsive improvements */
@media (max-width: 767.98px) {
    .lightbox .lb-nav {
        height: 50px;
    }
    
    .lightbox .lb-nav a {
        width: 50px;
        height: 50px;
    }
    
    .lightbox .lb-closeContainer {
        width: 50px;
        height: 50px;
    }
}

/* Owl Carousel responsive improvements */
@media (max-width: 575.98px) {
    .owl-carousel .owl-item {
        padding: 0 5px;
    }
    
    .owl-carousel .owl-dots {
        text-align: center;
        margin-top: 1rem;
    }
    
    .owl-carousel .owl-dot {
        margin: 0 3px;
    }
}

/* Section spacing responsive */
@media (max-width: 575.98px) {
    section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h1,
    .section-header h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
}

/* Breadcrumb responsive */
@media (max-width: 575.98px) {
    .breadcrumb {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }
    
    .breadcrumb-item {
        margin-bottom: 0.25rem;
    }
}

/* Page-specific small extra spacing for homologaciones (subtle, safe) */
.homologacion-spacing {
    margin-bottom: 1.25rem; /* small extra gap before footer */
}

@media (min-width: 768px) {
    .homologacion-spacing {
        margin-bottom: 2.5rem; /* slightly larger gap on tablets+ */
    }
}

/* Clients carousel: adopt homologacion visual proportions and add page spacing
   This keeps client cards visually consistent with the homologaciones (MEGA) size. */
.clients-carousel .btn-square {
    width: 150px !important;
    height: 80px !important;
}
.clients-carousel .btn-square img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.clients-carousel .service-text {
    min-height: 300px; /* visually align with homologacion cards */
}

@media (min-width: 768px) {
    .clients-carousel .service-text { min-height: 330px; }
}

@media (min-width: 1200px) {
    .clients-carousel .service-text { min-height: 350px; }
}

/* Slight extra page growth space for client section so the page extends downward */
.clients-spacing { margin-bottom: 2rem; }
@media (min-width: 768px) { .clients-spacing { margin-bottom: 3.5rem; } }

/* Remove the oval/rounded background behind icons for clients (index) and
   homologaciones cards so only the images are shown. This keeps sizing and
   centering but removes the white circle and shadow. */
.clients-carousel .btn-square,
.homologacion-carousel .btn-square {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Stronger overrides to catch any remaining backgrounds, borders or pseudo-elements
   applied by other rules or cached CSS (helps ensure XAMPP-served pages show the change).
   Also ensure the img itself has no background and the pseudo-elements are hidden. */
.clients-carousel .btn-square,
.homologacion-carousel .btn-square,
.clients-carousel .service-text .btn-square,
.homologacion-carousel .service-text .btn-square,
.service-text .btn-square {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.clients-carousel .btn-square::before,
.homologacion-carousel .btn-square::before,
.service-text .btn-square::before {
    display: none !important;
    content: none !important;
}

.clients-carousel .btn-square img,
.homologacion-carousel .btn-square img,
.service-text .btn-square img {
    background: transparent !important;
    box-shadow: none !important;
}

/* If some pages still show the oval due to cached CSS, use a highly specific selector
   targeting the typical structure so the rule wins. */
#content .clients-carousel .btn-square,
#content .homologacion-carousel .btn-square {
    background: transparent !important;
}


/* Modal responsive */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* Site loader (full-screen overlay) */
#site-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity .45s ease, visibility .45s ease;
  opacity: 1;
  visibility: visible;
}
#site-loader .loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#site-loader img {
  width: 120px;
  height: auto;
  display: block;
}
#site-loader .loader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.08);
  border-top-color: rgba(0,0,0,0.18);
  animation: rj-spinner 1s linear infinite;
}
@keyframes rj-spinner { to { transform: rotate(360deg); } }

/* When page is loaded, hide the loader */
body.site-loaded #site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Small screens tweak */
@media (max-width: 576px) {
  #site-loader img { width: 92px; }
  #site-loader .loader-spinner { width: 36px; height: 36px; border-width: 3px; }
}

/* ===== Site loader (global using img/icon/LogoG12.png) ===== */
#site-loader.site-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 2000;
    opacity: 1;
    transition: opacity .42s ease;
    pointer-events: auto;
}
#site-loader.site-loader--hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-content {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 14px;
    background: transparent;
}
.loader-logo {
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
}
.loader-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.08);
    border-top-color: #0d6efd; /* bootstrap primary */
    animation: rj-loader-spin .8s linear infinite;
}
@keyframes rj-loader-spin { to { transform: rotate(360deg); } }

@media (max-width: 576px) {
    .loader-logo { height: 56px; }
}

/* End of global site-loader CSS */

/* Small-screen tweak: keep spacing consistent on very small devices */
@media (max-width: 575.98px) {
    .back-to-top {
        right: 0.8rem;
        bottom: 4.6rem;
    }
}

/* Tiny icon resets to avoid any vertical/horizontal offset */
.back-to-top i,
.back-to-top svg {
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    transform: none !important;
    position: relative !important;
    top: 0 !important;
}

/* ========== ADDITIONAL RESPONSIVE COMPONENTS ========== */

/* Contact form responsive */
@media (max-width: 575.98px) {
    .contact-form .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Tables responsive */
@media (max-width: 767.98px) {
    .table-responsive {
        border: none;
    }
    
    .table {
        font-size: 0.875rem;
    }
}

/* Cards and panels responsive */
@media (max-width: 575.98px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

/* Lightbox responsive improvements */
@media (max-width: 767.98px) {
    .lightbox .lb-nav {
        height: 50px;
    }
    
    .lightbox .lb-nav a {
        width: 50px;
        height: 50px;
    }
    
    .lightbox .lb-closeContainer {
        width: 50px;
        height: 50px;
    }
}

/* Owl Carousel responsive improvements */
@media (max-width: 575.98px) {
    .owl-carousel .owl-item {
        padding: 0 5px;
    }
    
    .owl-carousel .owl-dots {
        text-align: center;
        margin-top: 1rem;
    }
    
    .owl-carousel .owl-dot {
        margin: 0 3px;
    }
}

/* Section spacing responsive */
@media (max-width: 575.98px) {
    section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h1,
    .section-header h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
}

/* Breadcrumb responsive */
@media (max-width: 575.98px) {
    .breadcrumb {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }
    
    .breadcrumb-item {
        margin-bottom: 0.25rem;
    }
}

/* Page-specific small extra spacing for homologaciones (subtle, safe) */
.homologacion-spacing {
    margin-bottom: 1.25rem; /* small extra gap before footer */
}

@media (min-width: 768px) {
    .homologacion-spacing {
        margin-bottom: 2.5rem; /* slightly larger gap on tablets+ */
    }
}

/* Clients carousel: adopt homologacion visual proportions and add page spacing
   This keeps client cards visually consistent with the homologaciones (MEGA) size. */
.clients-carousel .btn-square {
    width: 150px !important;
    height: 80px !important;
}
.clients-carousel .btn-square img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.clients-carousel .service-text {
    min-height: 300px; /* visually align with homologacion cards */
}

@media (min-width: 768px) {
    .clients-carousel .service-text { min-height: 330px; }
}

@media (min-width: 1200px) {
    .clients-carousel .service-text { min-height: 350px; }
}

/* Slight extra page growth space for client section so the page extends downward */
.clients-spacing { margin-bottom: 2rem; }
@media (min-width: 768px) { .clients-spacing { margin-bottom: 3.5rem; } }

/* Remove the oval/rounded background behind icons for clients (index) and
   homologaciones cards so only the images are shown. This keeps sizing and
   centering but removes the white circle and shadow. */
.clients-carousel .btn-square,
.homologacion-carousel .btn-square {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Stronger overrides to catch any remaining backgrounds, borders or pseudo-elements
   applied by other rules or cached CSS (helps ensure XAMPP-served pages show the change).
   Also ensure the img itself has no background and the pseudo-elements are hidden. */
.clients-carousel .btn-square,
.homologacion-carousel .btn-square,
.clients-carousel .service-text .btn-square,
.homologacion-carousel .service-text .btn-square,
.service-text .btn-square {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.clients-carousel .btn-square::before,
.homologacion-carousel .btn-square::before,
.service-text .btn-square::before {
    display: none !important;
    content: none !important;
}

.clients-carousel .btn-square img,
.homologacion-carousel .btn-square img,
.service-text .btn-square img {
    background: transparent !important;
    box-shadow: none !important;
}

/* If some pages still show the oval due to cached CSS, use a highly specific selector
   targeting the typical structure so the rule wins. */
#content .clients-carousel .btn-square,
#content .homologacion-carousel .btn-square {
    background: transparent !important;
}


/* Modal responsive */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* Site loader (full-screen overlay) */
#site-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity .45s ease, visibility .45s ease;
  opacity: 1;
  visibility: visible;
}
#site-loader .loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#site-loader img {
  width: 120px;
  height: auto;
  display: block;
}
#site-loader .loader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.08);
  border-top-color: rgba(0,0,0,0.18);
  animation: rj-spinner 1s linear infinite;
}
@keyframes rj-spinner { to { transform: rotate(360deg); } }

/* When page is loaded, hide the loader */
body.site-loaded #site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Small screens tweak */
@media (max-width: 576px) {
  #site-loader img { width: 92px; }
  #site-loader .loader-spinner { width: 36px; height: 36px; border-width: 3px; }
}

/* ===== Site loader (global using img/icon/LogoG12.png) ===== */
#site-loader.site-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 2000;
    opacity: 1;
    transition: opacity .42s ease;
    pointer-events: auto;
}
#site-loader.site-loader--hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-content {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 14px;
    background: transparent;
}
.loader-logo {
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
}
.loader-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.08);
    border-top-color: #0d6efd; /* bootstrap primary */
    animation: rj-loader-spin .8s linear infinite;
}
@keyframes rj-loader-spin { to { transform: rotate(360deg); } }

@media (max-width: 576px) {
    .loader-logo { height: 56px; }
}

/* End of global site-loader CSS */

/* Small-screen tweak: keep spacing consistent on very small devices */
@media (max-width: 575.98px) {
    .back-to-top {
        right: 0.8rem;
        bottom: 4.6rem;
    }
}

/* Tiny icon resets to avoid any vertical/horizontal offset */
.back-to-top i,
.back-to-top svg {
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    transform: none !important;
    position: relative !important;
    top: 0 !important;
}

/* ========== ADDITIONAL RESPONSIVE COMPONENTS ========== */

/* Contact form responsive */
@media (max-width: 575.98px) {
    .contact-form .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Tables responsive */
@media (max-width: 767.98px) {
    .table-responsive {
        border: none;
    }
    
    .table {
        font-size: 0.875rem;
    }
}

/* Cards and panels responsive */
@media (max-width: 575.98px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

/* Lightbox responsive improvements */
@media (max-width: 767.98px) {
    .lightbox .lb-nav {
        height: 50px;
    }
    
    .lightbox .lb-nav a {
        width: 50px;
        height: 50px;
    }
    
    .lightbox .lb-closeContainer {
        width: 50px;
        height: 50px;
    }
}

/* Owl Carousel responsive improvements */
@media (max-width: 575.98px) {
    .owl-carousel .owl-item {
        padding: 0 5px;
    }
    
    .owl-carousel .owl-dots {
        text-align: center;
        margin-top: 1rem;
    }
    
    .owl-carousel .owl-dot {
        margin: 0 3px;
    }
}

/* Section spacing responsive */
@media (max-width: 575.98px) {
    section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h1,
    .section-header h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
}

/* Breadcrumb responsive */
@media (max-width: 575.98px) {
    .breadcrumb {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }
    
    .breadcrumb-item {
        margin-bottom: 0.25rem;
    }
}

/* Page-specific small extra spacing for homologaciones (subtle, safe) */
.homologacion-spacing {
    margin-bottom: 1.25rem; /* small extra gap before footer */
}

@media (min-width: 768px) {
    .homologacion-spacing {
        margin-bottom: 2.5rem; /* slightly larger gap on tablets+ */
    }
}

/* Clients carousel: adopt homologacion visual proportions and add page spacing
   This keeps client cards visually consistent with the homologaciones (MEGA) size. */
.clients-carousel .btn-square {
    width: 150px !important;
    height: 80px !important;
}
.clients-carousel .btn-square img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.clients-carousel .service-text {
    min-height: 300px; /* visually align with homologacion cards */
}

@media (min-width: 768px) {
    .clients-carousel .service-text { min-height: 330px; }
}

@media (min-width: 1200px) {
    .clients-carousel .service-text { min-height: 350px; }
}

/* Slight extra page growth space for client section so the page extends downward */
.clients-spacing { margin-bottom: 2rem; }
@media (min-width: 768px) { .clients-spacing { margin-bottom: 3.5rem; } }

/* Remove the oval/rounded background behind icons for clients (index) and
   homologaciones cards so only the images are shown. This keeps sizing and
   centering but removes the white circle and shadow. */
.clients-carousel .btn-square,
.homologacion-carousel .btn-square {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Stronger overrides to catch any remaining backgrounds, borders or pseudo-elements
   applied by other rules or cached CSS (helps ensure XAMPP-served pages show the change).
   Also ensure the img itself has no background and the pseudo-elements are hidden. */
.clients-carousel .btn-square,
.homologacion-carousel .btn-square,
.clients-carousel .service-text .btn-square,
.homologacion-carousel .service-text .btn-square,
.service-text .btn-square {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.clients-carousel .btn-square::before,
.homologacion-carousel .btn-square::before,
.service-text .btn-square::before {
    display: none !important;
    content: none !important;
}

.clients-carousel .btn-square img,
.homologacion-carousel .btn-square img,
.service-text .btn-square img {
    background: transparent !important;
    box-shadow: none !important;
}

/* If some pages still show the oval due to cached CSS, use a highly specific selector
   targeting the typical structure so the rule wins. */
#content .clients-carousel .btn-square,
#content .homologacion-carousel .btn-square {
    background: transparent !important;
}


/* Modal responsive */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* Site loader (full-screen overlay) */
#site-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity .45s ease, visibility .45s ease;
  opacity: 1;
  visibility: visible;
}
#site-loader .loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#site-loader img {
  width: 120px;
  height: auto;
  display: block;
}
#site-loader .loader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.08);
  border-top-color: rgba(0,0,0,0.18);
  animation: rj-spinner 1s linear infinite;
}
@keyframes rj-spinner { to { transform: rotate(360deg); } }

/* When page is loaded, hide the loader */
body.site-loaded #site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Small screens tweak */
@media (max-width: 576px) {
  #site-loader img { width: 92px; }
  #site-loader .loader-spinner { width: 36px; height: 36px; border-width: 3px; }
}

/* ===== Site loader (global using img/icon/LogoG12.png) ===== */
#site-loader.site-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 2000;
    opacity: 1;
    transition: opacity .42s ease;
    pointer-events: auto;
}
#site-loader.site-loader--hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-content {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 14px;
    background: transparent;
}
.loader-logo {
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
}
.loader-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.08);
    border-top-color: #0d6efd; /* bootstrap primary */
    animation: rj-loader-spin .8s linear infinite;
}
@keyframes rj-loader-spin { to { transform: rotate(360deg); } }

@media (max-width: 576px) {
    .loader-logo { height: 56px; }
}

/* End of global site-loader CSS *//* ===== Simple Mobile Carousel Navigation ===== */
.simple-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 10px 0;
    padding: 0 15px;
    gap: 15px;
    clear: both;
    position: relative;
}

.simple-nav-buttons {
    gap: 10px !important;
    padding: 0 8px !important;
}

.simple-mobile-carousel {
    width: 100%;
    position: relative;
    margin: 20px 0;
    padding: 10px;
    box-sizing: border-box;
    min-height: 320px;
    clear: both;
}

.simple-mobile-carousel,
.simple-mobile-slide,
.simple-nav-btn,
.simple-mobile-slide .service-item {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    box-sizing: border-box;
}

.simple-mobile-carousel {
    margin-bottom: 30px;
}

.simple-nav-btn {
    background: #ffffff;
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.simple-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #adb5bd;
}

.simple-position {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    min-width: 60px;
    text-align: center;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.simple-mobile-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.simple-mobile-slide {
    display: none;
    width: 100%;
    position: relative;
}

.simple-mobile-slide.active {
    display: block;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .simple-nav-buttons {
        gap: 8px !important;
        padding: 0 10px !important;
        margin: 15px 0 8px 0 !important;
    }

    .simple-nav-btn {
        padding: 6px 10px;
        font-size: 16px;
        min-width: 36px;
    }

    .simple-position {
        font-size: 13px;
        padding: 4px 8px;
        min-width: 50px;
    }

    .simple-mobile-carousel {
        margin: 15px 0;
        padding: 8px;
        min-height: 280px;
    }
}

/* Ensure proper z-index layering */
.simple-mobile-carousel {
    z-index: 1;
}

.simple-nav-buttons {
    z-index: 10;
}

/* ===== CAROUSEL TRANSITION LOADING ===== */
.carousel-transition-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.carousel-transition-loader.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.carousel-transition-loader .transition-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel-transition-loader .transition-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid rgba(13, 110, 253, 0.1);
    border-top-color: #0d6efd;
    animation: carousel-transition-spin 1s linear infinite;
}

.carousel-transition-loader .transition-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin: 0;
}

.carousel-transition-loader .transition-subtext {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0;
    font-weight: 400;
}

@keyframes carousel-transition-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .carousel-transition-loader .transition-content {
        padding: 20px;
        gap: 15px;
    }

    .carousel-transition-loader .transition-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .carousel-transition-loader .transition-text {
        font-size: 14px;
    }

    .carousel-transition-loader .transition-subtext {
        font-size: 12px;
    }
}

/* ===== END CAROUSEL TRANSITION LOADING ===== */


