:root {
    --gold: #b28422;
    --orange: #df6434;
    --blue-dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--blue-dark);
    color: white;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

#canvas-particulas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    height: 70px;
    filter: drop-shadow(0 0 10px var(--orange));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.main-title {
    font-family: 'Rubik Doodle Shadow', cursive;
    font-size: clamp(2rem, 8vw, 4rem);
    text-align: center;
    margin: 40px 0;
    background: linear-gradient(90deg, #fff, var(--orange), #fff);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s infinite;
}

@keyframes gradientMove {
    to {
        background-position: 200% center;
    }
}

.month-label {
    text-align: center;
    font-size: 2.5rem;
    margin: 50px 0 20px;
    color: var(--gold);
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 1. La carta define el tamaño total */
.card-tour {
    height: 400px; 
    border-radius: 25px; 
    overflow: hidden; 
    position: relative;
}

/* 2. El contenedor intermedio DEBE tener el mismo alto */
.card-content {
    width: 100%;
    height: 100%; /* ESTO ES CLAVE: Sin esto, la imagen se corta o no llena */
    display: block;
}

/* 3. La imagen ahora sí se estira al 100% del padre */
.card-content img {
    width: 100%;
    height: 100%; 
    object-fit: cover; /* Mantiene proporción y llena el espacio */
    object-position: center; /* Centra la parte importante de la foto */
    transition: 1s ease;
    display: block;
}

/* Efecto opcional de Zoom al pasar el mouse */
.card-tour:hover .card-content img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: 0.4s;
}

.card-tour:hover .card-overlay {
    opacity: 1;
}

.date-tag {
    background: var(--orange);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-body {
    background: #1e293b;
    width: 90%;
    max-width: 800px;
    margin: 5vh auto;
    border-radius: 25px;
    position: relative;
    border: 1px solid var(--orange);
    overflow: hidden;
}

.modal-layout {
    display: flex;
    flex-wrap: wrap;
}

#modalImg {
    width: 100%;
    max-width: 350px;
    height: 350px;
    object-fit: cover;
}

.modal-text {
    padding: 30px;
    flex: 1;
    min-width: 280px;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 40px;
    cursor: pointer;
    color: var(--orange);
    z-index: 5;
}

.btn-confirm {
    display: inline-block;
    margin-top: 20px;
    background: #25d366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
}

/* RESPONSIVIDAD EXTREMA */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
    }

    .nav-links {
        margin-top: 10px;
        gap: 15px;
    }

    .tour-grid {
        padding: 10px 15px;
    }

    .modal-layout {
        flex-direction: column;
    }

    #modalImg {
        max-width: 100%;
        height: 250px;
    }
}