/* FEVETI - Official Style System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-blue: #1A1A4B;
    --secondary-blue: #2E2E6B;
    --accent-red: #EE1C25;
    --accent-yellow: #FFD700;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #F0F0F0;
    --glass-white: rgba(255, 255, 255, 0.9);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Header & Navigation */
header {
    background-color: transparent;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo-container {
    height: 80px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 100%;
}

/* Default logo text color: Dark blue (for inner pages with white background) */
.logo-container h1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    transition: color 0.3s ease;
}

/* Home page logo text color: White (for dark hero image contrast) */
body.home-page .logo-container h1 {
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 16px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    opacity: 0.7;
}

/* Hidden dot by default for smooth layout shift */
nav ul li a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 6px;
    background-color: transparent;
    border-radius: 50%;
    margin-right: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

/* Hover state: text brightens and a semi-transparent dot slides out */
nav ul li a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

nav ul li a:hover::before {
    width: 6px;
    margin-right: 8px;
    background-color: var(--accent-red);
    opacity: 0.4;
}

/* Active state: bold text and solid dot */
nav ul li a.active {
    font-weight: 600;
    opacity: 1;
    transform: translateY(0);
}

nav ul li a.active::before {
    width: 6px;
    margin-right: 8px;
    background-color: var(--accent-red);
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 90vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0.6;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 26, 75, 0.4), var(--primary-blue));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 95vw;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.hero h2 {
    font-size: clamp(2rem, 7.5vw, 4.2rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #FFFFFF;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    /* Replaced custom text background-clip config to avoid GPU rendering glitch during animation */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
    text-wrap: balance;
    /* Activa balanceo de líneas en navegadores modernos */
}

.gsap-word {
    display: inline-flex !important;
    white-space: nowrap !important;
    vertical-align: top;
    flex-wrap: nowrap;
}

.gsap-char {
    display: inline-block !important;
    opacity: 0;
    white-space: pre;
    /* Mantiene espacios si los hubiera */
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-wrap: balance;
}

.btn-primary {
    padding: 15px 40px;
    background-color: #FFFFFF;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    border: 2px solid #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    color: #FFFFFF;
    border-color: var(--primary-blue);
}

/* Footer Rendering */
footer {
    margin-top: auto;
    background-color: var(--primary-blue);
    color: white;
    padding: 80px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-yellow);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-yellow);
    padding-left: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.footer-social a:hover {
    background-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(238, 28, 37, 0.4);
    color: white;
}

.footer-social a.instagram:hover {
    background-color: #E1306C;
}

.footer-social a.facebook:hover {
    background-color: #1877F2;
}

.footer-social a.youtube:hover {
    background-color: #FF0000;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 3rem;
    }


}

/* Page Transition Keyframes */
body.fade-out {
    animation: fadeOutPage 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutPage {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(15px);
    }
}

/* ------------------------------------- */
/* CALENDAR ISSF-STYLE LAYOUT            */
/* ------------------------------------- */

.calendar-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.month-group {
    font-size: 2rem;
    color: #111;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    scroll-margin-top: 110px;
}

.month-group:first-of-type {
    margin-top: 0;
}

.month-group.current-month {
    border-bottom: 3px solid var(--primary-blue);
}

.current-month-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #bae6fd;
    text-transform: none;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
}

.current-month-badge i {
    font-size: 0.85rem;
    color: #0284c7;
}

.current-month-pulse {
    animation: monthHighlightGlow 2.5s ease-out;
}

@keyframes monthHighlightGlow {
    0% {
        background-color: rgba(2, 132, 199, 0.15);
        border-radius: 8px;
        padding-left: 12px;
        padding-right: 12px;
    }
    100% {
        background-color: transparent;
        padding-left: 0;
        padding-right: 0;
    }
}

