/* =========================================================
   VELIAN — Link in Bio · style.css
   Autor: Antigravity para Velian
   Mobile-first · Dark Premium Theme
   ========================================================= */

/* ─── RESET & BASE ───────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*
  CSS @property permite animar --logo-color como un color tipado,
  logrando transiciones suaves en lugar de saltos abruptos.
  Soportado en Chrome 85+, Edge 85+, Safari 16.4+ (todos los móviles modernos).
*/
@property --logo-color {
  syntax: '<color>';
  inherits: false;
  initial-value: #dc2626;
}

:root {
  /* Paleta principal — Rojo y Negro */
  --color-bg: #0a0a0a;
  --color-surface: #111111;
  --color-surface-2: #1a1a1a;
  --color-border: rgba(255, 255, 255, 0.06);

  /* Acento principal — Rojo carmesí */
  --color-accent: #c0122a;
  --color-accent-2: #e8314a;
  --color-accent-glow: rgba(192, 18, 42, 0.40);

  /* Acento secundario — Rojo vivo / naranja profundo */
  --color-cyan: #ff3b3b;
  --color-cyan-glow: rgba(255, 59, 59, 0.22);

  /* Texto */
  --color-text: #f5f5f5;
  --color-text-muted: #7a7a7a;

  /* Tipografía */
  --font-main: 'Outfit', system-ui, sans-serif;

  /* Radios */
  --radius-card: 28px;
  --radius-btn: 18px;
  --radius-circle: 50%;

  /* Transición global */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  /* Textura tech sutil: patrón de puntos finos sobre el negro */
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 40px;
  overflow-x: hidden;
  position: relative;
}

/* ─── GLOWS DE FONDO (decorativos) ─────────────────────── */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.bg-glow--1 {
  width: 420px;
  height: 420px;
  background: #8b0000;
  /* carmesí — esquina superior derecha */
  top: -130px;
  right: -110px;
  animation: floatGlow 8s ease-in-out infinite alternate;
  opacity: 0.60;
}

.bg-glow--2 {
  width: 320px;
  height: 320px;
  background: #1a0a5e;
  /* azul índigo profundo — esquina inferior izquierda */
  bottom: 3%;
  left: -90px;
  animation: floatGlow 10s ease-in-out infinite alternate-reverse;
  opacity: 0.55;
}

.bg-glow--3 {
  width: 240px;
  height: 240px;
  background: #6d28d9;
  /* púrpura eléctrico — centro, muy sutil */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatGlow 12s ease-in-out infinite alternate;
  opacity: 0.12;
}

@keyframes floatGlow {
  from {
    transform: scale(1) translateY(0);
  }

  to {
    transform: scale(1.15) translateY(-20px);
  }
}

/* ─── ANIMACIÓN DE ENTRADA DE LA TARJETA ────────────────── */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── TARJETA PRINCIPAL ─────────────────────────────────── */
/* ─── TARJETA PRINCIPAL (INVISIBLE) ─────────────────────── */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  /* Hacemos el fondo, borde y sombra transparentes */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  /* Ajustamos un poco el padding para que no quede tanto espacio arriba */
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: cardEntrance 0.8s var(--ease) forwards;
}

/* ─── ENCABEZADO ────────────────────────────────────────── */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

/* Contenedor del logo */
.logo-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 4px;
}

/* Anillo animado alrededor del logo */
.logo-ring {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-circle);
  /* El gradiente usa var(--logo-color), que @property interpola suavemente */
  background: linear-gradient(135deg, var(--logo-color), color-mix(in srgb, var(--logo-color) 40%, #0a0a0a));
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: velian-sync-pulse 4s ease-in-out infinite;
}

/* Fondo interno del logo */
.logo-ring::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-surface);
  z-index: 0;
}

/* Imagen del logo — llena el círculo sin deformarse */
/* Usa la misma animación velian-sync-pulse para sincronizar
   el drop-shadow con el color del anillo exterior al unísono */
.logo-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  /* Forzamos que sea un cuadrado perfecto antes del recorte */
  border-radius: 50%;
  /* Lo recortamos como círculo */
  object-fit: cover;
  /* Centra el logo y corta los bordes que sobran */
  display: block;
  position: relative;
  z-index: 10;
  /* Lo ponemos por encima de cualquier otro efecto */
}

/* Contenedor del logo SVG (fallback si no hay imagen) */
.logo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/*
  @keyframes velian-sync-pulse
  El navegador interpola --logo-color como color tipado (gracias a @property),
  produciendo una transición FLUIDA sin saltos entre Rojo → Blanco → Gris → Rojo.
*/
@keyframes velian-sync-pulse {
  0% {
    --logo-color: #dc2626;
  }

  /* Rojo Carmesí    */
  33% {
    --logo-color: #ffffff;
  }

  /* Blanco Puro     */
  66% {
    --logo-color: #374151;
  }

  /* Gris Carbón     */
  100% {
    --logo-color: #dc2626;
  }

  /* Rojo Carmesí    */
}



/* Textos del encabezado */
.brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #e8314a 0%, #ffffff 50%, #5a5a5a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: #e8314a;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  letter-spacing: 0.8px;
}

/* ─── FILA REDES SOCIALES ───────────────────────────────── */
.social-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #fff;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
  flex: 1;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.social-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.15s;
}

.social-btn:active::after {
  background: rgba(255, 255, 255, 0.08);
}

