
/* ── TIPOGRAFÍA DE TÍTULOS ──────────────────────────────────────────
   Todo el proyecto usa Nunito Sans (alternativa gratuita equivalente a
   Avenir) tanto en títulos como en texto. IMPORTANTE: se mantiene el peso 500
   (el default original de Bootstrap para headings sin clase "display"),
   NO 700 — un peso más liviano es justamente lo que afina la tipografía
   en vez de engrosarla. Los tamaños "display-*" siguen definiendo su
   propio peso (ver bootstrap.min.css / reglas específicas más abajo). */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: "Nunito Sans", sans-serif;
    font-weight: 500;
}

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

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 98px; /* Por encima del botón WhatsApp flotante (60px + 28px + 10px gap) */
    transition: 0.5s;
    z-index: 99;
}

@media (max-width: 576px) {
    .back-to-top {
        /* Oculto en mobile: solo debe quedar visible el botón de sonido */
        display: none !important;
    }
}

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

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    border: none;
}

.btn.btn-primary:hover {
    background: var(--bs-secondary);
}

.btn.btn-secondary {
    color: var(--bs-white);
    border: none;
   
}

.btn.btn-secondary:hover {
    background: var(--bs-primary);
}
/*** Topbar Start ***/
.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-primary);
}
/*** Topbar End ***/

/*** Navbar ***/
.sticky-top {
    top: 0 !important;
    transition: box-shadow 0.3s ease;
}

.navbar .navbar-nav .nav-item.nav-link,
.navbar .navbar-nav .nav-link {
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link {
    position: relative;
    padding: 10px;
    font-weight: 400;
    font-family: "Nunito Sans", sans-serif;
    font-size: 17px;
    transition: .5s;
    z-index: 99;
}

.navbar .navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar .navbar-nav .nav-item::before,
.navbar .navbar-nav .nav-item::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    border: 2px solid var(--bs-secondary);
    opacity: 0;
    transition: 0.5s;
    z-index: 2 !important;
}

.navbar .navbar-nav .nav-item::before {
    top: 0;
    left: 0;
    border-bottom: 0;
    border-right: 0;
}
.navbar .navbar-nav .nav-item::after {
    bottom: 0;
    right: 0;
    border-top: 0;
    border-left: 0;
}

.navbar .navbar-nav .nav-item:hover::after,
.navbar .navbar-nav .nav-item:hover::before,
.navbar .navbar-nav .nav-item.active::after,
.navbar .navbar-nav .nav-item.active::before {
    width: 50%;
    height: 50%;
    opacity: 1;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top .navbar .navbar-nav .nav-link:hover,
.sticky-top .navbar .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107" !important;
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
}

.navbar .navbar-toggler {
    padding: 8px 15px;
    color: var(--bs-dark);
    background: var(--bs-secondary);
}

.nav-bar .navbar-toggler { 
    color: var(--bs-dark);
    box-shadow: none !important;
}

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

.navbar .nav-item .dropdown-menu {
    background: var(--bs-light);
    transition: 0.5s;
}

.navbar .nav-item .dropdown-menu .dropdown-item {
    transition: 0.5s;
}

