/* ============================================================
   EPICENTERDSP — /links/  (hub oficial · móvil primero · QR)
   Lenguaje visual: "faceplate" de procesador de car audio.
   Reutiliza los tokens de css/styles.css (colores, fuentes,
   radios, .bg-fx, focus, lang-toggle, skip-link).
   ============================================================ */

/* [hidden] debe ganar a los display:flex de los botones */
[hidden] { display: none !important; }

.lk-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Rejilla técnica de fondo (se desvanece hacia abajo) */
.lk-tex {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(118% 72% at 50% 0%, #000 18%, transparent 72%);
  mask-image: radial-gradient(118% 72% at 50% 0%, #000 18%, transparent 72%);
}

.lk-page {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  padding: 16px 20px calc(30px + env(safe-area-inset-bottom));
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------- Barra superior ---------- */
.lk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: env(safe-area-inset-top);
  margin-bottom: 14px;
}
.lk-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
  padding: 10px 6px;
  margin: -10px -6px;
}
.lk-home:hover { color: var(--txt); }
.lk-home svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.lk-top .lang-toggle { padding: 10px 14px; }

/* ============================================================
   HERO
   ============================================================ */
.lk-hero { text-align: center; padding: 4px 0 2px; }

.lk-logo { position: relative; width: min(240px, 70vw); margin: 0 auto 14px; }
.lk-logo img {
  width: 100%; height: auto;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.65));
}
.lk-logo::before {
  content: "";
  position: absolute;
  inset: -16% -14% -20%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 52%, rgba(242, 13, 30, 0.34), transparent 70%);
  filter: blur(26px);
}

/* Ecualizador vivo (firma de producto DSP) */
.lk-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 26px;
  margin-bottom: 16px;
}
.lk-eq i {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--red-hi), var(--red-deep));
  opacity: 0.9;
}
/* Alturas estáticas: parece una onda aunque no haya animación */
.lk-eq i:nth-child(1)  { height: 26%; }
.lk-eq i:nth-child(2)  { height: 48%; }
.lk-eq i:nth-child(3)  { height: 72%; }
.lk-eq i:nth-child(4)  { height: 40%; }
.lk-eq i:nth-child(5)  { height: 88%; }
.lk-eq i:nth-child(6)  { height: 60%; }
.lk-eq i:nth-child(7)  { height: 100%; }
.lk-eq i:nth-child(8)  { height: 70%; }
.lk-eq i:nth-child(9)  { height: 92%; }
.lk-eq i:nth-child(10) { height: 44%; }
.lk-eq i:nth-child(11) { height: 78%; }
.lk-eq i:nth-child(12) { height: 34%; }
.lk-eq i:nth-child(13) { height: 64%; }
.lk-eq i:nth-child(14) { height: 42%; }
.lk-eq i:nth-child(15) { height: 24%; }

.lk-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--txt);
  margin-bottom: 9px;
  text-wrap: balance;
}
.lk-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 330px;
  margin: 0 auto 15px;
  text-wrap: balance;
}

.lk-official {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(242, 13, 30, 0.32);
  background: rgba(242, 13, 30, 0.07);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-hi);
}
.lk-official .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(242, 13, 30, 0.6);
  animation: dotPulse 2s infinite;
}

/* Tira de specs (técnica, como un panel) */
.lk-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.014);
  margin-top: 20px;
}
.lk-specs div { padding: 11px 5px; text-align: center; border-left: 1px solid var(--line); }
.lk-specs div:first-child { border-left: none; }
.lk-specs b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--txt);
}
.lk-specs b em { font-style: normal; color: var(--red); }
.lk-specs small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 3px;
}

/* ============================================================
   SECCIONES
   ============================================================ */
/* Neutraliza el padding vertical global de `section` de styles.css */
.lk-section { padding: 0; margin-top: 26px; }

.lk-label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--txt);
  margin-bottom: 14px;
}
.lk-label .idx { color: var(--red); letter-spacing: 0.14em; }
.lk-label::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}

/* ============================================================
   FACEPLATE DE PLATAFORMA
   ============================================================ */
.lk-apps { display: flex; flex-direction: column; gap: 15px; }

