/* Piezas interactivas compartidas por todas las versiones:
   pelota medicinal con información al lado, banda elástica y pelota para lanzar.
   Cada versión cambia los colores con estas variables. */
:root {
  --pz-tinta: #1F2D32;
  --pz-suave: #4C5F64;
  --pz-fondo: #F4F8F7;
  --pz-linea: rgba(31, 45, 50, 0.16);
  --pz-pelota: #1F2E4A;   /* azul marino */
  --pz-banda: #86A1A8;
}

/* ---------- ¿Cuándo consultar? + pelota al costado ---------- */
.consulta { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; align-items: stretch; }
.consulta__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.consulta__lista li { padding: 12px 0; border-top: 1px solid var(--pz-linea); font-size: 17px; line-height: 1.35; color: var(--pz-tinta); }
.consulta__lista li:last-child { border-bottom: 1px solid var(--pz-linea); }
.pelota-caja { position: relative; min-height: 300px; overflow: hidden; border-bottom: 2px solid var(--pz-tinta); }
.pelota-caja .pelota {
  position: absolute; left: 50%; bottom: 0; width: 102px; height: 102px; margin-left: -51px;
  padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; -webkit-tap-highlight-color: transparent;
}
.pelota-caja .pelota svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pelota-caja .pelota-sombra {
  position: absolute; left: 50%; bottom: -8px; width: 96px; height: 16px; margin-left: -48px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 30, 50, 0.4), transparent); pointer-events: none;
}
@media (min-width: 900px) {
  .consulta { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .consulta__lista li { font-size: 20px; padding: 16px 0; }
  .pelota-caja { min-height: 440px; }
  .pelota-caja .pelota { width: 172px; height: 172px; margin-left: -86px; }
}

/* ---------- Banda elástica ---------- */
.banda-juego { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.banda-juego svg { display: block; width: 100%; height: auto; overflow: visible; }
.banda-juego .banda { fill: none; stroke: var(--pz-banda); stroke-width: 16; stroke-linecap: round; }
.banda-juego .banda-brillo { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 4; stroke-linecap: round; }
.banda-juego .manija { fill: var(--pz-tinta); }
.banda-juego .tirador { fill: transparent; cursor: grab; }
.banda-juego__tension { position: absolute; left: 0; top: 0; font-size: 13px; color: var(--pz-suave); font-variant-numeric: tabular-nums; }

/* ---------- Lanzar la pelota ---------- */
.lanzar-caja { position: relative; height: 340px; overflow: hidden; border-radius: 20px; background: var(--pz-fondo); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lanzar-caja::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--pz-tinta); opacity: 0.25; }
.lanzar-caja .pelota-libre { position: absolute; left: 0; top: 0; width: 76px; height: 76px; cursor: grab; touch-action: none; will-change: transform; }
.lanzar-caja .pelota-libre svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lanzar-caja__pista { position: absolute; left: 16px; top: 14px; font-size: 13px; color: var(--pz-suave); pointer-events: none; }

/* Pelota de rugby (ovalada) */
.lanzar-caja .pelota-rugby { width: 96px; height: 61px; filter: drop-shadow(0 10px 8px rgba(20, 30, 50, 0.22)); }
@media (min-width: 900px) { .lanzar-caja .pelota-rugby { width: 124px; height: 79px; } }

/* H de rugby vista de costado (juego de la guinda) */
.lanzar-caja .h-gol { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.h-gol .h-palo { stroke: rgba(20, 30, 50, 0.25); stroke-width: 1; transition: opacity 0.3s; }
.h-gol .h-barra { fill: #CCD5D9; stroke: rgba(20, 30, 50, 0.35); stroke-width: 1.5; transition: fill 0.3s; }
.h-gol .h-cubre { fill: #172A63; }
.h-acierto .h-gol .h-barra { fill: #FFE48A; }
.h-acierto .h-gol .h-palo { filter: drop-shadow(0 0 6px #FFE48A); }
.h-aviso {
  position: absolute; left: 14px; right: 14px; top: 44px; z-index: 2; padding: 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.94); box-shadow: 0 18px 40px -20px rgba(20, 30, 50, 0.45); color: var(--pz-tinta);
}
.h-aviso[hidden] { display: none; }
.h-aviso strong { display: block; font-size: 22px; letter-spacing: -0.03em; }
.h-aviso p { margin: 6px 0 14px; font-size: 17px; line-height: 1.4; color: var(--pz-tinta); }
.h-aviso__acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.h-aviso__boton { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--pz-tinta); color: #fff; font: inherit; font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; }
.h-aviso__boton--seguir { background: #fff; color: var(--pz-tinta); box-shadow: inset 0 0 0 2px var(--pz-tinta); }
/* En PC el cartel aparece en el medio de la pantalla, más grande */
@media (min-width: 900px) {
  .h-aviso { position: fixed; left: 50%; top: 50%; right: auto; translate: -50% -50%; width: min(480px, 90vw); padding: 32px 34px; z-index: 60; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(20, 30, 50, 0.55); }
  .h-aviso strong { font-size: 34px; }
  .h-aviso p { font-size: 22px; margin: 10px 0 22px; }
  .h-aviso__boton { height: 50px; padding: 0 24px; font-size: 17px; }
}
