/* ==========================================================================
   FESTIVIDAD DETALLE - ESTILOS MODULARES (SIDIC - HUILA)
   ========================================================================== */

/* ESTILOS GENERALES Y DISEÑO CLARO PREMIUM */
.detalle-festividad-wrapper {
    background: #f8fafc; /* Fondo claro global */
    color: #0f172a;
    font-family: 'Outfit', 'Inter', sans-serif;
    padding-bottom: 80px;
}

/* Secciones limpias sin alternancia */
.detalle-festividad-wrapper > div {
    padding: 95px 0;
}

.section-title-custom {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title-custom h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-title-custom .title-divider {
    width: 60px;
    height: 4px;
    background: var(--bs-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* 1. HERO BANNER */
.detalle-festividad-wrapper > div.festival-hero {
    padding: 0;
    position: relative;
    height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.festival-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.hero-info-card {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin-bottom: 50px;
    padding: 40px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.65); /* Caja de cristal oscuro */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    color: #ffffff;
    animation: heroFadeIn 0.8s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-festividad-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-edicion-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #81a947; /* Verde destacado */
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-lema {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 5px;
    font-weight: 500;
}

.hero-year-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 15px;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(81, 109, 39, 0.25);
    border: 1px solid rgba(81, 109, 39, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 15px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.meta-item i {
    color: var(--bs-primary);
    font-size: 1.1rem;
}

/* 2. INTRO / PRESENTACION SECTION */
.intro-grid {
    display: flex;
    gap: 50px;
    align-items: center;
    background: #ffffff;
    padding: 40px;
    border-radius: 28px;
    border: 3px solid rgba(var(--bs-primary-rgb, 20, 177, 187), 0.35); /* Borde definido */
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.02);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s, box-shadow 0.3s;
    animation: introFadeIn 0.8s ease-out;
}

.intro-grid:hover {
    transform: translateY(-5px);
    border-color: var(--bs-primary);
    box-shadow: 0 20px 45px rgba(var(--bs-primary-rgb, 20, 177, 187), 0.2);
}

@keyframes introFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-poster-col {
    width: 38%;
    display: flex;
    justify-content: center;
}

.intro-info-col {
    width: 62%;
}

/* POKEMON CARD POSTER */
.poster-3d-card {
    position: relative;
    width: 320px;
    height: 440px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.poster-3d-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-3d-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.3) 0%,
        rgba(var(--bs-primary-rgb, 20, 177, 187), 0.15) 45%,
        transparent 75%
    );
    mix-blend-mode: color-dodge;
    opacity: var(--shine-opacity, 0);
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 5;
}

.intro-title-section {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}

.intro-desc {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.7;
}

/* 3. BOOK-LIKE AGENDA SECTION */
.book-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.notebook {
    background: linear-gradient(90deg, #f5f3e9 0%, #fffdf5 4%, #fffdf5 96%, #f5f3e9 100%);
    border-radius: 16px;
    /* Pasta dura de libro con efecto 3D y hojas apiladas */
    border: 8px solid #2d2019; /* Tapa de cuero marrón oscuro */
    box-shadow: 
        /* Sombra en la mesa */
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        /* Borde interno dorado de la pasta */
        inset 0 0 0 2px rgba(212, 175, 55, 0.4),
        /* Primera capa de hojas abajo */
        0 4px 0 -1px #fffdf5, 0 4px 0 0px rgba(0,0,0,0.2),
        /* Segunda capa de hojas abajo */
        0 8px 0 -2px #fffdf5, 0 8px 0 -1px rgba(0,0,0,0.2),
        /* Tercera capa de hojas abajo */
        0 12px 0 -3px #fffdf5, 0 12px 0 -2px rgba(0,0,0,0.2),
        /* Sombra del pliegue de las páginas */
        inset 0 0 40px rgba(0, 0, 0, 0.06);
    padding: 40px;
    min-height: 520px;
    position: relative;
    overflow: hidden;
}

.notebook::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.15) 100%);
    border-left: 1px solid rgba(0,0,0,0.08);
    border-right: 1px solid rgba(0,0,0,0.08);
    z-index: 10;
}

.spiral-rings {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 24px;
    z-index: 11;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    pointer-events: none;
    padding: 20px 0;
}

