/* =========================================================
   Ainnovate Academy · link router
   Mobile-first. Cards verticales centradas, liquid glass premium.
   ========================================================= */

:root {
  --bg:        #070707;
  --grid:      rgba(255, 255, 255, 0.020);
  --text:      #f6f3f0;
  --muted:     #9c958e;
  --accent:    #f9722b;
  --accent-2:  #ffb070;
  --gold:      #ffdca6;
  --radius:    22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* viñeta de profundidad */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 28%, transparent 42%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ===================== Orbes de luz ambiente ===================== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.orb--1 { width: 380px; height: 380px; background: var(--accent);  top: 30%; left: 50%; transform: translateX(-50%); opacity: 0.20; }
.orb--2 { width: 300px; height: 300px; background: var(--accent-2); top: 14%; left: -16%; opacity: 0.14; }
.orb--3 { width: 320px; height: 320px; background: #6b46ff;        bottom: 6%; right: -18%; opacity: 0.13; }

/* ===================== Layout ===================== */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 412px;
  min-height: 100dvh;
  padding: 40px 22px calc(26px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

/* ===================== Perfil ===================== */
.profile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  animation: rise 0.6s ease both;
}
.avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(249, 114, 43, 0.18), 0 10px 30px rgba(0, 0, 0, 0.55);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }

.name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 3px;
}
.verified { width: 19px; height: 19px; color: var(--accent); }

.handle {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: -3px;
}
.bio {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 1px;
}

/* ===================== Links (protagonistas) ===================== */
.links {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 24px 0;
}

.link {
  --c: var(--accent);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);

  /* --- liquid glass --- */
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 16px 44px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);

  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  animation: rise 0.55s ease both;
}
.link:nth-of-type(1) { animation-delay: 0.06s; }
.link:nth-of-type(2) { animation-delay: 0.13s; }
.link:nth-of-type(3) { animation-delay: 0.20s; }

/* brillo especular superior */
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
  z-index: 1;
}
/* reflejo que barre al hover */
.link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s ease;
  pointer-events: none;
  z-index: 1;
}
.link > * { position: relative; z-index: 2; }

.link:hover,
.link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 22px 56px rgba(0, 0, 0, 0.5),
    0 0 34px color-mix(in srgb, var(--c) 24%, transparent);
  outline: none;
}
.link:hover::after,
.link:focus-visible::after { left: 140%; }
.link:active { transform: translateY(-1px) scale(0.994); }

/* logo / icono centrado */
.link__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.24s ease;
}
.link:hover .link__icon { transform: scale(1.05); }
.link__icon img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }

.link__title {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.link__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 14px;
}
.link__sub { font-size: 0.8rem; color: var(--muted); }
.dot { color: var(--muted); opacity: 0.6; font-size: 0.8rem; }
.skool-mark { height: 13px; width: auto; display: block; opacity: 0.95; }

/* ===================== Academia · TOP TIER ===================== */
.link--academy {
  --c: var(--accent);
  padding: 26px 18px;
  border: 1.6px solid transparent;
  background:
    linear-gradient(150deg, rgba(74, 38, 16, 0.55), rgba(26, 16, 10, 0.42)) padding-box,
    linear-gradient(135deg, var(--gold), var(--accent) 50%, #b23a0c) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 18px 56px rgba(249, 114, 43, 0.26),
    0 0 0 1px rgba(249, 114, 43, 0.10);
}
.link--academy::before {
  background: linear-gradient(160deg, rgba(255, 220, 166, 0.22), rgba(255, 255, 255, 0) 42%);
}
/* halo cálido detrás del logo de la academia */
.link--academy .link__icon {
  width: 66px;
  height: 66px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 26px rgba(249, 114, 43, 0.45);
}
.link--academy .link__title { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.018em; }
.link--academy:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 26px 70px rgba(249, 114, 43, 0.42),
    0 0 0 1px rgba(249, 114, 43, 0.18);
}

/* badge TOP TIER */
.badge {
  position: absolute;
  top: 12px;
  right: 13px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px 4px 7px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #2a1404;
  background: linear-gradient(135deg, #ffe9bf, #ffb061);
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(249, 114, 43, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.badge svg { width: 12px; height: 12px; }

/* ===================== Footer ===================== */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  padding-top: 10px;
  animation: rise 0.6s ease 0.25s both;
}
.powered {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.8;
}
.skool { height: 16px; width: auto; display: block; }
.footer .ig { font-size: 0.78rem; color: var(--muted); text-decoration: none; transition: color 0.18s ease; }
.footer .ig:hover { color: var(--accent-2); }

/* ===================== Animaciones ===================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 480px) {
  .page { padding-top: 50px; }
}
