   html, body {
           max-width: 100vw;
            overflow-x: hidden;
        }
        body {
            background: #171717;
            color: #fff;
            font-family: 'Montserrat', Arial, Helvetica, sans-serif;
        }
        /* --- HEADER Y MENÚ HAMBURGUESA --- */
        .main-header {
            background: #232323;
            padding: 1rem 0.5rem 0.6rem 0.5rem;
            text-align: center;
            box-shadow: 0 2px 12px #00000025;
            position: relative;
            z-index: 40;
            margin-bottom: 0.7rem;
        }
        .logo-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            min-height: 52px;
            padding: 0 0.2rem;
            position: relative;
        }
        .logo-bar img {
            height: 100px;
            margin-right: 0.5rem;
        }
        .logo-bar h1 {
            margin: 0;
            font-size: 2.30rem;
            line-height: 1.1;
            font-weight: 900;
            color: #fff;
            margin-right: auto;
            margin-left: 0.15rem;
        }
        .brand-yellow { color: #ffd600; }

        /* --- Menú hamburguesa --- */
        .hamburger {
            display: flex;
            position: relative;
            margin-left: 0.5rem;
            margin-right: 0.1rem;
            height: 40px;
            width: 40px;
            top: 2px;
            background: none;
            border: none;
            flex-direction: column;
            justify-content: center;
            cursor: pointer;
            z-index: 100;
        }
        .hamburger span {
            display: block;
            height: 4px;
            width: 32px;
            margin: 5px auto;
            background: #ffd600;
            border-radius: 2px;
            transition: all 0.4s cubic-bezier(.4,0,.2,1);
        }
        .hamburger.open span:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
        }
        .hamburger.open span:nth-child(2) {
            opacity: 0;
        }
        .hamburger.open span:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }
        nav.menu {
            display: flex;
            justify-content: center;
            gap: 2rem;
            transition: all 0.5s cubic-bezier(.4,0,.2,1);
            z-index: 99;
        }
        nav.menu a {
            color: #fff;
            font-weight: 600;
            font-size: 1.1rem;
            text-decoration: none;
            padding: 0.5rem 1.4rem;
            border-radius: 6px;
            position: relative;
            overflow: hidden;
            transition: background 0.2s, color 0.2s, transform 0.2s;
            opacity: 1;
            transform: translateY(0);
        }
        nav.menu a::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: 4px;
            width: 0;
            height: 3px;
            background: #ffd600;
            border-radius: 2px;
            transition: width 0.35s cubic-bezier(.4,0,.2,1), left 0.35s cubic-bezier(.4,0,.2,1);
        }
        nav.menu a:hover, nav.menu a.active {
            background: #111;
            color: #ffd600;
            transform: scale(1.08);
        }
        nav.menu a:hover::after,
        nav.menu a.active::after {
            width: 80%;
            left: 10%;
        }

        /* --- Responsive/Hamburguesa --- */
        @media (max-width: 900px) {
            .main-header {
                padding: 0.6rem 0.5rem 0.6rem 0.5rem;
                margin-bottom: 0.7rem;
            }
            .logo-bar {
                justify-content: space-between;
                align-items: center;
                padding: 0 0.2rem;
                gap: 0.5rem;
                min-height: 80px;
            }
            .logo-bar img {
                height: 50px;
                margin-right: 0.5rem;
            }
            .logo-bar h1 {
                font-size: 1.22rem;
                line-height: 1.1;
                margin-right: auto;
                margin-left: 0.15rem;
                font-weight: 900;
            }
            .hamburger {
                margin-left: 0.5rem;
                margin-right: 0.1rem;
                height: 40px;
                width: 40px;
                top: 2px;
            }
            nav.menu {
                position: fixed;
                flex-direction: column;
                align-items: flex-start;
                background: #232323f9;
                top: 0; left: -100vw;
                width: 230px;
                height: 100vh;
                padding: 4rem 2rem 2rem 2rem;
                gap: 1.2rem;
                box-shadow: 8px 0 32px #00000040;
                z-index: 90;
                opacity: 0;
                pointer-events: none;
                transition: left 0.46s cubic-bezier(.4,0,.2,1), opacity 0.3s;
            }
            nav.menu.open {
                left: 0;
                opacity: 1;
                pointer-events: auto;
            }
            nav.menu a {
                width: 100%;
                font-size: 1.2rem;
                margin-bottom: 0.7rem;
                opacity: 0;
                transform: translateY(20px);
                transition: opacity 0.35s, transform 0.35s;
            }
            nav.menu.open a {
                opacity: 1;
                transform: translateY(0);
            }
            nav.menu.open a:nth-child(1) { transition-delay: 0.13s;}
            nav.menu.open a:nth-child(2) { transition-delay: 0.22s;}
            nav.menu.open a:nth-child(3) { transition-delay: 0.31s;}
            nav.menu.open a:nth-child(4) { transition-delay: 0.4s;}
        }
        body.menu-open { overflow: hidden; }

        /* --- DETALLE VISUAL AUTO --- */
        .detalle-visual,
        .swiper,
        .swiper-wrapper,
        .swiper-slide,
        .thumbs-gallery {
            width: 100%;
            max-width: 100vw;
            box-sizing: border-box;
        }
        .detalle-visual {
            max-width: 1500px;
            margin: 2.5rem auto;
            background: #232323;
            border-radius: 18px;
            padding: 2.2rem 2vw 3vw 2vw;
            color: #fff;
            box-shadow: 0 2px 16px #5d5d13c3;
            animation: fadeInUp 1s cubic-bezier(.4,0,.2,1);
        }
        .btn-volver {
            display: inline-block;
            margin-bottom: 1.2rem;
            background: #1a1a1a;
            color: #ffd600;
            font-weight: 700;
            text-decoration: none;
            padding: 0.4rem 1rem;
            font-size: 1rem;
            border-radius: 20px;
            border: 2px solid #ffd600;
            transition: background 0.2s, color 0.2s;
            animation: fadeInLeft 1.4s cubic-bezier(.4,0,.2,1);
        }
        .btn-volver:hover {
            background: #ffd600;
            color: #171717;
        }
        .detalle-visual h2 {
            color: #ffd600;
            margin-bottom: 0.7rem;
            font-size: 2.0rem;
            font-weight: 800;
            letter-spacing: 1.2px;
            animation: slideInLeft 1.1s cubic-bezier(.4,0,.2,1);
        }
        .detalle-visual .auto-year {
            color: #ffd600cc;
            font-weight: 400;
            font-size: 1.5rem;
        }
        /* --- Swiper: imágenes llenando el cuadro (cover) --- */
        .swiper, .swiper-slide {
            width: 100%;
            height: 700px;
            max-height: 700px;
            background: #121212;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit:cover;
            background: #121212;
            border-radius: 14px;
            transition: transform 0.25s;
            cursor: zoom-in;
        }
        .swiper-pagination-bullet-active { background: #ffd600 !important; }
        .swiper-button-next, .swiper-button-prev { color: #ffd600; }
        .thumbs-gallery {
            display: flex;
            gap: 0.3rem;
            justify-content: center;
            margin: 0.8rem 0 1.3rem 0;
            overflow-x: auto;
            flex-wrap: nowrap;
        }
        .thumbs-gallery img {
            width: 62px;
            height: 44px;
            object-fit: cover;
            border-radius: 7px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: border 0.2s;
        }
        
        .thumbs-gallery img:hover {
            border: 2px solid #ffd600;
        }
        /* --- Info técnica y descripción --- */
        .ficha-visual {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            margin-bottom: 1.4rem;
            animation: fadeInUp 1.3s cubic-bezier(.4,0,.2,1);
        }
        .ficha-item {
            background: #191919;
            border-radius: 12px;
            padding: 1.05rem 1.3rem;
            display: flex;
            align-items: center;
            gap: 1.1rem;
            box-shadow: 0 1px 7px #ffd60022;
            font-size: 1.2rem;
            font-weight: 500;
            width: 100%;
            margin: 0 auto;
            min-width: 0;
             /* La solución está aquí: */
             box-sizing: border-box;
        }
       .ficha-item i { 
        font-size: 1.35rem;
        color: #ffd600;
        animation: pulse 4.5s infinite;
        margin-right: 1.1rem; 
        }
        .ficha-item:first-child {
            font-size: 1.3rem;
            font-weight: 700;
        }
        .financiamiento {
            background: #181818;
            margin-bottom: 1.2rem;
            padding: 0.7rem 1.1rem;
            border-radius: 7px;
            color: #ffd600;
            font-weight: 600;
            font-size: 1.2rem;
            box-shadow: 0 1px 7px #ffd60011;
            animation: fadeIn 1.3s cubic-bezier(.4,0,.2,1);
        }
        .desc-auto {
            background: #111;
            border-radius: 7px;
            padding: 0.7rem 1rem;
            font-size: 1.00rem;
            margin-bottom: 1.5rem;
            color: #ffd600;
            box-shadow: 0 1px 7px #ffd60011;
            animation: fadeIn 1.5s cubic-bezier(.4,0,.2,1);
        }
        .mapa-auto {
            margin: 1.5rem auto 0.8rem auto;
            max-width: 100%;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px #c1a10033;
        }
        .info-contacto {
            margin: 1rem 0 0.6rem 0;
            display: flex;
            gap: 0.7rem;
            align-items: center;
            color: #ffd600;
            font-weight: 700;
            font-size: 1.03rem;
            animation: fadeIn 1.5s cubic-bezier(.4,0,.2,1);
        }
        .btn-contactar {
            display: inline-block;
            background: linear-gradient(90deg, #ffd600 70%, #fffbe7 100%);
            color: #171717;
            font-weight: bold;
            font-size: 1.05rem;
            padding: 0.85rem 2.2rem;
            border-radius: 30px;
            text-decoration: none;
            box-shadow: 0 2px 18px #ffd60033;
            border: none;
            transition: background 0.2s, color 0.2s, transform 0.2s;
            animation: popIn 1.7s cubic-bezier(.4,0,.2,1);
        }
        .btn-contactar:hover {
            background: #fffbe7;
            color: #232323;
            transform: scale(1.07);
        }

        /* --- Animaciones --- */
        @keyframes fadeInUp {
            from {opacity:0; transform:translateY(40px);}
            to {opacity:1; transform:translateY(0);}
        }
        @keyframes fadeDown {
            from {opacity:0; transform:translateY(-40px);}
            to {opacity:1; transform:translateY(0);}
        }
        @keyframes fadeInLeft {
            from {opacity:0; transform:translateX(-40px);}
            to {opacity:1; transform:translateX(0);}
        }
        @keyframes fadeIn {
            from {opacity:0;}
            to {opacity:1;}
        }
        @keyframes slideInLeft {
            from {opacity:0; transform:translateX(-100px);}
            to {opacity:1; transform:translateX(0);}
        }
        @keyframes bounceIn {
            0% {transform: scale(0.1);}
            60% {transform: scale(1.2);}
            80% {transform: scale(0.95);}
            100% {transform: scale(1);}
        }
        @keyframes pulse {
            0%, 100% { color: #ffd600;}
            50% { color: #fffbe7;}
        }
        @keyframes popIn {
            from { opacity: 0; transform: scale(0.6);}
            to { opacity: 1; transform: scale(1);}
        }
        /* --- MOBILE --- */
        @media (max-width: 900px) {
            .detalle-visual {
                padding: 0.7rem 0.7vw;
                max-width: 100vw;
                margin: 0.5rem 0;
            }
            .swiper, .swiper-slide, .swiper-wrapper {
                width: 100vw;
                max-width: 100vw;
                height: 65vw;
                min-height: 220px;
                max-height: 74vw;
                margin-left: 0 !important;
                margin-right: 0 !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                box-sizing: border-box;
            }
            .swiper-slide img {
                height: 100%;
                width: 100%;
                object-fit: cover;
            }
        /* Estilos para el contenedor de la galería de miniaturas */
        .swiper-container-thumbs {
        width: 100%; /* O el ancho que desees, por ejemplo 80% */
        margin-top: 20px;
        overflow: hidden; /* Oculta cualquier parte de las miniaturas que se salgan del contenedor */
        }

        /* Estilos para los slides (miniaturas) */
        .swiper-container-thumbs .swiper-slide {
        width: 100px; /* Tamaño fijo para cada miniatura */
        height: 70px; /* Altura fija para cada miniatura */
        cursor: pointer;
        opacity: 0.6;
        border: 2px solid transparent; /* Borde transparente por defecto */
        transition: all 0.3s ease;
        }

        /* Estilos para la miniatura activa (la seleccionada) */
        .swiper-container-thumbs .swiper-slide.active {
        opacity: 1;
        border-color: #ffd600; /* Borde amarillo para la miniatura activa */
        }

        .swiper-container-thumbs .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Asegura que la imagen cubra todo el espacio sin distorsionarse */
        }

            .thumbs-gallery {
                display: flex;
                gap: 0.3rem;
                justify-content: center;
                margin: 0.8rem 0 1.3rem 0;
                overflow-x: auto;
                flex-wrap: nowrap;
            }
            .thumbs-gallery img {
                width: 54px;
                height: 38px;
            }
            .ficha-visual {
                gap: 0.70rem;
            }
            .ficha-item {
                font-size: 0.99rem;
                padding: 0.85rem 1.1rem;
                border-radius: 10px;
                width: 100%;
            }
            .ficha-item span {
                font-size: 1.18rem;
            }
            .btn-volver {
                padding: 0.4rem 1rem;
                font-size: 1rem;
                margin-bottom: 0.8rem;
            }
            .desc-auto, .financiamiento {
                font-size: 0.95rem;
                padding: 0.6rem 0.8rem;
            }
            .mapa-auto iframe {
                width: 100% !important;
                min-width: 0;
                height: 160px;
            }
        }

        /* Oculta las flechas de navegación del Swiper en pantallas pequeñas */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}
/* Contenedor del nuevo Swiper de miniaturas */
.swiper-thumbs-container {
    width: 100%;
    margin-top: 1rem;
    padding-bottom: 0.5rem; /* Para que no se recorte */
}

/* Estilos de cada miniatura */
.swiper-thumbs-container .swiper-slide {
    width: 100px; /* Ancho fijo para las miniaturas */
    height: 100px; /* Alto fijo para las miniaturas */
    opacity: 0.7; /* Opacidad para las que no están activas */
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border-radius: 5px;
}

.swiper-thumbs-container .swiper-slide-thumb-active {
    opacity: 1; /* Opacidad completa para la activa */
    border: 3px solid #ffdd00; /* Borde amarillo para la activa */
}

.swiper-thumbs-container .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.whatsapp-flotante {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: transparent; /* Fondo transparente o el color que quieras */
    width: 70px; /* Ajusta el tamaño del botón */
    height: 70px;
    border-radius: 50%; /* Si quieres que el botón sea circular */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
}

.whatsapp-logo-button {
    width: 100%; /* Ocupa todo el ancho del botón */
    height: 100%; /* Ocupa todo el alto del botón */
    object-fit: cover; /* Ajusta la imagen para que llene el espacio */
    border-radius: 50%; /* Si el botón es circular, la imagen también */
}
