@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Elegant Page Frame */
.page-frame {
    margin: 2rem;
    padding: 2.5rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    position: relative;
    min-height: calc(100vh - 9rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Corner Ornaments (Minimalist, Sober light) */
.page-frame::before, .page-frame::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid #212529;
    pointer-events: none;
}
.page-frame::before { 
    top: -6px; 
    left: -6px; 
    border-right: 0; 
    border-bottom: 0; 
}
.page-frame::after { 
    bottom: -6px; 
    right: -6px; 
    border-left: 0; 
    border-top: 0; 
}

/* Header & Menu Styling */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #343a40;
    text-decoration: none;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: #343a40;
    border-radius: 4px;
}

.logo-img {
    max-height: 2.5rem;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #000000;
}

/* Dropdown Navigation Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    z-index: 100;
    list-style: none;
    margin: 0;
}

/* Arrow indicator for dropdown menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-left: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    text-decoration: none;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000000;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
}

/* Upper Content (Centered) */
.landing-top-details {
    text-align: center;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.top-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #495057;
    margin: 0;
    padding: 0 10%;
}

.giant-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 0;
    color: #212529;
}

/* Logo Center Container with circular double-ring badge style */
.logo-center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0;
    position: relative;
}

.logo-badge-container {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 4px double #495057;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
    box-sizing: border-box;
}

.logo-badge-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-badge-placeholder {
    width: 150px;
    height: 150px;
    background-color: #e9ecef;
    border-radius: 50%;
}

/* Date Display */
.date-highlight {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #212529;
    text-align: center;
    margin: 2rem 0;
}

/* Bottom Menu Navigation */
.bottom-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.bottom-action-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #495057;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.bottom-action-link:hover {
    color: #000000;
    border-bottom: 2px solid #212529;
}

.bottom-action-btn {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    background-color: #212529;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease;
}

.bottom-action-btn:hover {
    background-color: #000000;
}

/* Floating Social Sidebar */
.social-sidebar {
    position: absolute;
    right: 3rem;
    top: 55%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #495057;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.social-item:hover {
    color: #000000;
}

.social-icon i {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

/* Floating Stats Sidebar (Left) */
.stats-sidebar {
    position: absolute;
    left: 3rem;
    top: 55%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
    text-align: right;
}

.stat-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
}

.stat-sidebar-icon i {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
    color: #212529;
}

.stat-sidebar-text {
    font-weight: 700;
    color: #212529;
}

.stat-sidebar-text span {
    font-weight: 400;
    color: #6c757d;
}

/* Modal Overlay and Container */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

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

.modal-container {
    background-color: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    width: 90%;
    max-width: 1100px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: #212529;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #000000;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Category Group Layout */
.category-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-group-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #212529;
    margin: 0;
    border-bottom: 2px solid #212529;
    padding-bottom: 0.5rem;
    align-self: flex-start;
}

/* Boxed Columns */
.category-columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.category-column-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

.category-column-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #212529;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* Item List & Badges */
.category-item-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-leaf-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #495057;
}

.category-leaf-badge {
    background-color: #212529;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 2px;
    min-width: 24px;
    text-align: center;
    box-sizing: border-box;
}

/* Awards Grid & Card Styling */
.awards-columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.award-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

.award-badge-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: #212529;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    color: #ffffff;
}

.award-badge-icon i {
    font-size: 1.25rem;
}

.award-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.award-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #212529;
    margin: 0;
    line-height: 1.3;
}

.award-card-sponsor {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

.award-card-sponsor span {
    font-weight: 500;
    color: #495057;
}

/* Gallery Container & Grid */
.gallery-section-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #212529;
    margin: 0;
    border-bottom: 2px solid #212529;
    padding-bottom: 0.75rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Gallery Card Boxed Style */
.gallery-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.gallery-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #e9ecef;
    position: relative;
    overflow: hidden;
}

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

.gallery-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gallery-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #212529;
    margin: 0;
    line-height: 1.3;
}

.gallery-card-user {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.gallery-card-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 2px;
    align-self: flex-start;
}

/* Custom Pagination styling */
.gallery-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.gallery-pagination .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.25rem;
    border-radius: 4px;
}