/* --- CALENDARIO: SELECTOR RÁPIDO DE MESES --- */
.calendar-month-selector {
    max-width: 1000px;
    margin: 0 auto 35px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 4px 16px rgba(0, 32, 96, 0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.month-selector-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.month-selector-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.month-pill-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.month-pill-btn:hover {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
    transform: translateY(-1px);
}

.month-pill-btn.active-current {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 3px 10px rgba(0, 51, 160, 0.25);
}

.month-pill-btn.disabled {
    opacity: 0.45;
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: transparent;
}

.month-pill-btn.disabled:hover {
    transform: none;
    background: #f1f5f9;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .calendar-month-selector {
        padding: 12px 14px;
        gap: 10px;
    }
    .month-selector-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .month-pill-btn {
        flex-shrink: 0;
        padding: 5px 12px;
        font-size: 0.78rem;
    }
}

.event-row {
    display: flex;
    align-items: flex-start;
    padding: 25px 0;
    border-bottom: 1px solid #eaeaea;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.event-row:hover {
    background-color: #f9faff;
}

.event-details {
    flex-grow: 1;
}

.event-date {
    width: 160px;
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    background-color: #f4f6fb;
    padding: 10px 15px;
    border-radius: 6px;
    margin-right: 30px;
    text-align: center;
    line-height: 1.3;
}

.event-details h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.event-row:hover .event-details h4 {
    color: var(--accent-red);
}

.event-meta {
    font-size: 1rem;
    color: #555;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.event-meta strong {
    color: #333;
}

.event-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    margin-top: 8px;
}

.tag-national {
    background-color: #ffe6e6;
    color: var(--accent-red);
}

.tag-international {
    background-color: #e6eeff;
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .event-row {
        flex-direction: column;
        padding: 20px 15px;
    }

    .event-date {
        width: auto;
        display: inline-block;
        margin-bottom: 15px;
    }

    .calendar-container {
        padding: 15px;
    }

    .event-meta {
        gap: 5px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- CALENDARIO: BOTÓN DE INFORMACIÓN Y MODAL DE EVENTO --- */
.event-actions {
    margin-left: 20px;
    align-self: center;
    flex-shrink: 0;
}

.btn-event-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1.5px solid #0033a0;
    color: #0033a0;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 51, 160, 0.08);
}

.btn-event-info:hover {
    background: #0033a0;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 51, 160, 0.25);
}

.btn-event-info i {
    font-size: 1rem;
    color: #0284c7;
    transition: color 0.2s ease;
}

.btn-event-info:hover i {
    color: #ffffff;
}

/* Event Modal */
.event-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    overflow: hidden;
    animation: albumFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.event-modal.active {
    display: flex;
}

.event-modal-backdrop {
    position: absolute;
    inset: 0;
}

.event-modal-dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 32, 96, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: albumSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.event-modal-header {
    padding: 22px 28px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
}

.event-modal-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.event-modal-badge.nacional {
    background: #fee2e2;
    color: var(--accent-red);
}

.event-modal-badge.internacional {
    background: #e0f2fe;
    color: #0284c7;
}

.event-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.25;
    margin: 0;
}

.event-modal-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.event-modal-close-btn:hover {
    background: #fee2e2;
    color: var(--accent-red);
    border-color: #fecaca;
    transform: rotate(90deg);
}

.event-modal-body {
    padding: 24px 28px;
    overflow-y: auto !important;
    flex: 1 1 auto;
    min-height: 0;
    background: #ffffff;
}

.event-modal-body::-webkit-scrollbar {
    width: 7px;
}
.event-modal-body::-webkit-scrollbar-track {
    background: #f8fafc;
}
.event-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.event-modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.event-modal-meta-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-modal-meta-item i {
    font-size: 1.25rem;
    color: #0284c7;
    flex-shrink: 0;
}

.event-modal-meta-item .meta-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.event-modal-meta-item strong {
    font-size: 0.9rem;
    color: #1e293b;
    display: block;
    line-height: 1.3;
}

/* --- MODAL DE EVENTO: CARRUSEL DE IMÁGENES / AFICHES (TEMA CLARO) --- */
.event-modal-carousel-wrapper {
    margin-bottom: 22px;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 32, 96, 0.06);
}

.event-carousel-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y pinch-zoom;
    cursor: grab;
}

.event-carousel-viewport:active {
    cursor: grabbing;
}

.event-carousel-track {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    width: 100%;
}

