/* .hero-header-inicio {
    margin-top: -75px;
    position: relative;
    overflow: hidden;
    background-color: #8e0225;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
} */

/* Asegura que el contenido se muestre sobre el video */
/* .hero-header-inicio .container {
    position: relative;
    z-index: 1;
} */

/* Opcional: Overlay para mejor legibilidad del texto */
/* .hero-header-inicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(142, 2, 37, 0.6);
    z-index: 0;
} */

/* Botón de control de sonido */
/* .sound-toggle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sound-toggle-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.sound-toggle-btn i {
    font-size: 1.2rem;
    color: #8e0225;
    transition: color 0.3s ease;
} */

/* Ocultar botón en móviles si es necesario */
/* @media (max-width: 768px) {
    .sound-toggle-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    .sound-toggle-btn i {
        font-size: 1rem;
    }
} */

/** Hero del inicio */
.hero-header-inicio {
    margin-top: -75px;
    position: relative;
    overflow: hidden;
    background-color: #8e0225;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

/* .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    object-position: center center;
} */

/* Asegura que el contenido se muestre sobre el video */
.hero-header-inicio .container {
    position: relative;
    z-index: 1;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Overlay para mejor legibilidad del texto */
.hero-header-inicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(142, 2, 37, 0.6);
    z-index: 0;
}

/* Botón de control de sonido */
.sound-toggle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sound-toggle-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.sound-toggle-btn i {
    font-size: 1.2rem;
    color: #8e0225;
    transition: color 0.3s ease;
}

/* MEJORAS PARA MÓVILES */
@media (max-width: 768px) {
    .hero-header-inicio {
        height: 80vh;
        min-height: 400px;
        /* Altura mínima menor en móviles */
    }

    .sound-toggle-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    .sound-toggle-btn i {
        font-size: 1rem;
    }

    /* Optimización del video para móviles */
    .hero-video {
        object-position: 60% center; /* Mueve el punto focal del video */
    }

    /* Reduce el padding en móviles */
    .hero-header-inicio .container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Ajusta el tamaño del texto en móviles */
    .hero-header-inicio .display-4 {
        font-size: 2rem;
        margin-bottom: 1rem !important;
    }

    .hero-header-inicio p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem !important;
    }
}

/* Ajustes adicionales para tablets */
@media (max-width: 992px) and (min-width: 769px) {
    .hero-header-inicio {
        height: 80vh;
        min-height: 450px;
    }
}

/* Control más fino del video en diferentes dispositivos */
@media (max-width: 480px) {
    .hero-video {
        /* Para móviles muy pequeños, ajusta más el enfoque */
        object-position: 70% center;
    }

    .hero-header-inicio {
        min-height: 350px;
    }
}

/* Para tablets en orientación vertical */
@media (max-width: 768px) and (orientation: portrait) {
    .hero-video {
        object-position: 60% center;
    }
}

/* Para tablets en orientación horizontal */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero-header-inicio {
        height: 90vh;
        /* Un poco más de altura en landscape */
    }
}

/* Clase de respaldo si el video no carga */
.video-fallback .hero-header-inicio {
    background: url('public/img/fallback-hero.jpg') center center no-repeat;
    background-size: cover;
}

.video-fallback .hero-video {
    display: none;
}

/*  ================================
    ESTILOS PARA EL TIEMPO RESTANTE
    ================================ */

