/* Variables de Colores */
:root {
    --primary-blue: #11233A;
    --dark-blue: #0A1626;
    --accent-green: #628F47;
    --light-green: #71A850;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 100px;
}

/* 2. Bloquear estrictamente el scroll horizontal en toda la web */
html, body {
    overflow-x: hidden; /* Oculta cualquier elemento que intente salirse por los lados */
    width: 100%;
    position: relative;

}

a { text-decoration: none; 
    color:#06112E;
  }
ul { list-style: none; }

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-dark {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-green {
    background-color: var(--accent-green);
    color: var(--white);
}

.btn-green:hover { background-color: var(--light-green); }

.btn-green-outline {
    background-color: var(--accent-green);
    color: var(--white);
    opacity: 0.9;
}
.btn-green-outline:hover { opacity: 1; }

/* HEADER */
.main-header {
    position: relative; 
    padding: 20px 0;
    margin-top: 50px; /* IMPORTANTE: Deja espacio arriba para que el logo no se corte */
    border-top: 3px solid #eaeaea; /* Línea gris que mencionabas */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Empujamos todo a la derecha */
    z-index: 100 !important;
}

.floating-logo {
        position: absolute !important;
        top: 10px !important;
        left: 40px !important;
        width: 140px !important;
        height: 140px !important;
        border-radius: 50%;
        z-index: 10 !important;
        border: 4px solid white;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }


    /* Centrar el menú sin afectar el logo */
header nav {
    display: flex;
    justify-content: center; /* Esto centra el menú horizontalmente */
    width: 100%;
}

/* Solo para pantallas grandes */
@media (min-width: 769px) {
    .main-header {
        position: relative;
        padding-top: 20px;
    }
}

/* RESET PARA CELULARES: Esto soluciona tu menú hamburguesa */
@media (max-width: 768px) {
    .floating-logo {
        position: relative; /* En celular el logo no flota, se queda arriba */
        margin: 0 auto 10px auto;
        display: block;
        width: 80px;
        height: 80px;
    }
    
    header nav {
        justify-content: flex-end; /* Vuelve el menú a la derecha en móvil */
        padding-left: 0;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 22px;
    color: var(--primary-blue);
}

.logo-text b { font-weight: 800; }

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.main-nav a.active {
    color: var(--accent-green);
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 5px;
}


.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    font-size: 24px;
    color: var(--accent-green);
}

.contact-info div {
    display: flex;
    flex-direction: column;
}

.phone { font-weight: 700; font-size: 14px; }
.availability { font-size: 12px; color: var(--text-gray); }

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 600px;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 40%, rgba(255,255,255,0) 100%), url('img/head.png') center/cover;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    padding: 60px 0;
}

.badge-text {
    color: var(--accent-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 54px;
    line-height: 1.1;
    color: var(--primary-blue);
    margin: 15px 0;
    font-weight: 800;
}

.hero h1 span { color: var(--accent-green); }

.hero p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 400px;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    font-size: 14px;
    font-weight: 600;
}

.hero-features i { color: var(--accent-green); margin-right: 5px; }

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.play-video {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-blue);
}

.play-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--primary-blue);
}

.video-text { display: flex; flex-direction: column; }
.video-text span { font-size: 12px; color: var(--text-gray); }

.hero-trust-badge {
    position: absolute;
    right: 10%;
    bottom: -30px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    margin-left: -15px;
}
.avatars img:first-child { margin-left: 0; }

