:root {
  --bg: #0a0a0d;
  --surface: #15151b;
  --surface-2: #1c1c24;
  --border: #29293380;
  --text: #f2f2f5;
  --text-muted: #9797a5;
  --pink: #ff3d7f;
  --purple: #7c3aed;
  --gold: #e8c46b;
  --gradient: linear-gradient(135deg, #ff3d7f 0%, #7c3aed 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

a, button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Fondo difuminado detrás de la tarjeta (solo se ve en PC, ver media query abajo) */
.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    url('assets/profile-placeholder.jpg') center/cover,
    radial-gradient(circle at 15% 10%, rgba(255,61,127,.55), transparent 60%),
    radial-gradient(circle at 85% 15%, rgba(124,58,237,.5), transparent 60%),
    radial-gradient(circle at 50% 90%, rgba(6,182,212,.4), transparent 60%),
    #1a1420;
  filter: blur(60px) brightness(.65) saturate(1.5);
  transform: scale(1.2);
}

.page-frame {
  width: 100%;
  background: var(--bg);
}

/* En celular el fondo difuminado no se ve (la tarjeta ocupa toda la pantalla),
   así que lo apagamos para no gastar batería/GPU en un blur pesado que no se nota */
@media (max-width: 719px) {
  .page-backdrop { display: none; }
}

/* ================= DESKTOP: tarjeta centrada tipo celular ================= */
@media (min-width: 720px) {
  .page-frame {
    max-width: 480px;
    margin: 48px auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
  }
  .hero { min-height: 0; height: 480px; }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #2b1f33, #0a0a0d 65%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,61,127,.18), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(124,58,237,.18), transparent 55%);
  color: var(--text-muted);
}
.hero-placeholder .placeholder-icon {
  width: 56px;
  height: 56px;
  fill: rgba(255,255,255,.16);
}
.hero-placeholder span {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,.3);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,13,1) 0%, rgba(10,10,13,.55) 42%, rgba(10,10,13,.15) 70%, rgba(10,10,13,.35) 100%);
}
.unmute-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 17px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 28px;
  max-width: 480px;
}
.name {
  margin: 0;
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.handle {
  margin: 4px 0 10px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  vertical-align: middle;
  margin-left: 2px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 10px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.icon:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 16px rgba(255,61,127,.4);
}
.icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

.icon.tg, .link-icon.tg { background: #29a9eb; }
.icon.ig, .link-icon.ig { background: radial-gradient(circle at 30% 110%, #ffdb8b, #ee2a7b 60%, #6228d7); }
.icon.of, .link-icon.of { background: #00aeef; }
.icon.tt, .link-icon.tt { background: #000; }
.icon.sc, .link-icon.sc { background: #fffc00; }

.followers {
  display: inline-block;
  margin: 0;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 600;
}

.scroll-cue {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 22px;
  animation: floatUp 2.2s ease-in-out infinite;
}
.scroll-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ================= URGENCIA ================= */
.urgency-banner {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  padding: 12px 16px;
  background: linear-gradient(90deg, #ff3d7f, #d6336c);
}
.urgency-banner strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}

/* ================= CONTENT ================= */
.content {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0 20px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pink);
}
.section-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
}
.section-subtitle {
  margin: 0 auto 32px;
  max-width: 380px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ================= WHEEL ================= */
.wheel-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 28px;
}
.pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 26px solid var(--gold);
  z-index: 3;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.55));
}
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid var(--surface-2);
  position: relative;
  transition: transform 4.8s cubic-bezier(.12,.66,.13,1);
  box-shadow:
    0 0 0 3px #3a3a45,
    0 20px 50px rgba(0,0,0,.55),
    inset 0 0 34px rgba(0,0,0,.4);
}
.wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.35), transparent 45%);
  pointer-events: none;
  z-index: 1;
}
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gradient);
  border: 4px solid var(--surface);
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,.5), inset 0 2px 4px rgba(255,255,255,.4);
}
.wheel-slice-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  text-align: right;
  padding-right: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  transform-origin: left center;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  letter-spacing: .2px;
}
.wheel-slice-label.flip {
  left: auto;
  right: 50%;
  text-align: left;
  padding-right: 0;
  padding-left: 16px;
  transform-origin: right center;
}

.spin-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 16px 40px;
  border-radius: 32px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .6px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255,61,127,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.spin-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255,61,127,.45); }
