:root {
    --primary-color: #ff4500;
    --primary-dark: #cc3700;
    --bg-dark: #0f1115;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f5f5f5;
    --text-muted: #a0aab2;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/logo.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 50px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}
.nav-links .nav-social {
    display: inline-flex;
    align-items: center; margin-left: 20px;
}
.nav-links .nav-social svg { transition: transform 0.3s; }
.nav-links .nav-social:hover svg { transform: scale(1.1); }

.hamburger {
    display: none;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    padding: 0 50px;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-btn, .submit-btn, .join-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.cta-btn:hover, .submit-btn:hover, .join-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.2);
}

/* Sections Base */
section {
    padding: 100px 50px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s;
}
.event-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 69, 0, 0.3);
}

.event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 15px;
}

.event-date {
    background: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    font-family: var(--font-heading);
    min-width: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.event-date .day { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-date .month { display: block; font-size: 0.9rem; }

.event-info {
    padding: 30px;
}
.event-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.event-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: #15181e;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal.show .modal-content {
    transform: scale(1);
}
.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.modal h3 {
    margin-bottom: 25px;
    font-size: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-family: var(--font-body);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.gallery-item {
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background-color: #07080a; /* Fondo muy oscuro para cuando la foto no llena todo */
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mostrar la foto entera sin recortar */
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact */
.contact-container {
    display: flex;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.contact-form { flex: 1.5; }
.contact-info { flex: 1; }
.contact-info h3 { font-size: 2rem; margin-bottom: 20px; }
.contact-info p { color: var(--text-muted); margin-bottom: 30px; line-height: 1.6; }
.social-links span { display: block; margin-bottom: 15px; color: var(--text-main); font-size: 1.05rem; }
.social-icons-container { display: flex; gap: 20px; margin-top: 25px; }
.social-icon { display: flex; align-items: center; gap: 8px; color: var(--text-main); text-decoration: none; font-size: 1.1rem; transition: color 0.3s, transform 0.3s; }
.social-icon:hover { color: var(--primary-color); transform: translateY(-3px); }

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: #0a0c0f;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 900px) {
    .contact-container { flex-direction: column; }
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    section { padding: 60px 20px; }
    .navbar { padding: 20px; }
    .hero { padding: 0 20px; }
    .hero h1 { font-size: 2.8rem; }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 65px;
        flex-direction: column;
        background: rgba(15, 17, 21, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links.active { right: 0; }
    .nav-links a { margin: 15px 0; display: block; }
    .hamburger { display: block; }
}
/* Lightbox Modal */
#lightbox-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}
#lightbox-modal.show {
    display: flex;
    opacity: 1;
}
#lightbox-modal img {
    max-width: 90%;
    max-height: 90vh;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0,0,0,1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
}
#lightbox-modal.show img {
    transform: scale(1);
}
.close-lightbox {
    position: absolute;
    top: 30px; right: 40px;
    color: #fff;
    font-size: 3.5rem;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    z-index: 2001;
    transition: transform 0.3s, color 0.3s;
}
.close-lightbox:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .close-lightbox { top: 20px; right: 20px; font-size: 2.5rem; }
}
