/* ───────────────────────────────────────────────────────────────────────────
   INFO_LIVESPORT — Variante 5: race day / sport poster (mobile-first)
   Italic display, diagonales, números de lane, sensación de velocidad
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --ls-rojo:        #cc0019;
  --ls-rojo-hover:  #ff001f;
  --ls-rojo-deep:   #99000f;
  --ls-verde:       #def919;
  --ls-negro:       #0a0a0a;
  --ls-negro-soft:  #1a1a1a;
  --ls-fondo:       #f5f5f5;
  --ls-fondo-2:     #ffffff;
  --ls-texto:       #0a0a0a;
  --ls-texto-soft:  #5a5a5a;
  --ls-borde:       #e0e0e0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  --safe-top:    env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ls-texto);
  background: var(--ls-fondo);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* ═════════════════════════════════════════════════════════════════════════
   MOBILE FIRST
   ═════════════════════════════════════════════════════════════════════════ */

/* ── HERO (NEGRO con franjas diagonales rojas y lime) ───────────────────── */
.hero {
  background: var(--ls-negro);
  color: #fff;
  padding: 44px 0 56px;
  padding-top: calc(44px + var(--safe-top));
  position: relative;
  overflow: hidden;
}

/* Franja roja diagonal — sensación de velocidad */
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -30%;
  width: 70%; height: 140%;
  background: var(--ls-rojo);
  transform: skewX(-18deg);
  z-index: 0;
}

/* Franja verde lime que cruza por arriba — finish line */
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ls-verde) 0 12px,
    var(--ls-negro) 12px 24px
  );
}

.hero .container { position: relative; z-index: 2; }

.hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: 10px;
  font-weight: 800;
  margin: 0 0 18px;
  padding: 5px 10px;
  background: var(--ls-verde);
  color: var(--ls-negro);
  font-style: italic;
  transform: skewX(-10deg);
}
.hero .eyebrow > span { display: inline-block; transform: skewX(10deg); }

.hero h1 {
  font-size: 34px;
  line-height: .95;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -.025em;
  text-transform: uppercase;
  font-style: italic;
  color: #fff;
}
.hero h1 br { display: none; }
.hero h1 .accent {
  color: var(--ls-verde);
  text-shadow: 2px 2px 0 var(--ls-rojo-deep);
}

.hero .lede {
  font-size: 14px;
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-weight: 500;
  line-height: 1.5;
}
.hero .lede strong {
  color: var(--ls-verde);
  font-weight: 800;
  font-style: italic;
  letter-spacing: .01em;
}

/* Bandera a cuadros decorativa abajo del hero */
.hero-flag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 14px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--ls-negro) 0 14px,
      #fff 14px 28px
    );
  z-index: 1;
}

/* ── ZONES GRID ─────────────────────────────────────────────────────────── */
.zones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0 48px;
  position: relative;
  z-index: 2;
}

/* CARD: blanca con número de lane gigante a la izquierda */
.zone-card {
  background: var(--ls-fondo-2);
  border: 2px solid var(--ls-negro);
  border-radius: 0;                /* angular, no redondo */
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 4px 4px 0 var(--ls-rojo);
}

/* Esquina diagonal cortada arriba derecha — efecto poster */
.zone-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 40px;
  background: var(--ls-rojo);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  z-index: 1;
}

/* Número de lane (01, 02...) */
.zone-card[data-num]::after {
  content: attr(data-num);
  position: absolute;
  top: 8px; left: 14px;
  font-size: 38px;
  font-weight: 800;
  font-style: italic;
  color: var(--ls-rojo);
  letter-spacing: -.03em;
  line-height: 1;
  z-index: 2;
}

.zone-head {
  padding: 18px 20px 14px 70px;     /* deja espacio al número */
  border-bottom: 2px solid var(--ls-negro);
  position: relative;
  background: var(--ls-fondo-2);
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.zone-icon {
  display: none;                    /* el número de lane reemplaza al ícono */
}

.zone-title {
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  margin: 0;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ls-negro);
  line-height: 1;
}
.zone-count {
  font-size: 10px;
  color: var(--ls-rojo);
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
}