.gallery-pagination .page-item .page-link {
    display: block;
    padding: 0.5rem 0.85rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #495057;
    text-decoration: none;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.gallery-pagination .page-item:first-child .page-link {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.gallery-pagination .page-item:last-child .page-link {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.gallery-pagination .page-item.active .page-link {
    color: #ffffff;
    background-color: #212529;
    border-color: #212529;
}

.gallery-pagination .page-item.disabled .page-link {
    color: #adb5bd;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.gallery-pagination .page-item:hover:not(.active):not(.disabled) .page-link {
    color: #000000;
    border-color: #212529;
    background-color: #f8f9fa;
}

/* Gallery Card Meta & Awards Row */
.gallery-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

.gallery-card-awards {
    display: flex;
    gap: 0.4rem;
}

.award-icon-mini {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background-color: #fff3cd; /* Sober gold highlight background */
    border: 1px solid #ffeeba;
    border-radius: 50%;
    color: #856404; /* Sober dark gold color */
    font-size: 0.7rem;
    cursor: help;
}

/* Mobile Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.35rem;
    color: #495057;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .page-frame {
        margin: 1rem;
        padding: 1.5rem;
        min-height: calc(100vh - 5rem);
    }
    
    .stats-sidebar {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        margin: 2rem 0 1rem 0;
        gap: 2.5rem;
        align-items: center;
        text-align: center;
    }
    
    .social-sidebar {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        margin: 1rem 0 2rem 0;
        gap: 2.5rem;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 1px solid #e9ecef;
        padding: 1.5rem;
        gap: 1.25rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.05);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }

    /* Stack submenu inside mobile layout */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
        display: block;
        background-color: #f8f9fa;
        min-width: unset;
    }

    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-item {
        text-align: left;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .giant-brand {
        font-size: 2.25rem;
        letter-spacing: 3px;
    }
    
    .top-description {
        font-size: 1rem;
        padding: 0;
    }
    
    .logo-badge-container {
        width: 180px;
        height: 180px;
    }
    
    .date-highlight {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }

    .bottom-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .bottom-action-btn, .bottom-action-link {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .bottom-action-link {
        padding: 0.5rem 0;
    }
    
    .stats-sidebar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-sidebar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .modal-container {
        width: 95%;
        max-height: 90vh;
    }

    .modal-body {
        padding: 1rem;
        gap: 1.5rem;
    }

    .category-columns-grid, .awards-columns-grid {
        grid-template-columns: 1fr;
    }
}

/* Sutil Confeti Dorado y Negro */
.confetti-wrapper {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    height: 380px;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    opacity: 0.85;
    animation: confettiFall 4s linear infinite;
    will-change: transform, top, opacity;
}

.confetti-piece.gold {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
}

.confetti-piece.gold-dark {
    background: linear-gradient(135deg, #d4af37, #aa7c11);
}

.confetti-piece.black {
    background: linear-gradient(135deg, #2b2b2b, #000000);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.confetti-piece:nth-child(1)  { left: 8%;  animation-duration: 3.5s; animation-delay: 0s;   width: 6px; height: 10px; }
.confetti-piece:nth-child(2)  { left: 18%; animation-duration: 4.2s; animation-delay: 0.5s; width: 8px; height: 14px; }
.confetti-piece:nth-child(3)  { left: 28%; animation-duration: 3.8s; animation-delay: 1.2s; width: 7px; height: 11px; }
.confetti-piece:nth-child(4)  { left: 38%; animation-duration: 4.5s; animation-delay: 0.2s; width: 9px; height: 12px; }
.confetti-piece:nth-child(5)  { left: 48%; animation-duration: 3.2s; animation-delay: 1.5s; width: 6px; height: 9px;  }
.confetti-piece:nth-child(6)  { left: 58%; animation-duration: 4.0s; animation-delay: 0.8s; width: 8px; height: 13px; }
.confetti-piece:nth-child(7)  { left: 68%; animation-duration: 3.6s; animation-delay: 1.8s; width: 7px; height: 10px; }
.confetti-piece:nth-child(8)  { left: 78%; animation-duration: 4.3s; animation-delay: 0.4s; width: 9px; height: 15px; }
.confetti-piece:nth-child(9)  { left: 88%; animation-duration: 3.4s; animation-delay: 1.1s; width: 6px; height: 11px; }
.confetti-piece:nth-child(10) { left: 14%; animation-duration: 4.1s; animation-delay: 2.0s; width: 8px; height: 12px; }
.confetti-piece:nth-child(11) { left: 24%; animation-duration: 3.7s; animation-delay: 1.4s; width: 7px; height: 10px; }
.confetti-piece:nth-child(12) { left: 34%; animation-duration: 4.4s; animation-delay: 2.3s; width: 9px; height: 14px; }
.confetti-piece:nth-child(13) { left: 44%; animation-duration: 3.3s; animation-delay: 0.7s; width: 6px; height: 9px;  }
.confetti-piece:nth-child(14) { left: 54%; animation-duration: 3.9s; animation-delay: 2.1s; width: 8px; height: 13px; }
.confetti-piece:nth-child(15) { left: 64%; animation-duration: 4.6s; animation-delay: 1.0s; width: 7px; height: 11px; }
.confetti-piece:nth-child(16) { left: 74%; animation-duration: 3.5s; animation-delay: 2.5s; width: 9px; height: 12px; }
.confetti-piece:nth-child(17) { left: 84%; animation-duration: 4.0s; animation-delay: 1.7s; width: 6px; height: 10px; }
.confetti-piece:nth-child(18) { left: 92%; animation-duration: 3.8s; animation-delay: 2.8s; width: 8px; height: 11px; }

@keyframes confettiFall {
    0% {
        top: -20px;
        transform: rotate(0deg) translateX(0);
        opacity: 0.9;
    }
    50% {
        transform: rotate(180deg) translateX(12px);
        opacity: 0.8;
    }
    100% {
        top: 360px;
        transform: rotate(360deg) translateX(-12px);
        opacity: 0;
    }
}
