/* ==========================================================================
   ESTILOS GENERALES Y CONFIGURACIÓN BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
    line-height: 1.4;
}

.layout-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.main-content-wrapper {
    flex: 1;
    max-width: 1200px;
    padding: 30px;
    margin: 0 auto;
}

/* ==========================================================================
   BARRA LATERAL DE NAVEGACIÓN (SIDEBAR IZQUIERDA)
   ========================================================================== */
.sidebar-nav {
    width: 280px;
    background-color: #141414;
    border-right: 2px solid #1a1a1a;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.brand .logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #43ff64;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.secciones-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-link {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.menu-link:hover, .menu-link.active {
    color: #43ff64;
    background-color: #1a1a1a;
}

/* --- MENÚ DESPLEGABLE VERTICAL DE TUTORIALES --- */
.dropdown-vertical {
    position: relative;
    width: 100%;
}

.dropdown-vertical-btn {
    width: 100%;
    background: none;
    border: none;
    color: #aaaaaa;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dropdown-vertical:hover .dropdown-vertical-btn {
    color: #43ff64;
    background-color: #1a1a1a;
}

.arrow-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-vertical:hover .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-vertical-content {
    display: none;
    background-color: #1a1a1a;
    border-radius: 6px;
    margin-top: 5px;
    overflow: hidden;
    padding-left: 10px;
}

.dropdown-vertical-content a {
    color: #cccccc;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.dropdown-vertical-content a:hover {
    color: #43ff64;
}

.dropdown-vertical:hover .dropdown-vertical-content {
    display: block;
}

/* ==========================================================================
   ESTILOS DEL SUBMENÚ DE SLOTS (CORREGIDOS)
   ========================================================================== */
.submenu-container { width: 100%; }
.submenu-btn { width: 100%; background: none; border: none; color: #cccccc; padding: 10px 15px; cursor: pointer; text-align: left; font-size: 0.9rem; font-family: inherit; display: flex; justify-content: space-between; align-items: center; }
.submenu-btn:hover { color: #43ff64; background-color: #222222; }
.submenu-content { display: none; background-color: #121212; padding-left: 15px; }
.submenu-content a { color: #aaaaaa; padding: 8px 15px; text-decoration: none; display: block; font-size: 0.85rem; transition: color 0.2s ease; }
.submenu-content a:hover { color: #43ff64; }

/* ==========================================================================
   SECCIÓN HERO CON VIDEO ANIMADO DE FONDO
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 125%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.hero-content .subtitle {
    font-size: 1.1rem;
    color: #43ff64;
    margin-bottom: 25px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.cta-button {
    display: inline-block;
    background-color: #43ff64;
    color: #000000;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(67, 255, 100, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(67, 255, 100, 0.5);
}

/* ==========================================================================
   ESTRUCTURA DUAL (STREAM + CHAT KICK)
   ========================================================================== */
.main-split-container {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.video-block h2, .chat-block h2 {
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stream-container, .chat-container-web {
    background-color: #141414;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-container {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.chat-container-web {
    height: 100%;
    min-height: 400px;
}

.stream-placeholder {
    text-align: center;
    color: #666666;
}

.stream-placeholder p {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* ==========================================================================
   TABLAS DE CONTENIDO (LEADERBOARD / METAS)
   ========================================================================== */
.content-section {
    margin-bottom: 50px;
}

.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.section-desc {
    color: #888888;
    font-size: 0.95rem;
}

.table-container {
    background-color: #141414;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.gamdom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.gamdom-table th {
    background-color: #1a1a1a;
    color: #888888;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gamdom-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #1a1a1a;
    color: #cccccc;
}

.gamdom-table tr:last-child td {
    border-bottom: none;
}

.table-prize {
    color: #43ff64;
    font-weight: bold;
}

/* ==========================================================================
   GRILLA DE PROMOCIONES / TARJETAS
   ========================================================================== */
.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.promo-card {
    background-color: #141414;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.promo-card i {
    font-size: 2rem;
    color: #43ff64;
    margin-bottom: 15px;
}

.promo-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.promo-card p {
    color: #888888;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-btn {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #333333;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.card-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.giveaway-card {
    border-color: #43ff64;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #43ff64;
    color: #000000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

/* ==========================================================================
   SECCIÓN SOCIAL / SECCIÓN DE REDES
   ========================================================================== */
.social-section {
    background-color: #141414;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin-top: 20px;
}

.social-section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.social-btn:hover {
    opacity: 0.9;
}

.social-btn.kick { background-color: #53fc18; color: #000000; }
.social-btn.discord { background-color: #5865F2; }
.social-btn.telegram { background-color: #0088cc; }

/* ==========================================================================
   DISEÑO RESPONSIVO ADAPTADO (MEDIA QUERIES PARA CELULARES)
   ========================================================================== */
@media (max-width: 992px) {
    .layout-container {
        flex-direction: column;
    }
    
    .sidebar-nav {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
        gap: 15px;
        border-right: none;
        border-bottom: 2px solid #1a1a1a;
    }

    .secciones-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .main-split-container {
        grid-template-columns: 1fr;
    }
    
    .chat-container-web {
        height: 350px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .secciones-menu {
        flex-direction: column;
        width: 100%;
    }

    .dropdown-vertical-content {
        position: relative;
        width: 100%;
    }

    .main-content-wrapper {
        padding: 15px;
    }

    .hero-section {
        height: 350px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }
}