/* ==================== VARIABLES Y ESTILOS GLOBALES ==================== */
:root {
    --primary-color: #005f73;
    --secondary-color: #0a9396;
    --accent-color: #ee9b00;
    --light-color: #ffffff;
    --dark-color: #001219;
    --gray-color: #e9ecef;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--light-color);
}
.btn-primary:hover {
    background-color: #ca6702;
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
}
.btn-secondary:hover {
    background-color: var(--gray-color);
}

img {
    max-width: 100%;
    display: block;
}

/* ==================== BARRA DE NAVEGACIÓN ==================== */
.main-header {
    background-color: rgba(0, 18, 25, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--light-color);
    text-decoration: none;
}
.logo strong {
    color: var(--accent-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: var(--accent-color);
}

#menu-toggle, .hamburger-menu {
    display: none;
}

/* ==================== 1. HERO SECTION ==================== */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content .hero-container{
    margin-top: 65vh;
}

.hero-content h1 {
    font-size: 56px;
    color: var(--light-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    color: var(--gray-color);
    margin-bottom: 30px;
}

/* ==================== 2. CARDS FIJAS (50% Y 25%) ==================== */
.info-cards-primary .container {
    display: flex;
    gap: 20px;
}

.card-large, .card-small {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    color: var(--light-color);
}

.card-large img, .card-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-large:hover img, .card-small:hover img {
    transform: scale(1.05);
}

.card-large { flex: 2; }
.card-small { flex: 1; }

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.card-content h3 { font-size: 28px; }
.card-content p { font-size: 16px; }



/**LUGARES*/
.contenedor-lugares {
    width: 100%;
    max-width: 40%;
}

@media (max-width: 992px) {
    .contenedor-lugares {
        max-width: 100%;
    }
    
    .card-content h3 { font-size: 22px; }
    .card-content p { font-size: 12px; }
}


/* ==================== 3. SLIDER SECTION ==================== */
.slider-section {
    background-color: var(--gray-color);
}

.slider-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.slider-content {
    flex: 1;
}

.slider-content h2 { font-size: 42px; margin-bottom: 20px; }
.slider-content p { margin-bottom: 30px; }

.slider-images {
    flex: 1;
}

.slider-images .swiper {
    width: 100%;
    height: auto;
}


.slider-images img {
    max-width: 100%;
    height: auto;
    display: block;
}
.slider-images img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ==================== 4. CUATRO CARDS DE IMÁGENES ==================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 { font-size: 42px; }
.section-title p { font-size: 18px; color: #666; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cards-grid .card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
}
.cards-grid .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.cards-grid .card:hover img {
    transform: scale(1.05);
}
.card-title_ {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color:white;
    font-size: calc(1em + 1vw);
    font-weight: bolder;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    
}

/* ==================== FOOTER ==================== */
.main-footer {
    background-color: var(--dark-color);
    color: var(--gray-color);
    padding-top: 60px;
}

.main-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    font-size: 18px;
    color: var(--light-color);
    margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col a, .footer-col p {
    color: var(--gray-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 2;
}
.footer-col a:hover { color: var(--accent-color); }
.social-links a {
    display: inline-block;
    margin-right: 10px;
    color: var(--light-color);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #333;
}
.footer-bottom p { font-size: 14px; }

.footer-sub { 
    background-color: var(--dark-color);
    color: var(--gray-color);
    text-align: center;
    padding: 20px 0;    
    border-top: 1px solid #333; 
}

/* ==================== RESPONSIVE (TABLETS Y MÓVILES) ==================== */
@media (max-width: 992px) {
    .info-cards-primary .container {
        flex-direction: column;
    }
    .slider-section .container {
        flex-direction: column;
        text-align: center;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-color);
    }
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    .main-nav li {
        width: 100%;
        text-align: center;
    }
    .main-nav a {
        display: block;
        padding: 15px;
    }
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
    }
    .hamburger-menu .line {
        width: 100%;
        height: 3px;
        background-color: var(--light-color);
        border-radius: 3px;
    }
    #menu-toggle:checked ~ .main-nav {
        display: block;
    }
    
    .hero-content h1 { font-size: 40px; }
    .hero-content p { font-size: 18px; }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}



