/* ==========================================================================
   CSS SYSTEM - ATZACÁN TRAIL: CORAZÓN DE LA MONTAÑA
   ========================================================================== */

/* Variables */
:root {
    /* Color Palette */
    --color-bg-dark: #070f08;      /* Deep, near black forest green */
    --color-bg-panel: #0e200f;     /* Forest green dark panel */
    --color-bg-panel-trans: rgba(14, 32, 15, 0.7); /* Translucent panel for glassmorphism */
    --color-forest-deep: #142d16;  /* Deep forest green */
    --color-forest-mid: #1c3f20;   /* Mid forest green */
    --color-forest-light: #2e6033; /* Light forest green */
    
    --color-orange-primary: #ff5722; /* Vibrant accent orange */
    --color-orange-light: #ff7a45;   /* Lighter glow orange */
    --color-orange-dark: #d84315;    /* Deep orange */
    --color-orange-glow: rgba(255, 87, 34, 0.35);
    
    --color-text-pure: #ffffff;
    --color-text-light: #f1f5f9;
    --color-text-muted: #cbd5e1;
    --color-text-dark: #64748b;
    
    --color-success: #2ecc71;
    --color-warning: #f1c40f;
    --color-error: #e74c3c;
    
    /* Layout & Styling */
    --font-titles: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients decoration */
body::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    top: 60%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 96, 51, 0.12) 0%, rgba(0, 0, 0, 0) 75%);
    z-index: -1;
    pointer-events: none;
}

/* Typography & General */
h1, h2, h3, h4 {
    font-family: var(--font-titles);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-pure);
}

p {
    margin-bottom: 1.2rem;
    font-weight: 300;
}

strong {
    font-weight: 600;
    color: var(--color-text-pure);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid & Layout Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media(min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.text-center {
    text-align: center;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--color-bg-panel-trans);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

/* Text Gradient Effect */
.text-gradient {
    background: linear-gradient(135deg, var(--color-orange-light) 0%, var(--color-orange-primary) 50%, var(--color-orange-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange-light) 0%, var(--color-orange-primary) 100%);
    color: var(--color-text-pure);
    box-shadow: 0 4px 15px var(--color-orange-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.5);
    background: linear-gradient(135deg, var(--color-orange-primary) 0%, var(--color-orange-dark) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-pure);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-orange-primary);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-md);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Section Styling */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-badge {
    background: rgba(255, 87, 34, 0.15);
    color: var(--color-orange-light);
    font-family: var(--font-titles);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 87, 34, 0.25);
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: rgba(7, 15, 8, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 0.8rem 0;
    background: rgba(7, 15, 8, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-titles);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--color-text-pure);
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 38px;
    width: auto;
    margin-right: 8px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.logo-accent {
    color: var(--color-orange-primary);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-orange-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-pure);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-pure);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

@media(max-width: 991px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(7, 15, 8, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-smooth);
        z-index: -1;
    }
    
    .nav-menu.active {
        top: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.3rem;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 8rem;
    padding-bottom: 6rem;
    background-color: #050d06;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, rgba(7, 15, 8, 0.5) 0%, rgba(7, 15, 8, 0.9) 100%), url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.02);
    animation: zoomHero 20s infinite alternate;
}

@keyframes zoomHero {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.08); }
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    background: rgba(255, 87, 34, 0.12);
    border: 1px solid rgba(255, 87, 34, 0.3);
    color: var(--color-orange-light);
    font-family: var(--font-titles);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