/* ── SALA LIST (mobile: 1 columna, layout horizontal por card) ──────────── */
.sala-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.sala {
  padding: 10px;
  background: var(--ls-fondo);
  border: 2px solid transparent;
  border-radius: 0;
  display: flex;
  flex-direction: row;          /* IMG | (info + boton) */
  align-items: stretch;
  gap: 12px;
  position: relative;
  min-width: 0;
  transition: border-color .15s ease, transform .12s ease;
}
.sala:active {
  border-color: var(--ls-rojo);
  transform: scale(.99);
}
/* Body = columna a la derecha de la imagen: name + addr arriba, botón abajo */
.sala-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sala-info {
  min-width: 0;
  flex: 1;                     /* empuja el botón al fondo */
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sala-name {
  font-weight: 800;
  font-style: italic;
  font-size: 15px;
  margin: 0;
  color: var(--ls-negro);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sala-addr {
  font-size: 13px;
  color: var(--ls-texto-soft);
  margin: 0;
  font-weight: 500;
  line-height: 1.35;
  /* máximo 2 líneas con elipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sala-ubic {
  font-size: 11px;
  color: var(--ls-rojo);
  margin: 4px 0 0;
  font-weight: 700;
  font-style: italic;
  letter-spacing: .04em;
  text-transform: uppercase;
  /* 1 sola línea con elipsis si fuera muy largo */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* siempre reserva la línea para parejas */
  min-height: calc(11px * 1.35);
}

/* Botón "ticket" — ancho del contenedor (sala-body en horizontal layout) */
.maps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--ls-negro);
  color: var(--ls-verde);
  text-decoration: none;
  border: none;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .1em;
  white-space: nowrap;
  text-transform: uppercase;
  font-family: inherit;
  transition: background .15s ease, color .15s ease, transform .1s ease;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.maps-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
/* Pestaña roja decorativa al final del botón */
.maps-btn::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 6px;
  background: var(--ls-rojo);
}
.maps-btn:active {
  background: var(--ls-rojo);
  color: #fff;
  transform: scale(.98);
}
.maps-btn svg { width: 14px; height: 14px; }

.maps-btn--disabled {
  background: #d8d8d8;
  color: #888;
  cursor: not-allowed;
  pointer-events: none;
}
.maps-btn--disabled::after { background: #aaa; }

/* ── Botón secundario (Street View) ─────────────────────────────────────── */
.maps-btn--secondary {
  background: var(--ls-fondo-2);
  color: var(--ls-negro);
  border: 2px solid var(--ls-negro);
}
.maps-btn--secondary::after { background: var(--ls-rojo); }
.maps-btn--secondary:active {
  background: var(--ls-negro);
  color: var(--ls-verde);
}

/* ── Fila de acciones (cuando hay 2 botones) ────────────────────────────── */
.sala-actions {
  display: flex;
  flex-direction: column;       /* Mobile: stacked (2 cols ya hace cards angostas) */
  gap: 6px;
}

/* ── Preview (thumb cuadrado a la izquierda, layout horizontal) ─────────── */
.sala-preview {
  display: block;
  position: relative;
  flex: 0 0 110px;              /* ancho fijo en mobile */
  width: 110px;
  height: 110px;                /* cuadrado */
  align-self: flex-start;       /* anclado arriba en la card */
  overflow: hidden;
  border: 2px solid var(--ls-negro);
  background: var(--ls-negro);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 3px 3px 0 var(--ls-rojo);
}
.sala-preview--placeholder {
  box-shadow: none;
  border-color: var(--ls-borde);
}
.sala-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.sala-preview:active img { transform: scale(1.02); }
.sala-preview-badge {
  position: absolute;
  top: 6px; left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  background: rgba(10,10,10,.85);
  color: var(--ls-verde);
  font-size: 9px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}
.sala-preview-badge svg { width: 10px; height: 10px; }

/* ── LANDING (cards-link) ───────────────────────────────────────────────── */
.zone-card--link {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.zone-card--link .zone-cta {
  margin: 0;
  padding: 16px 20px;
  color: var(--ls-verde);
  background: var(--ls-negro);
  font-weight: 800;
  font-style: italic;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 2px solid var(--ls-negro);
  min-height: 52px;
}
.zone-card--link .zone-cta-arrow {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--ls-verde);
  transition: transform .2s ease;
}
@media (hover: hover) {
  .zone-card--link:hover .zone-cta-arrow { transform: translateX(4px); }
}

/* ── CTA CARD ("conoce todas las salas") ────────────────────────────────── */
.cta-card {
  margin: 24px 0 40px;
  background: var(--ls-negro);
  color: #fff;
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ls-negro);
  box-shadow: 4px 4px 0 var(--ls-rojo);
}
/* Banda diagonal roja a la derecha — eco del hero */
.cta-card::before {
  content: "";
  position: absolute;
  top: -10%; right: -25%;
  width: 60%; height: 130%;
  background: var(--ls-rojo);
  transform: skewX(-18deg);
  z-index: 0;
  opacity: .85;
}
/* Patrón finish-line en la parte superior */
.cta-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ls-verde) 0 8px,
    var(--ls-negro) 8px 16px
  );
}
.cta-card > * { position: relative; z-index: 1; }