.dropdown .dropdown-menu .dropdown-item:hover,
.dropdown .dropdown-menu .dropdown-item.active {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

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

@media (max-width: 991px) {
    .navbar .nav-item .dropdown-menu {
        position: relative;
        margin-top: 0;
        transition: 0.5s;
    }

    .navbar .navbar-nav .nav-item::after,
    .navbar .navbar-nav .nav-item::before {
        display: none;
    }

    .navbar .navbar-nav .nav-item:hover::after,
    .navbar .navbar-nav .nav-item:hover::before,
    .navbar .navbar-nav .nav-item.active::after,
    .navbar .navbar-nav .nav-item.active::before {
        display: none;

    }

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

    .navbar .navbar-nav .nav-item {
        margin: 0;
    }

    .navbar .navbar-nav .nav-item.nav-link {
        padding: 12px 0;
    }
}
/*** Navbar End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 18, 72, 0.35), rgba(0, 18, 72, 0.35)), url(../img/carousel-2.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0 60px 0;
}

.bg-breadcrumb .breadcrumb {
    position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}

/* Hero sin degradé azulado (imagen limpia y pura). Se usa en todas las
   páginas internas (Nosotros, Novedades del Rubro, Por qué elegirnos,
   Proyectos, Servicios) — el inicio no aplica, tiene su propio hero de
   video. Contacto y Preguntas Frecuentes usan su propio overlay oscuro
   inline y no pasan por esta clase. */
.bg-breadcrumb.rc-hero-sin-efecto {
    background-image: url(../img/carousel-2.webp);
}

/* Variante con overlay oscuro (no azul) para páginas donde el texto
   necesita más contraste que el degradé azulado — Contacto y Preguntas
   Frecuentes. El valor de acá es solo el fallback antes de que cargue
   la imagen elegida desde el panel de obras (mismo patrón que arriba). */
.bg-breadcrumb.rc-hero-oscuro[data-slot-bg="contacto_hero"] {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(../img/contact-bg.webp);
}
.bg-breadcrumb.rc-hero-oscuro[data-slot-bg="preguntas_frecuentes_hero"] {
    background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url(../img/carousel-3.webp);
}
/*** Single Page Hero Header End ***/

/*** Carousel Start ***/
.carousel .carousel-inner .carousel-item {
    position: relative;
    overflow: hidden;
    height: 100vh;
}

@media (min-width: 992px) {
    .carousel .carousel-inner .carousel-item img {
        height: 100%;
        object-fit: cover;   
    }
}

@media (max-width: 991px) {
    .carousel .carousel-inner .carousel-item {
        height: 700px;
    }
    .carousel .carousel-inner .carousel-item img {
        height: 700px;
        object-fit: cover;    
    }
}

@media (max-width: 576px) {
    .carousel-item .carousel-caption h1 {
        font-size: 36px;
    }

    .carousel-item .carousel-caption p.fs-5 {
        font-size: 15px;
    }
}

.carousel .carousel-inner .carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Vignette radial: bordes más oscuros, centro con algo de vida */
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.32) 100%),
        /* Degradado vertical: zona central (donde está el texto) oscuro moderado */
        linear-gradient(
            to bottom,
            rgba(0, 6, 30, 0.28) 0%,
            rgba(0, 6, 30, 0.60) 30%,
            rgba(0, 6, 30, 0.65) 55%,
            rgba(0, 6, 30, 0.38) 100%
        );
    z-index: 1;
}

/* Las imágenes del carousel bajan su brillo para potenciar el efecto tenue */
.carousel .carousel-inner .carousel-item img {
    filter: brightness(0.88) saturate(0.90);
    transition: filter 0.6s ease;
}

.carousel .carousel-inner .carousel-item .carousel-caption {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.carousel .carousel-indicators {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    z-index: 5;
}

.carousel .carousel-indicators li,
.carousel .carousel-indicators li,
.carousel .carousel-indicators li {
    margin-right: 30px !important;
    width: 10px;
    height: 10px;
    border: 6px solid var(--bs-secondary);
    background: var(--bs-white);
    transition: 0.5s;
}

.carousel .carousel-indicators li.active {
    border: 10px solid var(--bs-primary);
}

.carousel .carousel-control-prev,
.carousel .carousel-control-next {
    background: transparent;
}

.carousel .carousel-control-prev .carousel-control-prev-icon {
    position: absolute;
    left: 0;
    padding: 25px 30px;
    background: var(--bs-primary);

}

.carousel .carousel-control-next .carousel-control-next-icon {
    position: absolute;
    right: 0;
    padding: 25px 30px;
    background: var(--bs-primary);

}

.carousel .carousel-control-prev .carousel-control-prev-icon:hover,
.carousel .carousel-control-next .carousel-control-next-icon:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
/*** Carousel End ***/


/*** About Start ***/
.about .about-item-content-img {
    border: 4px solid;
    border-color: var(--bs-secondary) var(--bs-primary) var(--bs-primary) var(--bs-secondary);
}

.about .about-item-image {
    position: relative;
    background: var(--bs-light);
    background-image: url(../img/about-bg.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.about .about-item-image .img-1 {
    margin-bottom: 250px; 
    margin-right: 0;
    border: 4px solid;
    border-color: var(--bs-secondary) var(--bs-light) var(--bs-light) var(--bs-secondary);
    z-index: 3;
}

.about .about-item-image .img-2 {
    margin-top: 250px; 
    margin-left: 0;
    border: 4px solid;
    border-color: var(--bs-light) var(--bs-secondary) var(--bs-secondary) var(--bs-light); 
    z-index: 3;
}

.about .about-item-image::before {
    width: 80%;
    height: 80%;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid;
    border-style: dotted;
    border-color: var(--bs-white);
    background: var(--bs-primary);
    z-index: 2;
}

.about .about-item-image .about-item-image-content {
    width: 55%;
    height: 55%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bs-secondary);
    border: 4px solid var(--bs-primary);
    opacity: 0.9;
    z-index: 4;
}

.about .about-item-image .about-item-image-effect {
    position: absolute;
    top: 0;
    right: 0;
}
/*** About End ***/

/*** Features Start ***/
.feature .feature-item {
    position: relative;
    transition: 0.5s;
}
.feature .feature-item:hover {
    background: var(--bs-primary);
    border: 1px solid transparent;
    box-shadow: 0 0 45px rgba(0, 0, 0, .25);
}

.feature .feature-item:hover a {
    transition: 0.5s;
    color: var(--bs-white);
}

.feature .feature-item:hover a:hover {
    color: var(--bs-secondary);
}

.feature .feature-item:hover p {
    color: rgba(255, 255, 255, 0.82);
}

.feature .feature-item .feature-img img {
    border: transparent;
    transition: 0.5s;
} 

.feature .feature-item:hover .feature-img img {
    border: 1px solid var(--bs-secondary);
}  
/*** Features End ***/

/*** Services Start ***/
.service .service-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transition: 0.5s;
    z-index: 1;
}

.service .service-item .service-img {
    height: 260px;
    overflow: hidden;
}

.service .service-item .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.service .service-item:hover .service-img img {
    transform: scale(1.2);
}

.service .service-item::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
    z-index: 2;
}