.spin-btn:active:not(:disabled) { transform: translateY(0); }
.spin-btn:disabled {
  background: var(--surface-2);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .75;
}
.wheel-status {
  margin-top: 16px;
  font-size: 13px;
  color: var(--gold);
}

.share-extra {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.share-text { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); }
.share-btn {
  background: none;
  border: 1.5px solid var(--purple);
  color: #d3b8ff;
  padding: 11px 22px;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease;
}
.share-btn:hover { background: rgba(124,58,237,.15); }
.share-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ================= PANEL DE ESTADÍSTICAS (?stats) ================= */
.stats-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6,6,8,.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.stats-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  max-width: 320px;
  width: 100%;
}
.stats-box h3 { margin: 0 0 14px; font-size: 16px; }
.stats-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.stats-row span:last-child { font-weight: 700; color: var(--pink); }
.stats-close {
  margin-top: 16px;
  width: 100%;
  background: var(--surface-2);
  border: none;
  color: var(--text);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

/* ================= TARJETAS CON FOTO ================= */
.photo-banner, .photo-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: transform .2s ease;
}
.photo-banner:hover, .photo-card:hover { transform: translateY(-3px); }

.photo-banner { aspect-ratio: 16/10; margin-bottom: 12px; }
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.photo-card { aspect-ratio: 1/1.05; }

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--surface-2), #0f0f14);
}
.photo-placeholder .placeholder-icon { width: 34px; height: 34px; fill: rgba(255,255,255,.18); }

.photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 7px;
  z-index: 2;
  box-shadow: 0 3px 8px rgba(0,0,0,.4);
}
.photo-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo-badge.tg { background: #29a9eb; }
.photo-badge.ig { background: radial-gradient(circle at 30% 110%, #ffdb8b, #ee2a7b 60%, #6228d7); }
.photo-badge.of { background: #00aeef; }
.photo-badge.tt { background: #000; }
.photo-badge.sc { background: #fffc00; }

.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
}

/* ================= LINKS ================= */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.link-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.link-row:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
  background: var(--surface-2);
}
.link-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}
.link-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.link-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.link-title { font-weight: 600; font-size: 14.5px; }
.link-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.chevron { font-size: 20px; color: var(--text-muted); }

/* ================= GALLERY ================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.gallery-thumb {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s ease;
}
.gallery-thumb:hover { transform: scale(1.03); }
.gallery-thumb .placeholder-fill {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(160deg, var(--surface-2), #0f0f14);
}
.gallery-thumb .placeholder-icon {
  width: 30px;
  height: 30px;
  fill: rgba(255,255,255,.18);
}
.gallery-thumb .placeholder-fill span {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,.28);
}
.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= CONTACT ================= */
.contact-pill {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 30px;
}

.footer {
  text-align: center;
  font-size: 11px;
  color: #52525c;
  padding: 40px 0 28px;
}

/* ================= MODAL ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,6,8,.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  padding: 32px 26px 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
  animation: modalPop .3s ease;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,.08);
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,.16); }
.modal-emoji { font-size: 44px; margin-bottom: 10px; }
.prize-text {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.prize-instructions { font-size: 13.5px; color: #c9c9d1; margin-bottom: 22px; line-height: 1.5; }
.claim-btn {
  display: inline-block;
  background: #29a9eb;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 30px;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(41,169,235,.35);
}

/* ================= BOTÓN FLOTANTE ================= */
.floating-cta {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 50;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(255,61,127,.5);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  animation: ctaPulse 2.4s ease-in-out infinite;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(255,61,127,.5); }
  50% { box-shadow: 0 10px 40px rgba(255,61,127,.85); }
}

/* ================= ADVERTENCIA +18 ================= */
.age-gate-modal { padding-top: 34px; }
.age-gate-icon {
  width: 40px;
  height: 40px;
  color: rgba(255,255,255,.85);
  margin: 0 auto 16px;
  display: block;
}
.age-gate-title { margin: 0 0 12px; font-size: 19px; font-weight: 800; }
.age-gate-text { margin: 0 0 6px; font-size: 14px; color: var(--text); }
.age-gate-subtext { margin: 0 0 22px; font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.age-confirm-btn {
  width: 100%;
  background: #fff;
  color: #111;
  border: none;
  padding: 14px;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease;
}
.age-confirm-btn:hover { transform: translateY(-2px); }

/* ================= CONFETTI ================= */
.confetti-piece {
  position: fixed;
  top: -10px;
  font-size: 20px;
  pointer-events: none;
  z-index: 200;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(540deg); opacity: 0; }
}
