/* --- ESTILOS GENERALES --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #01181C; /* Fondo base ToroHax */
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    -webkit-user-select: none; /* Safari/Chrome */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    -o-user-select: none;
    user-select: none;
}

input {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

/* --- SECCIÓN SUPERIOR: BANNER (30%) --- */
header {
    height: 30vh;
    background-image: url('banner_thx.png'); /* Asegúrate de que este archivo exista */
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    border-bottom: 2px solid #FFD342; /* Línea dorada divisora */
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(1,24,28,0), rgba(1,24,28,0.9));
}

/* --- LOGO CENTRAL DIVISOR (Estático) --- */
.logo-container {
    position: absolute;
    top: 30vh;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    z-index: 10;
}

.logo-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #141414;
    border: 3px solid #FFD342;
    box-shadow: 0 0 25px rgba(33, 222, 215, 0.3); /* Brillo cyan constante */
}

/* --- SECCIÓN PRINCIPAL: CONTENIDO (70%) --- */
main {
    flex: 1;
    padding: 100px 20px 60px;
    display: flex;
    flex-direction: column; /* Apila el grid y las redes verticalmente */
    align-items: center; /* Centra todo horizontalmente */
    background: radial-gradient(circle, #093738 0%, #01181C 100%);
    position: relative;
    z-index: 2;
}

/* --- GRILLA DE BLOQUES --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en PC */
    gap: 30px;
    max-width: 1000px;
    width: 100%;
}

.card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card:hover {
    transform: translateY(-8px);
    border-color: #5dc8e8;
    background: rgba(30, 30, 30, 0.9);
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background-color: #FFD342;
    transition: all 0.3s ease;
}

.card:hover::after {
    width: 100%;
    left: 0;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.card h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #FFD342;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.card p {
    margin: 15px 0 0;
    font-size: 0.9rem;
    color: #7d7d7d;
}

/* --- REDES SOCIALES --- */
.social-links {
    margin-top: 60px; /* Separación de los bloques de arriba */
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
}

.social-btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.social-btn:hover {
    transform: translateY(-4px);
}

/* Colores de cada red */
.discord { background-color: #5865F2; }
.discord:hover { box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5); }

.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.instagram:hover { box-shadow: 0 6px 20px rgba(220, 39, 67, 0.5); }

.youtube { background-color: #FF0000; }
.youtube:hover { box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5); }

.tiktok { background-color: #111111; border-color: #2df2c1; }
.tiktok:hover { box-shadow: 3px 3px 0px #ff0050, -3px -3px 0px #00f2fe; }

/* --- PIE DE PÁGINA --- */
footer {
    background-color: #0a0e17;
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #5dc8e8;
    border-top: 1px solid #333;
}

/* ========================================= */
/* --- RESPONSIVIDAD (MÓVILES) --- */
/* ========================================= */
@media (max-width: 768px) {
    /* Convierte la grilla de 3 columnas en 1 sola columna */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Ajusta el logo para que no sea tan gigante en celular */
    .logo-container {
        width: 100px;
        height: 100px;
    }

    /* Hace que los botones de redes ocupen todo el ancho para ser más fáciles de presionar */
    .social-links {
        flex-direction: column;
        align-items: center;
        margin-top: 40px;
    }

    .social-btn {
        width: 80%; /* Botones anchos en celular */
        text-align: center;
    }
}

/* ========================================= */
/* --- MENÚ LATERAL (SIDEBAR) Y BOTÓN --- */
/* ========================================= */

/* El botón de las 3 barras */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1.8rem;
    color: #FFD342; /* Dorado ToroHax */
    cursor: pointer;
    z-index: 100;
    background: rgba(20, 20, 20, 0.8);
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid #FFD342;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.menu-toggle:hover {
    background: #FFD342;
    color: #111;
    transform: scale(1.05);
}

/* El panel lateral oculto */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px; /* Escondido fuera de la pantalla por la izquierda */
    width: 280px;
    height: 100vh;
    background-color: #01181C; /* Color base de ToroHax */
    border-right: 2px solid #FFD342;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el top arriba y el bottom abajo */
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Animación suave */
    box-shadow: 5px 0 30px rgba(0,0,0,0.9);
}

/* Cuando se activa con JavaScript, se desliza al pixel 0 */
.sidebar.active {
    left: 0; 
}

/* Contenedor de arriba (Cerrar + Opciones) */
.sidebar-top {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

/* El botón de la 'X' para cerrar */
.close-btn {
    align-self: flex-end;
    margin-right: 25px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #7d7d7d;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-btn:hover {
    color: #cc2a2a; /* Se pone rojo al pasar el mouse */
    transform: rotate(90deg); /* Gira un poquito */
}

/* Los links de las opciones */
.sidebar a {
    padding: 15px 30px;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    border-left: 4px solid transparent; /* Borde invisible por defecto */
    transition: all 0.3s ease;
}

/* Efecto al pasar el mouse por las opciones */
.sidebar a:hover {
    background-color: rgba(255, 211, 66, 0.1);
    border-left: 4px solid #FFD342; /* Borde dorado */
    color: #FFD342;
}

/* Contenedor de abajo (Cerrar sesión) */
.sidebar-bottom {
    padding: 20px 0;
    border-top: 1px solid #333;
}

/* Botón especial para cerrar sesión */
.logout-btn {
    color: #cc2a2a !important; /* Rojo alerta */
}

.logout-btn:hover {
    background-color: rgba(204, 42, 42, 0.1) !important;
    border-left: 4px solid #cc2a2a !important;
}