/* ===== Reset básico ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #14101f 0%, #1c1428 100%);
  color: #fff;
  min-height: 100vh;
  min-height: 100dvh;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid #ff5f8f;
  outline-offset: 3px;
}

/* ===== Foto de fondo (difuminada y oscurecida) ===== */
.bg-photo {
  position: fixed;
  inset: -20px;
  z-index: -2;
  background: url('assets/bg.jpg') center / cover no-repeat;
  filter: blur(10px) brightness(0.55);
}

/* ===== Glow de fondo ===== */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(420px 420px at 50% -60px, rgba(255, 95, 143, 0.28), transparent 70%),
    radial-gradient(520px 520px at 85% 110%, rgba(108, 92, 231, 0.22), transparent 70%);
}

/* ===== Columna principal ===== */
.profile {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Cabecera / perfil ===== */
.avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.08),
    0 0 26px rgba(255, 95, 143, 0.45);
}

.avatar-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-wrap img.is-hidden {
  display: none;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 1px;
  background: radial-gradient(circle at 30% 30%, #ff7ab8, #a03a7e);
}

.profile-header h1 {
  margin-top: 14px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.bio {
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.15s ease, background 0.15s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.divider {
  width: min(280px, 70%);
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  margin: 22px 0;
}

/* ===== Tarjetas de enlaces ===== */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.link-card--of {
  background: linear-gradient(90deg, #f94d84, #e8734f);
}

.link-card--tg {
  background: #26a5e4;
}

.link-card__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

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

.link-card__text strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.link-card__text small {
  align-self: flex-start;
  font-size: 0.75rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}

.badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.link-card__arrow {
  opacity: 0.9;
  font-weight: 600;
}

body.sheet-open {
  overflow: hidden;
}

/* ===== Backdrop + bottom sheet 18+ ===== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  max-width: 420px;
  margin: 0 auto;
  background: #1e1730;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(255, 95, 143, 0.4);
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s ease;
}

.sheet.is-open {
  transform: translateY(0);
  visibility: visible;
}

.sheet__grabber {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 14px;
}

.sheet__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #ff5f8f, #b44df0);
}

.sheet__head h2 {
  font-size: 1rem;
  font-weight: 800;
}

.sheet__text {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.sheet__continue {
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  color: #1e1730;
  cursor: pointer;
  background: linear-gradient(90deg, #ff5f8f, #ff9068);
  transition: filter 0.15s ease;
}

.sheet__continue:hover {
  filter: brightness(1.07);
}

.sheet__stay {
  display: block;
  margin: 10px auto 0;
  padding: 6px 10px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

/* ===== Accesibilidad: movimiento reducido ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

/* ===== Gate: verificación humana (Turnstile) ===== */
.links[data-state='verifying'] .gate-error,
.links[data-state='verifying'] .link-card,
.links[data-state='error'] .gate-verifying,
.links[data-state='error'] .link-card,
.links[data-state='loaded'] .gate-verifying,
.links[data-state='loaded'] .gate-error,
.links[data-state='loaded'] #cfWidget {
  display: none;
}

.gate-verifying {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #f94d84;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.gate-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

#gateReload {
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f94d84, #e8734f);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.noscript-msg {
  text-align: center;
  padding: 16px;
  color: rgba(255, 255, 255, 0.75);
}
