/* ============================================================
   Kamitomx · El Rincón de los Tacos
   Hoja de estilos principal — estética dark / pro
   ============================================================ */

:root {
  /* Superficies */
  --bg: #08080f;
  --surface: rgba(19, 19, 36, 0.72);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --surface-soft: rgba(255, 255, 255, 0.045);

  /* Bordes */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Texto */
  --text: #f5f5fa;
  --text-muted: rgba(245, 245, 250, 0.62);
  --text-dim: rgba(245, 245, 250, 0.45);

  /* Marca */
  --brand-1: #f093fb;
  --brand-2: #f5576c;
  --brand-grad: linear-gradient(120deg, var(--brand-1), var(--brand-2));

  /* Formas y sombras */
  --radius-card: 30px;
  --radius-btn: 15px;
  --shadow-card: 0 30px 70px -22px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  padding: 32px 16px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Halos de fondo */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 480px;
  height: 480px;
  top: -170px;
  left: -130px;
  background: radial-gradient(circle, rgba(240, 147, 251, 0.22), transparent 70%);
  animation: drift 16s ease-in-out infinite;
}

body::after {
  width: 540px;
  height: 540px;
  bottom: -210px;
  right: -150px;
  background: radial-gradient(circle, rgba(245, 87, 108, 0.2), transparent 70%);
  animation: drift 21s ease-in-out infinite reverse;
}

/* Los halos se desplazan lentamente para dar vida al fondo */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(46px, 34px) scale(1.12); }
}

/* ============================================================
   TARJETA
   ============================================================ */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 36px 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  animation: cardIn 0.7s var(--ease) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   PERFIL
   ============================================================ */
.profile {
  text-align: center;
}

.avatar {
  position: relative;
  width: 106px;
  height: 106px;
  margin: 0 auto 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--brand-grad);
  box-shadow: 0 16px 36px -12px rgba(245, 87, 108, 0.55);
  animation: floaty 4.5s ease-in-out infinite;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 22px 46px -14px rgba(245, 87, 108, 0.75);
}

/* Flotación sutil del avatar */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0c0c18;
}

.avatar .dot {
  position: absolute;
  right: 6px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid #0c0c18;
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.badge {
  display: inline-block;
  padding: 6px 15px;
  margin-bottom: 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #ffd9e4;
  background: rgba(245, 87, 108, 0.12);
  border: 1px solid rgba(245, 87, 108, 0.32);
}

h1 {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}

h1 span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ============================================================
   BOTONES
   ============================================================ */
.links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 30px 0 26px;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 16px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s var(--ease), background 0.25s ease,
              border-color 0.25s ease, box-shadow 0.25s ease;
  animation: itemIn 0.55s var(--ease) both;
}

.btn:nth-child(1) { animation-delay: 0.10s; }
.btn:nth-child(2) { animation-delay: 0.16s; }
.btn:nth-child(3) { animation-delay: 0.22s; }
.btn:nth-child(4) { animation-delay: 0.28s; }
.btn:nth-child(5) { animation-delay: 0.34s; }
.btn:nth-child(6) { animation-delay: 0.40s; }
.btn:nth-child(7) { animation-delay: 0.46s; }

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

/* Destello que recorre el botón al pasar el cursor */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}

.btn:hover::before {
  left: 135%;
}

.btn:hover {
  transform: translateY(-4px) scale(1.015);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: 0 22px 40px -22px rgba(0, 0, 0, 0.95);
}

.btn:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.btn:hover .btn-icon {
  transform: scale(1.1) rotate(-6deg);
}

.btn-icon svg {
  width: 21px;
  height: 21px;
}

.btn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.25;
}

.btn-text strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.btn-text small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-dim);
}

.btn-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  transition: transform 0.25s var(--ease), color 0.25s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
  color: var(--text);
}

/* --- Colores por plataforma --- */
.btn-telegram .btn-icon {
  background: linear-gradient(135deg, #2aabee, #229ed9);
  box-shadow: 0 6px 16px -8px rgba(42, 171, 238, 0.9);
}
.btn-telegram:hover {
  border-color: rgba(42, 171, 238, 0.5);
  box-shadow: 0 18px 36px -20px rgba(42, 171, 238, 0.85);
}

.btn-facebook .btn-icon {
  background: linear-gradient(135deg, #1877f2, #0b5ed7);
  box-shadow: 0 6px 16px -8px rgba(24, 119, 242, 0.9);
}
.btn-facebook:hover {
  border-color: rgba(24, 119, 242, 0.5);
  box-shadow: 0 18px 36px -20px rgba(24, 119, 242, 0.85);
}

.btn-whatsapp .btn-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 6px 16px -8px rgba(37, 211, 102, 0.9);
}
.btn-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 18px 36px -20px rgba(37, 211, 102, 0.85);
}

.btn-bot .btn-icon {
  background: var(--brand-grad);
  box-shadow: 0 6px 16px -8px rgba(245, 87, 108, 0.9);
}
.btn-bot:hover {
  border-color: rgba(245, 87, 108, 0.5);
  box-shadow: 0 18px 36px -20px rgba(245, 87, 108, 0.85);
}

.btn-personal .btn-icon {
  background: rgba(255, 255, 255, 0.14);
}

.btn-spamer .btn-icon {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 6px 16px -8px rgba(139, 92, 246, 0.9);
}
.btn-spamer:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 18px 36px -20px rgba(139, 92, 246, 0.85);
}

/* Latido suave en el botón destacado de WhatsApp */
.btn-whatsapp .btn-icon {
  animation: beat 2.8s ease-in-out infinite;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* ============================================================
   ESTADÍSTICAS DE VISITAS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.stat {
  padding: 14px 8px;
  border-radius: 14px;
  text-align: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.stat:hover {
  transform: translateY(-3px);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.stat-value {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Punto verde que indica datos en vivo */
.stats-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stats-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2px;
  color: var(--text-dim);
}

.footer span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

/* ============================================================
   EFECTO RIPPLE
   ============================================================ */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 420px) {
  body {
    padding: 20px 14px;
  }

  .card {
    padding: 28px 20px 22px;
    border-radius: 24px;
  }

  .avatar {
    width: 92px;
    height: 92px;
  }

  h1 {
    font-size: 21px;
  }

  .links {
    gap: 11px;
    margin: 24px 0 22px;
  }

  .btn {
    gap: 11px;
    padding: 14px 13px;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .btn-text strong {
    font-size: 13.5px;
  }

  .btn-text small {
    font-size: 11px;
  }

  .stat-value {
    font-size: 17px;
  }

  .stat {
    padding: 12px 6px;
  }
}

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