#main-menu {
    position: relative;
    z-index: 100;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('uploads/estadio.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    font-family: sans-serif;
}

.menu-header {
    text-align: center;
    margin-bottom: 40px;
}

.menu-header h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.menu-header h1 span {
    color: #28a745;
}

.menu-header p {
    color: #ccc;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 800px;
}

.menu-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-10px);
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(40, 167, 69, 0.6));
}

.menu-card h3 {
    margin: 10px 0 5px 0;
    font-size: 1.2rem;
}

.menu-card p {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0;
}

.menu-btn {
    padding: 20px;
    font-size: 1.2rem;
    border: 2px solid #28a745;
    background: transparent;
    color: white;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.menu-btn:hover {
    background: #28a745;
    transform: scale(1.05);
}

.app-section {
    width: 100%;
    height: 100vh;
}

.btn-regresar {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    color: #28a745;
    border: 2px solid #28a745;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-family: sans-serif;
    transition: 0.3s;
}

.btn-regresar:hover {
    background: #28a745;
    color: white;
}

#ui-container {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    flex-direction: row;
    gap: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.btn-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 5px solid;
    transition: all 0.2s ease;
}

.btn-circle:hover {
    transform: scale(1.1);
}

.btn-circle:active {
    transform: scale(0.9);
}

.btn-blue {
    border-color: #00aeef;
}

.btn-yellow {
    border-color: #fff200;
}

.btn-red {
    border-color: #ed1c24;
}

.btn-circle img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

#stats-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    color: #ffffff;
    padding: 25px;
    border-radius: 20px;
    display: none;
    flex-direction: column;
    padding-top: 0;
    z-index: 100000;
    width: 85%;
    max-width: 350px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
    border: 1px solid #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#stats-panel::-webkit-scrollbar {
    width: 6px;
}

#stats-panel::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

#stats-panel::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 10px;
}

#stats-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 10;
    padding: 20px 25px 15px 25px;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #333;
}

#stats-title {
    margin: 0;
    color: #28a745;
    font-size: 1.5em;
}

.flag-icon {
    width: 40px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

#stats-info {
    padding: 0 25px 25px 25px;
    line-height: 1.6;
    color: #ccc;
    font-size: 0.95em;
}

.lista-info-premium {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.lista-info-premium li {
    padding-left: 15px;
    margin-bottom: 12px;
    border-left: 3px solid #28a745;
    line-height: 1.4;
    color: #ccc;
    font-size: 0.95em;
}

#stats-info {
    text-align: left;
}

#btn-ver-partidos,
#btn-close {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

#btn-ver-partidos {
    background: #28a745;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#btn-ver-partidos:hover {
    background: #218838;
}

#btn-close {
    background: #333;
    color: #aaa;
}

#btn-close:hover {
    background: #444;
    color: white;
}

.partido-card {
    background: #252525;
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
    border-left: 4px solid #28a745;
    text-align: left;
}

.partido-card a {
    color: #28a745;
    text-decoration: none;
    font-weight: bold;
}

#contenedor-trivia {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    font-family: sans-serif;
    padding: 20px;
}

#section-trivia {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('uploads/estadio.png');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(5px);
}

.opcion-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.opcion-btn.correct {
    background-color: #28a745 !important;
    border-color: #1e7e34;
    color: white;
    transform: scale(1.05);
}

.opcion-btn.incorrect {
    background-color: #dc3545 !important;
    border-color: #bd2130;
    color: white;
}

.trivia-card {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid #28a745;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.opciones-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.opcion-btn:hover {
    background: #28a745;
}

.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #000;
}

#video-player {
    width: 90%;
    max-width: 700px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
    transition: filter 0.3s ease;
}

.filter-bar {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    overflow-x: auto;
    white-space: nowrap;
    width: 95%;
    scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.filter-item:hover {
    transform: scale(1.1);
}

.filter-item img {
    width: 45px;
    height: 45px;
    margin-bottom: 5px;
}

.filter-item span {
    font-size: 0.7rem;
    color: white;
    text-transform: uppercase;
}

.filter-item span {
    display: block;
    width: 75px;
    white-space: normal;
    word-wrap: break-word;
    margin-top: 5px;
    font-size: 0.65rem;
    line-height: 1.1;
    text-align: center;
}

.pixel-effect {
    image-rendering: pixelated;
}

.video-layout {
    display: flex;
    flex-direction: row;
    height: 100vh;
    padding: 80px 20px 20px 20px;
    gap: 20px;
    background: #000;
}

.main-player {
    flex: 2.5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 15px;
    border: 2px solid #28a745;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: filter 0.4s ease;
}

.video-playlist {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    overflow-y: auto;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.video-playlist h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.video-item-card {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
    color: #ccc;
    border-left: 4px solid transparent;
}

.video-item-card:hover {
    background: rgba(40, 167, 69, 0.2);
    border-left-color: #28a745;
    color: white;
}

@media (max-width: 768px) {
    .video-layout {
        flex-direction: column;
        padding-top: 70px;
        height: auto;
        gap: 10px;
    }

    .main-player {
        flex: none;
        width: 100%;
    }

    .filter-bar {
        margin-top: 10px;
        padding: 10px;
    }

    .video-playlist {
        height: 300px;
        flex: none;
        overflow-y: auto;
        margin-bottom: 20px;
    }

    .iframe-container {
        padding-bottom: 56.25%;
    }
}

.mindar-ui-scanning {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 8px solid #333;
    border-top: 8px solid #28a745;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loading-screen {
    pointer-events: all;
    transition: opacity 0.5s ease;
}

:root {
    --bg-glass: rgba(20, 20, 20, 0.7);
    --accent-color: #00ff88;
    --text-color: #ffffff;
}

#controls-3d,
#controles-mover {
    position: fixed;
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 20px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#controls-3d {
    top: 20px;
    right: 20px;
    gap: 8px;
}

#controles-mover {
    bottom: 120px;
    left: 20px;
    top: auto;
    gap: 4px;
}

button {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-weight: bold;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background: #00ff88;
    color: black;
    transform: scale(1.05);
}

.grid-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.grid-buttons button {
    width: 42px;
    height: 42px;
}

.row {
    display: flex;
    gap: 4px;
}

.btn-nav {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.5);
}



#section-guia {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
        url('uploads/estadio.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-contenido {
    background: transparent;
    padding: 20px;
    margin: 60px auto 20px auto;
    width: 95%;
    max-width: 500px;
    box-sizing: border-box;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: min-content;
}

@media (min-width: 768px) {
    .modal-contenido h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .tab-btn {
        font-size: 0.9rem;
        padding: 15px 5px;
    }
}

.modal-contenido h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.guia-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #bbb;
    padding: 10px 2px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.tab-btn.active {
    background: #28a745;
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.tab-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 20px;
    border-left: 5px solid #28a745;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.paso {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
    padding: 10px;
    border-radius: 10px;
}

.paso-numero {
    background: #28a745;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}
.paso:hover {
    background: rgba(40, 167, 69, 0.1);
    transform: translateX(5px);
}

.paso p {
    font-size: 1rem;
    line-height: 1.4;
    color: #eee;
}

.modal-contenido .menu-btn {
    margin: 20px 0 40px 0;
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    background: #28a745;
    border: none;
    font-weight: 900;
}

#section-guia .btn-regresar {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}