.trust-text strong { display: block; font-size: 14px; }
.trust-text span { font-size: 12px; opacity: 0.8; }
.stars { color: #FFC107; font-size: 12px; margin-top: 5px; }

/* TOURS SECTION */
.tours-section {
    padding: 100px 20px 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.subtitle {
    color: var(--accent-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-top: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 600px;
}

.header-right p { font-size: 14px; color: var(--text-gray); }
.link-arrow { color: var(--text-dark); font-weight: 600; font-size: 14px; white-space: nowrap; }

.tours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tour-card {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    transition: transform 0.3s;
}

.tour-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.card-img {
    position: relative;
    height: 220px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
}

.tag-green { background: var(--accent-green); }
.tag-blue { background: #4A90E2; }
.tag-dark { background: var(--primary-blue); }

.card-content { padding: 20px; }

.card-content h3 { font-size: 18px; margin-bottom: 15px; color: var(--primary-blue); }

.tour-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.tour-meta i { color: var(--accent-green); }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.price-box { display: flex; flex-direction: column; }
.desde { font-size: 11px; color: var(--text-gray); }
.price { font-size: 18px; font-weight: 700; color: var(--primary-blue); }
.price sub { font-size: 12px; font-weight: normal; }

/* TRUST BANNER */
.trust-banner {
    background-color: var(--primary-blue);
    padding: 50px 0;
    color: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.trust-item { display: flex; gap: 15px; align-items: flex-start; }
.trust-item i { font-size: 30px; color: var(--accent-green); }
.trust-item h4 { font-size: 15px; margin-bottom: 5px; }
.trust-item p { font-size: 12px; opacity: 0.8; }

/* NEWSLETTER */
.newsletter-section {
    background: linear-gradient(rgba(17, 35, 58, 0.8), rgba(17, 35, 58, 0.8)), url('https://picsum.photos/1920/500?random=11') center/cover;
    padding: 80px 0;
    color: var(--white);
}

.newsletter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter-content h2 { font-size: 36px; margin-bottom: 10px; line-height: 1.2; }
.newsletter-content p { font-size: 16px; opacity: 0.9; max-width: 400px; }

.newsletter-form {
    background: transparent;
    max-width: 500px;
    width: 100%;
}

.form-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.form-header i { font-size: 30px; }
.form-header h4 { font-size: 18px; }
.form-header p { font-size: 13px; opacity: 0.8; }

.newsletter-form form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    border-radius: 6px;
    color: var(--white);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.7); }

/* FOOTER */
.main-footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo .logo-text { color: var(--white); }

.footer-links h4, .footer-social h4, .footer-contact h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: #a0aab8; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-green); }

.social-icons { display: flex; gap: 15px; }
.social-icons a {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: all 0.3s;
}
.social-icons a:hover { background: var(--accent-green); border-color: var(--accent-green); }

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #a0aab8;
    margin-bottom: 15px;
}

.footer-contact i { color: var(--accent-green); margin-top: 3px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: left;
    font-size: 12px;
    color: #a0aab8;
}

/* =========================================
   VENTANA FLOTANTE (MODAL) Y CARRUSEL
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 22, 38, 0.85); /* Fondo oscuro y elegante */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 750px;
    
    /* NUEVO: Esto evita que se pegue arriba y abajo */
    max-height: 85vh; 
    
    /* NUEVO: Si el contenido es muy largo, permite hacer scroll por dentro */
    overflow-y: auto; 
    
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

/* Opcional pero elegante: Personalizar la barrita de scroll del modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 10px;
}
.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    transition: color 0.2s;
}

.close-btn:hover { color: var(--accent-green); }

.carousel {
    position: relative;
    height: 350px;
    width: 100%;
    background: #eee;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.prev-btn:hover, .next-btn:hover { background: var(--accent-green); }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active { background: var(--accent-green); }

.modal-info {
    padding: 35px 30px;
    text-align: center;
}

.modal-info h2 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 26px;
}

.modal-info p {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.7;
}

/* =========================================
   DISEÑO RESPONSIVO (MÓVILES)
   ========================================= */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--primary-blue);
    cursor: pointer;
    position: relative;
    z-index: 20 !important; /* Siempre arriba del logo */
    cursor: pointer;
}
/* Aseguramos que el menú, al activarse, siempre sea visible y no deje espacios */
/* Aseguramos que el menú, al activarse, siempre sea visible y no deje espacios */
.menu.active {
    display: block !important;
    position: fixed !important;
    top: 0;
    right: 0; /* Lo obligamos a abrirse a la derecha */
    width: 250px !important;
    height: 100% !important;
    background: white;
    z-index: 9999 !important;
    border-left: 2px solid #eaeaea;
    transition: all 0.3s ease;
}
.menu {
        padding-left: 200px !important;
        width: 100%;
        z-index: 9999 !important;
    }

