/* ============================================
   AJŤÁCKÁ GRILOVAČKA - 2025 PREMIUM DESIGN
   Ultra-Modern Luxury UI/UX
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   CSS VARIABLES & TOKENS
   ============================================ */
:root {
    /* Colors */
    --fire-red: #B22818;
    --fire-red-dark: #8B1E11;
    --fire-red-light: #D63426;
    --fire-orange: #FF6B55;

    /* Agentes IT Blue */
    --agentes-blue: #0056D2;
    --agentes-blue-light: rgba(0, 86, 210, 0.1);
    --agentes-blue-dark: #0041a3;

    /* Neutrals */
    --black: #0a0a0a;
    --gray-900: #1a1a1a;
    --gray-800: #2d2d2d;
    --gray-700: #4a4a4a;
    --gray-300: #d4d4d4;
    --gray-100: #f5f5f5;
    --white: #ffffff;

    /* Gradients */
    --gradient-fire: linear-gradient(135deg, #B22818 0%, #D63426 50%, #FF6B55 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --gradient-hero: radial-gradient(ellipse at top, rgba(178, 40, 24, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 107, 85, 0.1), transparent 50%);

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.12);
    --shadow-fire: 0 12px 40px rgba(178, 40, 24, 0.3);

    /* Typography */
    --font-family: 'Inter', -apple-system, system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 3rem;
    --radius-pill: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Text Selection */
::selection {
    background-color: var(--fire-red);
    color: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 10px;
    border: 2px solid var(--gray-100);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fire-red-light);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) var(--gray-100);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--black);
}

/* ============================================
   NAVIGATION - GLASSMORPHISM
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1.25rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--black);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.03) translateY(-1px);
}

.nav-logo:active {
    transform: scale(0.98);
}

.logo-svg {
    height: 35px;
    width: auto;
    display: block;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-highlight {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-fire);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--fire-red);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ============================================
   HERO SECTION - MASSIVE MODERN
   ============================================ */
.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--white);
    overflow: hidden;
    padding: 8rem var(--space-lg) var(--space-3xl);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.hero-bg-pattern::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(178, 40, 24, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-bg-pattern::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 85, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-container {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: rgba(178, 40, 24, 0.1);
    color: var(--fire-red);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::before {
    width: 400px;
    height: 400px;
}

.btn-hero.btn-primary {
    background: var(--gradient-fire);
    color: white;
    box-shadow: var(--shadow-fire);
}

.btn-hero.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(178, 40, 24, 0.4);
}

.btn-hero.btn-secondary {
    background: transparent;
    color: var(--fire-red);
    border: 2px solid var(--fire-red);
}

.btn-hero.btn-secondary:hover {
    background: var(--fire-red);
    color: white;
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-700);
    animation: fadeIn 1s ease-out 1s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.scroll-arrow {
    color: var(--gray-700);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

/* ============================================
   CONTAINERS
   ============================================ */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title-modern {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-700);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   BENTO GRID - MODERN LAYOUT
   ============================================ */
.features-bento {
    padding: var(--space-3xl) 0;
    background: var(--gray-100);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-lg);
}

.bento-item {
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    background: white;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-fire);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.bento-item:hover::before {
    transform: scaleX(1);
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.bento-large {
    grid-column: span 7;
}

.bento-medium {
    grid-column: span 5;
}

.bento-stats {
    grid-column: span 12;
    background: var(--gradient-dark);
    color: white;
}

.bento-red {
    background: linear-gradient(135deg, rgba(178, 40, 24, 0.05) 0%, white 100%);
}

.bento-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 4px 8px rgba(178, 40, 24, 0.2));
}

.bento-item h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.bento-item p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.bento-decoration {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    font-size: 8rem;
    opacity: 0.05;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B55, #D63426);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* ============================================
   FEATURES GRID - 3 COLUMNS
   ============================================ */
.features-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-fire);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 4px 8px rgba(178, 40, 24, 0.2));
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
    color: var(--black);
}

.feature-card p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
}


/* ============================================
   GALLERY RIBBON - INFINITE MARQUEE
   ============================================ */
.gallery-ribbon {
    width: 100%;
    overflow: hidden;
    background: var(--white);
    padding: var(--space-2xl) 0;
    position: relative;
}

.marquee-track {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* CRITICAL: No extra space distribution */
    min-width: 100%;
    width: max-content;
    /* Ensure it wraps all items */
    gap: var(--space-xl);
    padding-right: var(--space-xl);
    /* Gap between sets */
    animation: marquee 40s linear infinite;
    will-change: transform;
}

.gallery-ribbon:hover .marquee-content {
    animation-play-state: paused;
}