.service .service-item:hover:after {
    height: 100%;
    background: rgba(0, 0, 0, .4);
}

.service .service-item .service-content {
    position: absolute;
    width: 100%;
    height: auto;
    top: 50%; 
    left: 0; 
    transform: translateY(-50%);
    transition: 0.5s;
    opacity: 0;
    z-index: 3;
}

.service .service-item:hover .service-content {
    opacity: 1;
}

.service .service-item:hover .service-content a.fs-4 {
    color: var(--bs-white);
    transition: 0.5s;
}

.service .service-item:hover .service-content a.fs-4:hover {
    color: var(--bs-white);
}

.service .service-item .service-title {
    position: absolute;
    width: 100%;
    height: 80px; 
    bottom: 0; 
    right: 0;
    background: var(--bs-light);
    display: flex;
    transition: 0.5s;
    z-index: 3;
}

.service .service-item:hover .service-title {
    margin-right: -100%;
}
/*** Services End ***/

/*** Blog Start ***/
.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.2);
}

.blog .blog-item {
    display: flex;
    flex-direction: column;
}

.blog .blog-item .blog-content {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog .blog-item .blog-content p.mb-3:last-of-type {
    flex: 1;
}

.blog .blog-item .blog-content a {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-content a:hover {
    color: var(--bs-secondary);
}
/*** Blog End ***/

/*** Contact Start ***/
.contact .contact-map {
    position: relative;
    overflow: hidden;
    padding: 20px;
    z-index: 1;
}

.contact .contact-map::before {
    content: "";
    width: 70%;
    height: 70%;
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--bs-primary);
    z-index: -1;
}

.contact .contact-map::after {
    content: "";
    width: 70%;
    height: 70%;
    position: absolute;
    top: 0;
    right: 0;
    background: var(--bs-secondary);
    z-index: -1;
}
/*** Contact End ***/

/*** Footer Start — versión compacta (antes: line-height:35px por link/párrafo
     disparaba la altura; se reemplaza por espaciado real y más chico) ***/
.footer {
    background: linear-gradient(rgba(0, 18, 72, 0.9), rgba(0, 18, 72, 1)), url(../img/footer-img.webp);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}
.footer .footer-item {
    gap: 9px;
}
.footer .footer-item a {
    line-height: 1.3;
    font-size: 0.92rem;
    color: var(--bs-body);
    transition: 0.3s;
}
.footer .footer-item h4 {
    font-size: 1.05rem;
    margin-bottom: 14px !important;
}
.footer .footer-logo {
    height: 36px;
    width: auto;
}
.footer .footer-item p {
    line-height: 1.55;
    font-size: 0.88rem;
}
.footer .footer-item a:hover {
    letter-spacing: 0.3px;
    color: var(--bs-white);
}
.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.3s;
}
.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}
.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary) !important;
}
/* Servicios en 2 columnas para no apilar 10 links en una sola lista larga */
.footer-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    row-gap: 9px;
}
.footer-services-grid a {
    font-size: 0.86rem;
}
@media (max-width: 767px) {
    .footer-services-grid {
        grid-template-columns: 1fr;
    }
}
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark);
    font-size: 0.82rem;
}
/*** copyright end ***/