@media(min-width: 768px) {
    .hero-title {
        font-size: 4.8rem;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator a {
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

.hero-scroll-indicator a:hover {
    color: var(--color-orange-primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* ==========================================================================
   Countdown Section
   ========================================================================== */
.countdown-section {
    padding: 0;
    margin-top: -4rem;
    position: relative;
    z-index: 3;
}

.countdown-card {
    text-align: center;
    border-left: 4px solid var(--color-orange-primary);
}

.countdown-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-family: var(--font-titles);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-text-pure);
    text-shadow: 0 0 15px var(--color-orange-glow);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    min-width: 75px;
    text-align: center;
}

.countdown-divider {
    font-family: var(--font-titles);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-orange-primary);
    margin-top: -1.5rem;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dark);
    margin-top: 0.5rem;
}

.countdown-date-info {
    font-size: 0.95rem;
    color: var(--color-orange-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

@media(max-width: 576px) {
    .countdown-grid {
        gap: 0.5rem;
    }
    
    .countdown-value {
        font-size: 1.8rem;
        min-width: 55px;
        padding: 0.4rem 0.6rem;
    }
    
    .countdown-divider {
        font-size: 1.8rem;
    }
    
    .countdown-item {
        min-width: 55px;
    }
}

/* ==========================================================================
   Event Info Section
   ========================================================================== */
.event-section {
    background-color: var(--color-bg-dark);
}

.event-grid {
    align-items: center;
}

.event-image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.event-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.event-image-container:hover .event-img {
    transform: scale(1.05);
}

.event-img-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-orange-primary);
    color: var(--color-text-pure);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
    z-index: 2;
}

.event-img-badge .number {
    font-family: var(--font-titles);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.event-img-badge .txt {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.event-info-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.event-info-content p {
    color: var(--color-text-muted);
}

.features-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: rgba(255, 87, 34, 0.1);
    border: 1px solid rgba(255, 87, 34, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange-primary);
    font-size: 1.2rem;
}

.feature-text strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.feature-text p {
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   Routes Section
   ========================================================================== */
.routes-section {
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-panel) 100%);
}

.routes-grid {
    margin-top: 2rem;
}

.route-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.route-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.route-card.highlight {
    border-color: rgba(255, 87, 34, 0.3);
}

.route-card.highlight:hover {
    border-color: var(--color-orange-primary);
}

.route-image-header {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.route-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.route-card:hover .route-image-header img {
    transform: scale(1.05);
}

.route-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-family: var(--font-titles);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.route-tag.recreativa {
    background: rgba(46, 204, 113, 0.95);
    color: #ffffff;
}

.route-tag.extremo {
    background: var(--color-orange-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--color-orange-glow);
}

.route-body {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.route-name {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.route-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.route-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--color-text-dark);
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.stat-value {
    font-family: var(--font-titles);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-pure);
}

.text-easy {
    color: var(--color-success);
}

.text-hard {
    color: var(--color-orange-light);
}

.route-features {
    list-style: none;
    margin-bottom: 2.2rem;
}

.route-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
}

.route-features li i {
    color: var(--color-orange-primary);
    font-size: 0.9rem;
}

.route-card.highlight .route-features li i {
    color: var(--color-orange-primary);
}

@media(max-width: 576px) {
    .route-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ==========================================================================
   Runner Kit Section
   ========================================================================== */
.kit-section {
    background-color: var(--color-bg-dark);
}

.kit-grid {
    margin-top: 1rem;
}

.kit-card {
    transition: var(--transition-smooth);
}

.kit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 87, 34, 0.25);
}

.kit-icon {
    font-size: 2.5rem;
    color: var(--color-orange-primary);
    margin-bottom: 1.5rem;
}

.kit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.kit-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.kit-extra-details {
    margin-top: 3rem;
    padding: 1.8rem;
    border-left: 4px solid var(--color-orange-primary);
}

.kit-extra-details .grid {
    align-items: center;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-titles);
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-item i {
    color: var(--color-orange-primary);
    font-size: 1.5rem;
    width: 32px;
    text-align: center;
    display: inline-block;
    transition: transform var(--transition-fast) ease;
}

