﻿html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px; /* alto del header fijo */
}


body{
    font-family: "Montserrat", sans-serif;
}


.ayuda{
    height: 168px;
}


.cintillo{
    background: #374aa3;
    color: white;
    text-align: center;
    padding-top: 3px;
    padding-bottom: 3px;
}
.cintillo img{
    width: 25px;
}


header{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: white;
    padding: 0 !important;
}


.cabecera{
    padding-top: 12px;
    padding-bottom: 12px;
}


nav a{
    color: black;
    text-decoration: none;
}
nav ul{
    list-style: none;
    padding: 0;
}
nav ul li{
    width: 45%;
    float: left;
    margin: 0 2.5%;
}
.menu{
    background-color: #f7f7f7;
    text-align: center;
    color: black;
    font-weight: 400;
    font-size: 20px;
}
.menu:hover{
    background: #374aa3;
    color: white;
    font-weight: bold;
}


.logotipo img{
    width: 100%;
}


.efecto{
    position: relative;
    background: url(../images/fondo-efecto.jpg) no-repeat center center;
    background-size: cover;
    padding-top: 360px;
    padding-bottom: 260px;
}

.leyenda1{
    position: absolute;
    bottom: 50px;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
    padding-top: 9px;
    padding-bottom: 9px;
}
.leyenda2{
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(55, 74, 163, 0.8);
    width: 100%;
    text-align: center;
    color: white;
    font-size: 22px;
    padding-top: 9px;
    padding-bottom: 9px;
}


.titulo{
    /* font-family: "Cormorant Garamond", serif; */
    text-align: center;
    color: #374aa3;
    font-size: 33px;
    font-weight: bold;
}
.subtitulo{
    text-align: center;
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 40px;
}
.subtitulo strong{
    font-weight: bold;
}


.productos{
    background: url(../images/fondo.jpg) no-repeat center center;
    background-size: cover;
    padding-top: 60px;
    padding-bottom: 60px;
}


.modelo{
    text-align: center;
    font-size: 22px;
    margin-bottom: 40px;
}
.modelo img{
    height: 350px !important;

    object-fit: cover;
}
.modelo strong{
    width: 100%;
    display: inline-block;
}


.atendemos{
    padding-top: 40px;
    padding-bottom: 40px;
}

.ate{
    text-align: center;
}
.ate img{
    height: 100px;
}
.ate strong{
    width: 100%;
    text-align: center;
    display: inline-block;
    margin: 20px 0;
}

.leyenda3{
    background: #374aa3;
    font-weight: bold;
    font-size: 30px;
    color: white;
    display: inline-block;
    padding: 4px 32px;
    margin-top: 20px;

    border-radius: 12px;
}



.seccion{
    background: #212d62;
    color: white;
    font-size: 22px;
    padding: 40px;
}
.imagen img{
    width: 100%;
}


.servicios{
    background: url(../images/fondo2.jpg) no-repeat center center;
    background-size: cover;
    padding-top: 50px;
    padding-bottom: 50px;
    margin: 40px 0;
}

.servicios .titulo{
    margin-bottom: 20px;
}

.s{
    text-align: center;
    font-size: 22px;
    margin-bottom: 30px;
}
.s b{
    width: 100%;
    text-align: center;
    font-size: 33px;
    font-weight: bold;
    display: inline-block;
}


.model{
    background: url(../images/fondo.jpg) no-repeat center center;
    background-size: cover;
    font-size: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
}


.galeria{
    padding-top: 30px;
    padding-bottom: 30px;
}


.imagen-de-galeria img{
    width: 100%;
    height: 200px;
    cursor: pointer;

    object-fit: cover;
}

.galeria .col-md-2{
    padding: 12px;
}


.video{
    margin-bottom: 20px;
}
.video video{
    width: 100%;
    height: 400px;

    object-fit: cover;
}



footer{
    padding-top: 30px;
    padding-bottom: 30px;
}







.chat{
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: #24d366;
    font-weight: normal;
    font-size: 20px;
    color: white;
    padding: 6px 17px;
    border-radius: 20px;

    animation-name: pulse;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-delay: 0s;
    animation-iteration-count: 100;
}
@keyframes pulse {
    from,to {
        transform: scale3d(1,1,1)
    }

    50% {
        transform: scale3d(1.05,1.05,1.05)
    }
}