.countdown-container {
    margin-top: 30px;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px 10px;
    margin: 0 5px;
    text-align: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tablets */
@media (max-width: 768px) {
    .countdown-value {
        font-size: 1.8rem;
    }

    .countdown-box {
        padding: 10px 5px;
        margin: 0 3px;
    }
}

/*  ==============================
    ESTILOS PARA LA RUTA DEL PAPA
    ============================== */

.ruta-seccion {
    position: relative;
    background: #ffffff;
}

/* Contenedor principal de circuitos con posición relativa para la línea */
.contenedor-circuito {
    position: relative;
}

/* Línea central para cada circuito */
.linea-circuito {
    position: absolute;
    top: 8rem;
    /* Comienza después del título del circuito */
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: calc(100% - 250px);
    /* Ajusta la altura para no superponerse con el footer */
    background: linear-gradient(to bottom, #a31f42, #da5679);
    z-index: 1;
}

.ruta-item {
    position: relative;
    margin-bottom: 6rem;
    display: flex;
    align-items: center;
    min-height: 300px;
}

.ruta-marcador {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: #8e0225;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 5px 20px rgba(142, 2, 37, 0.4);
    border: 4px solid white;
}

/* Contenedor izquierdo con altura adaptativa */
.ruta-contenedor-izquierdo {
    width: 50%;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
}

.ruta-media {
    background: white;
    border-radius: 15px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    /* box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px; */
    box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em, rgba(90, 125, 188, 0.05) 0px 0.25em 1em;
    padding: 2rem;
    transition: transform 0.3s ease;
    flex-grow: 1;
    /* Hace que crezca para igualar la altura del contenedor derecho */
    display: flex;
    flex-direction: column;
}

.ruta-media:hover {
    transform: translateY(-5px);
}

.ruta-imagen {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    /* Evita que la imagen se reduzca */
}

.ruta-imagen img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.ruta-imagen:hover img {
    transform: scale(1.05);
}

/* Contenedor derecho con altura fija que determina el izquierdo */
.ruta-contenedor-derecho {
    width: 50%;
    padding-left: 2rem;
}

/*! CAMBIE EL min-height de 100% por auto */
.ruta-contenido {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease;
    min-height: auto; /* Asegura que siempre tenga altura mínima */
    text-align: justify;
}

.ruta-contenido:hover {
    transform: translateY(-5px);
}

.titulo-seccion-ruta {
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    color: #8e0225;
    position: relative;
    z-index: 2;
    /* Asegura que el título esté sobre la línea */
}

/* Estilos para la lista de características */
.lista-caracteristicas {
    margin: 1.2rem 0;
}

.caracteristica-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.caracteristica-icono {
    color: #8e0225;
    margin-right: 0.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Estilos para dispositivos móviles */
@media (max-width: 992px) {
    .linea-circuito {
        left: 35px;
        top: 80px;
        height: calc(100% - 100px);
    }

    .ruta-item {
        flex-direction: column;
        margin-bottom: 4rem;
        margin-left: 1rem;
    }

    .ruta-contenedor-izquierdo,
    .ruta-contenedor-derecho {
        width: 100%;
        padding: 0;
    }

    .ruta-media,
    .ruta-contenido {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }

    .ruta-marcador {
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .ruta-imagen img {
        height: 200px;
    }
}

/* Responsive para movil */
@media (max-width: 480px){
    .ruta-contenido {
        font-size: 12.7px;
    }

    .ruta-contenido .d-flex .btn{
        font-size: small;
    }
}

/*  ===================================================
    ESTILOS PARA LAS TARJETAS DE ATRACCIONES EN MOVILES
    =================================================== */
.attraction-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
}

.attraction-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.attraction-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.attraction-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.attraction-card .card-body {
    padding: 15px;
}

.attraction-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.4;
}

.attraction-location {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.distance-badge {
    background: #d1e7e0;
    /* background: #8E026B; */
    color: black;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Mejoras responsive adicionales */
@media (max-width: 576px) {
    .attraction-cards {
        padding: 10px;
        gap: 10px;
    }

    .attraction-card .card-header {
        padding: 10px 12px;
    }

    .attraction-card .card-body {
        padding: 12px;
    }

    .attraction-name {
        font-size: 0.95rem;
    }
}

/* Efectos de animación suave */
.attraction-card {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo para el badge de número */
.attraction-card .badge {
    font-size: 0.8rem;
    padding: 6px 10px;
}

/*  =======================
    ESTILOS PARA EL SWIPER
    ======================= */
.swiper {
    width: 600px;
    height: 300px;
}

/** ESTILOS PARA EL BOTON DE REALIDAD VIRTUAL*/
.realidad-virtual {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #1363c6;
    border-radius: 50%;
    padding: 0.8rem;
    background: transparent;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: latido 2.5s ease-in-out infinite;
}

/* Animación de latido con sombra */
@keyframes latido {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(19, 99, 198, 0);
    }

    10% {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(19, 99, 198, 0.6),
            0 0 30px rgba(19, 99, 198, 0.3);
    }

    20% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(19, 99, 198, 0);
    }

    30% {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(19, 99, 198, 0.6),
            0 0 30px rgba(19, 99, 198, 0.3);
    }

    40% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(19, 99, 198, 0);
    }
}

.realidad-virtual svg {
    width: 20px;
    height: 20px;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Efecto de destello */
.realidad-virtual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

/* Hover effects */
.realidad-virtual:hover {
    background: #02438e;
    border-color: #02338e;
    box-shadow: 0 0 20px rgba(28, 2, 142, 0.6),
        0 0 40px rgba(11, 2, 142, 0.4);
    transform: scale(1.1);
    animation: none;
    /* Pausa la animación de latido al hacer hover */
}

.realidad-virtual:hover svg {
    color: white;
    transform: rotate(360deg);
}

.realidad-virtual:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Efecto activo (cuando se hace clic) */
.realidad-virtual:active {
    transform: scale(0.95);
}

/** PARA REALIDAD VIRTUAL LA PROMO */

.anuncio-rv-wrapper {
    position: relative;
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(45deg, 
        #a855f7, 
        #06b6d4, 
        #10b981, 
        #f59e0b, 
        #ef4444, 
        #a855f7
    );
    background-size: 300% 300%;
    animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Contenedor principal */
.anuncio-rv {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

/* Contenedor de imagen */
.image-container {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.anuncio-rv:hover .image-container img {
    transform: scale(1.05);
}

/* Contenedor de contenido */
.content-container {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

/* Título con gradiente */
.title-vr {
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 1) 0%, 
        rgba(6, 182, 212, 1) 50%,
        rgba(16, 185, 129, 1) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.7s ease-out;
}

/* Descripción opcional */
.description-vr {
    color: #4b5563;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Responsive para tablets */
@media (max-width: 991px) {
    .content-container {
        padding: 2rem;
        min-height: auto;
        text-align: center;
    }
    
    .image-container {
        padding: 2rem;
        min-height: 300px;
    }
    
    .title-vr {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

/* Responsive para móviles */
@media (max-width: 767px) {
    .anuncio-rv-wrapper {
        padding: 2px;
    }
    
    .content-container {
        padding: 1.5rem;
    }
    
    .image-container {
        padding: 1.5rem;
        min-height: 250px;
    }
    
    .title-vr {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 1rem;
    }
    
    .description-vr {
        font-size: 1rem;
    }
}

/* Animación de entrada */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}