.detail-item:hover i {
    transform: scale(1.15);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-section {
    background: linear-gradient(180deg, var(--color-bg-panel) 0%, var(--color-bg-dark) 100%);
}

.gallery-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

@media(min-width: 576px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media(min-width: 992px) {
    .gallery-grid {
        column-count: 3;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: var(--border-glass);
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    transform: translateZ(0); /* Fix Safari flicker */
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(7, 15, 8, 0) 40%, rgba(7, 15, 8, 0.9) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.gallery-icon {
    align-self: center;
    background: var(--color-orange-primary);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: auto;
    transform: scale(0.6);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px var(--color-orange-glow);
}

.gallery-title {
    font-family: var(--font-titles);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.02);
}

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

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

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

/* ==========================================================================
   Registration Section
   ========================================================================== */
.registration-section {
    background-color: var(--color-bg-dark);
}

.registration-grid {
    align-items: center;
}

.registration-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.registration-info p {
    color: var(--color-text-muted);
}

.warning-text {
    background: rgba(241, 196, 15, 0.1);
    border-left: 3px solid var(--color-warning);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 2rem 0;
}

.warning-text i {
    color: var(--color-warning);
    font-size: 1.2rem;
    margin-top: 2px;
}

.registration-info .contact-card {
    padding: 1.8rem;
}

.registration-info .contact-card h4 {
    margin-bottom: 1rem;
    color: var(--color-orange-light);
}

.registration-info .contact-card ul {
    list-style: none;
}

.registration-info .contact-card ul li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.registration-info .contact-card ul li:last-child {
    margin-bottom: 0;
}

.registration-info .contact-card ul li i {
    color: var(--color-orange-primary);
    font-size: 1.1rem;
    margin-top: 4px;
}

/* Steps styling */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-card {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 1.2rem;
    transition: var(--transition-smooth);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 87, 34, 0.2);
    transform: translateX(5px);
}

.step-num {
    background: linear-gradient(135deg, var(--color-orange-light) 0%, var(--color-orange-primary) 100%);
    color: var(--color-text-pure);
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px var(--color-orange-glow);
}

.step-body strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
    color: var(--color-text-pure);
}

.step-body p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* CTA Card styling */
.registration-cta-card {
    border-top: 4px solid var(--color-orange-primary);
}

.cta-icon {
    font-size: 3.5rem;
    color: var(--color-orange-light);
    margin-bottom: 1.2rem;
    text-shadow: 0 0 15px var(--color-orange-glow);
}

.cta-desc {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-flex;
    gap: 10px;
    font-size: 1.1rem;
}

.physical-info {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.physical-info h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-pure);
}

.physical-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

.physical-info i {
    color: var(--color-orange-primary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background-color: var(--color-bg-panel);
}

.contact-cards {
    margin-top: 1rem;
}

.contact-card-item {
    transition: var(--transition-smooth);
}

.contact-card-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 87, 34, 0.25);
}

.contact-card-icon {
    font-size: 2.2rem;
    color: var(--color-orange-primary);
    margin-bottom: 1.5rem;
}

.contact-card-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-card-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.contact-link {
    display: block;
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-pure);
    margin-bottom: 0.5rem;
}

.contact-link i {
    color: var(--color-orange-primary);
}

a.contact-link:hover {
    color: var(--color-orange-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--color-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem 0;
}

.footer-logo {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.85rem;
    color: var(--color-text-dark);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.social-icons a:hover {
    background: var(--color-orange-primary);
    color: var(--color-text-pure);
    border-color: var(--color-orange-primary);
    box-shadow: 0 4px 15px var(--color-orange-glow);
    transform: translateY(-3px);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 5, 0.97);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2002;
}

.lightbox-close:hover {
    color: var(--color-orange-primary);
    transform: scale(1.1);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 50px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 2001;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--color-orange-primary);
    border-color: var(--color-orange-primary);
    box-shadow: 0 0 15px var(--color-orange-glow);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    border: var(--border-glass);
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
    margin-top: 1rem;
    font-family: var(--font-titles);
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

@media(max-width: 768px) {
    .lightbox-prev {
        left: 0.5rem;
    }
    .lightbox-next {
        right: 0.5rem;
    }
    .lightbox-content {
        max-width: 95%;
    }
}

/* ==========================================================================
   Awards Section
   ========================================================================== */
.awards-section {
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-panel) 100%);
}

.awards-categories-grid {
    margin-bottom: 3rem;
}

.category-panel {
    border-left: 4px solid var(--color-orange-primary);
}

.panel-icon {
    font-size: 2.5rem;
    color: var(--color-orange-primary);
    margin-bottom: 1rem;
}

