/* ==========================================================================
   FESTIVIDADES Y EVENTOS - ESTILOS MODULARES (SIDIC - HUILA)
   ========================================================================== */

/* VARIABLES Y CONTENEDOR GENERAL */
.festividades-container {
    position: relative;
    /* Fondo con gradiente profundo y brillo radial de color del tema (Modo Noche) */
    background: radial-gradient(circle at 10% 20%, rgba(var(--bs-primary-rgb, 20, 177, 187), 0.15) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(var(--bs-primary-rgb, 20, 177, 187), 0.15) 0%, transparent 45%),
                radial-gradient(circle at 50% 50%, #0e131f 0%, #05070b 100%);
    color: #f0f6fc;
    font-family: 'Outfit', 'Inter', sans-serif;
    overflow: hidden;
    padding-bottom: 80px;
    transition: background 0.5s ease, color 0.5s ease;
}

/* MODO DIA / TEMA CLARO */
.festividades-container.light-theme {
    background: radial-gradient(circle at 10% 20%, rgba(var(--bs-primary-rgb, 20, 177, 187), 0.08) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(var(--bs-primary-rgb, 20, 177, 187), 0.08) 0%, transparent 45%),
                radial-gradient(circle at 50% 50%, #f4f6fa 0%, #e9edf5 100%);
    color: #0f172a;
}

/* GLOWING AMBIENT BLOBS */
.glow-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb, 20, 177, 187), 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
    transition: background 0.5s ease;
}
.glow-blob-1 { top: 10%; left: -10%; }
.glow-blob-2 { bottom: 30%; right: -10%; }

.light-theme .glow-blob {
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb, 20, 177, 187), 0.06) 0%, transparent 70%);
}

/* PARTICLES CANVAS BACKGROUND */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 650px;
    z-index: 1;
    pointer-events: none;
}

/* THEME SWITCH BUTTON */
.theme-toggle-wrapper {
    position: absolute;
    top: 25px;
    right: 40px;
    z-index: 100;
}

.theme-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-toggle-btn:hover {
    transform: rotate(30deg) scale(1.1);
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
    box-shadow: 0 0 18px rgba(var(--bs-primary-rgb, 20, 177, 187), 0.5);
}

.light-theme .theme-toggle-btn {
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.light-theme .theme-toggle-btn:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
}

/* HERO SECTION */
.festividades-hero {
    position: relative;
    z-index: 2;
    padding: 85px 0 60px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(5, 7, 11, 0) 0%, rgba(14, 19, 31, 0.7) 100%);
    transition: background 0.5s ease;
}

.light-theme .festividades-hero {
    background: linear-gradient(180deg, rgba(244, 246, 250, 0) 0%, rgba(233, 237, 255, 0.6) 100%);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ffffff 40%, var(--bs-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.8px;
    transition: background 0.5s ease;
}

.light-theme .hero-title {
    background: linear-gradient(90deg, #0f172a 40%, var(--bs-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #8b949e;
    max-width: 600px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
    transition: color 0.5s ease;
}

.light-theme .hero-subtitle {
    color: #475569;
}

/* SLIDER 3D CAROUSEL & POKEMON EFFECT */
.festividades-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.slide-card {
    position: absolute;
    width: 560px;
    height: 310px;
    border-radius: 24px;
    background: rgba(22, 30, 49, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s, border-color 0.3s, background 0.5s ease;
    display: flex;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transform-style: preserve-3d;
}

.light-theme .slide-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

/* HOLO SHINE OVERLAY (POKEMON CARD SHINE) */
.slide-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.22) 0%,
        rgba(var(--bs-primary-rgb, 20, 177, 187), 0.12) 40%,
        transparent 75%
    );
    mix-blend-mode: color-dodge;
    opacity: var(--shine-opacity, 0);
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 5;
}

.light-theme .slide-card::after {
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(var(--bs-primary-rgb, 20, 177, 187), 0.15) 0%,
        rgba(255, 255, 255, 0.4) 40%,
        transparent 70%
    );
    mix-blend-mode: multiply;
}

