/* ══════════════════════════════════════════════════════════════
   unrealGDSG — estilos compartidos de las páginas derivadas
   (privacy, terms, schedule, 404). Mismo sistema "editorial brutalista"
   del index: paleta #0e0e0e + lima + crema, Syne 800, bordes duros,
   sombras sólidas desplazadas.
   ══════════════════════════════════════════════════════════════ */
:root {
  --bg: #0e0e0e; --surface: #161616; --surface2: #1f1f1f;
  --accent: #c8f04d; --osrs: #ffb900; --text: #f0ede6; --muted: #9a978f;
  --border: rgba(240,237,230,0.1); --line: rgba(240,237,230,0.12); --line-strong: rgba(240,237,230,0.22);
  --ink: #0e0e0e; --green: #64dc64; --red: #f04d8a;
  --r: 4px; --r-lg: 8px;
  --pad-x: clamp(1rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 400;
  min-height: 100vh; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(240,237,230,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(240,237,230,0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, #000, rgba(0,0,0,0.3) 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0,0,0,0.3) 70%, transparent);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(14,14,14,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em;
  text-decoration: none; color: var(--text);
}
.nav-logo img { height: 26px; width: auto; }
.nav-logo b, .nav-logo span span { color: var(--accent); font-weight: 800; }
.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.lang-btn {
  min-height: 40px; padding: 0 0.85rem; background: transparent;
  border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--text);
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.78rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-back {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.95rem;
  background: var(--accent); color: var(--ink); border: 2px solid var(--accent); border-radius: var(--r);
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.8rem; text-decoration: none; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--text); transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.nav-back:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--text); }
.nav-back:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--text); }

/* ── Cabecera de página ── */
main { max-width: 760px; margin: 0 auto; padding: 8rem 1.25rem 5rem; position: relative; }
.page-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Syne', sans-serif; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.page-label::before { content: '('; color: var(--accent); }
.page-label::after { content: ')'; color: var(--accent); }
.page-title, h1.page-title {
  font-family: 'Syne', sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 7.4vw, 4rem); line-height: 0.95; letter-spacing: -0.035em;
  margin-bottom: 1rem; text-wrap: balance; overflow-wrap: break-word;
}
.page-sub { color: var(--muted); font-size: 1rem; max-width: 60ch; margin-bottom: 2.75rem; }
.page-head-rule { border-top: 2px solid var(--text); margin-bottom: 2rem; }

/* ── Secciones legales (privacy / terms) ── */
.terms-section {
  position: relative; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 1.5rem 1.6rem; margin-bottom: 1rem;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.terms-section:hover { border-color: var(--accent); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--accent); }