.event-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    min-height: 280px;
    max-height: 520px;
    padding: 10px 14px;
    box-sizing: border-box;
}

.event-carousel-slide img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 32, 96, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.event-carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-blue);
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(0, 32, 96, 0.15);
    transition: all 0.2s ease;
    z-index: 10;
}

.event-carousel-nav-btn:hover {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    transform: translateY(-50%) scale(1.08);
}

.event-carousel-prev {
    left: 12px;
}

.event-carousel-next {
    right: 12px;
}

.event-carousel-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 32, 96, 0.85);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.event-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border-top: 1px solid #edf2f7;
}

.event-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.event-carousel-dot.active {
    width: 24px;
    border-radius: 12px;
    background: var(--primary-blue);
}

.event-carousel-actions {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.btn-flyer-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: #0284c7;
    text-decoration: none;
    font-weight: 700;
}

.btn-flyer-action:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.event-modal-desc-wrapper {
    margin-bottom: 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
}

.event-modal-subtitle {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-modal-description {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}

.event-modal-link-wrapper {
    margin-top: 10px;
    margin-bottom: 10px;
}

.btn-event-external-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7 0%, #0033a0 100%);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    transition: all 0.25s ease;
}

.btn-event-external-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 14px rgba(220, 39, 67, 0.3);
}

.btn-event-external-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.event-modal-footer {
    padding: 14px 28px;
    border-top: 1px solid #edf2f7;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
}

.btn-event-close-footer {
    background: #e2e8f0;
    color: #334155;
    border: none;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-event-close-footer:hover {
    background: #cbd5e1;
    color: #0f172a;
}

@media (max-width: 768px) {
    .event-actions {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    .btn-event-info {
        width: 100%;
        justify-content: center;
    }
    .event-modal {
        padding: 12px;
    }
    .event-modal-header,
    .event-modal-body,
    .event-modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
    .event-modal-title {
        font-size: 1.3rem;
    }
}



/* --- ABOUT US: NUESTRO EQUIPO --- */
.team-section {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.team-title {
    font-size: 2.5rem;
    color: var(--accent-red);
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-align: center;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.team-card {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    gap: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

.team-photo-wrapper {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--accent-red);
    background: #e0e0e0;
}

.team-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-info h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-weight: 800;
}

.team-info h4 {
    font-size: 0.95rem;
    color: #555;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.team-info p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.team-bio-list {
    list-style: none;
    padding-left: 0;
}

.team-bio-list li {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.team-bio-list li::before {
    content: "•";
    color: var(--accent-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .team-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 15px;
    }
}

/* ------------------------------------- */
/* RESULTS ACCORDION                     */
/* ------------------------------------- */

.results-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f9faff;
}

.accordion-header .icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-header {
    border-bottom: 1px solid #eaeaea;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #fdfdfd;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.results-list {
    list-style: none;
    padding: 20px 25px;
    margin: 0;
}

.results-list li {
    margin-bottom: 15px;
}

.results-list li:last-child {
    margin-bottom: 0;
}

.result-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #fff;
    border: 1px solid #eee;
    width: 100%;
}

.result-link:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
    background-color: #fff9f9;
    transform: translateX(5px);
}

.result-link i {
    color: var(--accent-red);
    font-size: 1.2rem;
}

/* ------------------------------------- */
/* MOBILE NAVIGATION & RESPONSIVENESS    */
/* ------------------------------------- */

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
    z-index: 1001;
}

body.home-page .mobile-menu-btn {
    color: #FFFFFF;
}

@media (max-width: 1080px) {
    header {
        padding: 0 5%;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 70px 20px 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    nav.nav-active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        gap: 16px;
        text-align: center;
        width: 100%;
        padding: 0;
        margin: auto 0;
    }

    nav ul li a {
        font-size: 1.25rem;
        font-weight: 600;
        justify-content: center;
    }

    /* Global Adjustments */
    .hero h2 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .team-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }



    main.reveal {
        padding: 120px 5% 50px !important;
    }

    /* Calendar fixes for mobile */
    .event-row {
        flex-direction: column;
    }

    .event-date {
        margin-bottom: 15px;
    }
}