/* ==================== 3. SLIDER SECTION (TEXTO FIJO) ==================== */
.slider-section {
    background-color: var(--gray-color);
}

/* Usamos Flexbox para crear las dos columnas */
.slider-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Columna de texto */
.slider-content {
    flex: 1; /* Ocupa la mitad del espacio */
}
.slider-content h2 { font-size: 42px; margin-bottom: 20px; }
.slider-content p { margin-bottom: 30px; }

/* Columna de imágenes */
.slider-images {
    flex: 1; /* Ocupa la otra mitad del espacio */
    min-width: 0; /* Solución para un bug de Flexbox con Swiper */
}

/* Estilos para el contenedor del slider */
.swiper {
    width: 100%;
    height: 450px; /* Ajusta la altura como prefieras */
    border-radius: 15px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos para los botones y paginación (estos no cambian) */
.swiper-button-prev, .swiper-button-next {
    color: var(--light-color);
}
.swiper-pagination-bullet-active {
    background-color: var(--light-color);
}

/* ==================== 5. SECCIÓN DE ALOJAMIENTOS ==================== */

.alojamientos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.alojamiento-card {
    background-color: var(--light-color);
    border-radius: 15px;
    border: 1px solid #E9ECEF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alojamiento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.alojamiento-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.alojamiento-info {
    padding: 25px;
}

.alojamiento-categoria {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 15px;
}

.alojamiento-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}



.alojamiento-info p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.btn-card {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}
.btn-card:hover {
    text-decoration: underline;
}


/* ********************Alojamiento en destinos  ****************/
.alojamiento-info-destinos {
    padding: 15px;
}

.alojamiento-info-destinos h3 {
    font-size: calc(0.7em + 0.7vw); 
    margin-bottom:0px;   
    margin-top:-15px;
}

.alojamiento-info-destinos p {
    font-size: calc(0.4em + 0.4vw);
    color: #555;
    margin-bottom: 10px;
}

@media (max-width: 992px) {
    .alojamiento-info-destinos p {
        font-size: calc(0.5em + 0.5vw);
    }
}

@media (max-width: 768px) {
    .alojamiento-info-destinos p {
        font-size: calc(0.5em + 0.5vw);
    }
}

.alojamiento-header {
    display: flex;                 
    justify-content: space-between;  
    align-items: center;           
    margin-bottom: 15px;            
}

.alojamiento-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    margin-top:-20px;
    transition: transform 0.2s ease;
}

.alojamiento-link:hover {
    text-decoration: underline;
    transform: translateX(3px); 
}

/* ==================== 6. NOTICIAS DE ÚLTIMA HORA ==================== */
.noticias-section {
    background-color: var(--gray-color);
}


.noticias-lista {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.noticia-item {
    background-color: var(--light-color);
    border: 1px solid #ddd;
    border-left-width: 5px;
    border-radius: 8px;
    display: flex;
    align-items: stretch;
    transition: box-shadow 0.3s ease;
}
.noticia-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.noticia-tag {
    padding: 20px;
    color: var(--light-color);
    font-weight: 700;
    font-size: 14px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-align: center;
    border-radius: 8px 0 0 8px;
}

.noticia-content {
    padding: 20px;
}
.noticia-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
}
.noticia-content p {
    font-size: 15px;
    color: #555;
}

/* Colores para las etiquetas de noticias */
.tag-alerta {
    background-color: #ae2012;
    border-left-color: #9b2226;
}
.tag-oportunidad {
    background-color: #0a9396;
    border-left-color: #005f73;
}
.tag-evento {
    background-color: #ca6702;
    border-left-color: #bb3e03;
}

/* TEXTO Principales */
@media (max-width: 992px) {
    .principales h2 {
        font-size: calc(0.7em + 0.7vw);
    }

    .principales p {
        font-size: calc(0.6em + 0.6vw);
    }
}

@media (max-width: 768px) {
    .principales h2 {
        font-size: calc(0.7em + 0.7vw);
    }

    .principales p {
        font-size: calc(0.6em + 0.6vw);
    }
}

/*IMAGEN MODAL*/
.participante-imagen {
    object-fit: cover; 
    display: block;
  }