/* ===================================
   JORA - ESTILOS EVENTOS (FINAL COMPACTO)
   =================================== */

/* 1. RESET BÁSICO */
body {
    margin: 0;
    padding: 0;
}

.eventos-page {
    background-color: #fff;
    color: var(--color-text);
    scroll-behavior: smooth;
}

/* --- 2. HEADER PRINCIPAL (STICKY) --- */
.eventos-page .site-header {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2000 !important; 
    width: 100%;
    height: 80px; 
    display: flex;
    align-items: center;
}

.primary-nav-mobile, 
.primary-nav-mobile.active {
    z-index: 3000 !important; 
}

/* --- 3. HERO (PORTADA) --- */
.editorial-hero {
    position: relative;
    height: 80vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-start; 
    justify-content: center;
    padding-top: 40px; 
}

.hero-overlay-white {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 65%);
    z-index: 1;
}

.hero-content {
    position: relative; z-index: 2; text-align: center; color: #000;
    padding: 20px;
    width: 90%; max-width: 1300px;
}

.hero-content h1 {
    font-family: var(--font-2); 
    font-size: 3.5rem; 
    margin-bottom: 15px;
    font-weight: 900; 
    letter-spacing: -1px;
    white-space: nowrap; 
    text-shadow: none;
}

.hero-content p {
    font-family: var(--font-1); font-size: 1.4rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
    color: #333;
    margin-top: 10px;
}

.scroll-down-arrow {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 2rem; text-decoration: none; z-index: 2;
    animation: bounce 2s infinite; text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

.fade-in-up { animation: fadeInUp 1s ease-out forwards; opacity: 0; transform: translateY(30px); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }


/* --- 4. BARRA AMARILLA (SUB-NAV) - EFECTO UNIÓN --- */
.sticky-subnav {
    position: -webkit-sticky;
    position: sticky;
    top: 80px; /* Altura Header Desktop */
    z-index: 1900 !important; 
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); padding: 15px 0;
}

