@charset "UTF-8";
/* ESTILOS GENERALES */
body {
  margin: 0;
  padding: 0;
  background-color: #3c5a3b;
  font-family: 'Teko', sans-serif;
  color: #000;
}

.pantalla-inicio,
.pantalla-juego,
.pantalla-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem 1rem;
  max-width: 700px;
  margin: auto;
  gap: 1rem;
}


/* TITULO Y SUBTITULO */
.titulo {
  background-color: #8B1E3F;
  color: #F7F3E8;
  font-family: 'Anton', sans-serif;
  font-size: 3rem;
  width: 100%;
  text-align: center;
  padding: 2rem;
}

.subtitulo {
  background-color: #1B365D;
  color: #F7F3E8;
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  width: 100%;
  text-align: center;
  padding: 1.5rem;
}

/* INSTRUCCIONES INICIO */
.instrucciones {
  background-color: #F7F3E8;
  color: #000000;
  font-family: 'Bebas Neue', sans-serif;
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.6;
  padding: 2rem;
  width: 100%;
}

.instrucciones h2 {
  margin-top: 0;
  font-size: 1.7rem;
  color: #000000;
  font-weight: bold;
  text-transform: lowercase;
}

/* BOTÃ“N INICIAR */
.btn-iniciar {
  background-color: #EFB810;
  color: #000000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  border: none;
  padding: 1.2rem 3rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-iniciar:hover {
  background-color: #d9a400;
}

/* LOGO Y NOMBRE DE EQUIPO */
.logo-equipo img {
  height: 100px;
  object-fit: contain;
  margin: 1rem 0;
}

.equipo-actual {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  background-color: #F7F3E8;
  color: #000;
  padding: 1rem 2rem;
  width: 100%;
  text-align: center;
}

/* CANCHA VISUAL */
.cancha {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 3 / 4;
  max-height: 75vh; /* evita que crezca demasiado y empuje los botones */
  margin-bottom: 2rem;
  overflow: hidden;
  background-color: #5A3825;
  border: 4px solid transparent; /* solo para pruebas */
}

.fondo-cancha {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}

/* NUEVO CONTENEDOR DE POSICIONES */
.zona-juego {
  position: absolute;
  inset: 0;
}

/* ... [mismo CSS previo omitido para brevedad] ... */

/* POSICIONES SOBRE CANCHA */
.posicion {
  position: absolute;
  width: 80px;
  height: 80px;
  background-color: #EFB810;
  color: #000000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Estado cuando ya se colocÃ³ jugador */
.posicion.ocupado {
  background-color: #1B365D;
  color: #F7F3E8;
}

/* POSICIONES SOBRE CANCHA */
/* POSICIONES SOBRE CANCHA */
.coach { top: 7%; left: 25%; }
.pg    { top: 7%; left: 75%; }
.sg    { top: 22%; left: 50%; }
.sf    { top: 44%; left: 27%; }
.c     { top: 44%; left: 73%; }
.pf    { top: 58.5%; left: 50%; }






/* INPUT E INSTRUCCIONES DE TEXTO */
.instruccion,
.titulo-secundario {
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  text-align: center;
  color: #F7F3E8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subinstruccion {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  text-align: center;
  color: #F7F3E8;
}

input#inputNombre {
  width: 100%;
  max-width: 400px;
  padding: 1rem;
  font-size: 1.1rem;
  font-family: 'Teko', sans-serif;
  text-align: center;
  border: none;
  outline: none;
  margin-bottom: 1rem;
}

/* CONTENEDOR DEL JUGADOR COLOCADO */
.jugador-colocado {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  transform: translate(-50%, -50%);
}

/* LOGO PEQUEÃ‘O DEL EQUIPO */
.jugador-colocado img {
  height: 24px;
  width: 24px;
  object-fit: contain;
}

/* TEXTO DE POSICIÃ“N */
.jugador-colocado .pos {
  color: #000000; /* negro */
  font-weight: bold;
}

/* TEXTO DE APELLIDO */
.jugador-colocado .apellido {
  color: #EFB810; /* dorado */
  font-weight: bold;
}

.mini-posiciones {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.mini-posicion {
  background-color: #F7F3E8;
  color: #1B365D;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.mini-posicion:hover {
  background-color: #EFB810;
  color: #000;
}

/* CONTENEDOR DE POSICIONES SECUNDARIAS */
.contenedor-secundario {
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin-top: 1.5rem;
}

.titulo-secundario {
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  color: #F7F3E8;
  margin-bottom: 1.2rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.fila-posiciones {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.pos-mini {
  background-color: #E5DED8;
  color: #5A3825;
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pos-mini:hover {
  transform: scale(1.05);
  background-color: #EFB810;
  color: #000;
}

.pos-mini.seleccionada {
  background-color: #EFB810;
  color: #000;
}

.sugerencias-lista {
  list-style: none;
  padding: 0;
  margin-top: 5px;
  background: white;
  color: black;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ccc;
  width: 100%;
}

.sugerencias-lista li {
  padding: 6px 10px;
  cursor: pointer;
}

.sugerencias-lista li:hover {
  background: #eee;
}

.sugerencias-lista {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.posicion.ocupado {
  background: transparent !important;
  color: #fff !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mensaje-final {
  margin-top: 1rem;
}

/* --- AJUSTES FINALES PANTALLA FINAL --- */
.pantalla-final {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.pantalla-final .cancha {
  margin-bottom: 0.5rem !important;
}

.pantalla-final .mensaje-final {
  margin-top: 0.3rem !important;
}

@media (max-height: 700px) {
  .cancha {
    margin-bottom: 1rem;
  }

  .mensaje-final {
    margin-top: 0.5rem;
    font-size: 1.1rem;
  }

  .btn-iniciar {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }
}

.pantalla-final .zona-juego .posicion:not(:empty) {
  background: none !important;
  border: none !important;
}

.pantalla-final .cancha {
  margin-bottom: 1rem; /* reduce el espacio inferior */
}

.pantalla-final .botones-final {
  margin-top: 0.5rem;
}

.pantalla-final .cancha {
  margin-bottom: 0.5rem;
}

.pantalla-final .mensaje-final {
  margin-top: 0.3rem;
}

.pantalla-final .botones-final {
  margin-top: 0.3rem;
}

.pantalla-final .cancha {
  margin-bottom: 0.3rem !important;
}

.pantalla-final .mensaje-final {
  margin-top: 0.2rem !important;
}

.pantalla-final .botones-final {
  margin-top: 0.2rem !important;
  margin-bottom: 0.8rem !important;
}

/* --- AJUSTES RESPONSIVE SOLO PARA MÃ“VILES --- */
@media (max-width: 600px) {
  .titulo {
    font-size: 2.2rem;
    padding: 1.5rem;
  }

  .subtitulo {
    font-size: 1.6rem;
    padding: 1rem;
  }

  .instrucciones {
    font-size: 1rem;
    padding: 1.2rem;
  }

  .instrucciones h2 {
    font-size: 1.4rem;
  }

  .btn-iniciar,
  .mini-posicion,
  .pos-mini {
    font-size: 1.1rem;
    padding: 0.8rem 1.6rem;
  }

  .cancha {
    max-height: 65vh;
    margin-bottom: 1rem;
  }

  .pantalla-final .botones-final,
  .botones-final {
    gap: 0.6rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .mensaje-final,
  .instruccion,
  .subinstruccion {
    font-size: 1rem;
    margin-top: 0.3rem;
  }

  input#inputNombre {
    padding: 0.8rem;
    font-size: 1rem;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .pantalla-inicio,
  .pantalla-juego,
  .pantalla-final {
    padding: 1.5rem 2rem;
    gap: 1.2rem;
  }

  .titulo {
    font-size: 3.2rem;
    padding: 2.5rem 1rem;
  }

  .subtitulo {
    font-size: 2.2rem;
    padding: 2rem 1rem;
  }

  .instrucciones {
    font-size: 1.3rem;
    line-height: 1.7;
    padding: 2.5rem;
  }

  .instrucciones h2 {
    font-size: 1.9rem;
  }

  .btn-iniciar,
  .mini-posicion,
  .btn-volver,
  .btn-compartir {
    font-size: 1.5rem;
    padding: 1.2rem 3rem;
  }

  .instruccion,
  .titulo-secundario {
    font-size: 1.6rem;
  }

  .subinstruccion {
    font-size: 1.3rem;
  }

  input#inputNombre {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .posicion {
    width: 90px;
    height: 90px;
    font-size: 1.3rem;
  }

  .jugador-colocado {
    font-size: 1.3rem;
    gap: 0.4rem;
  }

  .jugador-colocado img {
    height: 28px;
    width: 28px;
  }

  .fila-posiciones {
    gap: 1.2rem;
  }

  .pos-mini {
    width: 65px;
    height: 65px;
    font-size: 1.2rem;
  }

  .mensaje-final {
    font-size: 1.3rem;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

#inputNombre.error {
  animation: shake 0.4s ease;
  border: 2px solid #EFB810;
}

.pos-num {
  font-family: 'Teko', sans-serif;
  font-weight: 400;
  font-size: 0.75em;
  opacity: 0.8;
  margin-left: 2px;
}



/* === NUEVA PANTALLA INICIO QUINTETO HISTÃ“RICO === */
.pantalla-inicio-nueva {
  background-color: #5d4037;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Inter', sans-serif;
}

.header-quinteto {
   background-color: #5d4037;
  text-align: center;
  padding: 24px 16px 16px;
  width: 100%;
}

.logo-quinteto {
  max-width: 220px;
  margin: 0 auto 12px;
  display: block;
}

.lema-quinteto {
  font-family: 'League Spartan', sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  margin: 0;
  text-align: center;
}

.bloque {
  width: 100%;
  text-align: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.titulo-quinteto {
  background-color: #0D1B2A;
  color: #ffffff;
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
}

.subtitulo-quinteto {
  background-color: #FFD700;
  color: #000000;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 2rem;
}

.instrucciones-quinteto {
  color: #ffffff;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  font-family: 'Inter', sans-serif;
}

.instrucciones-quinteto h2 {
  margin-top: 0;
  font-weight: 700;
  font-size: 1.6rem;
  color: #ffffff;
}

.instrucciones-quinteto p {
  margin: 0.5rem 0;
  font-weight: 400;
}

.btn-iniciar-nueva {
  background-color: #f4f1de;
  color: #000;
  font-family: 'Urbanist', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 1rem 3rem;
  border: none;
  margin: 2rem auto;
  cursor: pointer;
  transition: background 0.3s ease;
  text-transform: uppercase;
}

.btn-iniciar-nueva:hover {
  background-color: #e2dbc8;
}


/* === NUEVA PANTALLA INICIO MUNDIALES POR AÃ‘O === */
.pantalla-inicio-nueva {
  background-color: #3c5a3b;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Inter', sans-serif;
}

.header-mundiales {
  background-color: #3c5a3b;
  text-align: center;
  padding: 24px 16px 16px;
  width: 100%;
}

.logo-mundiales {
  max-width: 220px;
  margin: 0 auto 12px;
  display: block;
}

.lema-mundiales {
  font-family: 'League Spartan', sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  margin: 0;
  text-align: center;
}

.bloque {
  width: 100%;
  text-align: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.titulo-mundiales {
  background-color: #e95420;
  color: #ffffff;
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
}

.subtitulo-mundiales {
  background-color: #c2a14d;
  color: #000000;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 2rem;
}

.instrucciones-mundiales {
  background-color: #3c5a3b;
  color: #ffffff;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  font-family: 'Inter', sans-serif;
}

.instrucciones-mundiales h2 {
  margin-top: 0;
  font-weight: 700;
  font-size: 1.6rem;
  color: #ffffff;
}

.instrucciones-mundiales p {
  margin: 0.5rem 0;
  font-weight: 400;
}

.btn-iniciar-mundiales {
  background-color: #f4ebd0;
  color: #000;
  font-family: 'Urbanist', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 1rem 3rem;
  border: none;
  margin: 2rem auto;
  cursor: pointer;
  transition: background 0.3s ease;
  text-transform: uppercase;
}

.btn-iniciar-mundiales:hover {
  background-color: #e2dbc8;
}

/* === REDISEÃ‘O VISUAL DE FORMULARIO DINÃMICO MUNDIALES === */
.formulario-respuestas {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2rem 1rem;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
}

.formulario-respuestas label {
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.formulario-respuestas input[type="text"] {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif; /* ✅ Fuente corregida */
  border: none;
  border-radius: 0;
  background-color: #ffffff;
  color: #000;
}

.formulario-respuestas .campo-respuesta {
  display: flex;
  flex-direction: column;
}

.btn-nohubo {
  background-color: #f4ebd0;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-family: 'Urbanist', sans-serif;
  font-weight: 900;
  margin-top: 0.5rem;
  cursor: pointer;
  border-radius: 0px;
  align-self: flex-start;
  transition: background 0.3s ease;
}

.btn-nohubo:hover {
  background-color: #e2dbc8;
}

/* Estilo para campos mÃºltiples tipo goles, tarjetas, etc. */
.formulario-respuestas .grupo-numeros {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.formulario-respuestas .grupo-numeros input[type="text"] {
  flex: 1 1 60px;
  text-align: center;
  padding: 0.6rem 0.5rem;
}

.sugerencias {
  position: absolute;
  background-color: white;
  border: 2px solid #3C5A3B; /* Verde oscuro del fondo */
  border-radius: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
  max-width: 300px;
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: 1rem;
}

.sugerencias li {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
  background-color: #fff;
}

.sugerencias li:hover {
  background-color: #F4EBD0; /* Marfil Envejecido */
}

.logo-mundial-html {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px auto;
  padding: 12px 24px;
  background-color: var(--color-fondo, #000);
  color: var(--color-texto, #fff);
  font-family: 'Prata', serif;
  font-size: 3rem;
  font-weight: 400;
  text-align: center;
  letter-spacing: 1px;
  border-radius: 0;
  width: fit-content;

  /* text-shadow: ... (esto ya no se usa) */
}

.logo-mundial-html span {
  color: inherit;
  -webkit-text-stroke: 1px var(--stroke-color); /* âœ… Verdadero stroke */
  text-shadow: none;
}

input.correcto {
  background-color: #c2a14d !important;
  color: #000; /* Para asegurar buena legibilidad */
}

/* === BOTONES NUMÉRICOS DINÁMICOS === */
.btn-opcion {
  background-color: #F4EBD0; /* Marfil envejecido */
  color: #000;
  font-family: 'Urbanist', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0.6rem 1.2rem;
  margin: 0.25rem 0.4rem; /* ✅ Espacio entre botones */
  border: none;
  border-radius: 0; /* SIN bordes redondeados */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-opcion.correcta {
  background-color: #C2A14D !important; /* Dorado opaco */
  color: #000 !important;
}

.btn-opcion.incorrecta {
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.logo-mundial-final {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px auto;
  padding: 12px 24px;
  background-color: var(--color-fondo, #000);
  color: var(--color-texto, #fff);
  font-family: 'Prata', serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: center;
  border-radius: 0;
  width: fit-content;
  -webkit-text-stroke: 1px var(--stroke-color, #fff);
  text-shadow: none;
}

.pantalla-final {
  font-family: 'Inter', sans-serif;
  color: #ffffff;
}

.botones-final button:disabled {
  opacity: 1;
  cursor: not-allowed;
  filter: grayscale(100%) brightness(90%);
}

.pantalla-final .btn-iniciar {
  background-color: #f4ebd0;
  color: #000000;
  font-family: 'Urbanist', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  padding: 1.2rem 2rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
  max-width: 320px;
}

.pantalla-final .btn-iniciar:hover {
  background-color: #e2dbc8;
}

.pantalla-final .botones-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* separa los botones verticalmente */
  margin-top: 2rem;
  width: 100%;
}

.pantalla-final .btn-iniciar {
  background-color: #f4ebd0;
  color: #000000;
  font-family: 'Urbanist', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  padding: 1.2rem 2rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
  max-width: 320px;
}

.mensaje-compartir {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000000dd;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  z-index: 9999;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* === Botón ME RINDO (uniforme) === */
.pie-juego{
  display: flex;
  justify-content: center;
  margin: 18px 0 28px;
}

.btn-rendirse{
  background: #000000;
  color: #ffffff;
  font-family: 'Urbanist', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  padding: 12px 28px;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s ease;
}
.btn-rendirse:hover{ opacity:.9; }

/* un poco de aire abajo en móvil (safe area iOS) */
.contenedor-juego{
  padding-bottom: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