.lk-group {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, #191a1c, #0c0c0e);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 15px 16px 17px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Tornillos de rack */
.lk-group::before,
.lk-group::after {
  content: "";
  position: absolute; top: 14px;
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #5c5c64, #141416);
  box-shadow: inset 0 0 3px #000;
}
.lk-group::before { left: 6px; }
.lk-group::after { right: 6px; }

/* Plataforma detectada: se ilumina y sube al primer lugar */
body.plat-ios .lk-group.ios,
body.plat-android .lk-group.android {
  border-color: rgba(242, 13, 30, 0.45);
  box-shadow: 0 0 0 1px rgba(242, 13, 30, 0.14), 0 22px 48px rgba(0, 0, 0, 0.55);
}
body.plat-ios .lk-group.ios { order: -1; }
body.plat-android .lk-group.android { order: -1; }

.lk-ghead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.lk-plat-ic {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
}
.lk-plat-ic svg { width: 17px; height: 17px; }
.lk-plat-ic.apple svg { fill: var(--txt); }
.lk-ghead h3 {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Píldora "tu dispositivo" (con LED) */
.lk-you {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #ef2222, #b8111a);
  box-shadow: 0 4px 12px rgba(180, 14, 20, 0.45);
  white-space: nowrap;
}
.lk-you::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}
body.plat-ios .lk-group.ios .lk-you,
body.plat-android .lk-group.android .lk-you { display: inline-flex; }

/* ============================================================
   BOTONES DE DESCARGA
   ============================================================ */
.lk-btns { display: flex; flex-direction: column; gap: 9px; }

.lk-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 11px 14px 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  color: var(--txt);
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
/* Barra de acento izquierda (canal de señal) */
.lk-btn::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--faint);
  transition: background 0.22s ease, box-shadow 0.22s ease;
}
.lk-btn:hover { transform: translateY(-2px); border-color: rgba(242, 13, 30, 0.5); }
.lk-btn:active { transform: translateY(0) scale(0.99); }

.lk-btn .lk-ic {
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-2);
  transition: transform 0.22s ease;
}
.lk-btn .lk-ic svg { width: 21px; height: 21px; fill: var(--txt); }
.lk-btn:hover .lk-ic { transform: scale(1.06); }

