/* =====================================================
   RESET Y CONFIGURACIÓN BASE
===================================================== */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 100%;
}

/* Variables globales */
:root {
    --navbar-height: 60px;
}

    /* Variables de tema */
    :root[data-bs-theme="dark"] {
        --bs-body-bg: #121212;
        --bs-body-color: #f8f9fa;
    }

    :root[data-bs-theme="light"] {
        --bs-body-bg: #ffffff;
        --bs-body-color: #212529;
    }

/* =====================================================
   BODY Y TIPOGRAFÍA
===================================================== */
body {
    max-width: 100vw;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: background-color 0.3s, color 0.3s;
    padding-top: 0;
}

/* =====================================================
   HEADER / NAVBAR
===================================================== */
#mainHeader {
    transition: top 0.3s ease-in-out;
}

    #mainHeader.hidden {
        top: -10px;
    }

#mainNavbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    min-height: var(--navbar-height);
    display: flex;
    align-items: center;
    position: fixed;
    z-index: 1030;
    width: 100%;
}

/* Fondo blur del header */
.bg-blur {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 1030;
}

:root[data-bs-theme="light"] .bg-blur {
    background-color: rgba(255, 255, 255, 0.85);
}

:root[data-bs-theme="dark"] .bg-blur {
    background-color: rgba(18, 18, 18, 0.8);
}

/* =====================================================
   BOTONES Y CONTROLES
===================================================== */
.btn-rounded {
    border-radius: 50rem !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

#themeToggle {
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

    #themeToggle:focus,
    #themeToggle:active,
    #themeToggle:hover {
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

/* =====================================================
   MODALES
===================================================== */
:root[data-bs-theme="dark"] .modal-content {
    background-color: #333 !important;
    color: #f8f9fa !important;
}

:root[data-bs-theme="light"] .modal-content {
    background-color: #fff !important;
    color: #212529 !important;
}

:root[data-bs-theme="dark"] .modal-header,
:root[data-bs-theme="dark"] .modal-footer {
    border-color: #555 !important;
}

:root[data-bs-theme="light"] .modal-header,
:root[data-bs-theme="light"] .modal-footer {
    border-color: #dee2e6 !important;
}

/* =====================================================
   OFFCANVAS MENÚ
===================================================== */
.offcanvas-body .nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 0.5rem;
}

/* =====================================================
   TABLAS
===================================================== */
.table tr:nth-child(even) {
    background-color: #f8f9fa;
}

:root[data-bs-theme="dark"] .table {
    color: #f8f9fa;
    background-color: #212529;
}

    :root[data-bs-theme="dark"] .table tr:nth-child(even) {
        background-color: #2c2c2c;
    }

    :root[data-bs-theme="dark"] .table tr:nth-child(odd) {
        background-color: #1a1a1a;
    }

    :root[data-bs-theme="dark"] .table thead {
        background-color: #343a40;
        color: #fff;
    }

:root[data-bs-theme="light"] .table-header-theme {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 0.75rem;
    text-transform: uppercase;
}

:root[data-bs-theme="dark"] .table-header-theme {
    background-color: #212529;
    color: #f8f9fa;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* =====================================================
   CURSOS / CARDS
===================================================== */
.curso-card {
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

    .curso-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    }

.icono-curso {
    width: 70px;
    height: 70px;
    font-weight: bold;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.curso-card:hover .icono-curso {
    transform: scale(1.1);
}

/* =====================================================
   AVATAR
===================================================== */
.profile-avatar {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto; /* asegura centrado */
}

.avatar-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Corrige centrado en tablets/móviles */
@media (max-width: 991.98px) {
    .footer .profile-avatar,
    .avatar-wrapper {
        display: flex;
        justify-content: center !important;
    }
}

/* =====================================================
   HERO VIDEO/IMG
===================================================== */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

    .video-hero video,
    .video-hero img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .video-hero .overlay-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        color: #fff;
        text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    }

@media (max-width: 767.98px) {
    .video-hero {
        height: auto;
        min-height: 80vh;
    }

        .video-hero img {
            height: auto;
            position: relative;
        }
}



/* Hero base */
.video-hero {
    position: relative;
    overflow: hidden;
}

    .video-hero img,
    .video-hero video {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Overlay centrado solo en mobile */
    .video-hero .overlay-mobile {
        position: absolute;
        inset: 0; /* top:0; right:0; bottom:0; left:0 */
        display: flex;
        align-items: center;
        text-align: center;
        justify-content: center;
        padding: 1rem;
    }

/* En mobile: sin altos mínimos ni paddings extra que empujan hacia abajo */
@media (max-width: 767.98px) {
    .video-hero {
        min-height: auto !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
    }
}


/* =====================================================
   SECCIONES VARIAS
===================================================== */
.contenido {
    position: relative;
    z-index: 1;
    padding-top: 90px;
}

.hero-section {
    min-height: 150vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.info-section {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.text-ignore-theme {
    color: inherit !important;
}

.text-pink {
    color: #ff80ab !important;
}

.text-shadow-lg {
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* =====================================================
   PASOS
===================================================== */
.step {
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.step-body h5 {
    color: var(--bs-body-color);
    margin-top: 2px;
    font-size: 1.125rem;
}

.step-body p {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.95rem;
    margin: 0;
}

[data-bs-theme="dark"] .step-body p {
    color: #adb5bd;
}


.login-card {
    width: 100%;
}

@media (min-width: 768px) {
    .login-card {
        width: 420px;
        max-width: 420px;
    }
}


/* Botón responsive "Volver" */
.volver-btn {
    width: 100%; /* por defecto ocupa todo el ancho */
}

@media (min-width: 768px) {
    .volver-btn {
        width: auto; /* en desktop vuelve a su tamaño natural */
        min-width: 160px; /* opcional: ancho mínimo uniforme */
    }
}

/*.hero-mobile {
    width: 100vw;  ocupa todo el ancho de la ventana 
    height: 100vh;  ocupa toda la altura de la ventana 
    object-fit: fill;  estira la imagen si hace falta 
    object-position: center;
    display: block;
}*/



/* Imagen en móviles */
.hero-mobile {
    width: 100vw; /* ocupa todo el ancho de la ventana */
    height: 100vh; /* ocupa toda la altura visible */
    object-fit: cover; /* recorta sin deformar */
    object-position: center;
    display: block;
}



/* PARA MOSTRAR LOS JUEGOS */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }

img.card-img-top {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
/* PARA MOSTRAR LOS JUEGOS */


