/* =====================================================
   TspectrosT — Página pública (link-in-bio)
   Tema: rojo neón sobre vidrio oscuro
===================================================== */
:root {
  --neon: #ff3b3b;
  --neon-soft: #ff6b6b;
  --neon-glow: rgba(var(--neon-rgb), .45);
  --neon-rgb: 255, 59, 59;
  --overlay: .55;
  --glass: rgba(12, 12, 16, .68);
  --line: rgba(255, 255, 255, .10);
  --text: #fff;
  --muted: rgba(255, 255, 255, .72);
  --radius: 16px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #0b0b0f radial-gradient(900px 600px at 50% -10%, rgba(var(--neon-rgb), .22), transparent 70%) fixed;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Fondo ---------- */
.bg-video {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.bg-overlay {
  position: fixed; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, var(--overlay));
}

/* ---------- Layout ---------- */
.bio {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 16px;
}

.bio-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px 22px 22px;
  text-align: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 50px rgba(var(--neon-rgb), .18);
  animation: rise .6s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Compartir ---------- */
.bio-share {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  transition: background .2s, transform .2s;
}
.bio-share:hover { background: rgba(255, 255, 255, .14); transform: rotate(-8deg); }

/* ---------- Cabecera ---------- */
.bio-avatar {
  width: 116px; height: 116px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--neon);
  margin-bottom: 14px;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 18px var(--neon-glow), 0 0 45px rgba(var(--neon-rgb), .25); }
  50%      { box-shadow: 0 0 30px var(--neon-soft), 0 0 70px rgba(var(--neon-rgb), .5); }
}

.bio-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .3px;
  margin: 0 0 4px;
  text-shadow: 0 0 14px var(--neon-glow);
}
.bio-subtitle {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 22px;
}

/* ---------- Enlaces ---------- */
.bio-links { display: grid; gap: 12px; }

.bio-link {
  --c1: #333; --c2: #222; --fg: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: var(--fg);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.bio-link span { flex: 1; text-align: center; }
.bio-link:hover {
  color: var(--fg);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .5), 0 0 22px color-mix(in srgb, var(--c1) 55%, transparent);
  filter: brightness(1.08);
}
.bio-link:active { transform: scale(.98); }

.bio-link-icon { width: 24px; font-size: 1.25rem; text-align: center; }
.bio-link-go { width: 24px; font-size: .8rem; opacity: .7; }

.bio-badge {
  flex: 0 0 auto !important;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .25);
  font-size: .8rem;
}

