/* ====================================================================
   HAMMER ZONA DE ENTRENAMIENTO
   Idea: el martillo de feria. Una torre a rayas con una actividad por
   nivel y la campana arriba; al tocar el botón rojo el disco sube y se
   frena en lo que te toca probar. Letras de cartel (Bungee), rojo,
   amarillo campana y azul noche sobre blanco. Sombras duras de cartel.
   ==================================================================== */
:root {
  --rojo: #E03A2F;
  --rojo-oscuro: #B42A21;
  --amarillo: #F7C325;
  --noche: #14213D;
  --celeste: #EAF1FA;
  --blanco: #FFFFFF;
  --gris: #4F5A73;
  --wa: #25D366;

  --cartel: "Bungee", "Arial Black", sans-serif;
  --texto: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--texto); background: var(--blanco); color: var(--noche); line-height: 1.6; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }

.contenedor { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
h1, h2, .marca, .resultado { font-family: var(--cartel); font-weight: 400; line-height: 1.05; }

/* Cabecera */
.cabecera { background: var(--noche); color: var(--blanco); }
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marca { font-size: 1.5rem; text-decoration: none; color: var(--amarillo); }
.cabecera-tel { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ====================================================================
   PRESENTACIÓN + MARTILLO
   ==================================================================== */
.inicio { background: var(--celeste); padding: 2.2rem 0 3rem; }
.inicio-grilla { display: grid; gap: 2rem; align-items: center; }
.resultado-zona { min-height: 7.5rem; }
.inicio h1 { font-size: clamp(2.5rem, 11vw, 5.2rem); color: var(--rojo); text-shadow: 4px 4px 0 var(--noche); max-width: 9ch; }
.bajada { max-width: 44ch; margin: 1.2rem 0 1.4rem; font-size: 1.05rem; color: var(--gris); }
.resultado { font-size: clamp(1.4rem, 5.5vw, 2rem); min-height: 1.2em; margin-bottom: 1rem; }
.boton-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.7rem 1.3rem;
  background: var(--wa);
  color: #0B2915;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--noche);
}
.boton-wa:hover { background: #1FB855; }

/* La torre */
.torre { display: flex; flex-direction: column; align-items: center; justify-self: center; width: min(100%, 320px); }
.campana {
  width: 76px;
  height: 46px;
  background: var(--amarillo);
  border: 4px solid var(--noche);
  border-bottom-width: 8px;
  border-radius: 40px 40px 6px 6px;
  margin-bottom: -4px;
  align-self: flex-start;
  margin-left: -10px;
  position: relative;
  z-index: 1;
}
.torre-riel {
  position: relative;
  width: 100%;
  height: 440px;
  display: grid;
  grid-template-columns: 56px 1fr;
}
/* Riel a rayas de feria */
.torre-riel::before {
  content: "";
  grid-column: 1;
  border: 4px solid var(--noche);
  background: repeating-linear-gradient(180deg, var(--rojo) 0 22px, var(--blanco) 22px 44px);
}
.torre-escala {
  grid-column: 2;
  list-style: none;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-around;
  padding-left: 0.8rem;
}
.torre-escala li {
  position: relative;
  padding-left: 0.9rem;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
}
.torre-escala li::before {
  content: "";
  position: absolute;
  left: -0.8rem;
  top: 50%;
  width: 1.2rem;
  height: 3px;
  background: var(--noche);
}
.torre-escala li.tocado { color: var(--rojo); font-family: var(--cartel); font-weight: 400; }
.torre-disco {
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 48px;
  height: 22px;
  margin-bottom: -11px;
  background: var(--amarillo);
  border: 3px solid var(--noche);
  border-radius: 6px;
  transition: bottom 0.75s cubic-bezier(0.15, 0.9, 0.3, 1);
}
.golpe {
  width: 100%;
  min-height: 72px;
  margin-top: 0.6rem;
  background: var(--rojo);
  color: var(--blanco);
  border: 4px solid var(--noche);
  border-radius: 14px;
  box-shadow: 0 8px 0 var(--noche);
  font-family: var(--cartel);
  font-size: 1.5rem;
  transition: transform 0.08s, box-shadow 0.08s;
}
.golpe:hover { background: var(--rojo-oscuro); }
.golpe:active, .golpe:disabled { transform: translateY(6px); box-shadow: 0 2px 0 var(--noche); }

@media (min-width: 860px) {
  .inicio { padding: 3.5rem 0 4rem; }
  .inicio-grilla { grid-template-columns: 1.2fr 1fr; grid-template-areas: "texto torre" "resultado torre"; gap: 0 4rem; }
  .inicio-texto { grid-area: texto; align-self: end; }
  .torre { grid-area: torre; }
  .resultado-zona { grid-area: resultado; align-self: start; }
  .torre-riel { height: 500px; }
}

/* ====================================================================
   TURNERO
   ==================================================================== */
.turnero { background: var(--amarillo); padding: 2.6rem 0; }
.turnero-fila { display: grid; gap: 1.2rem; align-items: center; }
.turnero h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); margin-bottom: 0.4rem; }
.boton-turnero {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0.7rem 1.4rem;
  background: var(--noche);
  color: var(--blanco);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--rojo);
}
@media (min-width: 760px) { .turnero-fila { grid-template-columns: 1fr auto; } }

/* ====================================================================
   UBICACIÓN
   ==================================================================== */
.ubicacion { padding: 3.2rem 0; }
.ubicacion-fila { display: grid; gap: 1.6rem; align-items: center; }
.ubicacion h2 { font-size: clamp(1.7rem, 6.5vw, 2.6rem); margin-bottom: 0.8rem; }
.ubicacion p { color: var(--gris); margin-bottom: 0.3rem; }
.ubicacion p a { color: var(--noche); font-weight: 600; }
.boton-contorno {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 0.8rem;
  padding: 0.6rem 1.3rem;
  border: 3px solid var(--noche);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.boton-contorno:hover { background: var(--noche); color: var(--blanco); }
#mapa-iframe { width: 100%; height: 300px; border: 4px solid var(--noche); border-radius: 14px; background: var(--celeste); }
@media (min-width: 860px) { .ubicacion-fila { grid-template-columns: 1fr 1.4fr; gap: 3rem; } #mapa-iframe { height: 340px; } }

/* Pie */
.pie { background: var(--noche); color: #B9C2D6; padding: 2rem 0 6rem; font-size: 0.9rem; }
.pie p + p { margin-top: 0.3rem; }
.demo-aviso { font-style: italic; }

/* Botón flotante */
.flotante {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem;
  background: var(--wa);
  color: #0B2915;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.flotante span { display: none; }
@media (min-width: 640px) { .flotante { padding: 0.85rem 1.25rem; } .flotante span { display: inline; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .torre-disco, .golpe { transition: none; }
}