/* ------------------------------------- */
/* MODALIDADES SECTION                   */
/* ------------------------------------- */
.modalidades-section {
    padding: 20px 5% 120px;
    background-color: transparent;
}

.modalidades-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
}

.modalidades-title {
    font-size: 1.5rem;
    color: var(--accent-red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modalidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.modalidad-card {
    background: var(--text-dark);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.modalidad-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.modalidad-img-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

.modalidad-card:hover .modalidad-img-wrapper img {
    transform: scale(1.08);
}

.modalidad-info {
    padding: 15px 20px;
    background: #151515;
    color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-top: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.modalidad-card:hover .modalidad-info {
    border-top: 3px solid var(--accent-red);
}

.modalidad-date {
    font-size: 0.75rem;
    color: var(--accent-red);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modalidad-name {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.4;
    color: #fff;
}

/* ------------------------------------- */
/* ACCORDION RESULTS SECTION             */
/* ------------------------------------- */
.results-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f9faff;
}

.accordion-header .icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-header {
    background: var(--primary-blue);
    color: #fff;
    border-bottom: 1px solid #eaeaea;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #fdfdfd;
}

/* El max-height activo ahora se maneja con JavaScript (scrollHeight) para animación perfecta */

.results-list {
    list-style: none;
    padding: 20px 25px;
    margin: 0;
}

.results-list li {
    margin-bottom: 15px;
}

.results-list li:last-child {
    margin-bottom: 0;
}

.result-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #fff;
    border: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.result-link:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
    background-color: #fff9f9;
    transform: translateX(5px);
}

.result-link i {
    color: var(--accent-red);
    font-size: 1.2rem;
}

/* ------------------------------------- */
/* RECORDS GRID SECTION                  */
/* ------------------------------------- */
.records-grid {
    padding: 10px 0 4px;
}

.record-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border-bottom: 1px solid #f0f4f9;
    transition: background 0.18s;
}

.record-item:last-child {
    border-bottom: none;
}

.record-item:hover {
    background: #f7f9fc;
}

.record-discipline {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.record-athlete {
    font-size: 0.82rem;
    color: #555;
    white-space: nowrap;
}

.record-score {
    font-size: 1rem;
    font-weight: 900;
    color: #c8a000;
    min-width: 52px;
    text-align: right;
    white-space: nowrap;
}

/* ============================================ */
/* LENIS SMOOTH SCROLLING                     */
/* ============================================ */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}



/* ============================================
   LENIS SMOOTH SCROLLING BASE CSS
   ============================================ */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ============================================
   TELEGRAM FLOATING BUTTON
   ============================================ */
.telegram-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 40px;
    right: 40px;
    background-color: #0088cc;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(0, 136, 204, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.telegram-float:hover {
    background-color: #0077b5;
    box-shadow: 0px 6px 20px rgba(0, 136, 204, 0.6);
    transform: translateY(-5px);
    color: white;
}

.telegram-float .tooltip {
    position: absolute;
    right: 80px;
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translateX(10px);
}

.telegram-float:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

.telegram-float .tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

/* ==========================================================================
   GALERÍA DE FOTOS (FEVETI GALLERY SYSTEM)
   ========================================================================== */

.galeria-page main {
    max-width: 1360px;
    margin: 0 auto;
    width: 100%;
}

.gallery-hero-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 40px;
}

.gallery-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 26, 75, 0.08);
    color: var(--primary-blue);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(26, 26, 75, 0.15);
}

.gallery-hero-header h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.gallery-hero-header p {
    color: #555;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Controls Bar */
.gallery-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    background: #ffffff;
    padding: 14px 22px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 35px;
}

.gallery-year-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-chip {
    background: #f1f3f7;
    border: 1px solid transparent;
    color: #4b5563;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.filter-chip:hover {
    background: #e2e8f0;
    color: var(--primary-blue);
}

.filter-chip.active {
    background: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(26, 26, 75, 0.25);
}

.gallery-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 18px;
    min-width: 280px;
    transition: all 0.3s ease;
}

.gallery-search-box:focus-within {
    border-color: var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 26, 75, 0.1);
}

