/* ===== VARIABLES DE COLORES (FÁCIL DE MODIFICAR) ===== */
:root {
    --header-height: 80px;
    /* Aproximadamente la altura del header */
}

/* ===== ESTILOS GENERALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: white;
    /* Fondo general blanco */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1,
h2,
h3,
h4 {
    margin-bottom: 20px;
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
}

/* ===== ESTILOS DE BOTONES ===== */

/* ===== ESTILOS DE TÍTULOS DE SECCIÓN ===== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
}

/* ===== HEADER Y NAVEGACIÓN ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 1002;
}

/* CAMBIAR TAMAÑO DEL LOGO: Ajusta la altura aquí */
.logo-img {
    height: 50px;
    /* Cambia este valor para agrandar/achicar el logo */
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

/* ===== BOTÓN DE MENÚ MÓVIL CON ANIMACIÓN MEJORADA ===== */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 50%;
    background-color: rgba(74, 60, 187, 0.1);
    animation: bouncePulse 2s infinite;
    z-index: 1001;
}

@keyframes bouncePulse {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 rgba(74, 60, 187, 0.4);
    }

    40% {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 5px 15px rgba(74, 60, 187, 0.6);
        background-color: rgba(74, 60, 187, 0.2);
    }

    60% {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 3px 10px rgba(74, 60, 187, 0.5);
    }
}

.mobile-menu-btn:hover {
    animation: none;
    background-color: rgba(74, 60, 187, 0.2);
}

/* ===== NUEVO: ESTILOS PARALLAX HERO ===== */
.hero-parallax-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: var(--header-height);
}



/* Evitamos el margen extra en secciones parallax que no son el Hero superior */
.testimonials-parallax-wrapper {
    margin-top: 0 !important;
}

.hero-parallax-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* Opacidad del 34% */
    z-index: 1;
    pointer-events: none;
}



.parallax-hero-bg {
    position: absolute;
    top: -35%;
    /* Vuelve a su posición original para el parallax superior */
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: 120%;
    /* Un poco más ancho que el contenedor */
    height: 150%;
    /* Mantenemos esta altura para cubrir bien el scroll */
    object-fit: cover;
    object-position: center;
    z-index: 0;
    /* Detrás del carrusel */
    opacity: 1;
    /* Valor numérico estándar */
    will-change: transform;
    pointer-events: none;
}

/* Franja Parallax antes del Footer - Separada para control del usuario */
.footer-parallax-separator {
    height: 135px; /* Modifica esto para el alto */
    background-image: url('../img/backgrounds/luxury_parallax.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-top: 0px solid rgba(255,255,255,0.05);
}

.footer-parallax-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    backdrop-filter: blur(6px); /* Modifica esto para el desenfoque */
    background: rgba(0, 0, 0, 0.4); /* Modifica esto para el tono */
}


/* ===== HERO SECTION CON SWIPER ===== */
.hero {
    padding: 0;
    /* Swiper gestiona su propio padding/margin si es necesario */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1280px;
    /* Ancho máximo del carrusel */
    height: 550px;
    /* Altura fija para el carrusel */
    z-index: 1;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.hero-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, var(--overlay-opacity, 0.5));
    z-index: 1;
    transition: background-color 0.3s ease;
}

.carousel-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.swiper-slide-active .carousel-image {
    transform: scale(1.05);
}

.carousel-content {
    position: absolute;
    z-index: 2;
    color: white;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 35%;
    /* Reducido para que el texto salte antes */
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.carousel-content h1, .carousel-content h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    flex-wrap: nowrap;
    /* Evita que los botones salten de línea */
    gap: 15px;
    /* Espacio entre los botones */
}

/* Estilos para los elementos de navegación de Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 1;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: white;
}


/* ===== SECCIÓN DE MODELOS ===== */
.models {
    background-color: white;
    padding: 60px 0;
}

.models-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    justify-content: center;
    gap: 30px;
    width: 100%;
}