/* CARD INNER ELEMENTS 3D TRANSLATE */
.slide-content-side {
    transform: translateZ(30px);
}

.slide-card.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
    transform: translate3d(0, 0, 100px) scale(1);
    border-color: rgba(var(--bs-primary-rgb, 20, 177, 187), 0.4);
    box-shadow: 0 20px 45px rgba(var(--bs-primary-rgb, 20, 177, 187), 0.18), 0 15px 35px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.light-theme .slide-card.active {
    border-color: rgba(var(--bs-primary-rgb, 20, 177, 187), 0.35);
    box-shadow: 0 20px 45px rgba(var(--bs-primary-rgb, 20, 177, 187), 0.12), 0 15px 35px rgba(15, 23, 42, 0.12);
}

.slide-card.prev {
    opacity: 0.45;
    pointer-events: auto;
    z-index: 1;
    transform: translate3d(-270px, 0, 0) scale(0.78) rotateY(18deg);
}

.slide-card.next {
    opacity: 0.45;
    pointer-events: auto;
    z-index: 1;
    transform: translate3d(270px, 0, 0) scale(0.78) rotateY(-18deg);
}

.slide-img-side {
    width: 45%;
    height: 100%;
    position: relative;
    background-color: #161e31;
    transition: background 0.5s ease;
}

.light-theme .slide-img-side {
    background-color: #f1f5f9;
}

.slide-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 100%);
}

.slide-card.active:hover .slide-img-side img {
    transform: scale(1.08);
}

.slide-img-side::after {
    display: none; /* Reemplazado por CSS Mask-Image para fusión perfecta */
}

.slide-content-side {
    width: 55%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.slide-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    object-fit: cover;
    background: #0e131f;
    transition: border-color 0.5s ease, background 0.5s ease;
}

.light-theme .slide-logo {
    border-color: rgba(15, 23, 42, 0.12);
    background: #f1f5f9;
}

.slide-badge {
    align-self: flex-start;
    background: rgba(var(--bs-primary-rgb, 20, 177, 187), 0.15);
    color: var(--bs-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    border: 1px solid rgba(var(--bs-primary-rgb, 20, 177, 187), 0.25);
}

.slide-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
    letter-spacing: -0.3px;
    transition: color 0.5s ease;
}

.light-theme .slide-title {
    color: #0f172a;
}

.slide-desc {
    font-size: 0.85rem;
    color: #8b949e;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.5s ease;
}

.light-theme .slide-desc {
    color: #475569;
}

.slide-btn {
    margin-top: 15px;
    align-self: flex-start;
    padding: 9px 20px;
    background: var(--bs-primary);
    color: #ffffff;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--bs-primary-rgb, 20, 177, 187), 0.45);
    color: #ffffff;
}

/* SLIDER NAV BUTTONS */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(22, 30, 49, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

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

.light-theme .slider-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #0f172a;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.light-theme .slider-nav-btn:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
}

.slider-nav-btn.prev-btn { left: -85px; }
.slider-nav-btn.next-btn { right: -85px; }

@media (max-width: 1200px) {
    .slider-nav-btn.prev-btn { left: 15px; }
    .slider-nav-btn.next-btn { right: 15px; }
    .festividades-slider-wrapper { max-width: 90%; }
    .slide-card { width: 490px; height: 290px; }
    .slide-card.prev { transform: translate3d(-170px, 0, 0) scale(0.78) rotateY(18deg); }
    .slide-card.next { transform: translate3d(170px, 0, 0) scale(0.78) rotateY(-18deg); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.3rem; }
    .slide-card { width: 90%; height: 365px; flex-direction: column; }
    .slide-img-side { width: 100%; height: 40%; }
    .slide-img-side img {
        -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 100%);
    }
    .slide-img-side::after {
        display: none;
    }
    .slide-content-side { width: 100%; height: 60%; padding: 20px; }
    .slide-desc { -webkit-line-clamp: 2; }
    .slide-card.prev, .slide-card.next { display: none; }
}

/* DATATABLE SECTION */
.datatable-section {
    position: relative;
    z-index: 2;
    padding-top: 40px;
}