.gallery-search-box i {
    color: #94a3b8;
    font-size: 0.95rem;
}

.gallery-search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 0.92rem;
    width: 100%;
    color: var(--text-dark);
}

/* 3 Recuadros por Línea Grid */
.gallery-sets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Card Design */
.gallery-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(26, 26, 75, 0.12);
}

.gallery-card-media {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #111827;
    cursor: pointer;
}

.gallery-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 75, 0.75) 0%, rgba(26, 26, 75, 0.2) 60%, transparent 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-view-btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-view-btn {
    transform: translateY(0);
}

.gallery-card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.badge-year {
    background: var(--primary-blue);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.badge-count {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-pixieset {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gallery-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gallery-card-category {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-red);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.gallery-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.3;
    margin-bottom: 12px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.gallery-card-title:hover {
    color: var(--accent-red);
}

.gallery-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 14px;
}

.gallery-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gallery-card-meta i {
    color: var(--primary-blue);
}

.gallery-card-desc {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.55;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-footer {
    margin-top: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.gallery-card-action {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-card-action:hover {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}

.gallery-card-action i {
    transition: transform 0.25s ease;
}

.gallery-card-action:hover i {
    transform: translateX(4px);
}

.gallery-card-pixieset-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0033a0 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-card-pixieset-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #022060 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.btn-modal-pixieset {
    background: linear-gradient(135deg, #0284c7 0%, #0033a0 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    padding: 9px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.btn-modal-pixieset:hover {
    background: linear-gradient(135deg, #0369a1 0%, #022060 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-modal-pixieset i {
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .btn-modal-pixieset span {
        display: none;
    }
    .btn-modal-pixieset {
        padding: 9px 12px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

/* Loading & Empty States */
.gallery-loading-state,
.gallery-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spinGallery 0.9s linear infinite;
}

@keyframes spinGallery {
    to { transform: rotate(360deg); }
}

.gallery-empty-state i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.gallery-empty-state h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.gallery-empty-state p {
    color: #64748b;
    font-size: 1rem;
}

/* ==========================================================================
   ALBUM MODAL & LIGHTBOX
   ========================================================================== */

.album-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    animation: albumFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.album-modal.active {
    display: flex;
    flex-direction: column;
}

@keyframes albumFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.album-modal-backdrop {
    position: absolute;
    inset: 0;
}

.album-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-width: 1480px;
    margin: 0 auto;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 32, 96, 0.22);
    animation: albumSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (min-width: 768px) {
    .album-modal {
        padding: 16px 24px;
    }
    .album-modal-dialog {
        height: calc(100vh - 32px);
        max-height: calc(100vh - 32px);
        border-radius: 24px;
        border: 1px solid #e2e8f0;
    }
}

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

/* Nav Superior Sticky - Fondo Blanco */
.album-modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    z-index: 20;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.album-modal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    color: var(--primary-blue);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 9px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.album-modal-back-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
    transform: translateX(-3px);
}

.album-modal-back-btn i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.album-modal-back-btn:hover i {
    transform: translateX(-3px);
}

.album-modal-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-modal-download {
    background: linear-gradient(135deg, #0284c7 0%, #0033a0 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    padding: 9px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.btn-modal-download:hover {
    background: linear-gradient(135deg, #0369a1 0%, #022060 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.album-modal-close-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.album-modal-close-icon:hover {
    background: #fee2e2;
    color: var(--accent-red);
    border-color: #fecaca;
    transform: rotate(90deg);
}

/* Scrollable Container - 100% Scrollable y Blanco */
.album-modal-scrollable {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #ffffff;
}

.album-modal-scrollable::-webkit-scrollbar {
    width: 8px;
}
.album-modal-scrollable::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.album-modal-scrollable::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.album-modal-scrollable::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Panoramic Hero Banner con Foto de Portada */
.album-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    padding: 44px 44px 36px;
    overflow: hidden;
    color: #ffffff;
    margin: 24px 32px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.album-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-hero:hover .album-hero-bg {
    transform: scale(1.06);
}

.album-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 25, 47, 0.25) 0%,
        rgba(10, 25, 47, 0.65) 55%,
        rgba(10, 25, 47, 0.92) 100%
    );
}

.album-hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    width: 100%;
}

.album-hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    background: var(--accent-red);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.4);
}

.album-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.album-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.92rem;
    color: #f1f5f9;
    margin-bottom: 14px;
}

