/* --- Reseteo de Márgenes y Caja --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Fondo Base con Degradado Azul Futurista --- */
body {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0d9488 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #f8fafc;
}

/* --- Contenedor Principal (Dashboard) --- */
.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr; /* Columna menú (280px) y Contenido */
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
}

/* ========================================== */
/* ESTILOS DEL MENÚ LATERAL (GLASSMORPHISM)   */
/* ========================================== */
.sidebar {
    background: rgba(30, 41, 59, 0.45); /* Fondo azul oscuro translúcido */
    backdrop-filter: blur(12px);         /* Efecto desenfoque de vidrio */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde fino brillante */
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.sidebar-header h2 {
    font-size: 1.6rem;
    letter-spacing: 1px;
    color: #38bdf8; /* Azul brillante */
}

.menu-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, transparent);
    margin-top: 10px;
}

.sidebar-nav {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Botones de navegación */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

/* ========================================== */
/* ESTILOS DEL CONTENIDO CENTRAL             */
/* ========================================== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

/* Sección "¿Qué es BisaGames?" */
.info-section {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    width: 100%;
}

.info-section h1 {
    color: #38bdf8;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.resumen-container {
    background: rgba(15, 23, 42, 0.3);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
}

.resumen-container h3 {
    margin-bottom: 8px;
    color: #7dd3fc;
}

.resumen-container p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* ========================================== */
/* SECCIÓN DE ANUNCIOS (ANCHO Y ALTO SIMILAR) */
/* ========================================== */
.ads-section {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;                     /* Mismo padding que la caja superior */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    width: 100%;                       /* Ocupa el 100% igual que la superior */
}

.ads-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #38bdf8;
}

/* --- ESTILOS DEL CARRUSEL DE ANUNCIOS --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 220px;                     /* Altura proporcional para la imagen */
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: flex-end;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    width: 100%;
    padding: 25px 20px 15px 20px;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #38bdf8;
    width: 22px;
    border-radius: 5px;
}

/* ========================================== */
/* ESTILOS DEL CONTADOR DE LIKES (COMPACTO)   */
/* ========================================== */
.like-counter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.like-counter-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e2e8f0; 
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #cbd5e1;
}

/* Botón Interactivo de la Manita */
.like-button {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    color: #2563eb; 
    cursor: pointer;
    transition: transform 0.15s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    padding: 0 4px;
}

.like-button:hover {
    transform: scale(1.15) rotate(-10deg);
    color: #1d4ed8;
}

.like-button:active {
    transform: scale(0.95);
}

/* Formato de Tarjetas Numéricas Azules */
.counter-digits {
    display: flex;
    gap: 4px;
}

.counter-digits .digit {
    background: #1e40af; 
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 3px 7px;
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid #0f172a;
    min-width: 24px;
    text-align: center;
}

/* Adaptación para pantallas medianas o celulares */
@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .sidebar {
        height: auto;
    }
    .carousel-container {
        height: 200px;
    }
}