.panel-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.categories-list-inline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cat-badge {
    background: rgba(255, 87, 34, 0.08);
    border: 1px solid rgba(255, 87, 34, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.cat-badge strong {
    color: var(--color-orange-light);
}

.awards-tables-grid {
    margin-bottom: 3rem;
}

.awards-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card-title {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title i {
    font-size: 1.6rem;
}

.card-subtitle-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: -1rem;
}

.distance-block h4 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--color-orange-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.awards-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.awards-table th,
.awards-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.awards-table th {
    font-family: var(--font-titles);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-dark);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.awards-table td strong {
    color: var(--color-orange-light);
}

.awards-rules-panel {
    border-top: 4px solid var(--color-orange-primary);
}

.rules-block h3,
.summary-block h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-pure);
}

.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.rules-list li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.rule-text {
    flex: 1;
    text-align: justify;
}

.rules-list li i {
    font-size: 1.1rem;
    margin-top: 3px;
}

.rules-list li i.text-danger {
    color: var(--color-error);
}

.rules-list li i:not(.text-danger) {
    color: var(--color-orange-primary);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.summary-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.summary-num {
    font-family: var(--font-titles);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-orange-primary);
    line-height: 1;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 10px var(--color-orange-glow);
}

.summary-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media(max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ==========================================================================
   Sponsors Grid Section
   ========================================================================== */
.sponsors-section {
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-panel) 100%);
    border-top: var(--border-glass);
    padding: 6rem 0;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Base Sponsor Card styles */
.sponsor-card {
    background: #ffffff; /* Solid white background to blend JPEG logo backgrounds perfectly */
    border-radius: var(--border-radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    overflow: hidden;
    width: 100%;
}

/* Mobile defaults */
.sponsor-card.rect,
.sponsor-card.square {
    height: 100px;
}

.sponsor-logo {
    max-width: 85%;
    max-height: 80%;
    object-fit: contain; /* Enforces uniform scaling and prevents stretching */
    display: block;
    filter: none; /* Full color by default */
    opacity: 1;
    transition: var(--transition-smooth);
}

.sponsor-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-orange-primary);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.25);
}

.sponsor-card:hover .sponsor-logo {
    transform: scale(1.05); /* Subtle zoom on hover */
}

/* Empty placeholder cards */
.sponsor-card.empty {
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    box-shadow: none;
    pointer-events: none; /* No hover interactions for empty spots */
}

/* Join Card styling */
.sponsor-card.join-card {
    background: rgba(255, 87, 34, 0.03);
    border: 1px dashed rgba(255, 87, 34, 0.25);
}

.sponsor-card.join-card:hover {
    background: rgba(255, 87, 34, 0.06);
    border-color: var(--color-orange-primary);
}

.join-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
}

.join-content span {
    font-family: var(--font-titles);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

/* Tablet layout: 2 columns */
@media (min-width: 600px) and (max-width: 991px) {
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sponsor-card.rect,
    .sponsor-card.square {
        height: 120px;
    }
}

/* Desktop layout: Mixed grid with 4 columns per row */
@media (min-width: 992px) {
    .sponsors-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 1.8rem;
    }
    
    .sponsor-card.rect {
        aspect-ratio: 2 / 1;
        height: auto;
        padding: 1rem 2rem;
    }
    
    .sponsor-card.square {
        aspect-ratio: 1 / 1;
        height: auto;
        padding: 1.2rem;
    }
    
    /* Make square logos larger in square cards */
    .sponsor-card.square .sponsor-logo {
        max-width: 88%;
        max-height: 85%;
    }
}

/* ==========================================================================
   Videos / Invitaciones Section
   ========================================================================== */
.videos-section {
    background: var(--color-bg-dark);
}

.videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media(min-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.video-card {
    background: var(--color-bg-panel);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-orange-primary);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 177.77%; /* 9:16 Aspect Ratio */
    background-color: #000000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* No pointer-events blockage since iframe is dynamically loaded on click */
}

/* Play Overlay on top of iframe */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.play-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--color-orange-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    padding-left: 4px;
    box-shadow: 0 4px 20px rgba(229, 87, 31, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.video-card:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.video-card:hover .play-btn {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(229, 87, 31, 0.75);
}

.video-info {
    padding: 1.5rem;
    text-align: center;
}

.video-info h3 {
    font-size: 1.1rem;
    color: var(--color-text-pure);
    margin-bottom: 0.5rem;
    font-family: var(--font-titles);
}

.video-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

@media(max-width: 767px) {
    .videos-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        padding: 0 1rem;
        margin: 0;
    }
    
    .video-card {
        width: 100%;
        max-width: 320px; /* Centered, clean vertical card */
    }
}