.cta-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ls-verde);
  font-style: italic;
}
.cta-title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .98;
  color: #fff;
}
.cta-text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.92);
  max-width: 32ch;
  font-weight: 500;
}
.cta-text strong {
  color: var(--ls-verde);
  font-weight: 800;
  font-style: italic;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: #fff;
  color: var(--ls-negro);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 2px solid var(--ls-negro);
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.cta-btn:active {
  background: var(--ls-verde);
  color: var(--ls-negro);
  transform: scale(.98);
}
.cta-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Tablet+: tipografía un poco más grande */
@media (min-width: 640px) {
  .cta-card { padding: 36px 28px; margin: 32px 0 48px; }
  .cta-title { font-size: 32px; }
  .cta-text { font-size: 15px; max-width: 40ch; }
}

/* Hover: solo desktop */
@media (hover: hover) {
  .cta-btn { transition: background .15s ease, color .15s ease, transform .15s ease; }
  .cta-btn:hover {
    background: var(--ls-verde);
    color: var(--ls-negro);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ls-rojo);
  }
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--ls-negro);
  color: rgba(255,255,255,.6);
  padding: 24px 0;
  padding-bottom: calc(24px + var(--safe-bottom));
  text-align: center;
  font-size: 11px;
  letter-spacing: .04em;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ls-verde) 0 12px,
    var(--ls-negro) 12px 24px
  );
}
.footer a { color: var(--ls-verde); }

/* ═════════════════════════════════════════════════════════════════════════
   TABLET (≥ 640px)
   ═════════════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .container { padding: 0 24px; max-width: 720px; }

  .hero { padding: 60px 0 72px; }
  .hero h1 { font-size: 48px; margin-bottom: 18px; }
  .hero h1 br { display: inline; }
  .hero .lede { font-size: 16px; }

  .zones { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  /* Páginas QR (zone-card sin --link + cta-card): span full grid, centradas y acotadas.
     Las cards de la landing usan .zone-card--link y siguen comportándose en grid normal. */
  .zone-card:not(.zone-card--link),
  .cta-card {
    grid-column: 1 / -1;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  /* Tablet: zona en 2 cols; cada zona tiene 1 col de salas (mismo layout horizontal) */
  .sala-list { padding: 10px; gap: 10px; }
  .sala { padding: 12px; gap: 14px; }
  .sala-preview { flex-basis: 100px; width: 100px; height: 100px; }
  .sala-name { font-size: 14px; }
  .sala-addr { font-size: 12px; }

  .zone-card[data-num]::after { font-size: 44px; top: 10px; left: 16px; }
  .zone-head { padding-left: 78px; min-height: 70px; }
  .zone-title { font-size: 26px; }
}

/* ═════════════════════════════════════════════════════════════════════════
   DESKTOP (≥ 1024px)
   ═════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .container { max-width: 1080px; padding: 0 32px; }

  .hero { padding: 88px 0 100px; }
  .hero h1 { font-size: 64px; }
  .hero .lede { font-size: 18px; }

  /* En desktop el zone-card y cta-card pueden ser un poco más anchos */
  .zone-card:not(.zone-card--link),
  .cta-card {
    max-width: 880px;
  }

  .zone-head { padding: 22px 24px 18px 90px; min-height: 80px; }
  .zone-card[data-num]::after { font-size: 56px; top: 12px; left: 20px; }
  .zone-title { font-size: 30px; }
  .zone-card::before { width: 56px; height: 56px; }

  /* Desktop: 1 col de salas dentro de cada zona, layout horizontal con más aire */
  .sala-list { padding: 14px; gap: 12px; }
  .sala { padding: 14px; gap: 16px; }
  .sala-preview { flex-basis: 120px; width: 120px; height: 120px; }
  .sala-name { font-size: 16px; }
  .sala-addr { font-size: 13px; }
}

/* ═════════════════════════════════════════════════════════════════════════
   HOVER (sólo mouse)
   ═════════════════════════════════════════════════════════════════════════ */
@media (hover: hover) {
  .zone-card { transition: transform .2s ease, box-shadow .2s ease; }
  .zone-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ls-rojo);
  }
  .sala:hover {
    border-color: var(--ls-rojo);
    transform: translateX(4px);
  }
  .maps-btn:hover {
    background: var(--ls-rojo);
    color: #fff;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   PREFER REDUCED MOTION
   ═════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
