/* ====================================================================
   CURVES RAFAELA
   Idea: el circuito en ronda es el dibujo. Doce estaciones alrededor
   de un círculo (fuerza llena, recuperación en aro); al cargar, la
   vuelta se dibuja una vez y el centro cuenta hasta 30 minutos.
   Fucsia, azul noche, rubor y un toque limón. Formas redondas, sin sombras.
   ==================================================================== */
:root {
  --fucsia: #D81B72;
  --fucsia-oscuro: #B0125B;
  --noche: #1F2350;
  --rubor: #FDEAF2;
  --limon: #F4D35E;
  --blanco: #FFFFFF;
  --gris: #585C7A;
  --wa: #25D366;

  --fuente: "Lexend", 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(--fuente); font-weight: 300; background: var(--blanco); color: var(--noche); line-height: 1.65; }
a { color: inherit; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--fucsia); outline-offset: 3px; }

.contenedor { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }

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

/* ====================================================================
   PRESENTACIÓN + CIRCUITO
   ==================================================================== */
.inicio { background: var(--rubor); padding: 2.2rem 0 3rem; overflow: hidden; }
.inicio-grilla { display: grid; gap: 2rem; align-items: center; }
.inicio h1 { font-weight: 600; font-size: clamp(2.1rem, 8vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 15ch; }
.bajada { max-width: 42ch; margin: 1.1rem 0 1.6rem; font-size: 1.08rem; color: var(--gris); }
.boton-wa, .boton-claro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.boton-wa { background: var(--wa); color: #0B2915; }
.boton-wa:hover { background: #1FB855; }

.circuito { justify-self: center; width: min(100%, 440px); }
.circuito-dibujo { position: relative; }
.circuito svg { display: block; width: 100%; height: auto; }
.circuito-base { fill: none; stroke: var(--blanco); stroke-width: 26; }
.circuito-vuelta {
  fill: none;
  stroke: var(--fucsia);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 200px 200px;
  animation: vuelta 2.2s cubic-bezier(0.45, 0, 0.25, 1) both;
}
@keyframes vuelta { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.estacion-fuerza { fill: var(--fucsia); }
.estacion-recuperacion { fill: var(--rubor); stroke: var(--noche); stroke-width: 4; }
.circuito-centro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}
#circuito-minutos { font-weight: 600; font-size: clamp(4.5rem, 22vw, 7.5rem); letter-spacing: -0.05em; color: var(--noche); font-variant-numeric: tabular-nums; }
.circuito-centro span + span { font-size: 1.1rem; margin-top: 0.3rem; color: var(--gris); }
.circuito-leyenda { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; margin-top: 1rem; font-size: 0.92rem; }
.circuito-leyenda span { display: inline-flex; align-items: center; gap: 0.5rem; }
.circuito-leyenda span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; }
.leyenda-fuerza::before { background: var(--fucsia); }
.leyenda-recuperacion::before { border: 3px solid var(--noche); }

@media (min-width: 860px) {
  .inicio { padding: 3.5rem 0 4.5rem; }
  .inicio-grilla { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
}

/* ====================================================================
   LEMA
   ==================================================================== */
.lema { background: var(--noche); color: var(--blanco); padding: 3.6rem 0; text-align: center; }
.lema-texto { font-weight: 600; font-size: clamp(2.2rem, 9vw, 4.4rem); line-height: 1.05; letter-spacing: -0.03em; }
.lema-texto::after { content: ""; display: block; width: 64px; height: 8px; margin: 1.1rem auto 0; border-radius: 99px; background: var(--limon); }
.lema-bajada { max-width: 40ch; margin: 1.1rem auto 1.6rem; color: #C9CBE4; }
.boton-claro { background: var(--blanco); color: var(--noche); }
.boton-claro:hover { background: var(--rubor); }

/* ====================================================================
   UBICACIÓN
   ==================================================================== */
.ubicacion { padding: 3.2rem 0; }
.ubicacion-fila { display: grid; gap: 1.6rem; align-items: center; }
.ubicacion h2 { font-weight: 600; font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.ubicacion p { color: var(--gris); margin-bottom: 0.3rem; }
.ubicacion p a { color: var(--fucsia-oscuro); font-weight: 400; }
.boton-contorno {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 0.8rem;
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--noche);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.boton-contorno:hover { background: var(--noche); color: var(--blanco); }
#mapa-iframe { width: 100%; height: 320px; border: 0; border-radius: 28px; background: var(--rubor); }
@media (min-width: 860px) { .ubicacion-fila { grid-template-columns: 1fr 1.4fr; gap: 3rem; } #mapa-iframe { height: 360px; } }

/* Pie */
.pie { background: var(--rubor); color: var(--gris); 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; }
  .circuito-vuelta { animation: none; }
}
