* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: #ffffff;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzUiIGhlaWdodD0iMzUiIHZpZXdCb3g9IjAgMCAzNSAzNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUgNUgxMlYzMEg1VjVaIiBmaWxsPSIjMDAwIi8+CjxwYXRoIGQ9Ik0xNSA1TDE3LjUgMTcuNUwyNSA1SDMwTDIwIDMwTDE1IDMwTDUgNUgxNVoiIGZpbGw9IiMwMDAiLz4KPHBhdGggZD0iTTI1IDVIMzBWMzBIMjVWNVoiIGZpbGw9IiMwMDAiLz4KPC9zdmc+');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(-50px, -50px); }
    100% { transform: translate(0, 0); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Team Section */
.team-section {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 1px;
    color: #ffffff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.team-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.team-role {
    font-size: 1rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.team-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    text-align: center;
}

.cta-button {
    cursor: pointer;
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: inherit;
    font-size: 1rem;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* --- ESTILOS PARA LA VENTANA MODAL DEL FORMULARIO --- */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #1e1e1e;
    margin: 10% auto;
    padding: 2rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: slideInUp 0.4s ease-out;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

#contactForm textarea {
    resize: vertical;
}

#contactForm button[type="submit"]:disabled {
    background: #555;
    cursor: not-allowed;
}


#form-message {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
}

/* Keyframes para las animaciones del modal */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- ESTILOS CORREGIDOS Y MEJORADOS PARA LA SECCIÓN DE CONTACTO --- */

/* Aumentamos el espacio inferior del título principal de esta sección */
.cta-section .section-title {
    margin-bottom: 4rem;
}

.cta-text-container {
    display: flex;
    justify-content: center;
    gap: 4rem; /* Más espacio horizontal entre columnas */
    max-width: 950px;
    margin: 0 auto 3rem auto; /* Más espacio antes del mensaje final */
    text-align: left;
}

.cta-column {
    flex: 1; 
}

.cta-column h3 {
    font-size: 1.4rem; /* Un poco más grande */
    margin-bottom: 1.5rem; /* Más espacio entre el subtítulo y el párrafo */
    color: #ffffff;
    border-left: 3px solid #5865f2; /* Color Discord Blue */
    padding-left: 15px;
}

.cta-column p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8; /* Un poco más de interlineado */
}

.cta-final-message {
    font-size: 1.2rem; 
    margin-bottom: 2.5rem; /* Más espacio antes del botón */
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* Hacemos que en móvil las columnas se pongan una sobre otra */
@media (max-width: 768px) {
    .cta-text-container {
        flex-direction: column;
        gap: 2.5rem; /* Aumentamos el espacio vertical en móvil */
        text-align: center;
    }

    .cta-column h3 {
        border-left: none;
        padding-left: 0;
        border-bottom: 2px solid #5865f2; /* Le ponemos el borde abajo en móvil */
        display: inline-block; /* Para que el borde se ajuste al texto */
        padding-bottom: 8px;
    }
    
    /* También ajustamos la grilla de estadísticas en móvil */
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* --- ESTILOS PARA LOS LOGOS AÑADIDOS --- */

/* Estilo para el logo en la barra de navegación */
.navbar .logo-img {
    height: 40px; /* Tamaño del logo */
    width: auto;
    margin-right: 10px; /* Espacio entre el logo y el texto "EQUIPO" */
    transition: transform 0.3s ease;
}

.navbar .logo:hover .logo-img {
    transform: scale(1.1); /* Efecto de zoom al pasar el ratón */
}

/* Estilo para el logo en la sección Hero */
.hero .hero-logo-img {
    height: 90px; /* Tamaño del logo grande */
    width: auto;
    margin-bottom: 2rem; /* Espacio debajo del logo */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); /* Sombra para que destaque */
}

/* Ajustes para móvil */
@media (max-width: 768px) {
    .navbar .logo-img {
        height: 35px;
    }
    .hero .hero-logo-img {
        height: 70px;
    }
}