.gallery-item {
    flex-shrink: 0;
    width: 280px;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(var(--tilt, 0deg));
}

.gallery-item:nth-child(even) {
    --tilt: 2deg;
    margin-top: 20px;
}

.gallery-item:nth-child(odd) {
    --tilt: -2deg;
    margin-bottom: 20px;
}

.gallery-item:hover {
    transform: scale(1.05) rotate(0deg) translateY(-10px);
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Responsivity for Gallery */
@media (max-width: 768px) {
    .gallery-item {
        width: 180px;
        height: 260px;
    }

    .marquee-content {
        gap: var(--space-md);
        padding-right: var(--space-md);
    }
}

/* ============================================
   PAST EVENTS - MODERN CARDS
   ============================================ */
.past-events {
    padding: var(--space-3xl) 0;
    background: white;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.event-card-modern {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.event-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card-modern:hover .event-image img {
    transform: scale(1.1);
}

.event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.event-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-md);
}

.event-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 600;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.event-date svg {
    opacity: 0.7;
}

.event-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    color: var(--black);
}

.event-text-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.event-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.hidden-event {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* ============================================
   MODERN BUTTONS
   ============================================ */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-outline {
    border-color: var(--fire-red);
    color: var(--fire-red);
    background: white;
}

.btn-outline:hover {
    background: var(--fire-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-fire);
}

.btn-white {
    background: white;
    color: var(--fire-red);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    border-color: white;
    color: white;
    background: transparent;
}

.btn-outline-white:hover {
    background: white;
    color: var(--fire-red);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--gradient-fire);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 10;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER - MODERN
   ============================================ */
.footer-modern {
    background: var(--gray-900);
    color: white;
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: var(--space-sm);
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--fire-orange);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 3px solid var(--fire-red);
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
}

.login-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--black);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--fire-red);
    box-shadow: 0 0 0 4px rgba(178, 40, 24, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table th,
.table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-300);
}

.table th {
    background: var(--gradient-dark);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr {
    transition: background 0.3s ease;
}

.table tbody tr:hover {
    background: var(--gray-100);
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* ============================================
   PAGE HERO - SUBPAGES
   ============================================ */
.page-hero {
    padding: 10rem var(--space-lg) var(--space-3xl);
    position: relative;
    background: white;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.page-hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.page-subtitle {
    font-size: 1.5rem;
    color: var(--gray-700);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    padding: var(--space-3xl) 0;
    background: var(--gray-100);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.content-card {
    background: white;
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.content-card h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
}

.content-card h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
    color: var(--fire-red);
}

.content-card .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.content-card p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--space-md);
}

.content-spacer {
    height: var(--space-2xl);
}

.content-cta {
    text-align: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 2px solid var(--gray-100);
}

.text-link {
    color: var(--fire-red);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.text-link:hover {
    border-bottom-color: var(--fire-red);
}

.features-simple {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.feature-simple {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-simple:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.feature-simple-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.feature-simple-content h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--black);
}

.feature-simple-content p {
    font-size: 1rem;
    margin: 0;
}

/* ============================================
   AGENTES BRANDING SECTION
   ============================================ */
.agentes-branding {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, rgba(33, 94, 169, 0.03) 0%, white 100%);
}

.agentes-card {
    background: white;
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-top: 4px solid #215ea9;
}

.agentes-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.agentes-card h2 {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
    color: var(--black);
}

.agentes-name {
    color: #215ea9;
    font-weight: 900;
}

.agentes-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.agentes-link:hover {
    opacity: 0.8;
}

.agentes-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    max-width: 700px;
    margin: 0 auto;
}

.agentes-description strong {
    color: #215ea9;
    font-weight: 700;
}

.agentes-info-box {
    background: linear-gradient(135deg, #215ea9 0%, #1a4a85 100%);
    padding: var(--space-xl) var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 8px 32px rgba(33, 94, 169, 0.2);
}

.agentes-info-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: white;
    margin: 0;
}

.agentes-info-text strong {
    font-weight: 800;
    color: white;
}



/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    padding: var(--space-3xl) 0;
    background: var(--gray-100);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.team-grid-four {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .team-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-grid-four {
        grid-template-columns: 1fr;
    }
}

.team-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.team-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-content {
    padding: var(--space-xl);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    white-space: nowrap;
}

.team-role {
    font-size: 1rem;
    color: var(--fire-red);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.team-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--space-xl);
}

.team-social {
    margin-top: auto;
    padding-top: var(--space-md);
}

.linkedin-link {
    color: var(--gray-400);
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.linkedin-link svg {
    width: 32px;
    height: 32px;
}

.linkedin-link:hover {
    color: #0077b5;
    transform: scale(1.1);
}

.team-footer-note {
    text-align: center;
    margin-top: var(--space-2xl);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.heart-blue {
    color: #215ea9;
}

/* ============================================
   CONTACT INFO
   ============================================ */
.contact-info-section {
    padding: var(--space-3xl) 0;
    background: white;
}

.contact-info-card {
    background: var(--gray-100);
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    text-align: center;
}

.contact-info-card h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex: 1;
}

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-content {
    text-align: left;
}

.contact-content strong {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-700);
    margin-bottom: var(--space-xs);
}

.contact-content a {
    color: var(--fire-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
}

.contact-content a:hover {
    text-decoration: underline;
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.location-section {
    padding: var(--space-3xl) 0;
    background: var(--gray-100);
}

.location-card {
    background: white;
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: var(--space-xl);
    border-top: 4px solid #215ea9;
}

.location-card h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--black);
}

.location-address {
    font-size: 1.5rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.location-note {
    font-size: 1.125rem;
    color: var(--gray-700);
}

.map-container {
    margin-bottom: var(--space-xl);
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.transport-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
}

.transport-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.transport-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.transport-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.transport-card p {
    font-size: 1rem;
    color: var(--gray-700);
}

.location-cta {
    text-align: center;
}

/* ============================================
   ARCHIVE SECTION
   ============================================ */
.archive-section {
    padding: var(--space-3xl) 0;
    background: var(--gray-100);
}

.events-grid-archive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
}

.empty-state {
    text-align: center;
    padding: var(--space-3xl);
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.empty-state p {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: var(--space-xl);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0 var(--space-md);
    }

    /* Hamburger Button */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10001;
    }

    .nav-toggle span {
        width: 100%;
        height: 3px;
        background: var(--black);
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: left center;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        background: var(--fire-red);
    }

    .nav-toggle.active span:nth-child(2) {
        width: 0%;
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        background: var(--fire-red);
    }

    /* Responsive Menu Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        margin: 0;
        padding: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Delay animations for each link */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links a {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .bento-large,
    .bento-medium {
        grid-column: span 12;
    }

    .features-grid-three {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container-wide,
    .container-narrow {
        padding: 0 var(--space-md);
    }

    .hero-modern {
        min-height: 80vh;
        padding: 6rem var(--space-md) var(--space-2xl);
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
    }

    .events-grid,
    .events-grid-archive {
        grid-template-columns: 1fr;
    }

    .stat-row {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
    }

    /* Contact & Agentes Page Fixes */
    .contact-info-card,
    .agentes-card,
    .content-card {
        padding: var(--space-xl) var(--space-md);
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .contact-item {
        padding: var(--space-md);
        flex-direction: column;
        text-align: center;
    }

    .contact-content {
        text-align: center;
        word-break: break-all;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide toggle on desktop */
@media (min-width: 1025px) {
    .nav-toggle {
        display: none;
    }
}

/* Smooth scrolling improvements */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.heart-blue {
    color: var(--agentes-blue);
    display: inline-block;
    filter: drop-shadow(0 0 5px rgba(0, 86, 210, 0.3));
}

/* ============================================
   GRILL TITLE GENERATOR - REFINED
   ============================================ */
.grill-generator-section {
    padding: var(--space-2xl) 0;
    background: #fcfcfc;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.generator-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    background: var(--white);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.generator-text {
    flex: 1;
}

.generator-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--black);
}

.generator-subtitle {
    color: var(--gray-700);
    font-size: 1rem;
    margin: 0;
}

.generator-action {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex: 2;
    justify-content: flex-end;
}

.title-result {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fire-red);
    text-transform: uppercase;
    min-width: 300px;
    min-height: 2rem;
    text-align: right;
    animation: fadeIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.btn-generate {
    background: var(--gradient-fire);
    color: var(--white);
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-fire);
}

.btn-generate.rolling {
    pointer-events: none;
    opacity: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .generator-inline {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xl);
    }

    .generator-action {
        flex-direction: column;
        gap: var(--space-md);
        justify-content: center;
    }

    .title-result {
        text-align: center;
        min-width: auto;
        min-height: 3.5rem;
        /* Reserve space for potentially 2 lines */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.gallery-photo {
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.gallery-photo:hover {
    transform: scale(1.02);
}

.gallery-photo img {
    transition: filter 0.3s ease;
}

.gallery-photo:hover img {
    filter: brightness(1.1);
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
}

.lightbox-image {
    width: 90vw;
    height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.05);
    /* Subtle background to define the area */
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

@media (max-width: 1100px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .lightbox-image {
        width: 100vw;
        height: 75vh;
        object-fit: contain;
    }
}