.spiral-ring {
    width: 26px;
    height: 8px;
    background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 50%, #475569 100%);
    border-radius: 10px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.15);
}

.notebook-pages {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 60px;
}

.notebook-page {
    width: 50%;
    padding: 0 10px;
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 100% 2.2rem;
    line-height: 2.2rem;
}

.notebook-page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--bs-primary);
    line-height: 2.5rem;
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notebook-page-title .date-badge {
    font-size: 0.8rem;
    background: rgba(var(--bs-primary-rgb, 20, 177, 187), 0.1);
    color: var(--bs-primary);
    padding: 2px 10px;
    border-radius: 12px;
}

.agenda-book-item {
    margin-bottom: 20px;
    border-left: 3px solid var(--bs-primary);
    padding-left: 15px;
    line-height: 1.5;
    position: relative;
}

.agenda-time {
    font-weight: 700;
    color: var(--bs-primary);
    font-size: 0.82rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.agenda-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2px 0 5px 0;
}

.agenda-item-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 5px;
}

.agenda-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: #475569;
}

.agenda-meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.agenda-meta-info i {
    color: var(--bs-primary);
}

.book-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
    color: #0f172a;
}

.book-nav-btn:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb, 20, 177, 187), 0.4);
}

.book-nav-btn.prev { left: -70px; }
.book-nav-btn.next { right: -70px; }

/* 4. GUESTS (INVITADOS) SECTION WITH SLIDER & DARK POKEMON CARDS */
.invitados-section {
    position: relative;
    overflow: hidden;
}

.invitados-slider-container {
    position: relative;
    width: 100%;
    padding: 0 56px;
    box-sizing: border-box;
}

.invitados-slider-container.no-slider-nav {
    padding: 0;
}

.invitados-track-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 30px 4px; /* Relleno vertical amplio para evitar cortes al rotar sin desbordar ancho */
    margin: -30px 0;
    box-sizing: border-box;
}

.invitados-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

/* Guest card POKÉMON LIGHT STYLE (GREEN #516d27) */
.guest-card {
    flex: 0 0 calc((100% - 96px) / 5);
    max-width: calc((100% - 96px) / 5);
    min-width: 0;
    height: 310px;
    background: linear-gradient(135deg, #f6f9f0 0%, #ffffff 45%, #eef5e4 100%); /* Fondo carta Pokémon verde */
    border-radius: 22px;
    border: 4px solid var(--bs-primary, #516d27); /* Borde verde institucional clásico */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 15px 15px 15px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s, box-shadow 0.3s;
}

/* Borde interno estilo carta Pokémon */
.guest-card::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1.5px dashed rgba(81, 109, 39, 0.4);
    border-radius: 16px;
    pointer-events: none;
    z-index: 1;
}

/* Brillo holográfico de arcoíris foil en la carta */
.guest-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        125deg,
        rgba(81, 109, 39, 0.15) 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(0, 255, 0, 0.15) 40%,
        rgba(0, 255, 255, 0.15) 60%,
        rgba(0, 0, 255, 0.15) 80%,
        rgba(255, 0, 255, 0.15) 100%
    );
    background-size: 200% 200%;
    background-position: var(--holo-x, 50%) var(--holo-y, 50%);
    mix-blend-mode: color-dodge;
    opacity: var(--shine-opacity, 0);
    transition: opacity 0.3s, background-position 0.1s;
    pointer-events: none;
    z-index: 5;
}

