/* =====================================================================
   Páginas internas de lineahoy.com: /p/*, /en/p/*, /privacidad, /privacy,
   /terminos, /terms y 404. Van DESPUÉS de home.css, que pone la base común
   (tokens, fuentes Archivo + Inter, nav píldora negra, footer negro,
   botones y badges). Aquí solo va lo propio de estas páginas.
   El marcado sale de la plantilla de build.js (renderPage).
   ===================================================================== */

/* ---------- Nav: el botón ES/EN es un link real y se queda visible en
   móvil (a la izquierda del ☰), porque sin JS el menú no abre. ---------- */
.lang--link { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 860px) {
  .nav > .lang--link { display: inline-flex; margin-left: auto; }
  .nav > .lang--link ~ .burger { margin-left: 0; }
}

/* ---------- Encabezado (mismo degradado que el hero del home: .hero) ---------- */
.page-hero__inner,
.page { max-width: 900px; }
.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-block: 36px 44px;
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font: 600 14px/1.2 var(--body);
  color: var(--black);
  text-decoration: none;
}
.page-back:hover { background: var(--white); }
.page-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.page-hero h1 { font-size: clamp(40px, 7.2vw, 84px); max-width: 100%; }
.page-hero__accent {
  display: block;
  margin-top: 0.3em;
  font-size: 0.42em;
  line-height: 1.05;
  color: var(--violet);
}
.page-hero__lead { font-size: 18px; max-width: 56ch; color: #1d1530; }
.page-hero__meta { font-size: 14px; color: #3a3745; }

.page { padding-block: 8px 88px; }

/* ---------- Tiempos en vivo (p-garita.js hidrata .gcard__lanes) ----------
   Mismo look que las tarjetas del home (.pcard). Los colores del punto los
   pone p-garita.js con las clases green / yellow / orange / red (mismos
   cortes que la app: <15 / <45 / <90 / ≥90); sin clase = gris (sin dato). */
.live-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.gcard {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md), inset 0 0 0 1px #ebe8f2;
  padding: 14px 16px;
  min-width: 0;
}
.gcard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0edf6;
  margin-bottom: 4px;
}
.gcard__name { font-weight: 700; font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.gcard__pop { font-size: 12px; color: #6b7280; background: var(--mist); border-radius: 999px; padding: 3px 10px; }
.lane-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; }
.lane-row__left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lane-row__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--t-gray); }
.lane-row__dot.green { background: var(--t-green); }
.lane-row__dot.yellow { background: var(--t-yellow); }
.lane-row__dot.orange { background: var(--t-orange); }
.lane-row__dot.red { background: var(--t-red); }
.lane-row__name { font-size: 14px; color: #3a3745; font-weight: 500; }
.lane-row__time { flex: none; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lane-row__time.muted { font-size: 14px; font-weight: 500; color: var(--t-gray-ink); }
.gcard__note { font-size: 12px; color: #6b7280; margin-top: 10px; }

.page > .stores { justify-content: flex-start; margin-top: 24px; }

/* ---------- Texto largo (lugares y legales) ---------- */
/* home.css da padding grande a todo <section>; aquí van en flujo de texto. */
.legal section { padding-block: 0; margin-top: 48px; scroll-margin-top: 96px; }
.legal section:first-child { margin-top: 40px; }
.legal h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.005em;
  text-wrap: balance;
  overflow-wrap: break-word;
  margin: 0 0 14px;
}
.legal h3 { font-size: 18px; font-weight: 700; margin: 24px 0 6px; }
.legal p,
.legal li { font-size: 16px; line-height: 1.65; color: #2c2933; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--black); font-weight: 600; }
.legal a { color: var(--violet); }

/* ---------- /p/* — "¿A qué hora conviene cruzar?" (typical-waits.js) ---------- */
.legal .typical h3 { font-size: 17px; margin: 26px 0 6px; }
.legal .typical h4 { font-size: 15px; font-weight: 700; color: var(--violet); margin: 14px 0 4px; }
.legal .typical ul { margin-bottom: 8px; }
.legal .typical li { margin-bottom: 4px; }
.legal .typical__note,
.legal .typical__src { font-size: 13px; color: #6b7280; }
.legal .typical__src { margin-top: 16px; }
.typical__slot { white-space: nowrap; }
/* home.css estiliza <details> como el FAQ del home; aquí es una caja. */
.typical__hours {
  margin: 10px 0 4px;
  padding-block: 0;
  border: 1px solid var(--ash);
  border-radius: 14px;
  background: var(--white);
}
.typical__hours summary { padding: 12px 14px; font-size: 15px; color: var(--violet); }
.typical__hours[open] summary { border-bottom: 1px solid #ebe8f2; }
.typical__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  margin: 0 0 6px;
}
.typical__table caption { text-align: left; font-size: 13px; font-weight: 700; padding: 12px 14px 6px; }
.typical__table th,
.typical__table td { padding: 7px 10px; text-align: right; white-space: nowrap; color: #2c2933; }
.typical__table th:first-child { text-align: left; }
.typical__table thead th { background: var(--mist); font-weight: 600; color: var(--black); white-space: normal; }
.typical__table tbody th { font-weight: 500; color: #4a4655; }
.typical__table tbody tr:nth-child(even) { background: #faf9fe; }
@media (max-width: 420px) {
  .typical__table th, .typical__table td { padding: 6px; font-size: 12.5px; }
}

/* ---------- 404 ---------- */
.nf .nf__inner {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding-block: 48px 88px;
}
.nf__light { margin-bottom: 4px; }
.nf .nf__code { max-width: none; font-size: clamp(88px, 22vw, 180px); color: var(--violet); }
.nf__title { font-size: clamp(22px, 4vw, 32px); line-height: 1.2; font-weight: 700; max-width: 22ch; overflow-wrap: break-word; margin: 0; }
.nf__sub { color: var(--charcoal); max-width: 44ch; }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.btn-outline { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 1.5px var(--black); }
