/* Toggle de redes sociales en responsive */
@media (max-width: 991px) {
    /* Mostrar el contenedor en móviles; el estilo visual de los botones se mantiene en floating-social.css */
    .floating-social {
        display: flex !important;
        z-index: 11000;
    }

    /* Si existe un toggle, ocultarlo (no necesario cuando usamos siempre visibles) */
    .floating-social-toggle {
        display: none !important;
    }

    /* Mantener comportamiento de la navbar en mobile (sin alterar botones) */
    .navbar-dark .navbar-nav .nav-link {
        color: #1a73e8 !important;
        text-shadow: 1px 1px 2px #fff, -1px -1px 2px #fff;
    }
    .navbar-dark .navbar-nav .nav-link.active {
        color: #1a73e8 !important;
        font-weight: bold;
    }
}
/* ===== END CHANGED ===== */
/* Contact Section Animada */
.contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    background: #f6f9ff;
    padding: 60px 0;
}
.contact-visual {
    position: relative;
    width: 420px;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-blob {
    position: absolute;
    width: 380px;
    height: 260px;
    background: #ffa940;
    border-radius: 60% 40% 50% 70%/60% 30% 70% 40%;
    z-index: 1;
    left: 0; top: 0;
    animation: blobMove 6s ease-in-out infinite alternate;
}
@keyframes blobMove {
    0% { border-radius: 60% 40% 50% 70%/60% 30% 70% 40%; transform: scale(1) translateY(0);}
    100% { border-radius: 50% 60% 60% 40%/50% 60% 40% 60%; transform: scale(1.05) translateY(12px);}
}
.contact-img {
    position: relative;
    z-index: 2;
    width: 320px;
    max-width: 100%;
}
.contact-form {
    background: radial-gradient(circle at 60% 40%, #1cb5e0 0%, #000851 100%);
    padding: 36px 24px 32px 24px;
    min-width: 340px;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(44, 62, 80, 0.10);
}
.contact-title {
    color: #1a73e8;
    font-weight: 700;
    margin-bottom: 8px;
}
.contact-heading {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 32px;
}
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.form-row input {
    flex: 1;
}
input, textarea {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #ffc107;
    background: #fff;
    font-size: 1rem;
    color: #222;
    box-shadow: 0 2px 8px rgba(255,193,7,0.08);
    transition: border 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
    border: 2.5px solid #ff9800;
    background: #fffde7;
    outline: none;
    box-shadow: 0 4px 16px rgba(255,193,7,0.18);
}
.btn-cotiza {
    background: #f4b622;
    color: #fff !important;
    border: none;
    border-radius: 30px;
    padding: 10px 36px;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.5px;
}
.btn-cotiza:hover, .btn-cotiza:focus {
    background: #e6a800;
    color: #fff !important;
}
@media (max-width: 900px) {
    .contact-section { flex-direction: column; gap: 24px; }
    .contact-visual { width: 100%; }
}
/* Logo swap on scroll */
.navbar-brand img.logo-scroll {
    display: none;
}
.navbar.scrolled .navbar-brand img.logo-default {
    display: none;
}
.navbar.scrolled .navbar-brand img.logo-scroll {
    display: inline-block;
}
/* Fondo negro solo detrás del logo en la navbar */
.navbar-logo-bg {
    display: inline-block;
    background: rgba(0,0,0,0.85);
    border-radius: 12px;
    padding: 6px 18px 6px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#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;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
/* Por defecto: no fijo (móvil y pantallas pequeñas) y fondo transparente */
.navbar {
    position: static;
    top: 0;
    z-index: 12000;
    transition: padding 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
    background-color: transparent;
}

/* Cuando el usuario haga scroll (se añade .scrolled via JS): fondo blanco y sombra */
.navbar.scrolled {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    background-color: rgba(255,255,255,0.98);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Links y logo: en estado scrolled usar tonos oscuros para legibilidad */
.navbar.scrolled .navbar-nav .nav-link,
.navbar.scrolled .navbar-brand,
.navbar.scrolled .navbar-brand h1 {
    color: var(--dark) !important;
}
.navbar.scrolled .navbar-nav .nav-link:hover,
.navbar.scrolled .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* Mantener links blancos cuando NO está scrolleada (por encima) */
.navbar .navbar-nav .nav-link {
    color: #ffffff !important;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* Hacer la navbar sticky solo en pantallas grandes (desktop/tablet >=992px) */
@media (min-width: 992px) {
    .navbar {
        position: sticky;
        top: 0;
    }

    /* Si usas .navbar-dark con posición absoluta (overlay header), conservar ese comportamiento */
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
}

/* Asegurarse que en móvil la navbar no quede fija */
/* REEMPLAZADO: ahora la navbar será sticky en todas las pantallas para que no "desaparezca" al scrollear en mobile */
@media (max-width: 991.98px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 12000; /* asegurar que quede encima del contenido */
    }
}

@media (max-width: 991px) {
    .floating-social {
        display: flex;
    }
    .floating-social-toggle {
        display: none;
    }
    .navbar-brand img.logo-default {
        display: block !important;
    }
    .navbar-brand img.logo-scroll {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    /* Mantener fixed si se usa sticky-top, pero sin fondo blanco para que la navbar quede transparente */
    .sticky-top.navbar-dark {
        position: fixed;
        background: transparent;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title {
    position: relative;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 8px;
    left: 0;
    bottom: 0;
    background: #00a9e0; /* color barra azul */
    border-radius: 8px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    left: 0;
    bottom: -4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff, 0 0 2px #00a9e0;
    animation: punto-move 2.5s infinite alternate cubic-bezier(.4,0,.2,1);
    z-index: 2;
}

@keyframes punto-move {
    0% { left: 0; }
    100% { left: 134px; }
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.text-center::after {
    left: 50%;
    margin-left: -75px;
    animation: punto-move-center 2.5s infinite alternate cubic-bezier(.4,0,.2,1);
}

@keyframes punto-move-center {
    0% { margin-left: -75px; }
    100% { margin-left: 59px; }
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 6px;
}

.section-title.section-title-sm::after {
    width: 12px;
    height: 12px;
    bottom: -3px;
    animation: punto-move-sm 2.5s infinite alternate cubic-bezier(.4,0,.2,1);
}

@keyframes punto-move-sm {
    0% { left: 0; }
    100% { left: 78px; }
}



/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

/* Floating Abstract Shapes Background */
.floating-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.floating-shape {
    position: absolute;
    opacity: 0.18;
    border-radius: 50%;
    filter: blur(2px);
    animation-timing-function: ease-in-out;
    z-index: -1;
}
.shape1 {
    width: 220px; height: 220px; background: #ffb347;
    left: 5vw; top: 10vh;
    animation: float1 12s infinite alternate;
}
.shape2 {
    width: 160px; height: 160px; background: #6dd5ed;
    left: 70vw; top: 20vh;
    animation: float2 14s infinite alternate;
}
.shape3 {
    width: 120px; height: 120px; background: #f7797d;
    left: 40vw; top: 70vh;
    animation: float3 16s infinite alternate;
}
.shape4 {
    width: 90px; height: 90px; background: #a8ff78;
    left: 80vw; top: 80vh;
    animation: float4 18s infinite alternate;
}
.shape5 {
    width: 180px; height: 180px; background: #e0c3fc;
    left: 20vw; top: 60vh;
    animation: float5 20s infinite alternate;
}
@keyframes float1 {
    0% { transform: translateY(0) scale(1);}
    100% { transform: translateY(-60px) scale(1.1);}
}
@keyframes float2 {
    0% { transform: translateY(0) scale(1);}
    100% { transform: translateY(80px) scale(0.95);}
}
@keyframes float3 {
    0% { transform: translateY(0) scale(1);}
    100% { transform: translateY(-40px) scale(1.15);}
}
@keyframes float4 {
    0% { transform: translateY(0) scale(1);}
    100% { transform: translateY(-70px) scale(1.05);}
}
@keyframes float5 {
    0% { transform: translateY(0) scale(1);}
    100% { transform: translateY(50px) scale(0.9);}
}
@media (max-width: 768px) {
    .floating-shape { opacity: 0.10; }
    .shape1, .shape2, .shape3, .shape4, .shape5 {
        width: 80px !important; height: 80px !important;
    }
}

/* Navbar logo swap on scroll */
.navbar-brand img.logo-scroll {
    display: none;
}
.navbar.scrolled .navbar-brand img.logo-default {
    display: none;
}
.navbar.scrolled .navbar-brand img.logo-scroll {
    display: inline-block;
}
  
        body {
            background: linear-gradient(135deg, #00000000 0%, #00000000 100%);
            position: relative;
        }

        .abstract-bg-shapes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
        }

        .abstract-shape {
            position: absolute;
            border-radius: 50%;
            opacity: 0.45;
            filter: blur(32px);
            mix-blend-mode: lighten;
        }

        .shape1 {
            width: 380px;
            height: 320px;
            left: -120px;
            top: 40px;
            background: radial-gradient(circle at 60% 40%, #b8c6e7 0%, #e9eef6 100%);
        }

        .shape2 {
            width: 260px;
            height: 260px;
            right: -80px;
            top: 120px;
            background: radial-gradient(circle at 40% 60%, #e0e7ef 0%, #c3cfe2 100%);
        }

        .shape3 {
            width: 220px;
            height: 180px;
            left: 10vw;
            bottom: 8vh;
            background: radial-gradient(circle at 70% 30%, #cfd8e7 0%, #f6f8fc 100%);
        }

        .shape4 {
            width: 160px;
            height: 160px;
            right: 12vw;
            bottom: 10vh;
            background: radial-gradient(circle at 30% 70%, #b0b8c1 0%, #e9eef6 100%);
        }

        .shape5 {
            width: 120px;
            height: 100px;
            left: 45vw;
            top: 70vh;
            background: radial-gradient(circle at 50% 50%, #d1d9e6 0%, #f6f8fc 100%);
        }

        @media (max-width: 768px) {
            .shape1,
            .shape2,
            .shape3,
            .shape4,
            .shape5 {
                filter: blur(18px);
                opacity: 0.32;
            }

            .shape1 {
                width: 180px;
                height: 140px;
                left: -60px;
                top: 20px;
            }

            .shape2 {
                width: 120px;
                height: 120px;
                right: -40px;
                top: 60px;
            }

            .shape3 {
                width: 90px;
                height: 80px;
                left: 8vw;
                bottom: 8vh;
            }

            .shape4 {
                width: 80px;
                height: 80px;
                right: 8vw;
                bottom: 8vh;
            }

            .shape5 {
                width: 60px;
                height: 50px;
                left: 40vw;
                top: 70vh;
            }
        }
/* Floating social: posición vertical, esquina inferior izquierda.
   IMPORTANT: no se modifican estilos visuales de los botones (background, shadow, border, padding). */
#floatingSocial {
    position: fixed;
    left: 20px;              /* esquina izquierda */
    bottom: 20px;            /* misma altura que back-to-top */
    display: flex !important;
    flex-direction: column !important; /* fuerza vertical */
    gap: 10px;
    z-index: 11000;
    pointer-events: auto;
    /* no tocar background/box-shadow/border/padding aquí */
}

/* Forzar vertical también en pantallas pequeñas, ajustar separación si hace falta */
@media (max-width: 576px) {
    #floatingSocial {
        left: 12px;
        bottom: 20px;
        gap: 8px;
        flex-direction: column !important;
    }
}

/* Navbar sticky (sin cambios visuales agresivos) */
/* Por defecto: no fijo (móvil y pantallas pequeñas) y fondo transparente */
.navbar {
    position: static;
    top: 0;
    z-index: 12000;
    transition: padding 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
    background-color: transparent;
}

/* Cuando el usuario haga scroll (se añade .scrolled via JS): fondo blanco y sombra */
.navbar.scrolled {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    background-color: rgba(255,255,255,0.98);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Links y logo: en estado scrolled usar tonos oscuros para legibilidad */
.navbar.scrolled .navbar-nav .nav-link,
.navbar.scrolled .navbar-brand,
.navbar.scrolled .navbar-brand h1 {
    color: var(--dark) !important;
}
.navbar.scrolled .navbar-nav .nav-link:hover,
.navbar.scrolled .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* Mantener links blancos cuando NO está scrolleada (por encima) */
.navbar .navbar-nav .nav-link {
    color: #ffffff !important;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* Hacer la navbar sticky solo en pantallas grandes (desktop/tablet >=992px) */
@media (min-width: 992px) {
    .navbar {
        position: sticky;
        top: 0;
    }

    /* Si usas .navbar-dark con posición absoluta (overlay header), conservar ese comportamiento */
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
}

/* SOLUCIÓN: Navbar fija en móvil (ajuste para navegadores donde 'sticky' falla) */
@media (max-width: 991.98px) {
    .navbar {
        position: fixed; /* CAMBIO CLAVE: Usamos 'fixed' para máxima fiabilidad */
        top: 0;
        width: 100%; /* Asegurar que ocupe todo el ancho */
        z-index: 12000; 
        /* Importante: En fixed, el navbar sale del flujo, se necesita padding en el body */
    }

    /* Compensación: Ajustar el padding superior del body para que el contenido no quede debajo del navbar fijo */
    body {
        padding-top: 75px; /* Se recomienda 75px. Ajustar si tu navbar es más alto/bajo. */
    }
}
/* Ajustes para menú colapsado en móviles: fondo claro y enlaces en azul oscuro para legibilidad */
@media (max-width: 991.98px) {
	/* Color del icono del toggler (menú) en móvil */
	.navbar-toggler {
		color: #083d66 !important; /* azul oscuro aclarado */
		border-color: rgba(8,61,102,0.12) !important;
	}

	/* Cuando el collapse está abierto (Bootstrap añade .show) */
	.navbar-collapse.collapse.show {
		background-color: rgba(255,255,255,0.98); /* fondo blanco translúcido */
		padding: 12px 16px;
		border-radius: 8px;
		/* mantener encima de otros elementos */
		box-shadow: 0 6px 18px rgba(0,0,0,0.06);
	}

	/* Enlaces dentro del menú abierto: azul oscuro para que sean visibles sobre fondo blanco */
	.navbar-collapse.collapse.show .nav-link {
		color: #083d66 !important;
		font-weight: 600;
		padding: 10px 0;
	}

	/* Hover / activo dentro del menú móvil */
	.navbar-collapse.collapse.show .nav-link:hover,
	.navbar-collapse.collapse.show .nav-link.active {
		color: var(--primary) !important;
	}

	/* Si la clase .scrolled se aplica en móvil, mantener contraste: texto oscuro sobre fondo blanco */
	.navbar.scrolled .navbar-collapse.collapse.show .nav-link {
		color: #083d66 !important;
	}
}

/* ===== Navbar: aumentar altura en mobile para que no se salga el logo ===== */
.navbar-brand { display: flex; align-items: center; gap: 8px; }

/* Ajustes generales para navbar */
.navbar {
	/* permite suficiente espacio vertical por defecto */
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
}

/* Mobile: más alto para que el logo quepa y el toggler quede centrado */
@media (max-width: 576px) {
	.navbar {
		min-height: 95px;            /* aumenta la caja del navbar */
		padding-top: 0.9rem;
		padding-bottom: 0.9rem;
	}
	/* Forzar max-height del logo para que no desborde (sobrescribe inline) */
	.navbar .navbar-brand img.logo-default,
	.navbar .navbar-brand img.logo-scroll,
	.navbar .navbar-brand img {
		height: auto !important;
		max-height: 64px !important; /* ajustar si quieres logo más grande/pequeño */
		width: auto !important;
	}
	/* Centrar toggler y garantizar espacio */
	.navbar .navbar-toggler {
		align-self: center;
		margin-top: 0;
	}
	/* Si el menú colapsado aparece encima, darle algo de separación */
	.navbar-collapse {
		margin-top: 6px;
	}
}

/* Tablet: opción intermedia */
@media (min-width: 577px) and (max-width: 991px) {
	.navbar {
		min-height: 76px;
		padding-top: 0.7rem;
		padding-bottom: 0.7rem;
	}
	.navbar .navbar-brand img.logo-default,
	.navbar .navbar-brand img.logo-scroll {
		max-height: 68px;
	}
}

/* opcional: evitar que el logo empuje el menú en navegadores muy pequeños */
.navbar-brand { white-space: nowrap; }

/* === Floating social: restore original circular colored buttons (visual only) === */
.floating-social {
	/* posicionamiento ya está definido en #floatingSocial; esta regla asegura layout interno */
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}

/* Circle buttons: keep visuals (size, color, shadow) */
.floating-social a {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	/* preserve pointer area and original rhythm */
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
	box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Make SVG icons appear white regardless of intrinsic color */
.floating-social a img {
	width: 28px;
	height: 28px;
	display: block;
	/* force white icon (works with monochrome SVGs) */
	filter: brightness(0) invert(1);
}

/* Brand colors matching the screenshot */
.floating-social a.social-yelp { background: #c41200; }         /* Yelp red */
.floating-social a.social-instagram {
	background: radial-gradient(circle at 30% 30%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.floating-social a.social-google { background: #db4437; }       /* Google red */
.floating-social a.social-facebook { background: #1877f2; }     /* Facebook blue */
.floating-social a.social-whatsapp { background: #25d366; }     /* WhatsApp green */

/* Hover / active */
.floating-social a:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.14); }
.floating-social a:active { transform: translateY(-2px); }

/* Ensure small-screen proportions remain */
@media (max-width: 576px) {
	.floating-social a { width: 48px; height: 48px; }
	.floating-social a img { width: 22px; height: 22px; }
}

/* === Snow overlay (subtle, multicolor snowflakes) === */
.snow-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5000;          /* debajo de navbar (12000) y floating-social (11000) */
    overflow: hidden;
    mix-blend-mode: screen; /* hace los copos más visibles sobre fondos oscuros */
}

.snow-overlay .snowflake {
    position: absolute;
    top: -12vh;
    left: 0;
    opacity: 0.85;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    font-family: "Segoe UI Symbol", "Arial", sans-serif;
    transform: translate3d(0,0,0);
    animation-name: snow-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    /* color set inline via JS: s.style.color = '#...'; */
}

/* Keyframes: caída con ligera deriva y rotación */
@keyframes snow-fall {
    0% {
        transform: translate3d(0, -12vh, 0) rotate(0deg);
        opacity: var(--start-opacity, 0.9);
    }
    100% {
        transform: translate3d(var(--drift, 40px), 110vh, 0) rotate(var(--rotation, 360deg));
        opacity: var(--end-opacity, 0.5);
    }
}

/* Reduce impacto en pantallas pequeñas */
@media (max-width: 576px) {
    .snow-overlay .snowflake {
        opacity: 0.65;
        font-size: 12px !important;
        text-shadow: none;
    }
}