/* ==========================================================================
   Institutional Logos Dispersion
   ========================================================================== */
.hero-institutions {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.inst-label {
    font-size: 0.75rem;
    font-family: var(--font-titles);
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    font-weight: 800;
}

.inst-logos {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    height: 65px; /* Increased for professional visibility */
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
    opacity: 0.95;
    transition: var(--transition-smooth);
}

.hero-logo:hover {
    transform: scale(1.08);
    opacity: 1;
}

.event-institutions-logos {
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.inst-seal {
    height: 80px; /* Increased for professional visibility */
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    opacity: 0.95;
    transition: var(--transition-smooth);
}

.inst-seal:hover {
    transform: scale(1.08);
    opacity: 1;
}

.contact-card-icon.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03) !important; /* Fully transparent/translucent background */
    border: 1px solid rgba(255, 255, 255, 0.12); /* Glass border */
    padding: 0.8rem;
    border-radius: 50%;
    width: 90px; /* Wider circle for proportions */
    height: 90px;
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.contact-logo {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.contact-card-item:hover .contact-card-icon.logo-icon {
    border-color: var(--color-orange-primary);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05) !important;
}

.footer-institutions {
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 2.5rem;
}

.footer-logo-img {
    height: 70px; /* Increased for professional visibility */
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
    transition: var(--transition-smooth);
    opacity: 0.9;
}

.footer-logo-img:hover {
    transform: scale(1.08);
    opacity: 1;
}

@media(max-width: 576px) {
    .hero-institutions {
        margin-top: 2.5rem;
    }
    .inst-logos {
        gap: 2rem;
    }
    .hero-logo {
        height: 48px;
    }
    .event-institutions-logos {
        gap: 2rem;
    }
    .inst-seal {
        height: 58px;
    }
    .contact-card-icon.logo-icon {
        width: 80px;
        height: 80px;
    }
    .footer-institutions {
        gap: 2.2rem;
    }
    .footer-logo-img {
        height: 48px;
    }
}

/* ==========================================================================
   Social Purpose Section
   ========================================================================== */
.purpose-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #050d06 0%, #08120a 100%);
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.purpose-grid {
    align-items: stretch;
    gap: 5rem;
}

.purpose-content .lead-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-orange-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.purpose-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.cause-items {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 2.5rem;
}

.cause-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.cause-icon {
    background: rgba(229, 87, 31, 0.1);
    border: 1px solid rgba(229, 87, 31, 0.2);
    color: var(--color-orange-primary);
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(229,87,31,0.1);
}

.cause-text strong {
    font-family: var(--font-titles);
    font-size: 1.15rem;
    color: var(--color-text-pure);
    display: block;
    margin-bottom: 0.3rem;
}

.cause-text p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.purpose-visual {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

.purpose-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-premium);
    background: rgba(7, 15, 8, 0.2);
    transition: var(--transition-smooth);
}

.purpose-image-container:hover {
    transform: scale(1.02);
    border-color: var(--color-orange-primary);
}

.purpose-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.purpose-image-container:hover .purpose-img {
    filter: brightness(1.05);
}

.logo-overlay-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(7, 15, 8, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: floatBadge 5s ease-in-out infinite;
}

.logo-overlay-badge img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(229,87,31,0.4));
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media(max-width: 991px) {
    .purpose-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .purpose-visual {
        order: -1; /* Display visual on top in tablet/mobile */
        height: auto;
    }
    .purpose-image-container {
        aspect-ratio: 4/3;
        min-height: 320px;
        max-width: 100%;
    }
    .logo-overlay-badge {
        width: 65px;
        height: 65px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* ==========================================================================
   Animations & Scroll Reveal Classes
   ========================================================================== */
.reveal, .reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease;
}

.reveal {
    transform: translateY(30px);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.active, .reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Typography Alignment Adjustments
   ========================================================================== */
.event-info-content p,
.purpose-content p,
.route-description,
.registration-info p,
.step-body p,
.cause-text p {
    text-align: justify;
    text-justify: inter-word;
}
