@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@100..900&display=swap');
/* Variables base */
:root {
    --font-main: "Encode Sans",'Arial', sans-serif;
    --font-size: 16px;
    --border-radius: 6px;

    --color-light-bg: #f5f5f5;
    --color-light-bg-tablero: #F0F0F0;
    --color-light-card: #fff;
    --color-dark-bg: #052c44;
    --color-dark-bg-tablero: #034764;
    --color-dark-card: #08324d;

    --color-primary: #D13A6E;
    --color-accent: #28BCAA;
    --color-neutral: #cccccc;
    --color-muted: #666;

    --color-text-light: #fff;
    --color-text-dark: #000;

    --weight:400;

    --logo-company: url('assets/img/touchpoint-marketing-color.png');
}
* {
  font-family: "Encode Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: var(--weight);
  font-style: normal;
  font-variation-settings:"wdth" 100;
}
/* Tema Claro */
body.tema-claro {
    background: var(--color-light-bg);
    background-image: url('assets/img/bgk-claro.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--color-text-dark);
}

body.tema-claro .modal-content {
    background-color: var(--color-light-card);
    color: var(--color-text-dark);
}

body.tema-claro #tableroContenedor {
    background-color: var(--color-light-bg-tablero);
}
body.tema-claro #title-jeopardy h1 {
    color: var(--color-primary);
}

/* Tema Oscuro */
body.tema-oscuro {
    background: var(--color-dark-bg);
    background-image: url('assets/img/bgk-oscuro.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--color-text-light);
}

body.tema-oscuro .modal-content {
    background-color: var(--color-dark-card);
    color: var(--color-text-light);
}

body.tema-oscuro #tableroContenedor {
    background-color: var(--color-dark-bg-tablero);
}
body.tema-oscuro #title-jeopardy h1 {
    color: var(--color-text-light);
}


/*General*/
body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.oculto {
    display: none !important;
}

#configuracion {
    margin-top: 40px;
    text-align: center;
}

#configuracion input {
    padding: 6px;
    margin: 10px;
    font-size: var(--font-size);
}

#configuracion button {
    padding: 10px 20px;
    font-size: var(--font-size);
    cursor: pointer;
}

#title-jeopardy{
    background-size: 130px;
    background-repeat: no-repeat;
    background-position: center right;
    padding: 20px 0px;
}
#title-jeopardy h1 {
    font-size: 2.5em;
    margin: 0;
    text-align: center;
    font-weight: 600;
}
#tablero {
    width: 100%;
    max-width: 1100px;
}
#tableroContenedor {
    padding: 10px;
    margin-top: 0px;
    border-radius: var(--border-radius);
}

#categorias {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    column-gap: 10px;
}

.categoria {
    flex: 1;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 10px;
    margin: 2px;
    border-radius: var(--border-radius);
}

#valores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.pregunta {
    flex: 1 1 calc(20% - 10px);
    background: linear-gradient(to bottom, #097C8A, #28BCAA);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: var(--border-radius);
    color: var(--color-text-light);
}

.pregunta.respondida {
    background: var(--color-neutral);
    color: var(--color-muted);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
    text-decoration: line-through;
}

#puntaje {
    width: 100%;
    max-width: 1100px;
    margin-top: 20px;
}

#equipos {
    display: flex;
    justify-content: space-around;
    background-color: #333;
    color: var(--color-text-light);
    padding: 15px;
    border-radius: var(--border-radius);
}

#equipos div {
    font-size: 18px;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}
.modal-wrapper{
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    height: 100vh;
}
.modal-content {
    padding: 40px;
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 800px;
    position: relative;
    text-align: center  ;
}
#textoPreguntaModal{
    font-size: 2.5em;
    font-weight: 600;
    margin: 0;
}
#respuestaMostrada{
    font-size: 1.1em;
    font-weight: 400;
    margin: 10px 0px 6px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

#form-modal {
    margin: 20px auto 0px;
    display: inline-block;
}

#form-modal input {
    width: 100%;
    padding: 10px;
    font-size: var(--font-size);
    margin-bottom: 10px;
}

#form-modal button {
    padding: 10px 20px;
    font-size: var(--font-size);
    cursor: pointer;
}

/* ---------- Botones de la modal ---------- */

#btn-revelar {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    font-weight: bold;
    border: 2px solid #333;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tema-claro #btn-revelar {
    background-color: #fff;
    border-color: #333;
    color: #333;
}

.tema-oscuro #btn-revelar {
    background-color: #eee;
    border-color: #111;
    color: #111;
}

#btn-revelar:hover {
    background-color: #f0f0f0;
}

/* ---------- Botones Correcto / Incorrecto ---------- */

.btn-correcto, .btn-incorrecto {
    padding: 10px 20px;
    font-size: 16px;
    margin: 10px 5px 0;
    margin-left: 0px;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* ✅ Correcto */
.tema-claro .btn-correcto {
    background-color: #e8e2f9;
    color: #6b48cb;
}

.tema-oscuro .btn-correcto {
    background-color: #6b48cb;
    color: white;
}

.btn-correcto:hover {
    opacity: 0.9;
}

/* ❌ Incorrecto */
.tema-claro .btn-incorrecto {
    background-color: #fbe6eb;
    color: #d0004d;
}

.tema-oscuro .btn-incorrecto {
    background-color: #d0004d;
    color: white;
}

.btn-incorrecto:hover {
    opacity: 0.9;
}

/* Modal de ganador */
#modalGanador {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modalGanador .modal-contenido {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
}

#modalGanador h2 {
    margin-bottom: 15px;
}

#modalGanador button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    background-color: #6b48cb;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

#modalGanador button:hover {
    background-color: #5536a8;
}




/* Footer */
footer {
    text-align: center;
    font-size: 12px;
    width: 100%;
    padding: 19px 0px;
    color: #FFF;
    margin-top: 30px;
}
body.tema-claro footer {
    background: #043D53;
}
body.tema-oscuro footer {
    background: #034764;
}

@media (max-width: 768px) {
    #title-jeopardy{
        padding-top: 87px;
        background-position: right 30px;
        margin: 0px 10px;
    }
  #categorias {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .categoria {
    flex: 1 1 calc(17% - 10px);
    font-size: 12px;
    padding: 8px;
  }
}