.pulse {
    animation-name: pulse
}







.footer-custom {
    background-color: #1a2246; /* Un tono más oscuro que la sección .seccion */
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 20px;
    font-size: 16px;
}

.logotipo2{
    background-color: white;
    width: 75%;
    padding: 12px;
}
.logotipo2 img{
    width: 100%;
}

.footer-custom h5 {
    color: #374aa3; /* El azul principal para títulos */
    color: white;
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 18px;
}

.footer-custom p {
    color: #d1d1d1;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d1d1;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    color: #d1d1d1;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: #374aa3;
    margin-right: 10px;
    font-size: 20px;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0 20px 0;
}

.copyright {
    font-size: 14px;
    color: #888;
}

.social-link {
    display: inline-block;
    background: #374aa3;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    margin-right: 10px;
    transition: background 0.3s;
}

.social-link:hover {
    background: #212d62;
    color: white;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .footer-custom {
        text-align: center;
    }
    .footer-contact li {
        justify-content: center;
    }
}




/* =========================
   ✅ CAMBIO PRO: Lightbox Galería
   ========================= */

.galeria [data-gallery] img{
    transition: transform .18s ease, filter .18s ease;
}
.galeria [data-gallery] img:hover{
    transform: scale(1.02);
    filter: brightness(1.06);
}

.lightbox-galeria{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    background: radial-gradient(circle at top, rgba(255,255,255,0.07), rgba(0,0,0,0.78) 35%, rgba(0,0,0,0.93) 100%);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .18s ease;
}

.lightbox-galeria.is-open{
    display: flex;
    opacity: 1;
}

/* Animación de entrada */
.lightbox-galeria.is-opening .lb-content{
    transform: translateY(10px) scale(.985);
    opacity: 0;
}
.lightbox-galeria.is-open .lb-content{
    transform: translateY(0) scale(1);
    opacity: 1;
    transition: transform .22s ease, opacity .22s ease;
}

.lb-content{
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.lb-img{
    max-width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 28px 90px rgba(0,0,0,.60);
    background: rgba(255,255,255,0.03);

    /* Pro: transición en cambios */
    opacity: 1;
    transform: scale(1);
    transition: opacity .18s ease, transform .18s ease;
    will-change: opacity, transform;
}

/* Estado durante cambio */
.lb-img.is-changing{
    opacity: 0;
    transform: scale(.99);
}

/* Botón cerrar */
.lb-close{
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-size: 30px;
    line-height: 46px;
    display: grid;
    place-items: center;
    transition: transform .15s ease, background .15s ease, opacity .2s ease;
    opacity: .95;
}
.lb-close:hover{
    transform: scale(1.06);
    background: rgba(255,255,255,0.18);
    opacity: 1;
}

/* Flechas */
.lb-nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 34px;
    display: grid;
    place-items: center;
    transition: transform .15s ease, background .15s ease, opacity .2s ease;
    user-select: none;
    opacity: .65; /* Pro: más discreto */
}
.lb-prev{ left: 18px; }
.lb-next{ right: 18px; }

.lb-nav:hover{
    transform: translateY(-50%) scale(1.06);
    background: rgba(255,255,255,0.22);
    opacity: 1;
}

/* Pro: en desktop, cuando mueves el mouse dentro, suben */
.lightbox-galeria.is-interactive .lb-nav,
.lightbox-galeria.is-interactive .lb-close{
    opacity: 1;
}

/* Contador */
.lb-counter{
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-size: 14px;
    letter-spacing: .5px;
    opacity: .9;
}

/* Pequeño hint swipe (opcional) */
.lb-hint{
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,0.08);
    padding: 6px 10px;
    border-radius: 999px;
    opacity: .85;
}

/* Responsive */
@media screen and (max-width:768px){
    .lb-prev{ left: 10px; }
    .lb-next{ right: 10px; }
    .lb-nav{
        width: 48px;
        height: 48px;
        font-size: 28px;
        opacity: .9; /* en móvil sí visibles */
    }
    .lb-close{
        width: 44px;
        height: 44px;
        font-size: 28px;
        line-height: 44px;
        opacity: 1;
    }
}



.contenedor {
    width: 92%;
    max-width: 1400px;
    margin: 40px auto;
}

h1 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 38px;
}

.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card-proyecto {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-proyecto:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.card-proyecto img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 18px;
}

