:root {
    --bg-dark: #121212;
    --bg-card: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    --accent: #d1d1d1; 
    --accent-dark: #8a8a8a;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --glass: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle, #2c2c2c 0%, #121212 100%);
    padding: 20px;
}

.logo-main {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.1));
    animation: fadeInScale 1.5s ease-out;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.hero h1 { 
    font-size: clamp(1.8rem, 8vw, 3.5rem); 
    font-weight: 800; 
    letter-spacing: 3px; 
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Nav --- */
nav {
    position: sticky; top: 0; background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px); padding: 15px 8%;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #333; z-index: 1000;
}

.menu-toggle { display: none; color: white; font-size: 1.5rem; cursor: pointer; }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a, .modal-trigger {
    color: var(--text-light); text-decoration: none; font-weight: 600;
    font-size: 0.75rem; cursor: pointer; transition: 0.3s; background: none; border: none;
    text-transform: uppercase; letter-spacing: 1px;
}
.nav-links a:hover, .modal-trigger:hover { color: var(--accent); }

.btn-join { 
    border: 1px solid var(--accent) !important; 
    padding: 8px 18px; 
    border-radius: 20px; 
}
.btn-join:hover { background: var(--accent); color: #000 !important; }

.lang-switcher { display: flex; align-items: center; background: var(--glass); padding: 5px 15px; border-radius: 30px; border: 1px solid #444; }
.lang-btn { background: none; border: none; color: var(--text-gray); font-size: 0.75rem; font-weight: 800; cursor: pointer; }
.lang-btn.active { color: var(--text-light); }

@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(18, 18, 18, 0.98); flex-direction: column; padding: 30px;
        gap: 20px; display: none; border-bottom: 1px solid #333;
    }
    .nav-links.active { display: flex; }
}

/* --- Secciones --- */
section { padding: 100px 10%; text-align: center; }
@media (max-width: 768px) { section { padding: 60px 5%; } }

h2 { font-size: 2rem; margin-bottom: 40px; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; }

.nosotros-container { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; text-align: left; }
.nosotros-text { flex: 1; min-width: 300px; font-size: 1.1rem; color: var(--text-gray); }
.nosotros-img { 
    flex: 1; min-width: 300px; height: 350px; 
    background: #252525 url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=600') center/cover;
    border-radius: 30px; border: 1px solid #444;
}

/* --- Carrusel --- */
.carousel-container { position: relative; width: 100%; margin-top: 40px; overflow: hidden; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding: 20px 5px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.carousel-track::-webkit-scrollbar { display: none; }

.card { 
    min-width: 280px;
    background: var(--bg-card); padding: 40px 25px; 
    border-radius: 15px; text-align: center; border: 1px solid #333; 
    transition: 0.4s ease; scroll-snap-align: start;
}
.card:hover { border-color: var(--accent); transform: translateY(-10px); }
.card i { font-size: 2.2rem; color: var(--accent); margin-bottom: 15px; }

.carousel-nav { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.nav-btn { background: var(--glass); border: 1px solid #444; color: white; padding: 12px 25px; border-radius: 50px; cursor: pointer; transition: 0.3s; }
.nav-btn:hover { background: var(--accent); color: black; }

/* --- MODALES --- */
.modal-overlay { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.9); 
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 3000; 
    backdrop-filter: blur(8px); 
    padding: 20px; 
}

.modal-content { 
    background: #1a1a1a; 
    padding: 40px; 
    width: 100%; 
    max-width: 500px; 
    border-radius: 20px; 
    border: 1px solid var(--accent); 
    position: relative; 
    max-height: 90vh; 
    overflow-y: auto; 
    text-align: center;
}

/* --- ESTILO SCROLLBAR (SOLUCIÓN BORDE AZUL) --- */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 15px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #444; 
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #00bcd4;
}

.modal-content {
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

/* --- FORMULARIOS Y ELEMENTOS --- */
form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; text-align: left; }
input, textarea, select { padding: 12px; background: #222; border: 1px solid #444; color: white; border-radius: 8px; outline: none; }

#joinForm select {
    background-color: #262626;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    appearance: none;
    cursor: pointer;
}

#joinModal .custom-file-input {
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

#joinModal .custom-file-input input[type="file"]::file-selector-button {
    background: #efefef;
    color: #000;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
}

#joinModal .custom-file-input input[type="file"] {
    color: #b0b0b0;
    font-size: 0.85rem;
    width: 100%;
}

.btn-submit, #btn-send-join { 
    padding: 15px; 
    background: var(--accent); 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
    border-radius: 8px; 
    color: #000; 
    transition: 0.3s; 
    text-transform: uppercase;
}

#btn-send-join:hover {
    background-color: #00bcd4;
    color: #fff;
    transform: translateY(-2px);
}

.close-modal { position: absolute; top: 20px; right: 20px; color: white; cursor: pointer; font-size: 1.5rem; }
.close-modal:hover { color: #ff4d4d; }

/* --- Footer --- */
footer { background: #0a0a0a; padding: 60px 10%; text-align: center; border-top: 1px solid #222; }
.social-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 25px; }
.social-links a { color: var(--text-gray); font-size: 1.8rem; transition: all 0.3s ease; display: inline-block; }
.social-links a:hover { color: var(--accent); transform: scale(1.2) translateY(-5px); }

/* --- Botón Subir --- */
#btnUp {
    position: fixed; bottom: 30px; right: 30px; background: var(--accent);
    color: #121212; width: 50px; height: 50px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; opacity: 0; visibility: hidden; transition: 0.4s; z-index: 2000;
}
#btnUp.show { opacity: 1; visibility: visible; }

/* --- Alertas --- */
.custom-alert {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(247, 245, 245, 0.95);
    color: #ff4d4d;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 99999;
    font-weight: 600;
    border-left: 5px solid #ff4d4d;
    backdrop-filter: blur(10px);
    display: none;
    animation: slideIn 0.4s ease forwards;
}

.custom-alert.hide { animation: slideOut 0.4s ease forwards; }

@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }