:root {
  --bg:           #0b0c17;
  --card-bg:      rgba(255,255,255,0.04);
  --card-border:  rgba(255,255,255,0.08);
  --text:         #e8eaf0;
  --text-muted:   rgba(232,234,240,0.5);
  --radius:       14px;
  --icon-radius:  10px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%,   rgba(124, 58,237,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 85% 100%,  rgba(  6,182,212,0.10) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;
  color: var(--text);
}

/* ── Container ─────────────────────────── */
.container {
  width: 100%;
  max-width: 420px;
  opacity: 0;
  transform: translateY(20px);
}

.container.loaded {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

/* ── Banner ─────────────────────────────── */
.banner {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 6px 22px rgba(124,58,237,0.38));
  transition: filter 0.3s ease, transform 0.3s var(--ease);
}

.banner:hover {
  filter: drop-shadow(0 10px 32px rgba(124,58,237,0.55));
  transform: scale(1.02);
}

/* ── Profile ────────────────────────────── */
.profile {
  text-align: center;
  margin-bottom: 28px;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(120deg, #c4b5fd 0%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.tagline {
  font-size: 18px;
  color: var(--text-muted);
  /* altura fija = 2 líneas: evita que los cards se muevan */
  height: 4.5em;
  line-height: 1.4;
  overflow: hidden;
  display: block;
  width: 100%;
  text-align: center;
}

/* cursor parpadeante */
.tagline::after {
  content: '|';
  color: #a78bfa;
  font-weight: 300;
  margin-left: 1px;
  animation: blink 0.8s step-start infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Links ──────────────────────────────── */
.links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* ── Button base ────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
  transition:
    transform      0.25s var(--ease),
    box-shadow     0.25s var(--ease),
    background     0.25s var(--ease),
    border-color   0.25s var(--ease);
  opacity: 0;
  transform: translateX(-14px);
}

.btn.visible {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity        0.4s var(--ease),
    transform      0.4s var(--ease),
    box-shadow     0.25s var(--ease),
    background     0.25s var(--ease),
    border-color   0.25s var(--ease);
}

/* Arrow hint */
.btn::after {
  content: '›';
  position: absolute;
  right: 18px;
  font-size: 18px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: var(--text-muted);
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ── Icon container ─────────────────────── */
.btn .icon {
  width: 38px;
  height: 38px;
  border-radius: var(--icon-radius);
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  font-size: 17px;
  color: #fff;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
  transform: scale(1.12) rotate(-5deg);
}

.btn .label {
  flex: 1;
  text-align: left;
}

/* ── Brand icon backgrounds ─────────────── */
.whatsapp      .icon { background: #16a34a; }
.instagram     .icon { background: linear-gradient(135deg, #f97316 0%, #db2777 55%, #7c3aed 100%); }
.facebook      .icon { background: #2563eb; }
.discord       .icon { background: #5865F2; }
.web           .icon { background: #0891b2; }
.cv            .icon { background: #7c3aed; }
.inscripciones .icon { background: #e11d48; }

/* ── Hover: lift + brand glow ───────────── */
.btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.065);
}

.whatsapp:hover      { border-color: rgba( 22,163, 74,0.4); box-shadow: 0 6px 22px rgba( 22,163, 74,0.18); }
.instagram:hover     { border-color: rgba(219, 39,119,0.4); box-shadow: 0 6px 22px rgba(219, 39,119,0.18); }
.facebook:hover      { border-color: rgba( 37, 99,235,0.4); box-shadow: 0 6px 22px rgba( 37, 99,235,0.18); }
.discord:hover       { border-color: rgba( 88,101,242,0.4); box-shadow: 0 6px 22px rgba( 88,101,242,0.18); }
.web:hover           { border-color: rgba(  8,145,178,0.4); box-shadow: 0 6px 22px rgba(  8,145,178,0.18); }
.cv:hover            { border-color: rgba(124, 58,237,0.4); box-shadow: 0 6px 22px rgba(124, 58,237,0.18); }
.inscripciones:hover { border-color: rgba(225, 29, 72,0.4); box-shadow: 0 6px 22px rgba(225, 29, 72,0.18); }


.discord .icon { 
  background: #5865F2; 
}

.discord:hover { 
  border-color: rgba( 88,101,242,0.4); 
  box-shadow: 0 6px 22px rgba( 88,101,242,0.18); 
}


/* ── Active press ───────────────────────── */
.btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none !important;
  transition-duration: 0.1s;
}

/* ── Ripple ─────────────────────────────── */
@keyframes ripple {
  from { transform: scale(0); opacity: 0.35; }
  to   { transform: scale(2.8); opacity: 0; }
}

/* ── Footer ─────────────────────────────── */
footer {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

footer a {
  color: #a78bfa;
  text-decoration: none;
  transition: opacity 0.2s;
}

footer a:hover { opacity: 0.75; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 420px) {
  body { padding: 28px 12px; }
  .btn { font-size: 14px; padding: 12px 14px; }
  .site-title { font-size: 18px; }
  .banner { max-width: 230px; }
}