.card-body h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
}

.card-body span {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.sin-proyectos {
    text-align: center;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}





.volver {
            display: inline-block;
            text-decoration: none;
            background: #111;
            color: #fff;
            padding: 12px 18px;
            border-radius: 10px;
            transition: background 0.2s ease;
            margin-bottom: 30px;
        }

        .volver:hover {
            background: #333;
        }

        .bloque {
            margin-bottom: 45px;
        }

        .videos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 22px;
        }

        .video-card {
            background: #fff;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
        }

        .video-embed {
            position: relative;
            width: 100%;
            padding-top: 56.25%;
            background: #000;
        }

        .video-embed iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        .galeria {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 22px;
        }

        .foto {
            background: #fff;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
        }

        .foto a {
            display: block;
            text-decoration: none;
            color: inherit;
        }

        .foto img {
            width: 100%;
            height: 280px;
            object-fit: cover;
            display: block;
            cursor: pointer;
            transition: transform 0.25s ease, opacity 0.25s ease;
        }

        .foto a:hover img {
            transform: scale(1.03);
            opacity: 0.95;
        }

        .nombre {
            padding: 14px;
            font-size: 14px;
            color: #555;
            word-break: break-word;
        }

        .sin-imagenes,
        .sin-videos {
            background: #fff;
            padding: 30px;
            border-radius: 16px;
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
        }

        .lightbox {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.92);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 30px;
        }

        .lightbox.activo {
            display: flex;
        }

        .lightbox-contenido {
            position: relative;
            max-width: 95vw;
            max-height: 95vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-imagen {
            max-width: 100%;
            max-height: 85vh;
            display: block;
            border-radius: 12px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        }

        .lightbox-cerrar,
        .lightbox-anterior,
        .lightbox-siguiente {
            position: absolute;
            border: none;
            cursor: pointer;
            color: #fff;
            background: rgba(255, 255, 255, 0.14);
            backdrop-filter: blur(6px);
            transition: background 0.2s ease, transform 0.2s ease;
        }

        .lightbox-cerrar:hover,
        .lightbox-anterior:hover,
        .lightbox-siguiente:hover {
            background: rgba(255, 255, 255, 0.24);
            transform: scale(1.05);
        }

        .lightbox-cerrar {
            top: -12px;
            right: -12px;
            width: 46px;
            height: 46px;
            border-radius: 50%;
            font-size: 26px;
            line-height: 1;
        }

        .lightbox-anterior,
        .lightbox-siguiente {
            top: 50%;
            transform: translateY(-50%);
            width: 52px;
            height: 52px;
            border-radius: 50%;
            font-size: 28px;
            line-height: 1;
        }

        .lightbox-anterior {
            left: -70px;
        }

        .lightbox-siguiente {
            right: -70px;
        }

        .lightbox-anterior:hover,
        .lightbox-siguiente:hover {
            transform: translateY(-50%) scale(1.05);
        }

        .lightbox-caption {
            position: absolute;
            left: 0;
            right: 0;
            bottom: -46px;
            text-align: center;
            color: #fff;
            font-size: 14px;
            word-break: break-word;
        }

        @media (max-width: 900px) {
            .lightbox {
                padding: 20px;
            }

            .lightbox-anterior {
                left: 10px;
            }

            .lightbox-siguiente {
                right: 10px;
            }

            .lightbox-cerrar {
                top: 10px;
                right: 10px;
            }

            .lightbox-caption {
                bottom: -34px;
                font-size: 13px;
            }
        }

        @media (max-width: 600px) {
            h1 {
                font-size: 28px;
            }

            h2 {
                font-size: 22px;
            }

            .foto img {
                height: 300px;
            }

            .videos-grid {
                grid-template-columns: 1fr;
            }

            .lightbox-anterior,
            .lightbox-siguiente {
                width: 44px;
                height: 44px;
                font-size: 24px;
            }

            .lightbox-imagen {
                max-height: 75vh;
            }
        }



@media screen and (max-width:1400px){

}

@media screen and (max-width:1200px){
    .ayuda{
        display: none;
    }
    header{
        position: relative;
    }
}

@media screen and (max-width:992px){

}

@media screen and (max-width:768px){
    .leyenda1{
        position: relative;
    }
}

@media screen and (max-width:576px){
    
}