/* =================================================================
   ESTILOS PÁGINA DESTINO IQUITOS (SOLO CONTENIDO)
   Todo protegido bajo la clase .destino-bg
   ================================================================= */

.destino-bg {
    background-color: #051d15; /* Verde Selva Profundo */
    color: #e2e8f0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* 1. HERO */
.destino-bg .destino-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex; align-items: center; justify-content: center;
    
    /* AJUSTE PARA EL HEADER GIGANTE */
    margin-top: -100px; 
    padding-top: 200px; /* Bajamos el contenido para que no lo tape el header */
    box-sizing: border-box;
}

.destino-bg .hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    /* Efecto de movimiento lento */
    animation: zoomSlow 30s infinite alternate; 
    z-index: 0;
}

.destino-bg .hero-overlay-jungle {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(5,29,21,0.4), #051d15);
    z-index: 1;
}

.destino-bg .hero-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.destino-bg .badge-pill {
    display: inline-block;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 8px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.3);
}

/* TÍTULO BLANCO FORZADO */
.destino-bg .hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    color: #ffffff !important; /* Forzamos blanco */
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    font-weight: 800;
    line-height: 1.1;
}

.destino-bg .hero-desc {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Ratón Scroll */
.destino-bg .scroll-mouse {
    width: 26px; height: 40px; border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px; position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
}
.destino-bg .mouse-wheel {
    width: 4px; height: 8px; background: #fff; border-radius: 2px;
    margin: 5px auto; animation: scrollAnim 1.5s infinite;
}
@keyframes scrollAnim { 0% {transform:translateY(0); opacity:1;} 100% {transform:translateY(15px); opacity:0;} }


/* 2. FLUJO DE DESTINOS */
.destino-bg .destinations-flow {
    padding: 80px 0;
    position: relative;
}

/* Filas (Zig Zag) */
.destino-bg .dest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 150px; /* Más espacio entre destinos */
    gap: 5rem;
}
.destino-bg .dest-row:last-child { margin-bottom: 0; }

.destino-bg .dest-row.row-reverse {
    flex-direction: row-reverse;
}

/* IMAGEN ORGÁNICA */
.destino-bg .dest-col-img {
    position: relative;
    width: 50%;
}

.destino-bg .organic-frame {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}
.destino-bg .organic-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.destino-bg .dest-row:hover .organic-frame img { transform: scale(1.1); }

/* Formas variadas */
.destino-bg .frame-1 { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
.destino-bg .frame-2 { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
.destino-bg .frame-3 { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.destino-bg .frame-4 { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; }
.destino-bg .frame-5 { border-radius: 73% 27% 59% 41% / 57% 57% 43% 43%; }
.destino-bg .frame-6 { border-radius: 36% 64% 56% 44% / 34% 47% 53% 66%; }

/* Etiqueta de Tiempo */
.destino-bg .floating-time {
    position: absolute;
    bottom: 30px;
    right: 0; 
    background: #0B3D2E;
    color: var(--color-gold);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 2;
}
.destino-bg .row-reverse .floating-time { right: auto; left: 0; }


/* TEXTOS */
.destino-bg .dest-col-text { width: 40%; }

.destino-bg .dest-number {
    font-size: 6rem; font-weight: 900;
    color: transparent; 
    -webkit-text-stroke: 1px rgba(255,255,255,0.1); /* Contorno sutil */
    line-height: 0.8; display: block; margin-bottom: -25px;
    font-family: sans-serif;
    position: relative; z-index: -1;
}

.destino-bg .dest-title {
    font-size: 2.8rem; color: #fff; margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.destino-bg .dest-desc { 
    color: #aeb9c7; line-height: 1.8; margin-bottom: 2rem; font-size: 1.05rem; 
}

/* Caja de Tip */
.destino-bg .dest-tip-box {
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--color-gold);
    padding: 20px;
    margin-bottom: 30px;
    display: flex; gap: 15px; align-items: center;
    border-radius: 0 10px 10px 0;
}
.destino-bg .dest-tip-box i { font-style: normal; font-size: 1.5rem; }
.destino-bg .dest-tip-box strong { display: block; color: var(--color-gold); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 5px; }
.destino-bg .dest-tip-box span { font-size: 0.95rem; color: #ddd; display: block;}

.destino-bg .btn-text-gold {
    color: var(--color-gold); font-weight: 700; text-transform: uppercase; text-decoration: none; letter-spacing: 1px;
    border-bottom: 1px solid var(--color-gold); padding-bottom: 5px; transition: all 0.3s;
}
.destino-bg .btn-text-gold:hover { color: #fff; border-bottom-color: #fff; }

/* 3. CTA FINAL */
.destino-bg .concierge-cta {
    background: #081410; padding: 100px 0; border-top: 1px solid rgba(255,255,255,0.05); text-align: center;
}
.destino-bg .concierge-cta h3 { font-size: 2.5rem; color: #fff; margin-bottom: 15px; }
.destino-bg .concierge-cta p { color: #888; margin-bottom: 30px; font-size: 1.1rem; }

.destino-bg .btn-gold-solid {
    display: inline-block; background: var(--color-gold); color: #000;
    padding: 15px 40px; border-radius: 50px; font-weight: 700; text-transform: uppercase; text-decoration: none;
    transition: all 0.3s;
}
.destino-bg .btn-gold-solid:hover { background: #fff; transform: translateY(-3px); }

/* RESPONSIVE */
@media (max-width: 900px) {
    .destino-bg .destino-hero { 
        margin-top: 0; 
        padding-top: 80px; 
        height: auto;
        min-height: 60vh;
    }
    .destino-bg .dest-row { flex-direction: column !important; gap: 2rem; margin-bottom: 60px; }
    .destino-bg .dest-col-img, .destino-bg .dest-col-text { width: 100%; }
    .destino-bg .organic-frame { height: 250px; }
    .destino-bg .dest-title { font-size: 1.8rem; }
    .destino-bg .dest-number { font-size: 3rem; margin-bottom: -10px; }
    .destino-bg .hero-title { font-size: 2rem; }
}

/* --- MODAL DE IMAGEN (LIGHTBOX) --- */
.tour-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Fondo muy oscuro */
    z-index: 10000; /* Encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tour-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tour-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    overflow: hidden;
}

/* La imagen se ajusta para verse completa */
.tour-modal-content img {
    display: block;
    max-width: 100%;
    max-height: 90vh; /* Nunca más alta que la pantalla */
    object-fit: contain;
}

/* Botón Cerrar */
.tour-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10001;
}

.tour-modal-close:hover {
    color: var(--color-gold);
}