.terms-section h2 {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.08rem; text-transform: uppercase; letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}
.terms-section h2 .num {
  flex-shrink: 0; font-size: 0.74rem; color: var(--ink); background: var(--accent);
  border-radius: var(--r); padding: 0.18rem 0.5rem; transform: rotate(-3deg);
}
.terms-section p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.65rem; }
.terms-section p:last-child { margin-bottom: 0; }
.terms-section strong { color: var(--text); font-weight: 700; }
.terms-section ul { list-style: none; margin: 0.4rem 0 0.7rem; }
.terms-section li { position: relative; color: var(--muted); font-size: 0.95rem; padding-left: 1.4rem; margin-bottom: 0.45rem; }
.terms-section li::before {
  content: ''; position: absolute; left: 0; top: 0.42em; width: 0.7rem; height: 0.4rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.terms-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.highlight { border-color: rgba(240,77,138,0.45); }
.highlight:hover { border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }
.highlight h2 .num { background: var(--red); color: var(--ink); }
.updated { text-align: center; font-size: 0.76rem; color: var(--muted); margin-top: 2rem; }

/* ── Agenda (schedule) ── */
.status-card {
  background: var(--surface); border: 2px solid var(--text); border-radius: var(--r-lg);
  padding: 1.75rem; margin-bottom: 1rem; box-shadow: 6px 6px 0 var(--accent);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.status-card.available { box-shadow: 6px 6px 0 var(--green); }
.status-card.busy { box-shadow: 6px 6px 0 var(--red); }
.status-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; animation: pulseDot 1.8s ease-in-out infinite; }
.status-dot.available { background: var(--green); box-shadow: 0 0 0 4px rgba(100,220,100,0.15); }
.status-dot.busy { background: var(--red); box-shadow: 0 0 0 4px rgba(240,77,138,0.15); }
@keyframes pulseDot { 50% { opacity: 0.35; } }
.status-badge { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.status-badge.available { color: var(--green); }
.status-badge.busy { color: var(--red); }
.status-main { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.35rem, 4vw, 1.8rem); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 0.5rem; }
.status-desc { color: var(--muted); font-size: 0.95rem; }
.info-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong); border-radius: var(--r); margin-bottom: 1rem; background: var(--surface);
}
.info-card { padding: 1.3rem 1.25rem; min-width: 0; }
.info-card:nth-child(even) { border-left: 1px solid var(--line-strong); }
.info-card:nth-child(n+3) { border-top: 1px solid var(--line-strong); }
.info-card-label { font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.info-card-value { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; line-height: 1.15; }
.info-card-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }
.queue-bar-wrap { height: 6px; margin-top: 0.8rem; background: var(--surface2); overflow: hidden; }
.queue-bar { height: 100%; background: var(--accent); transition: width 0.6s var(--ease); }
.queue-bar.busy-bar { background: var(--red); }
.notes-card { background: var(--surface); border: 2px dashed var(--accent); border-radius: var(--r); padding: 1.25rem; margin-bottom: 1rem; }
.notes-card-label { font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.notes-card-text { font-size: 0.95rem; }
.cta-row { display: flex; gap: 0.9rem; margin-top: 1.75rem; flex-wrap: wrap; }
.btn-cta {
  flex: 1; min-width: 150px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 1.25rem; border-radius: var(--r); cursor: pointer; text-decoration: none; text-align: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.92rem;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.2s, color 0.2s;
}
.btn-cta.primary { background: var(--accent); color: var(--ink); border: 2px solid var(--accent); box-shadow: 4px 4px 0 var(--text); }
.btn-cta.primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--text); }
.btn-cta.secondary { background: transparent; color: var(--text); border: 2px solid var(--line-strong); }
.btn-cta.secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── Footer ── */
footer { border-top: 1px solid var(--line); padding: 1.75rem var(--pad-x); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
footer a { color: var(--accent); text-decoration: none; font-family: 'Syne', sans-serif; font-weight: 700; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── 404 ── */
.nf { min-height: 100vh; display: grid; place-items: center; padding: 6rem var(--pad-x) 3rem; }
.nf-wrap { width: 100%; max-width: 640px; }
.nf-code {
  display: inline-block; font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(4.5rem, 21vw, 13rem); line-height: 0.82; letter-spacing: -0.06em;
  background: var(--accent); color: var(--ink); padding: 0.02em 0.1em 0.06em;
  transform: rotate(-3deg); box-shadow: 10px 10px 0 var(--text); margin-bottom: 2.25rem;
}
.nf h1 { font-family: 'Syne', sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 6vw, 2.6rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.8rem; }
.nf .sub { color: var(--muted); font-size: 1.02rem; max-width: 46ch; margin-bottom: 2rem; }
.nf .actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.nf .links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.nf .links a { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.86rem; color: var(--muted); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.nf .links a:hover { color: var(--accent); }

@media (max-width: 600px) {
  nav { height: 58px; }
  main { padding-top: 6.5rem; }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .info-card:nth-child(even) { border-left: 0; }
  .info-card + .info-card { border-top: 1px solid var(--line-strong); }
  .terms-section { padding: 1.25rem 1.1rem; }
  .status-card { padding: 1.35rem; box-shadow: 4px 4px 0 var(--accent); }
}
@media (max-width: 400px) {
  .nav-logo img { display: none; }
  .nav-back { padding: 0 0.7rem; font-size: 0.74rem; }
}
