/* ============================================================================
   AM DIGITAL — Landing / Perfil Digital
   Estilos personalizados (Tailwind cubre la mayoría; aquí van los detalles
   finos: gradientes, animaciones, glassmorphism).
   Edita las variables :root para ajustar rápidamente colores/espaciados.
   ============================================================================ */

:root {
  --primary: #8b5cf6;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --bg: #050505;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  background: var(--bg);
  overscroll-behavior-y: none;
}

/* Glow de fondo estilo marca (aurora morada) */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.35), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(109, 40, 217, 0.25), transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(167, 139, 250, 0.15), transparent 40%);
}

/* ---------- Header / Logo ---------- */
.logo-ring {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  padding: 3px;
  background: conic-gradient(from 180deg, var(--primary-light), var(--primary), var(--primary-dark), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.45);
}

.logo-img {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
  background: #000;
}

.tagline-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ---------- Botones de acción rápida (WhatsApp / Llamar) ---------- */
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 10px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.action-btn:active {
  transform: scale(0.96);
}

.action-btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c4a);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.action-btn--call {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.action-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  position: relative;
}

.action-btn--disabled:active {
  transform: none;
}

/* ---------- Filas de enlaces (link-row) ---------- */
.link-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.link-row:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.07);
}

.link-row--accent {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(109, 40, 217, 0.08));
}

.link-row-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary-light);
  font-size: 17px;
}

.link-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.link-row-title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.link-row-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-row-arrow {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
}

/* ---------- Sección label ---------- */
.section-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Redes sociales ---------- */
.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: #fff;
  font-size: 18px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.social-icon:active {
  transform: scale(0.92);
}

.social-icon[data-social='facebook']:hover { background: #1877f2; }
.social-icon[data-social='instagram']:hover { background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icon[data-social='linkedin']:hover { background: #0a66c2; }
.social-icon[data-social='tiktok']:hover { background: #010101; }
.social-icon[data-social='youtube']:hover { background: #ff0000; }
.social-icon[data-social='x']:hover { background: #000; }

/* ---------- Equipo ---------- */
.team-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform 0.15s ease, background 0.15s ease;
}

.team-card:active {
  transform: scale(0.98);
}

.team-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

.team-info {
  flex: 1;
  min-width: 0;
}

.team-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
}

.team-role {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
}

.team-arrow {
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
}

/* ---------- Guardar contacto ---------- */
.save-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.save-contact-btn:active {
  transform: scale(0.98);
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--primary);
}

/* ---------- QR ---------- */
.qr-card {
  padding: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
}

.qr-card img {
  display: block;
  border-radius: 6px;
}

/* ---------- Animaciones de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-in 0.6s ease forwards;
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respeta preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
