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

:root {
  --bg: #0e0e14;
  --card: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.16);
  --card-border: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --accent: #e1306c;
  --radius: 18px;
  --max-width: 560px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ===================== Fondo borroneado ===================== */
.bg {
  position: fixed;
  inset: -40px;
  z-index: -2;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.5) saturate(1.2);
  transform: scale(1.12);
}
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}

/* ===================== Layout ===================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(28px, 6vh, 56px) 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ===================== Hero / perfil ===================== */
.hero { display: flex; flex-direction: column; align-items: center; }

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.verified { width: 20px; height: 20px; fill: #3897f0; }

.bio {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 8px;
  max-width: 380px;
}

/* ===================== Links ===================== */
.links {
  width: 100%;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.link:hover, .link:focus-visible {
  transform: translateY(-3px);
  background: var(--card-hover);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  outline: none;
}
.link:active { transform: translateY(-1px) scale(0.99); }

.link .icon { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; }
.link .icon svg { width: 24px; height: 24px; }
.link .label { flex: 1; text-align: center; }
.link .arrow { flex: 0 0 18px; font-size: 1.3rem; opacity: 0.6; transition: transform 0.18s ease; }
.link:hover .arrow { transform: translateX(3px); opacity: 1; }

.link.featured {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  font-weight: 700;
}
.link.featured:hover { box-shadow: 0 14px 40px rgba(220, 39, 67, 0.5); }

/* ===================== Bloques de contenido ===================== */
.content, .story-teaser {
  width: 100%;
  margin-top: 34px;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.content p, .story-teaser p { color: var(--text-dim); margin-bottom: 12px; }
.content a, .story-teaser a { color: #ff7eb3; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: #fff;
}

.read-more {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  text-decoration: none;
  color: #ff7eb3;
}
.read-more:hover { text-decoration: underline; }

/* ===================== Galería ===================== */
.gallery {
  width: 100%;
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: block;
  text-decoration: none;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Foto bloqueada (borrosa) */
.gallery-item.locked img { filter: blur(14px) brightness(0.8); transform: scale(1.1); }
.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  text-align: center;
  padding: 8px;
}
.lock-icon { font-size: 1.5rem; }
.lock-text { font-size: 0.72rem; font-weight: 600; line-height: 1.2; }
.lock-cta {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2743, #bc1888);
}

/* ===================== Anuncio ===================== */
.ad-slot {
  width: 100%;
  margin-top: 28px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ===================== Footer ===================== */
footer { margin-top: 36px; font-size: 0.8rem; color: var(--text-dim); }
footer a { color: var(--text-dim); text-decoration: underline; }
.disclaimer { margin-top: 8px; font-size: 0.72rem; opacity: 0.7; }

/* ===================== Accesibilidad ===================== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}

/* ===================== Mobile fino ===================== */
@media (max-width: 380px) {
  .name { font-size: 1.35rem; }
  .link { padding: 14px 16px; font-size: 0.95rem; }
  .section-title { font-size: 1.25rem; }
}
