/* ==========================================================================
   BOSQUE DE LOS DRAGONES - VOLCANIC PARK
   Estilos optimizados para alto rendimiento (60/120 FPS scroll suave)
   Tipografías: 'Rumikon' para títulos/botones, 'Barlow' para contenido
   Temática: Criaturas míticas, bosque encantado, leyenda y fantasía
   ========================================================================== */

:root {
    --drag-emerald-primary: #047857;
    --drag-emerald-dark: #065f46;
    --drag-emerald-deep: #064e3b;
    --drag-emerald-light: #10b981;
    --drag-gold: #d97706;
    --drag-text-dark: #1c1917;
    --drag-text-muted: #57534e;
    --drag-border-light: #e7e5e4;
    --drag-bg-light: #f0fdf4;
}

/* --- BANNER PRINCIPAL RESPONSIVE --- */
.dragones-banner {
    width: 100%;
    aspect-ratio: 768 / 450;
    height: auto;
    position: relative;
    overflow: hidden;
    line-height: 0;
    background: #000000;
    margin-top: 110px; /* Espacio para header fijo + barra de contacto en desktop */
}

@media (max-width: 992px) {
    .dragones-banner {
        margin-top: 96px; /* Ajuste para tablet */
    }
}

@media (max-width: 768px) {
    .dragones-banner {
        margin-top: 86px; /* Ajuste para header móvil */
    }
}

@media (min-width: 768px) {
    .dragones-banner {
        aspect-ratio: 1024 / 500;
    }
}

@media (min-width: 1024px) {
    .dragones-banner {
        aspect-ratio: 1920 / 700;
    }
}

.dragones-banner picture {
    width: 100%;
    height: 100%;
    display: block;
}

.dragones-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* --- BARRA DE NAVEGACIÓN RÁPIDA STICKY --- */
.drag-nav-wrapper {
    background: #ffffff;
    box-shadow: 0 2px 14px rgba(4, 120, 87, 0.08);
    position: sticky;
    top: 90px;
    z-index: 90;
    border-bottom: 1px solid rgba(4, 120, 87, 0.12);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.drag-nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 12px 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.drag-nav-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1.5px solid #e7e5e4;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.drag-nav-pill:hover {
    transform: translateY(-2px);
    border-color: #047857;
    background: #ecfdf5;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.15);
}

.drag-nav-pill .drag-nav-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(4, 120, 87, 0.08);
    color: #047857;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.drag-nav-pill:hover .drag-nav-icon {
    background: #047857;
    color: #ffffff;
    transform: scale(1.08);
}

.drag-nav-pill .drag-nav-text {
    display: flex;
    flex-direction: column;
}

.drag-nav-pill .drag-nav-name {
    font-family: 'Rumikon', Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    text-transform: uppercase;
    color: #1c1917;
    line-height: 1.2;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.drag-nav-pill:hover .drag-nav-name {
    color: #047857;
}

.drag-nav-pill .drag-nav-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #57534e;
    line-height: 1.2;
}

/* --- SECCIÓN VIDEO YOUTUBE RESPONSIVE --- */
.video-promo-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    clear: both;
}

.video-promo-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.video-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    background-color: #000;
}

@supports not (aspect-ratio: 16 / 9) {
    .video-responsive {
        height: 0;
        padding-bottom: 56.25%;
    }
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .video-promo-section {
        padding: 24px 15px;
    }

    .video-responsive {
        border-radius: 12px;
    }
}

/* --- SECCIÓN BASE DE LA ATRACCIÓN --- */
.drag-experience-section {
    width: 100%;
    padding: 80px 0;
    position: relative;
    scroll-margin-top: 140px;
    background: transparent;
    border-bottom: 1px solid rgba(4, 120, 87, 0.08);
    content-visibility: auto;
    contain-intrinsic-size: 550px;
}