.social-btn svg {
  width: 22px;
  height: 22px;
}

/* TikTok */
.social-btn--tiktok {
  background: linear-gradient(135deg, #010101 0%, #161622 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.social-btn--tiktok:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 30px rgba(105, 201, 208, 0.3);
  background: linear-gradient(135deg, #0a0a14 0%, #1a1a28 100%);
}

.social-btn--tiktok:active {
  transform: scale(0.97);
}

/* Instagram */
.social-btn--instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  box-shadow: 0 4px 20px rgba(131, 58, 180, 0.35);
}

.social-btn--instagram:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 30px rgba(131, 58, 180, 0.5);
}

.social-btn--instagram:active {
  transform: scale(0.97);
}

/* Comunidad (oscuro carbón) */
.social-btn--community {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-btn--community:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 28px rgba(220, 30, 50, 0.35);
  border-color: rgba(220, 30, 50, 0.45);
}

.social-btn--community:active {
  transform: scale(0.97);
}

/* ─── SEPARADOR DECORATIVO ───────────────────────────────── */
.links-section::before {
  content: '— Explorar —';
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: -8px;
}

/* ─── BOTONES PRINCIPALES ───────────────────────────────── */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

/* Brillo de slide al hover */
.link-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.08) 50%,
      transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.4s var(--ease);
}

.link-btn:hover::before {
  left: 140%;
}

.link-btn:hover {
  transform: translateY(-3px);
}

.link-btn:active {
  transform: scale(0.975) translateY(0);
}

/* Icono SVG o emoji */
.link-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.90);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.15));
}

/* Texto */
.link-btn__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.link-btn__text strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.link-btn__text small {
  font-size: 0.75rem;
  opacity: 0.65;
  font-weight: 400;
}

/* Flecha */
.link-btn__arrow {
  font-size: 1.4rem;
  opacity: 0.5;
  transition: transform 0.2s var(--ease), opacity 0.2s;
  flex-shrink: 0;
}

.link-btn:hover .link-btn__arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* === Catálogo — rojo rubí → rojo intenso + dark glass === */
.link-btn--catalog {
  background: rgba(20, 20, 20, 0.80);
  border-color: rgba(255, 40, 70, 0.55);
  box-shadow:
    0 0 12px rgba(230, 20, 50, 0.30),
    0 8px 30px rgba(200, 0, 30, 0.22),
    inset 0 0 8px rgba(230, 20, 50, 0.08);
}

.link-btn--catalog:hover {
  background: rgba(100, 8, 18, 0.55);
  border-color: rgba(255, 60, 90, 0.80);
  box-shadow:
    0 0 18px rgba(255, 30, 60, 0.50),
    0 14px 44px rgba(220, 0, 35, 0.40),
    inset 0 0 10px rgba(255, 30, 60, 0.12);
}

/* === Equipo — rojo oscuro → púrpura profundo + dark glass === */
.link-btn--team {
  background: rgba(20, 20, 20, 0.80);
  border-color: rgba(140, 20, 110, 0.45);
  box-shadow:
    0 0 10px rgba(120, 10, 100, 0.22),
    0 8px 30px rgba(100, 10, 80, 0.18),
    inset 0 0 6px rgba(120, 10, 100, 0.06);
}

.link-btn--team:hover {
  background: rgba(60, 8, 80, 0.55);
  border-color: rgba(160, 30, 140, 0.70);
  box-shadow:
    0 0 16px rgba(140, 20, 130, 0.40),
    0 14px 44px rgba(100, 15, 120, 0.45),
    inset 0 0 10px rgba(140, 20, 130, 0.09);
}

/* === Contacto — carmesí profundo → casi negro + dark glass === */
.link-btn--contact {
  background: rgba(20, 20, 20, 0.80);
  border-color: rgba(200, 20, 40, 0.45);
  box-shadow:
    0 0 10px rgba(180, 10, 30, 0.22),
    0 8px 28px rgba(150, 0, 20, 0.18),
    inset 0 0 6px rgba(180, 10, 30, 0.06);
}

.link-btn--contact:hover {
  background: rgba(90, 5, 15, 0.55);
  border-color: rgba(240, 40, 60, 0.80);
  box-shadow:
    0 0 20px rgba(220, 20, 40, 0.55),
    0 16px 48px rgba(180, 0, 25, 0.50),
    inset 0 0 10px rgba(210, 20, 40, 0.10);
}

/* ─── PIE DE PÁGINA ─────────────────────────────────────── */
.footer {
  text-align: center;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.4px;
  padding-top: 4px;
  border-top: 1px solid var(--color-border);
  width: 100%;
}

/* ─── RESPONSIVE: pantallas más grandes ─────────────────── */
@media (min-width: 520px) {
  .card {
    padding: 44px 36px 36px;
  }

  .logo-wrapper,
  .logo-ring {
    width: 126px;
    height: 126px;
  }

  .brand-name {
    font-size: 2rem;
  }

  .brand-tagline {
    font-size: 1.05rem;
  }

  .link-btn__text strong {
    font-size: 1.05rem;
  }
}

/* Modo sin hover para touch (mejora rendimiento en móvil) */
@media (hover: none) {
  .link-btn:hover {
    transform: none;
  }

  .social-btn:hover {
    transform: none;
  }

  .link-btn:active {
    transform: scale(0.97);
  }

  .social-btn:active {
    transform: scale(0.95);
  }
}