:root {
  --bg0: #000000;
  --bg1: #0b1220;
  --bg2: #0f172a;
  --card: #0b1220cc;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #334155;
  --cyan: #22d3ee;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(to bottom, #0f172a, #0b1220 45%, #000);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px;
  position: relative;
  overflow: hidden;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.blob {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 999px;
  filter: blur(120px);
  opacity: .35;
}

.blob.blue {
  top: -10%;
  left: -10%;
  background: rgba(37, 99, 235, .35);
}

.blob.purple {
  bottom: -10%;
  right: -10%;
  background: rgba(168, 85, 247, .35);
}

.container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  padding: 4px;
  background: linear-gradient(45deg, #22d3ee, #3b82f6, #a855f7);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 4px solid #0f172a;
  object-fit: cover;
  display: block;
}

.online-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #10b981;
  border: 4px solid #0f172a;
  right: -4px;
  bottom: -4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .4);
}

h1 {
  margin: 6px 0 4px;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: white;
}

.role {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}

.glass {
  background: rgba(2, 6, 23, .55);
  border: 1px solid rgba(148, 163, 184, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bio {
  width: 100%;
  border-radius: 18px;
  padding: 18px;
  margin: 10px 0 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bio p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  font-style: italic;
}

.intro {
  width: 100%;
  margin: 6px 0 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 13px;
}

.badge {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .22);
  color: #e2e8f0;
  background: rgba(15, 23, 42, .35);
}

.intro small {
  color: var(--muted);
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  width: 100%;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  transform: translateZ(0);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease, opacity .2s ease;
  position: relative;
  overflow: hidden;
}

.link-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .45);
}

.link-card:active {
  transform: scale(.98);
}

.link-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .12);
  transition: background .2s ease;
  flex: 0 0 auto;
}

.link-card:hover .link-icon {
  background: rgba(255, 255, 255, .18);
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.link-text strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.link-text span {
  font-size: 12px;
  opacity: .85;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chev {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .2s ease, transform .2s ease;
  flex: 0 0 auto;
}

.link-card:hover .chev {
  opacity: 1;
  transform: translateX(0);
}

.btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(2, 6, 23, .35);
  color: #94a3b8;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover {
  color: white;
  border-color: rgba(148, 163, 184, .45);
  background: rgba(2, 6, 23, .55);
}

.footer {
  margin-top: 56px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.footer p {
  margin: 0 0 10px;
}

.footer .social {
  display: flex;
  justify-content: center;
  gap: 16px;
  opacity: .55;
  transition: opacity .2s ease;
}

.footer .social:hover {
  opacity: 1;
}

.footer .social a {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  transition: transform .15s ease, color .15s ease;
}

.footer .social a:hover {
  transform: translateY(-1px);
}

.footer .social a.instagram:hover {
  color: #ec4899;
}

.footer .social a.linkedin:hover {
  color: #3b82f6;
}

.footer .social a.whatsapp:hover {
  color: #10b981;
}

@media (max-width: 420px) {
  .blob {
    width: 70vw;
    height: 70vw;
  }

  h1 {
    font-size: 26px;
  }
}

/* Evita que se vea texto seleccionado */
::selection {
  background: transparent;
  color: inherit;
}

::-moz-selection {
  background: transparent;
  color: inherit;
}

/* Fondo: azul uniforme y cambio suave al final */
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0f1b34 0%, #0b1530 55%, #081022 100%);
}

/* Overlay para que el “cambio” se sienta recién cerca del footer (sin corte) */
.app {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  /* antes 48px: comprime */
  position: relative;
  overflow: hidden;
}

.app::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 21, 48, 0) 0%, rgba(6, 10, 22, .55) 55%, rgba(0, 0, 0, .75) 100%);
  z-index: -1;
}

/* blobs más sutiles para que no “ensucien” el footer */
.blob {
  opacity: .22;
}

/* Ajustes generales mobile */
@media (max-width: 480px) {
  .container {
    max-width: 390px;
  }

  .avatar-wrap {
    width: 112px;
    height: 112px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 26px;
    margin: 6px 0 2px;
  }

  .role {
    margin: 0 0 10px;
    font-size: 10px;
    letter-spacing: .22em;
  }

  .bio {
    padding: 14px;
    margin: 10px 0 16px;
    border-radius: 16px;
  }

  .bio p {
    font-size: 12.5px;
    line-height: 1.5;
  }

  .links {
    gap: 12px;
  }

  .link-card {
    padding: 12px;
    border-radius: 16px;
  }

  .link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .link-text strong {
    font-size: 16px;
  }

  .link-text span {
    font-size: 12px;
  }

  .btn {
    margin-top: 12px;
    padding: 9px 12px;
  }

  .footer {
    margin-top: 26px;
    /* antes 56px */
    font-size: 12px;
  }
}

/* Evitar highlight feo en iOS al tocar */
.btn,
.link-card {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 480px) {
  .app {
    padding-top: 22px;
    padding-bottom: 18px;
  }
}

.profile {
  min-height: calc(100svh - 56px);
  justify-content: flex-start;
}