/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
:root {
    --bg-dark: #0a0a0c;
    --bg-card: #15151a;
    --ozen-purple: #5c00a3;
    --ozen-purple-glow: #8e2de2;
    --alpha-red: #d90429;
    --beta-blue: #0077b6;
    --omega-orange: #f77f00;
    --text-main: #f8f9fa;
    --text-muted: #8d99ae;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. NAVEGACIÓN
   ========================================= */
nav {
    background: rgba(10, 10, 12, 0.95);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--ozen-purple);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}

.logo span {
    color: var(--ozen-purple-glow);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--ozen-purple-glow);
}

/* =========================================
   3. SECCIONES GENERALES
   ========================================= */
section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--ozen-purple);
    margin: 10px auto 0;
    box-shadow: 0 0 10px var(--ozen-purple-glow);
}

.section-title.left-align {
    text-align: left;
}

.section-title.left-align::after {
    margin: 10px 0 0 0;
}

/* =========================================
   4. INICIO (HERO, PARTIDOS Y SOCIAL)
   ========================================= */
.hero-section {
    background: linear-gradient(rgba(10, 10, 12, 0.85), rgba(10, 10, 12, 0.98)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1920&q=80') center/cover;
    padding: 8rem 5%;
    border-bottom: 1px solid #1a1a24;
}

.hero-content {
    max-width: 800px;
}

.badge {
    background: var(--ozen-purple);
    color: #fff;
    padding: 5px 15px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-content h1 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-primary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--ozen-purple);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--ozen-purple);
    box-shadow: 0 0 15px var(--ozen-purple-glow);
}

.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Bloque Social Estático */
.social-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-card {
    background: var(--bg-card);
    border: 1px solid #333;
    padding: 2rem;
    border-left: 4px solid var(--ozen-purple);
}

.social-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: #fff;
}

.social-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-social {
    display: inline-block;
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
    font-size: 0.9rem;
}

.x-btn {
    background: #000;
    border: 1px solid #333;
}

.x-btn:hover { background: #111; border-color: #fff; }

.discord-btn {
    background: #5865F2; 
}

.discord-btn:hover { background: #4752C4; }

/* =========================================
   5. SISTEMA DE PARTIDOS
   ========================================= */
#partidos {
    background: #0d0d12;
}

.matches-container {
    max-width: 900px;
    margin: 0 auto;
}

.match-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--ozen-purple);
    transition: background 0.3s;
}

.match-row:hover { background: #1a1a24; }

.match-team {
    font-size: 1.2rem;
    font-weight: 800;
    width: 25%;
}

.match-team.opponent { text-align: right; color: var(--text-muted); }
.match-team.ozen { color: #fff; }

.match-score {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: #000;
    padding: 5px 20px;
    border-radius: 5px;
}

.match-meta {
    text-align: center;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 8px;
    white-space: nowrap;
}

.result-win { color: #4cc9f0; }
.result-loss { color: #e63946; }

/* =========================================
   6. ROSTERS Y TARJETAS INTERACTIVAS
   ========================================= */
.roster-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-tab {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 2px solid transparent;
    padding: 10px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.btn-tab.active[data-target="alpha"] { border-color: var(--alpha-red); color: #fff; box-shadow: 0 0 15px rgba(217, 4, 41, 0.4); }
.btn-tab.active[data-target="beta"] { border-color: var(--beta-blue); color: #fff; box-shadow: 0 0 15px rgba(0, 119, 182, 0.4); }
.btn-tab.active[data-target="omega"] { border-color: var(--omega-orange); color: #fff; box-shadow: 0 0 15px rgba(247, 127, 0, 0.4); }

.roster-grid {
    display: none;
}

.roster-grid.active {
    display: block; 
    animation: fadeIn 0.5s ease;
}

.staff-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.staff-section .player-card {
    width: 100%;
    max-width: 280px; 
}

.players-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.player-card {
    background: #1e1e24;
    border: 1px solid #333;
    border-top: 4px solid var(--ozen-purple);
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    z-index: 1;
    
    width: 240px;
    flex-grow: 0;
    flex-shrink: 0;
    aspect-ratio: 3 / 4; 
}

#alpha .player-card { border-top-color: var(--alpha-red); }
#beta .player-card { border-top-color: var(--beta-blue); }
#omega .player-card { border-top-color: var(--omega-orange); }

.player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: filter 0.4s ease;
}

.player-card:hover,
.player-card:active {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.90);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0; 
    transform: scale(0.9);
    transition: all 0.3s ease-in-out;
}

.player-card:hover .player-overlay,
.player-card:active .player-overlay {
    opacity: 1;
    transform: scale(1);
}

.overlay-name {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.overlay-role {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-align: center; 
}

#alpha .overlay-role { color: var(--alpha-red); }
#beta .overlay-role { color: var(--beta-blue); }
#omega .overlay-role { color: var(--omega-orange); }

.rank-info {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.rank-info p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

.rank-info span {
    color: var(--text-muted);
    font-weight: 400;
}

/* === MOSAICO INTERNO PARA SUPLENTE (4 FOTOS EN 1 CARTA) === */
.sub-mosaic {
    width: 100%;
    height: 100%; 
    position: absolute;
    top: 0;
    left: 0;
    
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    background: #000;
}

.sub-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.single-sub-section {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
}

/* =========================================
   7. SECCIÓN TIENDA
   ========================================= */
#tienda {
    background: linear-gradient(0deg, rgba(10,10,12,1) 0%, rgba(92,0,163,0.1) 100%);
    text-align: center;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.store-banner {
    border: 2px dashed var(--ozen-purple);
    padding: 4rem;
    background: rgba(0,0,0,0.5);
    width: 80%;
    max-width: 800px;
}

.store-banner h2 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--text-muted);
    text-shadow: 0 0 10px rgba(92,0,163,0.5);
}

/* =========================================
   8. ANIMACIONES Y RESPONSIVE
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    
    .match-row { 
        flex-direction: column; 
        gap: 10px; 
        text-align: center; 
    }
    
    .match-team, .match-meta { 
        width: 100%; 
        text-align: center !important; 
    }
    
    .match-meta {
        margin: 10px 0;
    }
    
    .btn-tab { 
        padding: 10px; 
        font-size: 1rem; 
    }
}

/* === ESTADO: PRÓXIMAMENTE (ROSTERS EN DESARROLLO) === */
.roster-coming-soon {
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(21, 21, 26, 0.4);
    border: 2px dashed #333;
    border-radius: 8px;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

.roster-coming-soon h2 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 10px;
    color: #fff;
}

.roster-coming-soon p {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Resplandor Azul para Beta */
.beta-lock {
    border-color: rgba(0, 119, 182, 0.5);
}
.beta-lock h2 {
    text-shadow: 0 0 20px rgba(0, 119, 182, 0.8);
}

/* Resplandor Naranja para Omega */
.omega-lock {
    border-color: rgba(247, 127, 0, 0.5);
}
.omega-lock h2 {
    text-shadow: 0 0 20px rgba(247, 127, 0, 0.8);
}