@media (max-width: 1024px) {
    .tours-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { 
    
    display: block;
    position: absolute;
    right: 20px; /* Lo mueve a la derecha */
    top: 20px;
    
    
    }
    

    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    .main-nav ul li { text-align: center; padding: 15px 0; border-bottom: 1px solid #eee; }
    .header-contact { display: none; } /* Se oculta contacto en móvil para ahorrar espacio */
    
    /* Adaptación de contenido */
    .hero h1 { font-size: 38px; }
    .hero-features { flex-direction: column; gap: 10px; }
    .hero-trust-badge { position: relative; right: 0; bottom: 0; margin-top: 30px; justify-content: center; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 15px; }
    
    .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .tours-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; text-align: center; }
    .trust-item { flex-direction: column; align-items: center; }
    
    .newsletter-container { flex-direction: column; gap: 30px; text-align: center; }
    .newsletter-form form { flex-direction: column; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
    .footer-contact ul li { justify-content: center; }
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 750px;
    
    /* NUEVO: Esto evita que se pegue arriba y abajo */
    max-height: 85vh; 
    
    /* NUEVO: Si el contenido es muy largo, permite hacer scroll por dentro */
    overflow-y: auto; 
    
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

/* Opcional pero elegante: Personalizar la barrita de scroll del modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 10px;
}

/* Contenedor principal del formulario */
.reserva-container {
    max-width: 500px;
    margin: 50px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.reserva-container h2 {
    color: #11233A;
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
}

/* Estilo de los campos */
.reserva-container input, 
.reserva-container select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #eef2f6;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box; /* Importante para que el padding no rompa el ancho */
    transition: all 0.3s ease;
}

.reserva-container input:focus {
    border-color: #628F47;
    outline: none;
    box-shadow: 0 0 10px rgba(98, 143, 71, 0.1);
}

/* Botón elegante */
.reserva-container button {
    width: 100%;
    padding: 16px;
    background: #628F47;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.reserva-container button:hover {
    background: #52773b;
    transform: translateY(-2px);
}

.iti { width: 100%; margin-bottom: 20px; }


.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tour-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-10px);
}

.descripcion-tour {
    white-space: pre-line; /* Esto convierte los saltos de línea en <br> automáticamente */
    line-height: 1.6;      /* Mejora la legibilidad */
}

/* Esto hace que la página se desvanezca al cargar */
body {
    animation: fadeInAnimation ease 0.8s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* --- HEADER ESTRUCTURA --- */
.site-header { position: relative; padding: 20px 0; background: #fff; border-bottom: 2px solid #eee; z-index: 1000; }
.header-wrapper { display: flex; align-items: center; justify-content: flex-end; padding-right: 20px; }


/* --- MENÚ ESTILIZADO --- */
.nav-list { display: flex; list-style: none; gap: 30px; }
.nav-list a { text-decoration: none; color: #333; font-weight: 600; font-family: sans-serif; transition: color 0.3s; }
.nav-list a:hover { color: #007bff; }

/* --- HAMBURGUESA (Móvil) --- */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background: #333; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-nav { 
        position: fixed; top: 0; right: -100%; width: 250px; height: 100%; 
        background: #fff; flex-direction: column; transition: 0.3s;
    }
    .main-nav.active { right: 0; }
    .nav-list { flex-direction: column; padding-top: 80px; align-items: center; }
}

/* --- ESTILOS PARA ESCRITORIO (POR DEFECTO) --- */
.main-nav { display: block; }
.nav-list { display: flex; list-style: none; gap: 40px; } /* Horizontal en PC */

/* --- ESTILOS PARA MÓVIL --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; } /* Mostramos hamburguesa */
    
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 250px; height: 100%;
        background: #fff; display: block; z-index: 9999;
        transition: 0.3s; box-shadow: -5px 0 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active { right: 0; }
    
    .nav-list { 
        flex-direction: column; /* Vertical en móvil */
        padding-top: 80px; 
        align-items: center; 
    }
}

/* --- Navegación Base (Escritorio) --- */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: auto;
    width:100%;
}

