﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    overflow: auto;
    background: linear-gradient(to bottom, black 0%, black 30%, #022f37 100%);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Scrollbar para navegadores Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1c1c1c; /* Fondo oscuro para resaltar el thumb */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #0dcaf0; /* Color btn-info de Bootstrap */
    border-radius: 10px;
    transition: background 0.3s;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #31d4f7; /* Color más claro al pasar el mouse */
    }

/* Scrollbar minimalista para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #0dcaf0 #1c1c1c; /* Thumb y track */
}
.hidden {
    display: none !important;
}
/*Scroll Game*/

/* Contenedor de todos los videos */
/* Sección principal */
.video-section {
    margin: 30px 0;
    position: relative;
}

.section-title {
    font-size: 2rem;
    color: #fff;
    font-family: "Orbitron", sans-serif;
}

/* Carrusel horizontal */
/* Sección principal */
/* ===========================
   CONTAINER GENERAL
=========================== */
.home-container {
    padding: 20px;
}

/* ===========================
   BANNER PRINCIPAL
=========================== */
.banner {
    width: 90vw;
    height: 70vh;
    margin: 20px auto;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    /* Fondo + overlay con blend mode */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: soft-light;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-content {
    width: 100%;
    max-width: 1000px; /* limita ancho en desktop */
    padding: 2rem; /* espacio interno */
    text-align: center;
    color: #fff;
    box-sizing: border-box;
}

.banner h1 {
    font-size: 4rem;
      font-family: "Orbitron", sans-serif;
    line-height: 1.2;
}

.banner p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.banner-buttons .btn {
    font-size: 1.3rem;
    border-radius: 0.5rem;
    transition: transform 0.2s ease;
}

    .banner-buttons .btn:hover {
        transform: scale(1.05);
    }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
    .banner h1 {
        font-size: 3rem;
    }

    .banner p {
        font-size: 1.2rem;
    }

    .banner-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 60vh;
    }

        .banner h1 {
            font-size: 2rem;
        }

        .banner p {
            font-size: 1rem;
        }

    .banner-buttons .btn {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .banner-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 50vh;
    }

        .banner h1 {
            font-size: 1.5rem;
        }

        .banner p {
            font-size: 0.9rem;
        }

    .banner-buttons .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ===========================
   SECCIONES DE VIDEO
=========================== */
.video-section {
    margin-bottom: 40px;
    position: relative;
}

.video-container {
    display: flex;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    gap: 15px;
    scroll-behavior: smooth;
    padding: 10px 0;
}

    .video-container::-webkit-scrollbar { /* Chrome, Safari */
        display: none;
    }

.video-item {
    position: relative;
    flex: 0 0 auto;
    width: 220px; /* ancho estándar */
    aspect-ratio: 2 / 3; /* ancho:alto = 2:3 */
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .video-item:hover {
        transform: scale(1.08);
        z-index: 10;
    }

.thumbnail {
    object-fit: cover;
    border-radius: 10px;
}

    .thumbnail:hover {
        object-fit: contain;
    }

/* ===========================
   HOVER INFO
=========================== */
.hover-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente */
    align-items: center; /* centra horizontalmente */
    padding: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
    border-radius: 10px;
}

.video-item:hover .hover-info {
    opacity: 1;
}