/* ============================================================
   PATCH v5.1 — Feature Hover + Scroll Fix + Responsive
   ============================================================ */

/* ── 1. FEATURE CARD HOVER — icon block becomes primary/blue ── */
.feature .feature-item .feature-img {
    transition: background 0.35s cubic-bezier(0.4,0,0.2,1),
                transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.35s ease;
}
.feature .feature-item:hover .feature-img {
    background: var(--bs-white) !important;
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.feature .feature-item .feature-img i {
    transition: color 0.35s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.feature .feature-item:hover .feature-img i {
    color: var(--bs-primary) !important;
    transform: scale(1.12) rotate(-4deg);
}
.feature .feature-item {
    transition: transform 0.35s ease, box-shadow 0.35s ease,
                border-color 0.35s ease;
    border-radius: 4px;
    overflow: hidden;
}
.feature .feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 18, 72, 0.35) !important;
    border-color: transparent !important;
}
/* Subtle shimmer on card hover */
.feature .feature-item::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 0;
}
.feature .feature-item:hover::before {
    left: 150%;
}

/* Títulos de sección (display-4): Bootstrap trae font-weight:700 por
   defecto para esta clase — ese peso, no solo el tamaño, era gran parte
   de lo "grueso". Se baja a 600 y se modera el tamaño. */
.display-4 {
    font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem);
    font-weight: 600;
}

/* ── 1.5 HERO — título fino y contenido. Bootstrap traía display-1 a
   5rem/700 en serif; ahora sans-serif, peso 400 (fino de verdad) y un
   tamaño bastante más chico. ── */
.carousel-caption p.text-uppercase.fs-4 {
    font-size: 0.9rem !important;
    letter-spacing: .12em;
    font-weight: 500;
    opacity: .85;
}
.carousel-caption h1.display-1,
.carousel-caption h2.display-1 {
    font-size: clamp(1.9rem, 2.6vw, 2.6rem) !important;
    font-weight: 400;
    line-height: 1.3;
}
.carousel-caption p.fs-5 {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-size: 1rem !important;
}

/* ── 2. SCROLL STABILITY — prevent layout-triggered jumps ── */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    position: relative;
}
/* Prevent parallax images from causing scroll reflow */
.carousel-item img {
    will-change: auto !important;
    transform: none !important;
}
/* Stabilize carousel height on mobile */
@media (max-width: 575px) {
    .carousel .carousel-inner .carousel-item {
        height: 85vh;
        min-height: 500px;
    }
    .carousel .carousel-inner .carousel-item img {
        height: 85vh;
        min-height: 500px;
    }
}

/* ── 3. COUNTER — visual polish ── */
.rc-counter-val {
    display: inline-block;
    background: linear-gradient(135deg, #FF5E15, #ff8c50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
    min-width: 80px;
}

/* ── 4. RESPONSIVE — mobile nav & layout ── */
/* Nav: prevent overflow on small screens */
#rc-nav .navbar {
    padding: 10px 15px;
}
@media (max-width: 991px) {
    #rc-nav .collapse.show,
    #rc-nav .collapsing {
        background: rgba(0, 22, 89, 0.98);
        padding: 12px 16px;
        border-radius: 0 0 10px 10px;
        margin: 0 -15px;
    }
    #rc-nav .navbar-nav .nav-link {
        color: #fff !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 12px 4px !important;
    }
    #rc-nav .navbar-nav .nav-link:last-child { border-bottom: none; }
    .d-flex.align-items-center.flex-nowrap { margin-top: 12px; }
    .d-flex.align-items-center.flex-nowrap .btn { width: 100%; justify-content: center; }
    /* Hero carousel captions */
    .carousel-caption {
        padding: 0 8px;
    }
    .carousel-caption h1.display-1 {
        font-size: clamp(1.6rem, 6vw, 3rem) !important;
    }
    .carousel-caption p.fs-5 {
        font-size: 0.9rem !important;
    }
    .carousel-caption .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    .carousel-caption .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto !important;
    }
}
@media (max-width: 575px) {
    /* About section images stacked */
    .about-item-image {
        min-height: 340px;
    }
    .about .about-item-image .img-1 { margin-bottom: 150px; }
    .about .about-item-image .img-2 { margin-top: 150px; }
    /* Sections padding reduced */
    .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    /* Bento grid single column */
    .rc-service-bento { grid-template-columns: 1fr !important; }
    /* Stats 2x2 readable */
    .rc-dark-section .display-5 { font-size: 1.8rem !important; }
    /* Feature items full width */
    .feature .feature-item { padding: 1.8rem !important; }
    /* H-scroll cards narrower */
    .rc-hscroll-card { min-width: 80vw; }
    /* Testimonial cards */
    .bg-white.p-4.border { padding: 1rem !important; }
    /* Blog items */
    .blog-item { margin-bottom: 1rem; }
    /* CTA section */
    .container-fluid.bg-primary .d-flex.gap-3 {
        flex-direction: column;
        align-items: stretch;
    }
    .container-fluid.bg-primary .btn {
        width: 100%;
        font-size: 1rem !important;
    }
}
/* Tablet adjustments */
@media (min-width: 576px) and (max-width: 991px) {
    .carousel-caption h1.display-1 {
        font-size: clamp(2rem, 5vw, 3.5rem) !important;
    }
    .about-item-image { margin-bottom: 2rem; }
    .rc-service-bento { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── 5. NAV SCROLLED STATE — thinner, sharper ── */
#rc-nav.scrolled .navbar {
    padding: 6px 15px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
#rc-nav.scrolled .navbar-brand h1 {
    font-size: 1.2rem !important;
}

/* ── 6. BACK-TO-TOP — ensure always visible above content ── */
.back-to-top {
    z-index: 9999 !important;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
}

/* ── 7. IMAGES — prevent layout shift ── */
img {
    max-width: 100%;
    height: auto;
}
.rc-hscroll-card img,
.rc-svc-card img,
.service-img img,
.blog-img img {
    will-change: transform;
    backface-visibility: hidden;
}

/* ── 8. SPINNER — faster hide ── */
#spinner {
    transition: opacity 0.3s ease-out, visibility 0s linear 0.3s !important;
}