.bio-link.is-whatsapp   { --c1: #25d366; --c2: #128c7e; }
.bio-link.is-instagram  { --c1: #f58529; --c2: #8134af; background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.bio-link.is-facebook   { --c1: #1877f2; --c2: #0d56b8; }
.bio-link.is-tiktok     { --c1: #111; --c2: #000; border: 1px solid rgba(var(--neon-rgb), .6); box-shadow: 0 0 14px rgba(var(--neon-rgb), .35), inset 0 0 8px rgba(var(--neon-rgb), .2); }
.bio-link.is-telegram   { --c1: #229ed9; --c2: #1679ab; }
.bio-link.is-catalogo   { --c1: #0d6efd; --c2: #00b7ff; animation: glow-blue 2.8s ease-in-out infinite; }
.bio-link.is-custom      { --c1: var(--neon); --c2: var(--neon-soft); }
.bio-link.is-referencias{ --c1: #ffcc00; --c2: #ff6b00; --fg: #1a1a1a; animation: glow-gold 3s ease-in-out infinite; }

@keyframes glow-blue {
  0%, 100% { box-shadow: 0 0 16px rgba(0, 183, 255, .45); }
  50%      { box-shadow: 0 0 30px rgba(0, 183, 255, .85); }
}
@keyframes glow-gold {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 170, 0, .45); }
  50%      { box-shadow: 0 0 30px rgba(255, 170, 0, .85); }
}

/* ---------- Estadísticas ---------- */
.bio-stats {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  font-size: .8rem;
  color: var(--muted);
}
.bio-stats li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
}
.bio-stats strong { color: var(--text); font-variant-numeric: tabular-nums; }
.bio-stats li i { font-size: .75rem; opacity: .7; }
.bio-stats li { transition: border-color .3s, box-shadow .3s; }
.bio-stats li.is-bump { animation: bump .7s ease-out; }
@keyframes bump {
  0%   { border-color: var(--neon); box-shadow: 0 0 14px var(--neon-glow); }
  100% { border-color: var(--line); box-shadow: none; }
}
.bio-stats.is-offline .dot-online { background: #888; box-shadow: none; animation: none; }
.dot-online {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22e584;
  box-shadow: 0 0 8px #22e584;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Footer ---------- */
.bio-footer {
  margin-top: 20px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
}
.bio-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px;
}
.bio-footer strong { color: var(--neon-soft); }
.bio-footer-sep { opacity: .4; }
.bio-footer-link {
  padding: 0; border: 0; background: none;
  color: rgba(255, 255, 255, .7);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .25);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.bio-footer-link:hover { color: #fff; text-decoration-color: var(--tyc-cyan, #00e5ff); }

/* ---------- Términos y condiciones ---------- */
.tyc {
  --tyc-cyan: #00e5ff;
  --tyc-red: #ff4d4d;
  --tyc-yellow: #ffcc00;
  background: rgba(10, 12, 16, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, .88);
  border: 1px solid rgba(0, 229, 255, .25);
  border-radius: 22px;
  box-shadow: 0 0 40px rgba(0, 229, 255, .12), 0 24px 60px rgba(0, 0, 0, .7);
}
.tyc .modal-header, .tyc .modal-footer { border: 0; }
.tyc .modal-header { padding: 22px 26px 8px; }
.tyc .modal-body { padding: 8px 26px; }
.tyc .modal-footer { padding: 14px 26px 24px; }
.tyc-title {
  font-size: 1.55rem; font-weight: 800; margin: 0;
  color: var(--tyc-cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, .45);
}
.tyc-intro { line-height: 1.7; margin-bottom: 20px; }
.tyc-intro strong { color: #fff; }

.tyc-block {
  --c: var(--tyc-cyan);
  padding: 16px 20px;
  margin-bottom: 18px;
  border-radius: 12px;
  border-left: 3px solid var(--c);
  background: rgba(255, 255, 255, .04);
}
.tyc-block h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 700;
  color: var(--c);
  margin: 0 0 8px;
}
.tyc-block p { line-height: 1.7; margin: 0; }
.tyc-block p + p { margin-top: 12px; }
.tyc-block.is-info    { --c: var(--tyc-cyan); }
.tyc-block.is-danger  { --c: var(--tyc-red); }
.tyc-block.is-warning { --c: var(--tyc-yellow); }

.tyc-mail { font-size: .95rem; word-break: break-word; }
.tyc-mail i { color: var(--tyc-red); margin-right: 6px; }
.tyc-mail a { color: var(--tyc-cyan); font-weight: 700; text-decoration: none; }
.tyc-mail a:hover { text-decoration: underline; }
.tyc-note { font-size: .85rem; color: rgba(255, 255, 255, .55); }

.tyc-accept {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #0d6efd, var(--tyc-cyan));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(0, 229, 255, .35);
  transition: transform .2s, box-shadow .2s;
}
.tyc-accept:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(0, 229, 255, .55); }
.tyc-accept i { margin-right: 6px; }

/* ---------- Modal referencias ---------- */
.modal-backdrop.show { opacity: .85; }

.refs {
  background: rgba(10, 10, 14, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.refs .modal-header { border-color: var(--line); }

.refs-filters {
  display: flex; gap: 8px;
  padding: 12px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.refs-filters::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  transition: all .2s;
}
.chip:hover { color: var(--text); }
.chip.is-active {
  background: linear-gradient(135deg, var(--neon), var(--neon-soft));
  border-color: transparent;
  color: #fff;
}

.refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.ref {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.ref:hover { transform: translateY(-4px); box-shadow: 0 0 28px rgba(var(--neon-rgb), .3); }
.ref[hidden] { display: none; }

.ref-zoom {
  display: block; width: 100%;
  padding: 0; border: 0;
  background: #0b0b0b;
  cursor: zoom-in;
}
.ref-zoom img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  display: block;
}
.ref figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: .9rem;
}
.ref figcaption small { color: var(--muted); font-weight: 500; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .92);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(var(--neon-rgb), .3);
}
.lightbox-caption { margin: 12px 0 0; color: var(--muted); }
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.2rem;
}

/* ---------- Toast ---------- */
.toast-mini {
  position: fixed; left: 50%; bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(20, 20, 24, .95);
  border: 1px solid var(--line);
  color: #fff;
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 3000;
}
.toast-mini.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Accesibilidad ---------- */
:focus-visible {
  outline: 3px solid var(--neon-soft);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .bg-video { display: none; }
}

@media (max-width: 380px) {
  .bio-card { padding: 28px 16px 18px; }
  .bio-title { font-size: 1.35rem; }
}