.datatable-card {
    background: rgba(22, 30, 49, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.light-theme .datatable-card {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

/* FILTERS BAR */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
    justify-content: space-between;
}

.filters-left {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex-grow: 1;
}

.search-wrapper {
    position: relative;
    min-width: 260px;
}

.search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b949e;
    font-size: 0.95rem;
}

.search-input {
    width: 100%;
    background: #0e1327;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 10px 15px 10px 40px;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.5s ease, color 0.5s ease;
}

.light-theme .search-input {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.15);
    color: #0f172a;
}

.search-input:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 10px rgba(var(--bs-primary-rgb, 20, 177, 187), 0.25);
}

.filter-select {
    background: #0e1327;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 10px 35px 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 170px;
    appearance: none;
    -webkit-appearance: none;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: border-color 0.3s, background 0.5s ease, color 0.5s ease;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.light-theme .filter-select {
    background-color: #ffffff;
    border-color: rgba(15, 23, 42, 0.15);
    color: #0f172a;
}

.filter-select:focus {
    outline: none;
    border-color: var(--bs-primary);
}

.export-btn {
    background: transparent;
    color: var(--bs-primary);
    border: 1.5px solid var(--bs-primary);
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

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

/* MODERN TABLE */
.table-responsive-custom {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.5s ease;
}

.light-theme .table-responsive-custom {
    border-color: rgba(15, 23, 42, 0.08);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: rgba(22, 30, 49, 0.2);
    font-size: 0.9rem;
    transition: background 0.5s ease;
}

.light-theme .modern-table {
    background: rgba(255, 255, 255, 0.25);
}

.modern-table th {
    background: #1c253d;
    color: #8b949e;
    font-weight: 700;
    padding: 18px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.light-theme .modern-table th {
    background: #f1f5f9;
    color: #475569;
    border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

.modern-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #c9d1d9;
    vertical-align: middle;
    transition: color 0.5s ease, border-color 0.5s ease;
}

.light-theme .modern-table td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: #334155;
}

.modern-table tbody tr {
    transition: background-color 0.2s;
}

.modern-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.light-theme .modern-table tbody tr:hover {
    background-color: rgba(15, 23, 42, 0.02);
}

.table-afiche {
    width: 45px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #0e1327;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.5s ease, border-color 0.5s ease;
}

.light-theme .table-afiche {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.08);
}

.table-logo-placeholder {
    width: 45px;
    height: 60px;
    border-radius: 8px;
    background: #0e1327;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #484f58;
    transition: background 0.5s ease, border-color 0.5s ease;
}

.light-theme .table-logo-placeholder {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.18);
    color: #94a3b8;
}

.table-badge-active {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.18);
}

.light-theme .table-badge-active {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    border-color: rgba(14, 165, 233, 0.18);
}

.table-badge-past {
    display: inline-block;
    background: rgba(139, 148, 158, 0.12);
    color: #8b949e;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(139, 148, 158, 0.18);
}

.light-theme .table-badge-past {
    background: rgba(71, 85, 105, 0.08);
    color: #475569;
    border-color: rgba(71, 85, 105, 0.12);
}

.table-btn-ver {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.light-theme .table-btn-ver {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.table-btn-ver:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb, 20, 177, 187), 0.35);
}

/* NO RECORDS ALERT */
.no-records-row {
    text-align: center;
    padding: 40px !important;
    color: #8b949e;
}

.no-records-row i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    color: #484f58;
}

/* DATATABLE PAGINATION INFO */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #8b949e;
    transition: color 0.5s ease;
}

.light-theme .table-footer {
    color: #64748b;
}

/* CONTROLES DE PAGINACIÓN */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    user-select: none;
}

.page-btn:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
}

.page-btn.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(var(--bs-primary-rgb, 20, 177, 187), 0.3);
}

.page-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Paginación tema claro */
.light-theme .page-btn {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.light-theme .page-btn:hover,
.light-theme .page-btn.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
}

.light-theme .table-footer-label {
    color: #475569 !important;
}