/* ══════════════════════════════════════════════════════════════
   ABOUT GALLERY — nuevo diseño v11
   ══════════════════════════════════════════════════════════════ */

.rc-about-single {
    position: relative;
    height: 490px;
    border-radius: 10px;
    overflow: hidden;
}

/* Desktop: la columna de imagen (rc-about-media) se estira para igualar
   la altura de la columna de texto, así ambas terminan en la misma línea
   en vez de que la imagen quede corta y el bloque de texto siga de largo. */
@media (min-width: 1200px) {
    .rc-about-media .rc-about-single { height: 100%; }
}

.rc-about-single img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.25,.46,.45,.94);
    display: block;
}

.rc-about-single:hover img {
    transform: scale(1.07);
}

/* Badge flotante de experiencia */
.rc-ag-badge {
    position: absolute;
    bottom: 20px;
    left: -14px;
    background: #FF5E15;
    color: #fff;
    border-radius: 8px;
    padding: 14px 20px;
    text-align: center;
    box-shadow: 0 8px 28px rgba(255,94,21,.45);
    z-index: 10;
    animation: rc-badge-float 4s ease-in-out infinite;
}

@keyframes rc-badge-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}

.rc-ag-badge .rc-ag-badge-num {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    font-family: "Nunito Sans", sans-serif;
}

.rc-ag-badge .rc-ag-badge-txt {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .9;
    margin-top: 2px;
}

/* Sello de marca flotante — reemplaza la foto duplicada, esquina inferior derecha del grid */
.rc-ag-team {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #001659;
    border: 4px solid #E6A836;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    z-index: 10;
    transition: transform .35s ease;
}
.rc-ag-team:hover { transform: scale(1.08); }
.rc-ag-team img {
    width: 55%;
    height: 55%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Fade-in para la imagen única */
.rc-about-single {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.rc-about-single.rc-visible { opacity:1; transform:none; transition-delay: 0.05s; }

/* ── MOBILE ── */
@media (max-width: 575px) {
    .rc-about-single { height: 330px; }
    .rc-ag-badge {
        left: 8px;
        bottom: 12px;
        padding: 10px 14px;
    }
    .rc-ag-badge .rc-ag-badge-num { font-size: 1.6rem; }
    .rc-ag-team { width: 72px; height: 72px; bottom: -6px; right: -6px; border-width: 3px; }
}

@media (max-width: 400px) {
    .rc-about-single { height: 285px; }
}

/* ══════════════════════════════════════════════════════════════
   TESTIMONIOS — carrusel deslizable en mobile
   Desktop/tablet: se mantiene el grid tal cual estaba.
   ══════════════════════════════════════════════════════════════ */
.rc-testi-hint { font-size: 0.85rem; }

@media (max-width: 767px) {
    .rc-testi-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        margin-left: 0;
        margin-right: 0;
        cursor: grab;
    }
    .rc-testi-row::-webkit-scrollbar { display: none; }
    .rc-testi-row:active { cursor: grabbing; }
    .rc-testi-col {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: start;
    }
}

/* ── CHECKS styling update ── */
.rc-about-checks .rc-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    transition: background .2s;
}

