@charset "UTF-8";
/* ESTILOS GENERALES */
body {
  margin: 0;
  padding: 0;
  background-color: #1c1c1c; /* Fondo madera */
  font-family: 'Inter', 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;
}

/* === PANTALLA INICIO (solo lo necesario) === */

.pantalla-inicio-nueva {
  background-color: #1c1c1c;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Inter', sans-serif;
}

/* Header con logo y lema */
.header-quinteto {
  background-color: #1c1c1c;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0 0.5rem;
  width: 100%;
}

/* (para mantener comportamiento de la clase adicional en el <img>) */
.logo-jueguitos {
  max-width: 100%;
  height: auto;
}

.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;
}

/* Bloques de título, subtítulo e instrucciones */
.bloque {
  width: 100%;
  text-align: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

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

.subtitulo-quinteto {
  background-color: #ce1126;
  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;
}

/* Botón iniciar */
.btn-iniciar-nueva {
  background-color: #f2efe6;
  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: #f2efe6;
}

a.btn-iniciar-nueva {
  text-decoration: none;
  display: inline-block;
}

.instruccion,
.titulo-secundario {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.4rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.instruccion {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #ffffff;
}

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

.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 {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.contenedor-secundario {
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin-top: 1.5rem;
}

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

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

.pos-mini {
  font-family: 'League Spartan', 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 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  background-color: #f2efe6;
  color: #1c1c1c;
}

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

.logo-generado {
  font-family: 'Prata', serif;
  font-size: 2.4rem;
  padding: 1rem 2rem;
  text-align: center;
  margin: 1rem auto;
  display: inline-block;
  border-radius: 0px;
  line-height: 1.3;
}

.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; }

.cancha { width: 100%; }
.fondo-cancha { width: 100%; height: auto; object-fit: contain; }
.cancha-contenedor { max-width: 500px; margin: 0 auto; }/* tope real de la cancha */

/* --- Tamaño del slot y estado ocupado --- */
.zona-juego .posicion {
  width: 18%;
  aspect-ratio: 3 / 4;
  position: absolute;
  transform: translate(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px)));
  border-radius: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.zona-juego .posicion.ocupado { background: none !important; }

/* --- Jersey HTML 3C (SVG) --- */
.jersey-3c { line-height: 1; }
.jersey-svg { width: 71%; height: auto; display: block; }.jersey-3c .base  { fill: var(--colorFondo); }
.jersey-3c .trim  { fill: var(--colorTexto); }
.jersey-3c .numero {
  font-family: 'Prata', serif;
  font-size: 42px;               /* ajusta si quieres más grande/pequeño */
  text-anchor: middle;           /* ya centrado en x=110 */
  dominant-baseline: middle;
  fill: none;                    /* “stroke” como pediste */
  stroke: var(--colorStroke);
  stroke-width: 3.5;
  paint-order: stroke fill;
}

/* --- Apellido debajo del jersey --- */
.nombre-abajo{
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: .3px;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
}

/* --- Formación 1–3–4–3 (porcentajes, centrada) --- */
/* DT */
.zona-juego .dt   { top: 7%;  left: 50%; }

/* 3 DEL (arriba) */
.zona-juego .del1 { top: 25%; left: 33%; }
.zona-juego .del2 { top: 25%; left: 50%; }
.zona-juego .del3 { top: 25%; left: 68%; }

/* 4 MED (segunda línea) */
.zona-juego .med1 { top: 43%; left: 22%; }
.zona-juego .med2 { top: 43%; left: 40%; }
.zona-juego .med3 { top: 43%; left: 60%; }
.zona-juego .med4 { top: 43%; left: 78%; }

/* 3 DEF (tercera línea) */
.zona-juego .def1 { top: 63%; left: 30%; }
.zona-juego .def2 { top: 63%; left: 50%; }
.zona-juego .def3 { top: 63%; left: 70%; }

/* POR (abajo) */
.zona-juego .por  { top: 86%; left: 50%; }

/* Jersey 3C */
.jersey-svg { width: 64px; height: auto; display: block; }

.jersey-3c .base { fill: var(--colorFondo); }
/* Pintar mangas/cuello aunque el SVG use id="trim" */
.jersey-3c .trim,
.jersey-3c #trim path { fill: var(--colorTexto); }

.jersey-3c .numero{
  font-family: 'Prata', serif;
  font-size: 7rem;      /* ajusta: 48–72 px según veas */
  text-anchor: middle;
  dominant-baseline: middle;
  fill: var(--colorStroke);
}

/* La cancha debe ser el ancla del overlay */
.cancha { position: relative !important; }
.fondo-cancha { display:block; width:100%; height:auto; }

/* Overlay exactamente del tamaño de la imagen de cancha */
.zona-juego{
  position: absolute !important;
  inset: 0 !important;          /* top:0; right:0; bottom:0; left:0 */
  width: 100% !important;
  height: 100% !important;
  left: auto !important;        /* cancela el centrado anterior */
  transform: none !important;   /* cancela translateX(-50%) */
}

/* (opcional) depuración rápida: activa para ver el borde del overlay */
/*
.zona-juego{ outline: 1px dashed rgba(255,255,255,.4); background: rgba(0,255,0,.04); }
*/

/* permite micro-ajustes por fila sin romper el translate(-50%,-50%) */
.zona-juego .posicion{
  transform: translate(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px)));
}

/* SUBIR la línea de DEL (solo vertical) */
.posicion.del1,
.posicion.del2,
.posicion.del3 {
  top: 20%;   /* si antes era 28%, por ejemplo */
}

.posicion.dt { top: 20%; left: 8%; }

/* Oculta el número únicamente en el slot del DT */
.posicion.dt .jersey-3c .numero { display: none; }

.mensaje-juego {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 1rem;
}

/* Contenedor de los dos botones (columna, centrados) */
.botones-final {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: .5rem;
  align-items: center;
}

/* Botones de la pantalla final (mismo look & feel) */
.pantalla-final .btn-iniciar {
  background-color: #f2efe6;
  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: 280px;
}

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

/* (Opcional) Ajuste responsivo como en el original */
@media (max-width: 600px) {
  .botones-final {
    gap: 0.6rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

/* XI — Ajuste móvil para juego y final */
@media (max-width: 480px){
  /* tamaño del slot relativo a la cancha */
  .pantalla-juego .zona-juego .posicion,
  .pantalla-final .zona-juego .posicion{
    width: 16.5%;
    height: auto;           /* evita altura fija que estorbe */
  }

  /* tamaño del jersey dentro del slot */
  .pantalla-juego .zona-juego .posicion .jersey-svg,
  .pantalla-final .zona-juego .posicion .jersey-svg{
    width: 68%;
  }

  /* etiqueta bajo el jersey (opcional) */
  .pantalla-juego .zona-juego .nombre-abajo,
  .pantalla-final .zona-juego .nombre-abajo{
    font-size: 10px;
  }
}