.guest-card:hover {
    border-color: var(--bs-primary, #516d27);
    box-shadow: 0 20px 45px rgba(81, 109, 39, 0.35), 0 10px 20px rgba(0,0,0,0.06);
}

.guest-img-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 14px; /* Marco de la foto estilo carta coleccionable */
    overflow: hidden;
    border: 3px solid var(--bs-primary, #516d27); /* Marco de foto verde */
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    margin-bottom: 16px;
    transition: transform 0.4s, border-color 0.3s;
    transform: translateZ(25px);
    background: #ffffff;
}

.guest-card:hover .guest-img-wrapper {
    transform: translateZ(25px) scale(1.05);
    border-color: var(--bs-primary, #516d27);
}

.guest-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guest-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b; /* Nombre oscuro legible */
    margin-bottom: 4px;
    transform: translateZ(30px);
    letter-spacing: -0.3px;
}

.guest-title {
    font-size: 0.75rem;
    color: var(--bs-primary, #516d27); /* Cargo */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    transform: translateZ(25px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guest-action-hint {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: auto;
    transform: translateZ(20px);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    transition: color 0.2s;
}

.guest-card:hover .guest-action-hint {
    color: var(--bs-primary, #516d27);
}

.guest-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: #ffffff;
    border: 2px solid rgba(81, 109, 39, 0.22);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--bs-primary, #516d27);
    font-size: 1.35rem;
    user-select: none;
}

.guest-nav-btn:hover {
    background: var(--bs-primary, #516d27);
    border-color: var(--bs-primary, #516d27);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 10px 24px rgba(81, 109, 39, 0.3);
}

.guest-nav-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.guest-nav-btn.prev { left: 0; }
.guest-nav-btn.next { right: 0; }

@media (max-width: 1200px) {
    .guest-card {
        flex: 0 0 calc((100% - 48px) / 3);
        max-width: calc((100% - 48px) / 3);
    }
}
@media (max-width: 991px) {
    .guest-card {
        flex: 0 0 calc((100% - 24px) / 2);
        max-width: calc((100% - 24px) / 2);
    }
}

/* 5. GUEST MODERN MODAL */
.guest-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.guest-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.guest-modal {
    background: #ffffff;
    width: 90%;
    max-width: 620px;
    border-radius: 28px;
    box-shadow: 0 30px 65px rgba(81, 109, 39, 0.25);
    overflow: hidden;
    position: relative;
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 4px solid #516d27; /* Borde verde unificado */
}

.guest-modal-overlay.open .guest-modal {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(81, 109, 39, 0.1);
    border: none;
    color: #516d27;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.close-modal-btn:hover {
    background: #516d27;
    color: #ffffff;
    transform: rotate(90deg);
}

.guest-modal-header {
    background: linear-gradient(135deg, rgba(81, 109, 39, 0.12) 0%, rgba(81, 109, 39, 0.02) 100%);
    padding: 40px 35px 30px 35px;
    display: flex;
    gap: 25px;
    align-items: center;
    border-bottom: 1px solid rgba(81, 109, 39, 0.1);
}

.modal-guest-img {
    width: 125px;
    height: 125px;
    border-radius: 18px; /* Formato cuadrado moderno con esquinas curvas */
    object-fit: cover;
    border: 4px solid #516d27;
    box-shadow: 0 10px 25px rgba(81, 109, 39, 0.2);
}

.modal-guest-info h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.modal-guest-info p {
    font-size: 0.85rem;
    color: #516d27;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 15px;
}

.modal-guest-socials {
    display: flex;
    gap: 12px;
}

.modal-guest-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #516d27;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 2px solid #516d27;
    text-decoration: none;
    transition: all 0.3s;
}

.modal-guest-socials a:hover {
    background: #516d27;
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(81, 109, 39, 0.35);
    transform: translateY(-2px);
}

.guest-modal-body {
    padding: 35px;
}

.guest-modal-body h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #516d27;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#modal-guest-bio-id {
    background: #f8fafc;
    border: 2px solid rgba(81, 109, 39, 0.15);
    border-radius: 16px;
    padding: 20px;
    line-height: 1.7;
    color: #334155;
    font-size: 0.95rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    max-height: 250px;
    overflow-y: auto;
}

/* 6. LOCATIONS (LOCALIZACIONES) GRID SECTION */
.locations-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.location-card {
    flex: 0 0 calc(50% - 15px);
    min-width: 300px;
    max-width: 530px;
    aspect-ratio: 1 / 1; /* Caja cuadrada */
    border-radius: 28px;
    border: 3px solid rgba(var(--bs-primary-rgb, 20, 177, 187), 0.35); /* Borde de 3px */
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    z-index: 2;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.location-card:hover {
    transform: translateY(-5px);
    border-color: var(--bs-primary);
    box-shadow: 0 18px 38px rgba(var(--bs-primary-rgb, 20, 177, 187), 0.2);
}

.location-card-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Fondo gris con efecto metaballs de bacterias dividiéndose */
.bacteria-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e2e8f0; /* Fondo gris */
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.bacteria-container {
    position: absolute;
    width: 120px;
    height: 120px;
    filter: blur(8px) contrast(20); /* Efecto metabola líquido */
    background: transparent;
    pointer-events: none;
}

.cell-blob {
    position: absolute;
    width: 32px;
    height: 32px;
    background-color: #516d27; /* Verde bacteria */
    border-radius: 50%;
    top: 40px;
    transition: all 0.3s;
}

.cell-left {
    left: 40px;
    animation: divideLeft 7s infinite ease-in-out;
}

.cell-right {
    left: 45px;
    animation: divideRight 7s infinite ease-in-out;
}

@keyframes divideLeft {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        border-radius: 50%;
    }
    25% {
        transform: translate3d(-15px, 0, 0) scale(1.08);
        border-radius: 40% 60% 50% 50%;
    }
    50% {
        transform: translate3d(-35px, -5px, 0) scale(0.9);
        border-radius: 55% 45% 55% 45%;
    }
    75% {
        transform: translate3d(-20px, 0, 0) scale(0.95);
        border-radius: 48% 52% 48% 52%;
    }
}

@keyframes divideRight {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        border-radius: 50%;
    }
    25% {
        transform: translate3d(15px, 0, 0) scale(1.08);
        border-radius: 60% 40% 50% 50%;
    }
    50% {
        transform: translate3d(35px, 5px, 0) scale(0.9);
        border-radius: 45% 55% 45% 55%;
    }
    75% {
        transform: translate3d(20px, 0, 0) scale(0.95);
        border-radius: 52% 48% 52% 48%;
    }
}

.location-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(81, 109, 39, 0.15);
    color: #516d27;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 2px solid rgba(81, 109, 39, 0.3);
}