.lk-btn .lk-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; text-align: left; overflow: hidden; }
.lk-btn .lk-t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lk-btn .lk-s {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Flecha (versión gratis) */
.lk-go {
  margin-left: auto; flex-shrink: 0;
  color: var(--dim);
  transition: transform 0.22s ease, color 0.22s ease;
}
.lk-go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lk-btn:hover .lk-go { color: var(--red-hi); transform: translateX(3px); }

/* ---------- Versión DE PAGO (prioridad visual) ---------- */
.lk-btn.paid {
  border-color: rgba(242, 13, 30, 0.5);
  background:
    linear-gradient(180deg, rgba(242, 13, 30, 0.17), rgba(242, 13, 30, 0.03) 72%),
    linear-gradient(180deg, #1b1b1e, #101012);
  box-shadow: 0 0 0 1px rgba(242, 13, 30, 0.12), 0 12px 28px rgba(0, 0, 0, 0.4);
}
.lk-btn.paid::before {
  background: linear-gradient(180deg, var(--red-hi), var(--red-deep));
  box-shadow: 0 0 14px rgba(242, 13, 30, 0.75);
}
.lk-btn.paid:hover {
  border-color: rgba(255, 74, 61, 0.8);
  box-shadow: 0 0 0 1px rgba(242, 13, 30, 0.22), 0 16px 36px rgba(200, 16, 22, 0.32);
}
.lk-btn.paid .lk-ic { border-color: rgba(242, 13, 30, 0.35); background: rgba(255, 255, 255, 0.09); }

/* Badge "Recomendada" */
.lk-rec {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.53rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #ef2222, #b8111a);
  box-shadow: 0 5px 14px rgba(180, 14, 20, 0.5);
  white-space: nowrap;
}
.lk-rec svg { width: 10px; height: 10px; fill: #fff; }

/* Brillo que barre (solo en las de pago) */
.lk-btn.paid::after {
  content: "";
  position: absolute; top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.17), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.lk-btn.paid:hover::after { animation: lkSheen 0.7s ease; }
@keyframes lkSheen { to { left: 130%; } }

/* ---------- Estado "Próximamente" ---------- */
.lk-btn.soon {
  cursor: default;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.lk-btn.soon:hover { transform: none; border-color: var(--line); }
.lk-btn.soon:hover .lk-ic { transform: none; }
.lk-btn.soon .lk-ic { opacity: 0.55; }
.lk-btn.soon .lk-t, .lk-btn.soon .lk-s { color: var(--dim); }
.lk-soon {
  margin-left: auto; flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.53rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
/* Alterna flecha ↔ "Próximamente" según el estado del botón */
.lk-btn .lk-soon { display: none; }
.lk-btn.soon .lk-soon { display: inline-block; }
.lk-btn.soon .lk-go { display: none; }

/* ============================================================
   REDES
   ============================================================ */
.lk-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.lk-social {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #161618, #0c0c0e);
  color: var(--txt);
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.22s ease, background 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.lk-social:hover { transform: translateY(-2px); background: #121214; }
.lk-social:active { transform: translateY(0) scale(0.99); }
.lk-social .lk-ic {
  width: 32px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  transition: transform 0.22s ease;
}
.lk-social .lk-ic svg { width: 17px; height: 17px; fill: var(--txt); transition: fill 0.22s ease; }
.lk-social:hover .lk-ic { transform: scale(1.06); }
.lk-social span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.87rem;
  letter-spacing: 0.02em;
}
/* Acento de marca real al pasar/tocar */
.lk-social.tt:hover { border-color: rgba(37, 244, 238, 0.45); }
.lk-social.tt:hover .lk-ic svg { fill: #25f4ee; }
.lk-social.yt:hover { border-color: rgba(255, 0, 51, 0.5); }
.lk-social.yt:hover .lk-ic svg { fill: #ff0033; }
.lk-social.ig:hover { border-color: rgba(225, 48, 108, 0.55); }
.lk-social.ig:hover .lk-ic svg { fill: #e1306c; }
.lk-social.fb:hover { border-color: rgba(24, 119, 242, 0.55); }
.lk-social.fb:hover .lk-ic svg { fill: #1877f2; }

/* ============================================================
   FOOTER
   ============================================================ */
.lk-foot {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.lk-foot::before {
  content: "";
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(242, 13, 30, 0.7);
}
.lk-foot-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 18px;
  margin-bottom: 13px;
}
.lk-foot-links a { font-size: 0.79rem; color: var(--muted); transition: color 0.25s ease; }
.lk-foot-links a:hover { color: var(--red-hi); }
.lk-foot .cprt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ============================================================
   ENTRADA + MOVIMIENTO — 100% CSS (mejora progresiva)
   Se anima SOLO si el usuario no pidió menos movimiento. Si pide
   reduced-motion (o el CSS fallara), todo queda visible al instante.
   No depende de JavaScript → robusto para el QR en el evento.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .lk-rv {
    opacity: 0;
    animation: lkRise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--d, 0s);
    will-change: opacity, transform;
  }
  @keyframes lkRise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }

  /* Ecualizador en movimiento */
  .lk-eq i { animation: lkEq 1.25s ease-in-out infinite; transform-origin: bottom; }
  @keyframes lkEq { 0%, 100% { transform: scaleY(0.42); } 50% { transform: scaleY(1); } }
  .lk-eq i:nth-child(1)  { animation-delay: -0.90s; }
  .lk-eq i:nth-child(2)  { animation-delay: -0.20s; }
  .lk-eq i:nth-child(3)  { animation-delay: -0.65s; }
  .lk-eq i:nth-child(4)  { animation-delay: -1.10s; }
  .lk-eq i:nth-child(5)  { animation-delay: -0.35s; }
  .lk-eq i:nth-child(6)  { animation-delay: -0.80s; }
  .lk-eq i:nth-child(7)  { animation-delay: -0.15s; }
  .lk-eq i:nth-child(8)  { animation-delay: -1.00s; }
  .lk-eq i:nth-child(9)  { animation-delay: -0.45s; }
  .lk-eq i:nth-child(10) { animation-delay: -0.70s; }
  .lk-eq i:nth-child(11) { animation-delay: -0.25s; }
  .lk-eq i:nth-child(12) { animation-delay: -1.05s; }
  .lk-eq i:nth-child(13) { animation-delay: -0.55s; }
  .lk-eq i:nth-child(14) { animation-delay: -0.30s; }
  .lk-eq i:nth-child(15) { animation-delay: -0.85s; }
}

/* ============================================================
   RESPONSIVE FINO
   ============================================================ */
@media (max-width: 360px) {
  .lk-page { padding-inline: 15px; }
  .lk-group { padding: 14px 16px 16px; }
  .lk-btn { gap: 10px; padding: 11px 12px 11px 14px; }
  .lk-btn .lk-ic { width: 32px; height: 32px; }
  .lk-btn .lk-t { font-size: 0.9rem; }
  .lk-social span { font-size: 0.81rem; }
  .lk-specs b { font-size: 0.7rem; }
  .lk-specs small { font-size: 0.48rem; letter-spacing: 0.1em; }
  /* El badge se compacta a la estrella para no apretar el texto */
  .lk-rec { padding: 6px; gap: 0; }
  .lk-rec [data-lang] { display: none !important; }
  .lk-rec svg { width: 13px; height: 13px; }
  .lk-soon { font-size: 0.52rem; padding: 4px 8px; }
}
@media (min-width: 600px) {
  .lk-hero { padding-top: 14px; }
  .lk-logo { width: 268px; }
}