.logo span {
    color: #5C8343; /* Verde de tu diseño */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto; /* Esto tira de los textos hacia el extremo derecho */
}

.nav-links a:hover {
    color: #5C8343;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* --- Media Queries para Celulares (Menú Hamburguesa) --- */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* Oculto por defecto en móviles */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Altura donde empieza a desplegarse */
        left: 0;
        background-color: #fff;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center;
    }

    /* Esta es la clase clave que el JS va a activar/desactivar */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block; /* Muestra el botón en móviles */
    }
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right:50%;
}

/* Tamaño de la imagen del logo en la navegación */
.logo img {
    height: 95px; /* Puedes subir o bajar este número para ajustar el tamaño */
    width: auto;
    display: block;
}

.logo img:hover {
    transition: transform 0.3s ease;
    transform: scale(1.05);
}

/* --- Ajuste responsivo para detalle_tour.php --- */
@media screen and (max-width: 768px) {
    
    /* Reemplaza '.contenedor-detalle' por la clase principal que envuelve tus dos columnas */
    .container {
        display: flex;
        flex-direction: column; /* Esto apila los elementos uno debajo del otro */
    }

    /* Aseguramos que ambas columnas tomen el 100% del ancho de la pantalla */
    /* Reemplaza los nombres de estas clases por los que estés usando en tu HTML */
    .columna-foto, 
    .columna-reserva {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px; /* Da un respiro entre la foto y la caja de reserva */
    }
}

/* --- Carrusel horizontal para Tours en Móviles --- */
@media screen and (max-width: 768px) {
    .tours-grid {
        display: flex;
        flex-wrap: nowrap; /* Obliga a los elementos a estar en una sola línea */
        overflow-x: auto; /* Habilita el scroll horizontal */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Desplazamiento suave en iOS */
        scroll-snap-type: x mandatory; /* Hace que las tarjetas se ajusten como un imán */
        gap: 15px;
        padding-bottom: 20px; /* Espacio para que la sombra no se corte */
        
        /* Oculta la barra de desplazamiento inferior para un look de "App" */
        scrollbar-width: none; /* Firefox */
    }

    .tours-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .tour-card {
        /* El 85% hace que la tarjeta actual ocupe casi toda la pantalla, 
           pero deja asomar un pedacito de la siguiente para invitar a hacer swipe */
        flex: 0 0 85%; 
        scroll-snap-align: center; /* Centra la tarjeta al soltar el dedo */
    }
}

/* ==========================================
   ESTRUCTURA FLEXIBLE DE LA TARJETA
   ========================================== */
.tour-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%; /* Si están en grilla, todas miden igual */
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* ESTO ES CLAVE: Ocupa todo el espacio sobrante y empuja el footer abajo */
}

.card-footer {
    margin-top: auto; /* Asegura que el precio y el botón se queden pegados al fondo */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite que los elementos bajen si no caben */
    gap: 15px;
}

/* ==========================================
   ADAPTACIÓN EXCLUSIVA PARA MÓVILES
   ========================================== */
@media (max-width: 768px) {
    .tour-card {
        width: 100% !important;
        height: auto !important; /* Permite que la tarjeta crezca libremente hacia abajo */
        margin-bottom: 20px;
    }
    
    /* En celular, apilamos el precio y el botón para que sea más fácil tocarlo */
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .price-box {
        width: 100%;
        text-align: left;
    }

    .btn.btn-primary {
        width: 100% !important; /* Botón de ancho completo en celular */
        text-align: center;
        padding: 14px !important;
        font-size: 16px !important;
        border-radius: 8px;
        box-sizing: border-box;
    }
}