/* Modern CSS Variables & Reset */
:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050507;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    --primary: #f97316; /* Vibrant Orange */
    --primary-hover: #ea580c;
    --secondary: #3b82f6; /* Electric Blue */
    --accent: #8b5cf6; /* Purple */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 800;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.title-line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

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

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #e64a19);
    color: white;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 2000;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    background: url('https://images.unsplash.com/photo-1516091219602-0dbfcb212354?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,7,0.7) 0%, rgba(10,10,15,0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: -2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-direction: column; /* Apilar siempre como en móvil */
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-main);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite ease-in-out;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Intro Animations */
.animate-on-load { opacity: 0; animation: fadeUp 1s forwards cubic-bezier(0.16, 1, 0.3, 1); }
.animate-on-load-delay { opacity: 0; animation: fadeUp 1s 0.2s forwards cubic-bezier(0.16, 1, 0.3, 1); }
.animate-on-load-delay-2 { opacity: 0; animation: fadeUp 1s 0.4s forwards cubic-bezier(0.16, 1, 0.3, 1); }

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

/* Sections Global */
section {
    padding: 8rem 0;
}

/* About Section */
.about {
    background-color: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    padding: 2.5rem 2.5rem 2rem;
    text-align: left;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(249, 115, 22, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

/* Large decorative number in the top-right */
.card-number {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(139, 92, 246, 0.12));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    user-select: none;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.about-card:hover .card-number {
    opacity: 0.6;
    transform: scale(1.05);
}

/* SVG icon accent */
.card-icon-svg {
    width: 48px;
    height: 48px;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.card-icon-svg svg {
    width: 100%;
    height: 100%;
}

.about-card:hover .card-icon-svg {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(139, 92, 246, 0.2));
    border-color: rgba(249, 115, 22, 0.45);
    transform: rotate(-5deg) scale(1.1);
}

.about-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Bottom accent line */
.card-line {
    height: 2px;
    width: 50px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-top: 0.75rem;
    transition: width 0.4s ease;
}

.about-card:hover .card-line {
    width: 100%;
}

/* Camps Section */
.camps {
    background-color: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.camps::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.camps .container {
    position: relative;
    z-index: 1;
}

.camp-showcase {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 3rem;
}

@media (min-width: 900px) {
    .camp-showcase {
        flex-direction: row;
    }
}

.camp-image {
    position: relative;
    flex: 1;
    min-height: 300px;
    overflow: hidden;
}

.camp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.camp-showcase:hover .camp-image img {
    transform: scale(1.05);
}

.camp-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.camp-info {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.camp-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.camp-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.detail-item .icon {
    background: rgba(255,255,255,0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.camp-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Countdown Timer */
.countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.75rem 1.2rem;
    min-width: 70px;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.countdown-block:hover {
    border-color: rgba(249, 115, 22, 0.4);
    background: rgba(249, 115, 22, 0.07);
}

.countdown-num {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

.countdown-separator {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 1.2rem;
    animation: blink-sep 1s step-end infinite;
}

@keyframes blink-sep {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.1; }
}

/* Hero Countdown */
.hero-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.countdown-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.countdown-item-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    min-width: 55px;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.countdown-item-hero:hover {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.15);
    transform: translateY(-2px);
}

.countdown-num-hero {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-label-hero {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

.separator-hero {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.6;
    margin-bottom: 0.8rem;
    animation: blink-sep 1s step-end infinite;
}

.countdown-ended {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive Hero Countdown */
@media (max-width: 480px) {
    .countdown-item-hero {
        min-width: 45px;
        padding: 0.4rem 0.6rem;
    }
    
    .countdown-num-hero {
        font-size: 1.2rem;
    }
    
    .countdown-label-hero {
        font-size: 0.5rem;
    }
    
    .separator-hero {
        font-size: 1rem;
    }
}

/* Team Section */
.team {
    background-color: var(--bg-dark);
}

.team-marquee {
    display: flex;
    overflow: hidden;
    position: relative;
    /* This creates a fade out effect on the left and right edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 2rem 0;
    margin-top: 2rem;
}

.team-marquee-content {
    display: flex;
    gap: 4rem;
    padding-right: 4rem; /* Must match the gap distance for seamless loop */
    animation: scroll-left-team 30s linear infinite;
}

.team-marquee:hover .team-marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-left-team {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 160px;
    transition: var(--transition-smooth);
}

.team-member:hover {
    transform: translateY(-8px);
}

.team-member img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.2rem;
    border: 3px solid var(--primary);
    padding: 4px;
    background: var(--glass-bg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

.team-member:hover img {
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4);
    border-color: var(--secondary);
}

.team-member h4 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.team-member p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Animated Banner / Marquee */
.banner-cta {
    padding: 3rem 0;
    background: var(--primary);
    color: white;
    overflow: hidden;
    position: relative;
    transform: rotate(-2deg) scale(1.05);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
    z-index: 10;
}

.marquee {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: scroll-left 20s linear infinite;
    padding-left: 2rem;
}

.marquee-content span {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}

.marquee-content .separator {
    margin: 0 2rem;
    font-weight: 300;
    opacity: 0.5;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Footer */
.footer {
    background-color: #000;
    padding-top: 6rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Design */
@media (max-width: 900px) {
    .camp-info {
        padding: 2.5rem;
    }
    .camp-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: rgba(5, 5, 7, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 3rem 0;
        gap: 2rem;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--glass-border);
        z-index: 2000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .section-title h2 {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .socials {
        justify-content: center;
    }
}

/* /* ===================================================
   Gallery Section
   =================================================== */
.gallery {
    background-color: var(--bg-darker);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.gallery .container {
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
}

.gallery-item--tall { grid-row: span 2; height: 615px; }
.gallery-item--wide { grid-column: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .gallery-item--wide { grid-column: span 1; }
    .gallery-item--tall { grid-row: span 1; height: 300px; }
}

.gallery-item:hover::after {
    border-color: rgba(249, 115, 22, 0.4);
}

/* Responsive Gallery */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 160px;
        gap: 8px;
    }

    .gallery-item--wide {
        grid-column: span 2;
    }
}
