/* ─── Vionest Links · estilos de la página pública ───────────────────────
   Conserva el lenguaje visual del diseño original de Francisco (tarjeta,
   "wing-cut", tipografías Space Grotesk + Inter) pero con los colores
   controlados por variables que se inyectan desde los ajustes del panel. */

:root {
  --navy: #1a2456;
  --cyan: #2bace2;
  --bg: #ffffff;
  --white: #ffffff;
  --ink-soft: #5b6478;
  --line: rgba(26, 36, 86, 0.10);
  --tint: rgba(43, 172, 226, 0.07);
  --tint-strong: rgba(43, 172, 226, 0.12);
}

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

html, body {
  height: 100%;
  background: var(--bg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}

.card {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.lockup img {
  width: 240px;
  max-width: 68%;
  height: auto;
}

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  text-align: center;
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 5vw, 27px);
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.sub {
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 6px;
  font-weight: 400;
}

.spacer { height: 26px; }

.routes {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(26, 36, 86, 0.08);
}

.route {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  text-decoration: none;
  color: var(--navy);
  position: relative;
  transition: background 0.2s ease;
}
.route + .route { border-top: 1px solid var(--line); }
.route:hover { background: var(--tint); }
.route:active { background: var(--tint-strong); }
.route:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }

.flag {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(43, 172, 226, 0.16), rgba(43, 172, 226, 0.04));
  border: 1px solid rgba(43, 172, 226, 0.22);
  overflow: hidden;
}
.flag svg { width: 21px; height: 21px; color: var(--navy); }

.route-text { flex: 1; min-width: 0; }

.route-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--cyan);
  transition: transform 0.2s ease;
}
.route:hover .arrow { transform: translateX(3px); }

.footer { margin-top: 28px; text-align: center; }
.footer-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.footer-tag b { color: var(--cyan); font-weight: 600; }

/* Estados de carga / vacío / error */
.state {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 28px 12px;
}
.skeleton {
  height: 88px;
  border-radius: 16px;
  margin-bottom: 12px;
  background: linear-gradient(100deg, var(--tint) 30%, var(--tint-strong) 50%, var(--tint) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.hidden { display: none !important; }

@media (max-width: 380px) {
  .route { padding: 18px; gap: 12px; }
  .flag { width: 38px; height: 38px; font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .route, .arrow, .skeleton { transition: none; animation: none; }
}