.location-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.location-address {
    font-size: 0.85rem;
    color: #334155;
    margin: 2px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.map-container {
    width: 100%;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(0,0,0,0.06);
    margin-top: 15px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Fila de botones de georreferenciación GPS */
.gps-buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.map-link-btn {
    flex: 1;
    margin-top: 0 !important;
    background: #ffffff;
    border: 2px solid #516d27;
    color: #516d27;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.map-link-btn:hover {
    background: #516d27;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(81, 109, 39, 0.35);
}

.waze-btn {
    border-color: #2ec1f2;
    color: #1b89af;
}

.waze-btn:hover {
    background: #2ec1f2;
    border-color: #2ec1f2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(46, 193, 242, 0.3);
}


/* 7. NEWS (NOTICIAS) SECTION */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.noticia-card {
    background: #ffffff;
    border-radius: 20px;
    border: 3px solid rgba(var(--bs-primary-rgb, 20, 177, 187), 0.35); /* Borde definido */
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.noticia-card:hover {
    transform: translateY(-5px);
    border-color: var(--bs-primary);
    box-shadow: 0 15px 35px rgba(var(--bs-primary-rgb, 20, 177, 187), 0.25);
}

.noticia-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.noticia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.noticia-card:hover .noticia-img img {
    transform: scale(1.05);
}

.noticia-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticia-date {
    font-size: 0.78rem;
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.noticia-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.noticia-excerpt {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bs-primary);
    text-decoration: none !important;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.noticia-link:hover {
    gap: 10px;
}

@media (max-width: 991px) {
    .noticias-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .noticias-grid { grid-template-columns: 1fr; }
}

/* 8. SPONSORS (PATROCINADORES) SECTION */
.sponsors-row-container {
    border: 3px solid rgba(var(--bs-primary-rgb, 20, 177, 187), 0.35); /* Borde definido */
    border-radius: 28px;
    padding: 50px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
    transition: border-color 0.3s;
}

.sponsors-row-container:hover {
    border-color: var(--bs-primary);
}

.sponsors-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 45px;
}

.sponsor-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px; /* Logos significativamente más grandes */
    height: 110px; /* Altura unificada más grande */
    transition: transform 0.3s;
    background: #ffffff;
}

.sponsor-logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: all 0.3s;
}

.sponsor-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.sponsor-logo-card:hover {
    transform: scale(1.06);
}

/* 9. REVIEWS (RESEÑAS) SECTION */
.resena-card-modern {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(var(--bs-primary-rgb, 20, 177, 187), 0.15);
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.resena-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.resena-user-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.05rem;
}

.resena-rating {
    color: #f59e0b; /* Color oro estrella */
    display: flex;
    gap: 2px;
}

.resena-comment {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.resena-date {
    display: block;
    margin-top: 15px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.resena-form-card {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid rgba(var(--bs-primary-rgb, 20, 177, 187), 0.25);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
    padding: 40px;
    border-radius: 24px;
}

.form-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
    text-align: center;
}

.form-group-custom {
    margin-bottom: 20px;
}

.form-label-custom {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.form-control-custom {
    width: 100%;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 12px 16px;
    border-radius: 10px;
    color: #0f172a;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 10px rgba(var(--bs-primary-rgb, 20, 177, 187), 0.15);
}

.star-rating-selector {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating-selector input {
    display: none;
}

.star-rating-selector label {
    font-size: 1.8rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s;
    margin: 0;
}

.star-rating-selector input:checked ~ label,
.star-rating-selector label:hover,
.star-rating-selector label:hover ~ label {
    color: #f59e0b;
}

.submit-btn-custom {
    width: 100%;
    background: var(--bs-primary);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn-custom:hover {
    background: var(--bs-primary);
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(var(--bs-primary-rgb, 20, 177, 187), 0.4);
}

/* 10. GALLERY (GALERIA) SECTION */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item-card {
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
}

.gallery-item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-overlay-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--bs-primary-rgb, 20, 177, 187), 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: #ffffff;
    font-size: 1.8rem;
}

.gallery-item-card:hover img {
    transform: scale(1.08);
}

/* BOTON VOLVER A FESTIVALES */
.back-btn-container {
    text-align: center;
    padding: 50px 0 20px 0;
    clear: both;
}

.back-to-festivals-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 3px solid #516d27;
    color: #516d27;
    padding: 14px 32px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(81, 109, 39, 0.1);
    cursor: pointer;
}

.back-to-festivals-btn:hover {
    background: #516d27;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(81, 109, 39, 0.35);
    transform: translateY(-4px);
}

/* BOTON ACERCA DE LA FESTIVIDAD */
.about-festival-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
    text-shadow: none;
}

.about-festival-btn:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.about-festival-btn i {
    font-size: 1.3rem;
}

@media (max-width: 576px) {
    .about-festival-btn {
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
    }
}

/* ABOUT MODAL CSS */
.about-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.about-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.about-modal {
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    border-radius: 28px;
    box-shadow: 0 30px 65px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    position: relative;
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 4px solid #516d27;
}

.about-modal-overlay.open .about-modal {
    transform: scale(1);
}

.close-about-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(81, 109, 39, 0.1);
    border: none;
    color: #516d27;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.close-about-modal-btn:hover {
    background: #516d27;
    color: #ffffff;
    transform: rotate(90deg);
}