.subnav-inner { display: flex; justify-content: center; gap: 30px; align-items: center; }
.subnav-inner a { text-decoration: none; color: #444; font-family: var(--font-3); font-size: 0.95rem; font-weight: 600; transition: color 0.3s; }
.subnav-inner a:hover { color: var(--color-secondary); }
.subnav-cta { background: var(--color-primary); color: #000 !important; padding: 10px 25px; border-radius: 50px; font-weight: 700; box-shadow: 0 4px 10px rgba(250, 207, 115, 0.4); }
.subnav-cta:hover { transform: translateY(-2px); }


/* --- SECCIONES GENERALES --- */
.editorial-section { padding: 80px 0; }
.bg-vibrant-soft { background-color: #FFF9E6; }
.bg-light-gray { background-color: #f8f8f8; }

.section-intro { max-width: 800px; margin: 0 auto; }
.section-intro .subtitle { display: block; font-family: var(--font-3); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; color: var(--color-secondary); margin-bottom: 10px; font-weight: 700; }
.section-intro h2 { font-family: var(--font-2); font-size: 3rem; color: #111; margin-bottom: 25px; font-weight: 900; }

.rich-text { font-family: var(--font-2); font-size: 1.25rem !important; line-height: 1.8 !important; color: #444; font-weight: 300; }
.rich-text strong { color: var(--color-secondary); font-weight: 700; }

.features-center { margin-top: 30px; font-family: var(--font-3); font-size: 1rem; color: #555; font-weight: 500; letter-spacing: 0.5px; }

.arrow-separator {
    font-size: 2.5rem; color: #333; text-align: center;
    margin: 30px 0 20px 0; opacity: 0.7;
    position: relative; left: 50%; transform: translateX(-50%);
    animation: bounce 2s infinite; cursor: default;
}

.section-actions { text-align: center; width: 100%; margin-bottom: 50px; display: block; }

.btn-editorial { display: inline-block; padding: 12px 35px; border-radius: 50px; font-family: var(--font-3); font-weight: 700; text-decoration: none !important; text-align: center; border: none; font-size: 0.9rem; transition: all 0.3s; margin: 0 auto; }
.btn-vibrant { background-color: var(--color-primary); color: #000; box-shadow: 0 4px 15px rgba(250, 207, 115, 0.4); }
.btn-vibrant:hover { background-color: #f7c35f; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(250, 207, 115, 0.6); }
.btn-black { background-color: #000; color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.btn-black:hover { background-color: #222; transform: translateY(-3px); }


/* --- GRID SISTEMAS --- */
.bodas-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 20px; width: 90%; margin: 0 auto; }
.mosaic-item { position: relative; overflow: hidden; border-radius: 8px; box-shadow: var(--shadow-1); }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.mosaic-item:hover img { transform: scale(1.03); }
.item-tall { grid-row: span 2; }
.item-wide { grid-column: span 2; }

.media-layout-centered { width: 90%; margin: 0 auto; }
.fiestas-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; grid-template-rows: 250px 250px; gap: 15px; }
.tiktok-style { grid-column: 3; grid-row: 1 / span 2; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-2); background: #000; }
.tiktok-style video { width: 100%; height: 100%; object-fit: cover; }
.fiestas-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; transition: transform 0.3s; }
.fiestas-grid img:hover { transform: scale(1.03); }
.img-wide { grid-column: 1 / span 2; }

.corpo-mix-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 15px; }
.video-full-height { grid-column: 1; grid-row: 1 / span 2; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-2); background: #000; }
.video-full-height video { width: 100%; height: 100%; object-fit: cover; }
.corpo-mix-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; transition: transform 0.3s; }
.corpo-mix-grid img:hover { transform: scale(1.03); }

.banner-social { width: 100%; height: 350px; overflow: hidden; border-radius: 20px; margin-bottom: 30px; box-shadow: var(--shadow-2); }
.banner-social img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.dual-photos-social { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 80%; margin: 0 auto; }
.photo-card { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-1); transition: transform 0.3s; }
.photo-card:hover { transform: translateY(-5px); }

.scroll-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: #fff; color: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 99; transition: transform 0.3s; }
.scroll-to-top:hover { transform: translateY(-3px); color: var(--color-primary); }


/* =========================================
   RESPONSIVE MÓVIL (CORRECCIONES DE UNIÓN Y SCROLL) 
   ========================================= */
@media (max-width: 1050px) {
    
    /* HEADER (70px alto) */
    .eventos-page .site-header {
        height: 70px; 
        top: 0;
    }

    /* HERO */
    .editorial-hero { 
        height: 60vh; 
        padding-top: 0;
        align-items: flex-start; 
    }
    .hero-content {
        margin-top: 80px; 
        padding: 0 10px;
    }
    .hero-content h1 { 
        font-size: 2rem;       
        white-space: normal;     
        line-height: 1.1;
    } 
    .hero-content p { display: none; } 

    /* --- SUB-NAV COMPACTO (SIN SCROLL HORIZONTAL) --- */
    .sticky-subnav { 
        position: -webkit-sticky;
        position: sticky;
        top: 70px; /* Igual a altura del Header */
        
        background-color: #fff !important; 
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        padding: 8px 0; /* Padding vertical reducido */
        z-index: 1900 !important;
        
        display: flex; 
        justify-content: center; /* Centrar todo */
        overflow: hidden; /* Cortar scroll */
    }
    
    .sticky-subnav::-webkit-scrollbar { display: none; }

    .subnav-inner { 
        display: flex; 
        width: 100%;
        max-width: 100%;
        padding: 0 5px; /* Mínimo margen lateral */
        
        /* MAGIA DE COMPACTACIÓN */
        justify-content: space-between; /* Distribuye espacio equitativamente */
        gap: 0; /* Cero huecos extra */
    }

    .subnav-inner a { 
        font-size: 0.75rem; /* ~12px: Fuente pequeña pero legible */
        white-space: nowrap; 
        color: #333;
        padding: 5px 2px; /* Táctil, pero sin ocupar espacio lateral */
    }

    /* Botón COTIZAR muy compacto */
    .subnav-cta { 
        padding: 4px 10px;       
        font-size: 0.75rem; 
        white-space: nowrap;
        margin-left: 2px;
    }

    /* MARGEN DE SCROLL */
    section[id] {
        scroll-margin-top: 140px; 
        padding-top: 20px;
    }
    
    /* Layouts móviles */
    .editorial-section { padding-bottom: 40px; }
    .bodas-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
    .item-tall { grid-row: span 1; } .item-wide { grid-column: span 2; }
    .fiestas-grid, .corpo-mix-grid { display: flex; flex-direction: column; }
    .tiktok-style, .video-full-height { height: 350px; width: 100%; }
    .fiestas-grid img, .corpo-mix-grid img { height: 220px; width: 100%; }
    .banner-social { height: 180px; }
    .dual-photos-social { grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; }
    .photo-card { height: 160px; }
}