.model-card {
    flex: 1;
    min-width: 360px;
    max-width: 480px;
    margin: 0 auto;

    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.model-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.model-content {
    padding: 20px;
}

.model-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

.model-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.model-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

/* Media Queries para Responsive */
@media (max-width: 992px) {
    .carousel-content {
        max-width: 65%;
        left: 3%;
        padding: 30px;
    }

    .carousel-content h1, .carousel-content h2 {
        font-size: 2.2rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-parallax-wrapper {
        padding-top: 0;
        box-sizing: border-box;
    }


    .hero {
        height: 70vh;
        /* Altura relativa para móviles */
        border-radius: 0;
        /* Permitir que el contenido (el cuadro de texto) se vea fuera */
        overflow: visible !important;
        /* Añadir espacio en la parte inferior para el cuadro de texto que "cuelga" */
        margin-bottom: 80px;
        /* Espacio para el cuadro de texto */
    }

    .hero-swiper,
    .swiper-wrapper,
    .swiper-slide {
        /* MUY IMPORTANTE: Permitir que el contenido se desborde, forzando la regla */
        overflow: visible !important;
    }

    .carousel-content {
        /* Posicionamiento absoluto para "sacarlo" del flujo */
        position: absolute;
        width: 100%;
        max-width: 100%;
        left: 0;
        top: auto;
        /* Anclar el borde inferior del cuadro al borde inferior de la imagen */
        bottom: 0;
        /* Desplazar el cuadro hacia abajo en un 50% de su propia altura */
        transform: translateY(50%);
        text-align: left;
        background: rgba(0, 0, 0, 0.6);
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 0;
        z-index: 2;
        /* Asegurar que esté por encima del fondo parallax */
    }

    .carousel-content h1,
    .carousel-content p {
        font-size: 5vw;
        white-space: nowrap;
        overflow: hidden;
        width: 100%;
        /* Asegura que ocupe todo el ancho para el overflow */
    }

    .carousel-content p {
        font-size: 3.5vw;
        margin-bottom: 10px;
    }

    /* Estilos para los botones en móvil */
    .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        /* Botones a los bordes */
        width: 100%;
        /* Asegura que ocupe todo el ancho para el space-between */
        gap: 15px;
        margin-top: 10px;
        /* Reducimos margen superior */
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1.2rem;
    }

    .hero-swiper .swiper-pagination {
        /* Mover los puntos de paginación a la parte superior del carrusel */
        top: 10px !important;
        bottom: auto !important;
    }

    /* ===== ESTILOS PARA MARQUESINA DE TEXTO LARGO (CONTROLADO POR JS) ===== */
    .carousel-content .is-scrolling>span {
        display: inline-block;
        animation: marquee 5s linear 2s infinite;
        /* 2s de pausa, 5s de animación */
    }
}

@media (max-width: 576px) {
    .carousel-content {
        padding: 15px;
        /* Menos padding en pantallas muy chicas */
    }

    .hero-buttons .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* ===== ESTILOS DEL MENÚ MÓVIL Y RESPONSIVE ===== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: -120%;
        left: 0;
        right: 0;
        width: auto;
        height: auto;
        background: white;
        flex-direction: column;
        transition: top 0.4s ease-in-out;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        padding-top: 80px;
        padding-bottom: 20px;
        overflow: hidden;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    nav.active {
        top: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
        width: 100%;
    }

    nav ul li {
        margin: 0;
        width: 90%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 20px 10px;
        font-size: 1.15rem;
        font-weight: 500;
    }

    nav ul li a i {
        margin-right: 12px;
        width: 20px;
    }

    .mobile-menu-close-arrow {
        position: relative;
        margin: 25px auto 0;
        left: auto;
        bottom: auto;
        transform: none;
        background-color: var(--primary);
        color: white;
        border-radius: 50%;
        cursor: pointer;
        font-size: 1.2rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
    }

    .mobile-menu-close-arrow:hover {
        background-color: var(--secondary);
        transform: scale(1.1);
    }
}

/* Estilos para corregir la cabecera en modo escritorio */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }

    #mobile-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        flex-direction: row;
        transition: none;
        padding-top: 0;
        padding-bottom: 0;
        overflow: visible;
        border-radius: 0;
    }

    #mobile-menu ul {
        flex-direction: row;
        padding: 0;
        align-items: center;
    }

    #mobile-menu li {
        margin: 0 15px;
        width: auto;
        border-bottom: none;
    }

    #mobile-menu li a {
        padding: 0;
        font-size: 1rem;
    }

    #mobile-menu li a i {
        display: none;
    }

    #mobileMenuCloseArrow {
        display: none;
    }
}

/* ===== DEFINICIÓN DE LA ANIMACIÓN MARQUEE (CONTROLADA POR JS) ===== */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-105%);
        /* -100% para el texto, -5% extra para asegurar que salga completamente */
    }
}

/* Swiper en mosaicos */
.mosaico-swiper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.mosaico-swiper .swiper-button-next,
.mosaico-swiper .swiper-button-prev {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.4);
}

.mosaico-swiper .swiper-button-next::after,
.mosaico-swiper .swiper-button-prev::after {
    font-size: 14px;
}

.mosaico-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
}


/* Estilos para el slide de Ver Más al final del carrusel */
.slide-ver-mas {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    overflow: hidden;
}

.slide-ver-mas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Overlay oscuro para legibilidad */
    z-index: 1;
    transition: background 0.3s ease;
}

.slide-ver-mas:hover::before {
    background: rgba(0, 0, 0, 0.4);
    /* Se aclara sutilmente al pasar el mouse */
}


.slide-ver-mas a {
    text-decoration: none;
    color: white !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    /* Asegurar que esté por encima de todo */
    cursor: pointer;
}


.ver-mas-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.slide-ver-mas:hover .ver-mas-content {
    transform: scale(1.1);
}


.ver-mas-content i {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #ffffff !important;
    /* Blanco intenso */
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    /* Sombra para resaltar */
}

.ver-mas-content span {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff !important;
    /* Blanco intenso */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    /* Sombra intensa para legibilidad */
}


.ver-mas-content span {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}