.rc-about-checks .rc-check-item:hover {
    background: #f8f9fa;
}

.rc-about-checks .rc-check-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #FF5E15;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-about-checks .rc-check-icon i {
    color: #fff;
    font-size: 0.7rem;
}

/* Certif badges */
.rc-cert-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.rc-cert-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: border-color .2s, box-shadow .2s;
}

.rc-cert-badge:hover {
    border-color: #FF5E15;
    box-shadow: 0 4px 16px rgba(255,94,21,.15);
}

.rc-cert-badge i {
    color: #FF5E15;
    font-size: 1.1rem;
}

.rc-cert-badge span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #001659;
    line-height: 1.2;
}


/* ===========================================================
   Botón Flotante de WhatsApp (#rc-wa-float)
   Consolidado desde bloques <style> duplicados en:
   about, blog, contact, feature, index, service
   =========================================================== */
#rc-wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.55);
    text-decoration: none;
    transition: width .35s cubic-bezier(.4,0,.2,1), border-radius .35s, background .2s, box-shadow .2s;
    overflow: hidden;
    white-space: nowrap;
    gap: 0;
}
#rc-wa-float:hover {
    width: 195px;
    border-radius: 30px;
    background: #1ebe5d;
    box-shadow: 0 6px 28px rgba(37,211,102,.7);
    gap: 10px;
    padding: 0 20px 0 14px;
    justify-content: flex-start;
}
#rc-wa-float .rc-wa-label {
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    max-width: 0;
    opacity: 0;
    transition: max-width .35s, opacity .25s .1s;
    overflow: hidden;
    pointer-events: none;
}
#rc-wa-float:hover .rc-wa-label {
    max-width: 130px;
    opacity: 1;
}
@media (max-width: 576px) {
    #rc-wa-float { bottom: 18px; right: 18px; width: 54px; height: 54px; font-size: 1.6rem; }
}
@keyframes wa-pulse {
    0%   { box-shadow: 0 4px 20px rgba(37,211,102,.55); }
    50%  { box-shadow: 0 4px 32px rgba(37,211,102,.85), 0 0 0 8px rgba(37,211,102,.12); }
    100% { box-shadow: 0 4px 20px rgba(37,211,102,.55); }
}
#rc-wa-float { animation: wa-pulse 2.8s ease-in-out infinite; }
#rc-wa-float:hover { animation: none; }

/* =========================================================
   HIDRATACIÓN DE IMÁGENES (js/sitio-imagenes.js) — anti-parpadeo
   =========================================================
   Antes de que el script reemplace src/background por la URL
   cargada desde el panel admin, las imágenes "editables" quedan
   ocultas (no en display:none, para no romper el layout: el
   width/height ya reservan el espacio). Se revelan con un fade
   corto apenas el script confirma qué imagen corresponde a cada
   slot, evitando el flash de la imagen vieja del repo.
   Si JS está desactivado, la clase rc-js nunca se agrega y las
   imágenes quedan visibles con su fallback de siempre. */
.rc-js [data-slot],
.rc-js [data-slot-bg] {
    visibility: hidden;
    opacity: 0;
}
.rc-js.rc-img-hydrated [data-slot],
.rc-js.rc-img-hydrated [data-slot-bg] {
    visibility: visible;
    opacity: 1;
    transition: opacity .25s ease;
}

/* ─── Página Servicios (service.html): compactar sección "Nuestros
   Servicios" para que las 5 tarjetas se vean completas al ingresar,
   sin necesidad de scrollear. En vez de depender de que 2 filas (3+2)
   quepan en el alto de la pantalla, las 5 se acomodan en una sola fila
   desde lg (992px) hacia arriba. Por debajo de 992px se mantiene el
   apilado vertical normal (ya es una página con scroll esperado). ───── */
@media (min-width: 992px) {
    .rc-services-grid > .rc-service-col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}
.rc-services-grid .service-item .service-img {
    height: 200px;
}
@media (min-width: 992px) {
    .rc-services-grid .service-item .service-title h4 {
        font-size: 1.1rem;
    }
}
