/* ===========================
   RESET & BODY
=========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: #fff;

    /* LATERALES AZUL OSCURO */
    background: linear-gradient(135deg, #0a1b3d 0%, #061024 50%, #030914 100%);
    
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow-x: hidden;
}

/* IMAGEN CENTRAL, MÁS ANCHA Y DIFUMINADA A LOS LADOS */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    /* ⬆ ANCHO MUCHO MAYOR (ANTES 900px) */
    width: 1400px;  
    height: 100%;

    /* ⬇ AQUI PONES TU IMAGEN */
    background: url("../images/fondoverde.jpg") center center no-repeat;
    background-size: cover;

    z-index: -1;

    /* Difuminado hacia los lados (oscuro para integrar los verdes) */
    box-shadow: 0 0 200px 200px #0a7a40 inset;
}


.qm-page {
    width: 100%;
    max-width: 420px;
}

/* ===========================
   BOLSA
=========================== */
.qm-bolsa {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.qm-bolsa-monto {
    color: #ffe600;
}

/* ===========================
   CARD PRINCIPAL
=========================== */
.qm-card {
    background: #0f7d4e; /* verde m��s bonito */
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}


/* Header */
.qm-card-header {
    position: relative;
    background: linear-gradient(to bottom, #00ff5e, #006b32);

    padding: 10px 16px 14px;
    text-align: center;
}

.qm-titulo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.qm-subtitulo {
    font-size: 11px;
    margin-top: 2px;
}

.qm-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: rgba(0,0,0,0.25);
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 14px;
}

/* ===========================
   PARTIDOS
=========================== */
.qm-partidos {
    background: #ffffff;
    padding: 8px 10px 12px;
}

.qm-row {
    display: grid;
    grid-template-columns: 2fr 0.6fr 2fr;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e3e3e3;
}

.qm-row:last-of-type {
    border-bottom: none;
}

.qm-team {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
}

.qm-team-local { justify-content: flex-start; }
.qm-team-visit { justify-content: flex-end; }

.qm-empate {
    display: flex;
    justify-content: center;
}

.qm-team-name {
    font-size: 12px;
    font-weight: 700;
    color: #222;
}
.qm-team-name {
    text-align: center;
    flex: 1;
}

.qm-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* ===========================
   CASILLAS CUADRADAS
=========================== */
.qm-pick {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid #888;
    background: #fff;
    cursor: pointer;
    transition: 0.15s ease;

    color: #555 !important;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 15px;
    font-weight: 900;
}

/* Hover */
.qm-pick:hover {
    background: #f3f3f3;
}

/* ===========================
   CASILLA ACTIVADA (VERDE)
=========================== */
.qm-pick.activo {
    background: linear-gradient(to bottom right, #8DFF8A, #00B34A) !important;
    border-color: #00963E !important;
    color: #ffffff !important;
}


/* ===========================
   FOOTER CARD
=========================== */
.qm-footer-card {
    background: linear-gradient(to right, #001a3c, #00cc55);

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px 8px;
    font-size: 11px;
    font-weight: 700;
}


.qm-costo-monto {
    color: #ffe600;
    margin-left: 4px;
}

/* ===========================
   BOTONES
=========================== */
.qm-btn {
    border: none;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    background: #00b300;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.2s;
}

.qm-btn:hover {
    transform: scale(1.03);
}

.qm-btn-add { background: #00aaff !important; }
.qm-btn-enviar { background: #25D366 !important; }
.qm-btn-red { background: #d90429 !important; }

/* ==== Botón sec (dobles/triples) ==== */
.qm-btn-sec {
    background: #f0f0f0;
    color: #222;
}

.qm-btn-sec.dobles-activo {
    background: #ff8c00 !important;
    color: #fff !important;
}

/* ===========================
   VISTA PREVIA
=========================== */
.qm-preview {
    margin-top: 12px;
    background: linear-gradient(to bottom right, #28e044, #002244); /* verde medio → azul oscuro */
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    font-size: 15px;
    letter-spacing: 5px;
}


/* ===========================
   ENTRADA NOMBRE
=========================== */
.qm-nombre-row {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.qm-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 14px;
}

/* ===========================
   BOTONES INFERIORES
=========================== */
.qm-controles2 {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.qm-controles-bottom {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.qm-controles-bottom .qm-btn {
    flex: 1;
}

/* ===========================
   TABLA FINAL
=========================== */
.qm-tabla-final {
    margin-top: 16px;
    background: #e3ffe7;
    color: #000;
    padding: 8px;
    border-radius: 10px;
    border: 2px solid #000;
    font-size: 13px;
    font-weight: 700;
}

.qm-save-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 2px;
}

.qm-save-row:last-child {
    margin-bottom: 0;
}

.qm-save-cols {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(10, 1fr) 1.3fr 0.8fr;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #000;
}

.qm-save-cell {
    padding: 2px 3px;
    text-align: center;
    border-left: 1px solid #000;
}

.qm-save-cell:first-child {
    border-left: none;
}

.qm-save-del {
    margin-left: 5px;
    border: none;
    background: #b00020;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* --- LOGO ÚNICO DETRÁS DE TODA LA TABLA --- */
.qm-partidos {
    position: relative;
    overflow: hidden;
}

.qm-partidos::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 330px;           /* tamaño del logo */
    height: 330px;

    background: url("../images/logomendoza.png") center no-repeat;
    background-size: contain;

    opacity: 0.08;          /* transparencia */
    pointer-events: none;   /* no afecta clicks */
    z-index: 1;
}

/* el contenido va encima del logo */
.qm-row {
    position: relative;
    z-index: 2;
}
#btnRandom {
    background: #7e3ff2 !important; /* Morado */
    color: #fff !important;
}

/* ===========================
   FIX SIMPLE Y GLOBAL
   (sin mover nada más)
=========================== */

/* 1) Que los nombres NO se vayan a 2 renglones */
.qm-team-name {
    white-space: nowrap !important;      /* una sola línea */
    overflow: hidden !important;         /* por si acaso */
    text-overflow: ellipsis !important;  /* si algún día no cabe */
}
/* =======================================
   FIX REAL PARA NOMBRES LARGOS
======================================= */
.qm-team {
    min-width: 105px !important; /* cada lado tiene espacio seguro */
}