.about-modal-header {
    background: linear-gradient(135deg, rgba(81, 109, 39, 0.12) 0%, rgba(81, 109, 39, 0.02) 100%);
    padding: 40px 35px 25px 35px;
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid rgba(81, 109, 39, 0.1);
}

.about-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #516d27;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(81, 109, 39, 0.3);
}

.about-modal-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.5px;
}

.about-modal-body {
    padding: 35px;
}

.about-body-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: #516d27;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-description-box {
    background: #f8fafc;
    border: 2px solid rgba(81, 109, 39, 0.15);
    border-radius: 16px;
    padding: 24px;
    line-height: 1.7;
    color: #334155;
    font-size: 0.98rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    max-height: 300px;
    overflow-y: auto;
}

/* ==========================================================================
   RESPONSIVE MOBILE (ANDROID / IOS) OPTIMIZATIONS
   No modifica en absoluto la versión de escritorio (> 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Espaciados globales y títulos */
    .detalle-festividad-wrapper {
        padding-bottom: 40px;
    }

    .detalle-festividad-wrapper > div {
        padding: 45px 0 !important;
    }

    .section-title-custom {
        margin-bottom: 25px !important;
    }

    .section-title-custom h2 {
        font-size: 1.65rem !important;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .section-title-custom .title-divider {
        width: 45px;
        height: 3px;
    }

    /* 1. HERO SECTION */
    .detalle-festividad-wrapper > div.festival-hero {
        height: auto !important;
        min-height: 480px !important;
        padding: 45px 0 25px 0 !important;
        align-items: flex-end !important;
    }

    .hero-info-card {
        padding: 24px 18px !important;
        margin-bottom: 0 !important;
        border-radius: 20px !important;
        width: 100% !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
    }

    .hero-festividad-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        letter-spacing: -0.5px !important;
        padding-right: 40px;
        word-break: break-word;
    }

    .hero-edicion-subtitle {
        font-size: 1.15rem !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 8px !important;
    }

    .hero-lema {
        font-size: 0.92rem !important;
        line-height: 1.45;
    }

    .hero-year-label {
        font-size: 0.85rem !important;
        padding: 4px 12px !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

    .hero-meta {
        gap: 8px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }

    .meta-item {
        font-size: 0.82rem !important;
        padding: 6px 12px !important;
        border-radius: 12px !important;
        justify-content: flex-start !important;
    }

    .about-festival-btn {
        top: 14px !important;
        right: 14px !important;
        width: 36px !important;
        height: 36px !important;
    }

    .about-festival-btn i {
        font-size: 1.15rem !important;
    }

    /* 2. INTRO / PRESENTACION SECTION */
    .intro-grid {
        flex-direction: column !important;
        gap: 22px !important;
        padding: 22px 16px !important;
        border-radius: 20px !important;
        border-width: 2px !important;
    }

    .intro-poster-col,
    .intro-info-col {
        width: 100% !important;
    }

    .poster-3d-card {
        width: 100% !important;
        max-width: 260px !important;
        height: 360px !important;
        margin: 0 auto;
        border-radius: 16px !important;
    }

    .intro-title-section {
        font-size: 1.45rem !important;
        margin-bottom: 12px !important;
        text-align: center;
    }

    .intro-desc {
        font-size: 0.92rem !important;
        line-height: 1.65;
        text-align: left;
    }

    /* 3. AGENDA (LIBRO / CUADERNO 1 PÁGINA EN MÓVIL) */
    .agenda-section {
        padding-bottom: 85px !important;
    }

    .book-wrapper {
        position: relative;
        margin: 0 auto;
        padding: 0 4px;
        max-width: 480px;
    }

    .notebook {
        padding: 30px 18px 24px 18px !important;
        border: 7px solid #2d2019 !important; /* Tapa de cuero de libro */
        border-radius: 18px !important;
        min-height: 480px !important;
        background: linear-gradient(180deg, #f5f3e9 0%, #fffdf5 4%, #fffdf5 96%, #f5f3e9 100%) !important;
        box-shadow: 
            /* Sombra en la mesa */
            0 22px 50px -10px rgba(0, 0, 0, 0.45),
            /* Borde interno dorado de la pasta */
            inset 0 0 0 2px rgba(212, 175, 55, 0.45),
            /* Capas de hojas apiladas abajo efecto 3D */
            0 4px 0 -1px #fffdf5, 0 4px 0 0px rgba(0,0,0,0.22),
            0 8px 0 -2px #fffdf5, 0 8px 0 -1px rgba(0,0,0,0.22),
            0 12px 0 -3px #fffdf5, 0 12px 0 -2px rgba(0,0,0,0.22),
            /* Sombra del pliegue */
            inset 0 0 30px rgba(0, 0, 0, 0.05) !important;
        position: relative;
        overflow: hidden;
    }

    /* Ocultar lomo vertical central en móvil */
    .notebook::before {
        display: none !important;
    }

    /* Anillas de cuaderno adaptadas arriba horizontalmente */
    .spiral-rings {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        height: 18px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        padding: 0 20px !important;
        z-index: 11 !important;
    }

    .spiral-ring {
        width: 8px !important;
        height: 20px !important;
        border-radius: 4px !important;
        transform: translateY(-4px) !important;
        background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 50%, #475569 100%) !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.25) !important;
    }

    .notebook-pages {
        display: block !important;
        width: 100% !important;
        gap: 0 !important;
    }

    /* Mostrar 1 sola página activa en móvil */
    .notebook-page {
        width: 100% !important;
        padding: 0 !important;
        background-image: linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px) !important;
        background-size: 100% 2.2rem !important;
        line-height: 2.2rem !important;
    }

    #book-page-right {
        display: none !important; /* En móvil solo mostramos la página activa */
    }

    .notebook-page-title {
        font-size: 1.25rem !important;
        line-height: 2.2rem !important;
        padding-bottom: 5px !important;
        margin-bottom: 18px !important;
        border-bottom: 2px solid var(--bs-primary) !important;
    }

    .notebook-page-title .date-badge {
        font-size: 0.76rem !important;
        padding: 3px 10px !important;
    }

    .agenda-book-item {
        margin-bottom: 16px !important;
        padding-left: 12px !important;
        border-left: 3px solid var(--bs-primary) !important;
    }

    .agenda-item-title {
        font-size: 0.98rem !important;
        margin: 2px 0 4px 0 !important;
    }

    .agenda-meta-info {
        font-size: 0.78rem !important;
        gap: 10px !important;
    }

    /* Botones de navegación inferiores tipo libro */
    .book-nav-btn {
        position: absolute !important;
        top: auto !important;
        bottom: -62px !important;
        width: 48px !important;
        height: 48px !important;
        transform: none !important;
        background: #ffffff !important;
        border: 2px solid #516d27 !important;
        color: #516d27 !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    }

    .book-nav-btn:hover,
    .book-nav-btn:active {
        background: #516d27 !important;
        color: #ffffff !important;
    }

    .book-nav-btn.prev {
        left: calc(50% - 60px) !important;
    }

    .book-nav-btn.next {
        right: calc(50% - 60px) !important;
    }

    /* 4. INVITADOS (SWIPE HORIZONTAL FLUIDO TIPO ANDROID) */
    .invitados-slider-container {
        padding: 0 !important;
    }

    .invitados-track-wrapper {
        padding: 15px 5px !important;
        margin: 0 -5px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .invitados-track-wrapper::-webkit-scrollbar {
        display: none;
    }

    .invitados-track {
        gap: 16px !important;
        transform: none !important;
    }

    .guest-card {
        flex: 0 0 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        height: 295px !important;
        scroll-snap-align: center;
    }

    .guest-nav-btn {
        display: none !important;
    }

    /* 5. LOCALIZACIONES / SEDES */
    .locations-flex-container {
        gap: 18px !important;
    }

    .location-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: auto !important;
        min-height: auto !important;
        padding: 20px 16px !important;
        border-radius: 20px !important;
        border-width: 2px !important;
    }

    .location-icon-wrapper {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
        flex-shrink: 0;
    }

    .location-title {
        font-size: 1.15rem !important;
    }

    .location-address {
        font-size: 0.82rem !important;
    }

    .map-container {
        height: 180px !important;
        margin-top: 12px !important;
        border-radius: 12px !important;
    }

    .gps-buttons-row {
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }

    .map-link-btn {
        width: 100% !important;
        padding: 10px !important;
        font-size: 0.82rem !important;
    }

    /* 6. NOTICIAS */
    .noticias-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .noticia-card {
        border-radius: 18px !important;
        border-width: 2px !important;
    }

    .noticia-img {
        height: 180px !important;
    }

    .noticia-content {
        padding: 18px 16px !important;
    }

    .noticia-title {
        font-size: 1.1rem !important;
    }

    /* 7. PATROCINADORES */
    .sponsors-row-container {
        padding: 24px 15px !important;
        border-radius: 20px !important;
        border-width: 2px !important;
    }

    .sponsors-row {
        gap: 20px !important;
    }

    .sponsor-logo-card {
        width: 130px !important;
        height: 75px !important;
    }

    /* 8. DOCUMENTOS */
    .doc-card-premium {
        padding: 18px 16px !important;
        border-radius: 14px !important;
    }

    /* 9. RESEÑAS Y FORMULARIO */
    .resenas-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .resena-card-modern {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    .resena-form-card {
        padding: 24px 18px !important;
        border-radius: 20px !important;
        width: 100% !important;
        border-width: 2px !important;
    }

    .form-title {
        font-size: 1.25rem !important;
        margin-bottom: 20px !important;
    }

    .star-rating-selector label {
        font-size: 1.6rem !important;
    }

    /* 10. GALERIA */
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .gallery-item-card {
        height: 140px !important;
        border-radius: 12px !important;
    }

    /* 11. MODALES */
    .guest-modal,
    .about-modal {
        width: 94% !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        border-radius: 20px !important;
        border-width: 3px !important;
    }

    .guest-modal-header,
    .about-modal-header {
        flex-direction: column !important;
        text-align: center !important;
        padding: 28px 18px 18px !important;
        gap: 14px !important;
    }

    .modal-guest-img {
        width: 90px !important;
        height: 90px !important;
        border-radius: 14px !important;
        margin: 0 auto;
    }

    .modal-guest-socials {
        justify-content: center !important;
    }

    .guest-modal-body,
    .about-modal-body {
        padding: 20px 16px !important;
    }

    .about-icon-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
        margin: 0 auto;
    }

    .about-modal-title {
        font-size: 1.4rem !important;
    }

    /* 12. BOTON VOLVER */
    .back-to-festivals-btn {
        width: 100% !important;
        max-width: 290px !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 0.92rem !important;
    }

    /* 13. MODO GENERAL (FILTROS Y DATATABLE) */
    .filter-bar-premium {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .filters-left-premium {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .search-wrapper-premium,
    .search-input-premium,
    .filter-select-premium,
    .export-btn-premium {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .hero-festividad-title {
        font-size: 1.55rem !important;
    }

    .hero-edicion-subtitle {
        font-size: 1.05rem !important;
    }

    .section-title-custom h2 {
        font-size: 1.45rem !important;
    }

    .galeria-grid {
        grid-template-columns: 1fr !important;
    }

    .gallery-item-card {
        height: 200px !important;
    }
}

/* ==========================================================================
   MODO GENERAL - TABLA DE EDICIONES Y FILTROS
   ========================================================================== */
.datatable-card-premium {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    text-align: left;
    margin-bottom: 40px;
}
.filter-bar-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}
.filters-left-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    flex-grow: 1;
}
.search-wrapper-premium {
    position: relative;
    min-width: 280px;
    flex-grow: 1;
    max-width: 400px;
}
.search-wrapper-premium i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 15px;
}
.search-input-premium {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}
.search-input-premium:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15);
    background: #ffffff;
}
.filter-select-premium {
    padding: 10px 36px 10px 16px;
    background: #f8fafc url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 12px center/10px;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 8px;
    font-size: 14px;
    min-width: 180px;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: all 0.3s ease;
}
.filter-select-premium:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15);
}
.export-btn-premium {
    background: var(--bs-primary);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.export-btn-premium:hover {
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.2);
}
.table-responsive-premium {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}
.modern-table-premium {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
    background: #ffffff;
}
.modern-table-premium th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 2px solid #cbd5e1;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.modern-table-premium td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}
.modern-table-premium tbody tr:hover td {
    background-color: #f8fafc;
}
.table-afiche-premium {
    width: 40px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
}
.table-logo-placeholder-premium {
    width: 40px;
    height: 54px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}
.table-badge-past-premium {
    display: inline-block;
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(100, 116, 139, 0.15);
}
.table-badge-active-premium {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(14, 165, 233, 0.15);
}
.table-btn-ver-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bs-primary);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}
.table-btn-ver-premium:hover {
    opacity: 0.95;
    box-shadow: 0 4px 10px rgba(var(--bs-primary-rgb), 0.2);
    text-decoration: none;
    color: #ffffff;
}
.table-footer-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 15px;
}
.pagination-controls-premium {
    display: flex;
    gap: 6px;
    align-items: center;
}
.page-btn-premium {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    outline: none;
}
.page-btn-premium:hover:not(.disabled):not(.active) {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background: #f8fafc;
}
.page-btn-premium.active {
    background: var(--bs-primary);
    color: #ffffff;
    border-color: var(--bs-primary);
}
.page-btn-premium.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.no-records-row-premium {
    padding: 30px !important;
    text-align: center;
    color: #64748b;
    font-size: 15px;
}

/* ==========================================================================
   DOCUMENTOS ASOCIADOS - TARJETAS PREMIUM
   ========================================================================== */
.doc-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}
.doc-card-premium a:hover {
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.25);
}