.album-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.album-hero-meta i {
    color: #38bdf8;
}

.album-hero-desc {
    font-size: 1.02rem;
    color: #e2e8f0;
    line-height: 1.6;
    max-width: 760px;
    margin-top: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Toolbar de la Galería - Fondo Blanco */
.album-gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 14px;
    flex-wrap: wrap;
    gap: 16px;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

.album-toolbar-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.album-toolbar-title i {
    color: #0284c7;
}

.album-toolbar-count {
    display: block;
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}

.album-bar-download-btn {
    background: #eff6ff;
    border: 1.5px solid #0284c7;
    color: #0284c7;
    padding: 9px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.album-bar-download-btn:hover {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transform: translateY(-2px);
}

/* Masonry Dynamic Photos Grid - Fondo Blanco */
.album-modal-body {
    padding: 24px 32px 60px;
    background: #ffffff;
}

.album-masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

@media (max-width: 1024px) {
    .album-masonry-grid {
        column-count: 2;
        column-gap: 16px;
    }
    .album-hero {
        margin: 16px 20px 0;
        padding: 32px 24px 24px;
        min-height: 280px;
    }
    .album-hero-title {
        font-size: 2.1rem;
    }
    .album-gallery-toolbar,
    .album-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 640px) {
    .album-masonry-grid {
        column-count: 1;
        column-gap: 0;
    }
    .album-hero {
        margin: 0;
        border-radius: 0;
        padding: 24px 16px 20px;
        min-height: 250px;
    }
    .album-hero-title {
        font-size: 1.65rem;
    }
    .album-modal-nav {
        padding: 12px 16px;
    }
    .album-modal-back-btn span {
        display: none;
    }
    .btn-modal-download span {
        display: none;
    }
    .album-gallery-toolbar,
    .album-modal-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.album-masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.album-masonry-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 51, 160, 0.16);
    border-color: #93c5fd;
}

.album-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.album-masonry-item:hover img {
    transform: scale(1.04);
}

.album-masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 20, 60, 0.4) 65%,
        rgba(0, 32, 96, 0.88) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: #ffffff;
}

.album-masonry-item:hover .album-masonry-overlay {
    opacity: 1;
}

.album-masonry-zoom-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transform: scale(0.85);
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.album-masonry-item:hover .album-masonry-zoom-btn {
    transform: scale(1);
    background: var(--primary-blue);
    color: #ffffff;
}

.album-masonry-caption {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-empty-photos {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    grid-column: 1 / -1;
}

.album-empty-photos i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 16px;
    display: block;
}

.album-empty-photos h4 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.album-empty-photos p {
    font-size: 0.95rem;
}

/* Lightbox Fullscreen */
.lightbox-viewer {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-viewer.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 18, 0.95);
    backdrop-filter: blur(12px);
}

.lightbox-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
}

.lightbox-image-wrapper {
    max-width: 90vw;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-image-wrapper img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.lightbox-caption-bar {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 80vw;
}

.lightbox-counter {
    color: var(--accent-yellow);
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
}

.lightbox-caption {
    color: #ffffff;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-action-btn {
    color: #cbd5e1;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lightbox-action-btn:hover {
    color: #ffffff;
}

.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 20;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
}

.lightbox-prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
}

.lightbox-next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .gallery-sets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .gallery-sets-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .gallery-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .gallery-search-box {
        min-width: unset;
        width: 100%;
    }
    .album-modal-dialog {
        max-height: 94vh;
        margin: 10px;
        border-radius: 18px;
    }
    .album-modal-header {
        padding: 18px 20px;
    }
    .album-modal-body {
        padding: 16px 20px 20px;
    }
    .lightbox-container {
        padding: 20px;
    }
    .lightbox-prev {
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .lightbox-next {
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