.hover-info h6 {
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Link dentro del hover */
.hover-info a {
    margin-top: 10px;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    background-color: #11d8ff;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

    .hover-info a:hover {
        background-color: #0a7185;
    }

/* ===========================
   BOTONES DE SCROLL
=========================== */
.scroll-btn {
    position: absolute;
    top: 50%;
    margin-top:auto;
    margin-bottom:auto;
    transform: translateY(-50%);
    z-index: 20;
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 0.3rem 0.7rem;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* se activa con JS */
    transition: background 0.2s;
}

    .scroll-btn:hover {
        background-color: rgba(0,0,0,0.8);
    }

    .scroll-btn.left {
        left: 0;
    }

    .scroll-btn.right {
        right: 0;
    }

/* ===========================
   RESPONSIVE - MÓVIL / TABLET
=========================== */
@media (max-width: 1024px) {
    .banner-overlay {
        max-width: 80%;
        padding: 3rem;
    }

    .banner h1 {
        font-size: 3rem;
    }

    .banner p {
        font-size: 1.2rem;
    }

    .video-item {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 70vh;
    }

    .banner-overlay {
        padding: 2rem;
        max-width: 90%;
    }

    .banner h1 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .banner-buttons .btn {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .video-item {
        width: 150px;
    }
}

/* Pantallas táctiles: hover siempre visible */
@media (hover: none) {
    .hover-info {
        opacity: 1;
        background: rgba(0,0,0,0.5);
    }
}



/* Scroll buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 20;
}

    .scroll-btn.left {
        left: 0;
    }

    .scroll-btn.right {
        right: 0;
    }

/* Badge */
.badge {
    font-size: 0.45rem;
    vertical-align: top;
}


/*Play*/
.game-fullscreen {
    width: 100%;
    overflow: hidden;
    height: 100vh; /* escritorio por defecto */
    position: relative; /* necesario para posicionar el botón dentro */
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Botón flotante de regreso */
.back-button {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 9999; /* encima del iframe */
    font-size: 14px;
    transition: background 0.2s;
}

    .back-button:hover {
        background: rgba(0, 0, 0, 0.8);
    }

/* Móvil: usar 100dvh para dispositivos que consideran barra de navegación */
@media (max-width: 768px) {
    .game-fullscreen {
        height: 100dvh;
    }
}



/*Information*/
@media (max-width: 320px), screen and (max-device-width: 320px) {
    body {
        font-size: 11px;
    }

    /* Banner */
    .game-banner {
        height: 35vh; /* más bajo para pantallas pequeñas */
        border-radius: 4px; /* menos redondeado */
    }

    .banner-overlay {
        padding: 8px;
        font-size: 0.75rem; /* tipografía más pequeña */
        border-radius: 4px;
    }

        .banner-overlay h1 {
            font-size: 1rem;
            margin-bottom: 4px;
        }

        .banner-overlay p {
            font-size: 0.7rem;
            line-height: 1.2;
        }

    .banner-buttons a {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    /* Badge */
    .related-badge {
        font-size: 0.55rem;
        padding: 1px 3px;
        top: 3px;
        left: 3px;
    }
}
@media (max-width: 768px) {
    .game-banner {
        height: 50vh;
        padding: 20px;
    }

    .video-item {
        width: 140px;
    }

    .thumbnail {
        height: 100px;
    }
}

/* ===========================
   COMPATIBILIDAD - BÁSICOS
   (240 x 320 y similares)
=========================== */
@media (max-width: 320px) {
    html {
        font-size: 11px; /* texto reducido pero legible */
    }

    body {
        margin: 0;
        padding: 0;
        background-color:black; /* mismo fondo */
    }

    /* Banner */
    .banner {
        width: 100%;
        height: auto; /* ajustable al contenido */
        border-radius: 0; /* esquinas rectas para más ligereza */
        padding: 8px;
    }

        .banner h1 {
            font-size: 1rem;
            line-height: 1.2;
        }

        .banner p {
            font-size: 0.7rem;
            line-height: 1.1;
        }

    .banner-buttons .btn {
        font-size: 0.7rem;
        padding: 4px 6px;
    }

    /* Video items */
    .video-container {
        gap: 4px;
        padding: 4px 0;
    }

    .video-item {
        width: 90px;
        height: 120px; /* proporción fija */
        border-radius: 4px;
    }

    .thumbnail {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Hover simplificado (igual estilo, siempre visible en básicos) */
    .hover-info {
        font-size: 0.6rem;
        padding: 3px;
        opacity: 1;
        background: rgba(0,0,0,0.5);
    }

        .hover-info a {
            font-size: 0.6rem;
            padding: 3px 6px;
        }

    /* Títulos */
    .section-title {
        height: auto;
        padding: 5px;
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    /* Botón flotante */
    .back-button {
        top: 5px;
        left: 5px;
        padding: 3px 6px;
        font-size: 11px;
    }

    /* Juego fullscreen */
    .game-fullscreen {
        width: 240px;
        height: 320px;
        margin: 0 auto;
    }

    .game-iframe {
        width: 100%;
        height: 100%;
        border: none;
    }
}