.drag-experience-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Columna de contenido */
.drag-content-col {
    flex: 1.05;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Columna de galería */
.drag-gallery-col {
    flex: 0.95;
    position: relative;
    width: 100%;
}

/* Títulos con tipografía Rumikon y degradado bosque mítico */
.drag-main-title {
    font-family: 'Rumikon', Arial, sans-serif;
    font-size: 56px;
    font-weight: normal;
    line-height: 1.05;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(180deg, #047857 0%, #064e3b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

/* Descripción del texto exacto de dragones.md */
.drag-main-description {
    font-family: 'Barlow', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.65;
    color: #1c1917;
    margin: 0;
}

/* Grupo de botones de acción */
.drag-action-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
}

/* Botón de boletos oficial en tono esmeralda mítico */
.drag-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    border-radius: 50px;
    background: linear-gradient(180deg, #047857 0%, #065f46 100%);
    color: #ffffff;
    font-family: 'Rumikon', Arial, sans-serif;
    font-size: 17px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(4, 120, 87, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.drag-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(4, 120, 87, 0.5);
    background: linear-gradient(180deg, #059669 0%, #064e3b 100%);
    color: #ffffff;
}

.drag-btn-primary i {
    font-size: 18px;
}

/* ==========================================================================
   GALERÍA INTERACTIVA DE FOTOS (1:1 Square - Igual que jurasico.php)
   ========================================================================== */
.drag-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* Visor principal */
.drag-main-viewer {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transform: translateZ(0);
}

.drag-main-viewer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
}

/* Flechas de navegación */
.drag-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #1c1917;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    z-index: 5;
    opacity: 0.92;
}

.drag-gallery-arrow:hover {
    opacity: 1;
    background: #047857;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.drag-gallery-arrow.prev {
    left: 14px;
}

.drag-gallery-arrow.next {
    right: 14px;
}

/* Badges sobre la foto principal */
.drag-viewer-top-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 4;
}

.drag-photo-counter {
    background: rgba(4, 120, 87, 0.9);
    color: #ffffff;
    font-family: 'Rumikon', Arial, sans-serif;
    font-size: 13px;
    font-weight: normal;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.drag-zoom-hint {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tira de miniaturas */
.drag-thumbnails-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 8px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.drag-thumbnails-strip::-webkit-scrollbar {
    height: 5px;
}

.drag-thumbnails-strip::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.drag-thumb-item {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2.5px solid transparent;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    background: #e7e5e4;
}

.drag-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.drag-thumb-item:hover {
    transform: translateY(-2px);
}

.drag-thumb-item:hover img {
    opacity: 1;
}

.drag-thumb-item.active {
    border-color: #047857;
    box-shadow: 0 0 0 2px rgba(4, 120, 87, 0.35);
    transform: translateY(-2px);
}

.drag-thumb-item.active img {
    opacity: 1;
}

/* ==========================================================================
   SECCIÓN ¿POR QUÉ NO PUEDES PERDÉRTELO?
   ========================================================================== */
.drag-reasons-section {
    width: 100%;
    padding: 80px 0;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    position: relative;
    scroll-margin-top: 140px;
    content-visibility: auto;
    contain-intrinsic-size: 450px;
    border-bottom: 1px solid rgba(4, 120, 87, 0.1);
}

.drag-reasons-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.drag-reasons-title {
    font-family: 'Rumikon', Arial, sans-serif;
    font-size: 48px;
    font-weight: normal;
    margin: 0 0 40px 0;
    text-transform: uppercase;
    background: linear-gradient(180deg, #047857 0%, #064e3b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.drag-reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.drag-reason-card {
    background: #ffffff;
    border: 1.5px solid #a7f3d0;
    border-radius: 20px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.drag-reason-card:hover {
    transform: translateY(-4px);
    border-color: #047857;
    box-shadow: 0 12px 32px rgba(4, 120, 87, 0.16);
}

.drag-reason-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #ecfdf5;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.12);
}

.drag-reason-text {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: #1c1917;
    margin: 0;
}

/* ==========================================================================
   BANNER FINAL / CTA DE COMPRA
   ========================================================================== */
.drag-bottom-cta-wrapper {
    background: #ffffff;
    padding: 60px 20px 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.drag-bottom-cta-link {
    display: block;
    max-width: 650px;
    width: 100%;
    transition: transform 0.25s ease, filter 0.25s ease;
    text-align: center;
}

.drag-bottom-cta-link:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 10px 25px rgba(4, 120, 87, 0.35));
}

.drag-bottom-cta-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50px;
}

/* ==========================================================================
   MODAL LIGHTBOX FULLSCREEN
   ========================================================================== */
.drag-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.drag-lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.drag-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drag-lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.drag-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #ffffff;
    font-size: 34px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.drag-lightbox-close:hover {
    transform: scale(1.2);
    color: #10b981;
}

.drag-lightbox-title {
    font-family: 'Rumikon', Arial, sans-serif;
    color: #ffffff;
    font-size: 18px;
    font-weight: normal;
    margin-top: 14px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */
@media (max-width: 1200px) {
    .drag-experience-container {
        gap: 40px;
        padding: 0 30px;
    }
    
    .drag-main-title {
        font-size: 48px;
    }

    .drag-main-description {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .drag-nav-wrapper {
        top: 70px;
    }

    .drag-experience-section {
        padding: 60px 0;
    }

    .drag-experience-container {
        flex-direction: column;
        gap: 36px;
    }

    .drag-content-col,
    .drag-gallery-col {
        width: 100%;
        flex: auto;
    }

    .drag-main-viewer {
        max-height: 480px;
    }

    .drag-main-title {
        font-size: 40px;
    }

    .drag-reasons-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .drag-nav-wrapper {
        position: relative;
        top: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .drag-nav-container {
        display: flex;
        flex-wrap: nowrap;
        padding: 12px 16px;
        gap: 10px;
        min-width: max-content;
    }

    .drag-nav-pill {
        min-width: 220px;
        padding: 8px 12px;
    }

    .drag-experience-section {
        padding: 45px 0;
    }

    .drag-experience-container {
        padding: 0 20px;
        gap: 28px;
    }

    .drag-main-title {
        font-size: 34px;
    }

    .drag-main-description {
        font-size: 18px;
    }

    .drag-btn-primary {
        width: 100%;
        text-align: center;
    }

    .drag-thumb-item {
        flex: 0 0 70px;
        height: 70px;
    }

    .drag-reasons-title {
        font-size: 34px;
    }
}

/* --- ANIMACIONES DE ENTRADA SCROLL REVEAL EN SECCIONES --- */
.drag-experience-section.scroll-reveal,
.drag-reasons-section.scroll-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.drag-experience-section.scroll-reveal.is-revealed,
.drag-reasons-section.scroll-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.drag-experience-section.scroll-reveal .drag-content-col {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.drag-experience-section.scroll-reveal .drag-gallery-col {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.drag-experience-section.scroll-reveal.is-revealed .drag-content-col {
    opacity: 1;
    transform: translateX(0);
}

.drag-experience-section.scroll-reveal.is-revealed .drag-gallery-col {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .drag-experience-section.scroll-reveal,
    .drag-reasons-section.scroll-reveal,
    .drag-experience-section.scroll-reveal .drag-content-col,
    .drag-experience-section.scroll-reveal .drag-gallery-col {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
