/* =========================================================
   MISS LUPE · Portal de fans
   Paleta "Muse" — retro 70s rosa / naranja / magenta
   ========================================================= */

:root {
  /* Paleta */
  --rosa-claro: #F9C9D6;
  --naranja:    #F26B1A;
  --rosa:       #EE5C86;
  --magenta:    #FB1E70;
  --vino:       #3D0A1E;
  --crema:      #FFF1F5;
  --blanco:     #FFFFFF;

  /* Roles */
  --bg:        var(--crema);
  --texto:     var(--vino);
  --acento:    var(--magenta);

  /* Tipografías */
  --font-script: 'Parisienne', cursive;
  --font-title:  'Fredoka', sans-serif;
  --font-body:   'Poppins', sans-serif;

  /* Espaciado / radios */
  --maxw: 1120px;
  --radio: 22px;
  --sombra: 0 18px 40px rgba(61, 10, 30, 0.18);
  --gradiente: linear-gradient(120deg, var(--naranja), var(--magenta) 55%, var(--rosa));
}

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

html { scroll-behavior: smooth; background: var(--crema); }

body {
  font-family: var(--font-body);
  color: var(--texto);
  background: transparent;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Fondo PORTAL (muta con el scroll desde main.js) ---------- */
.portal-bg {
  position: fixed; inset: 0; z-index: -3;
  background: radial-gradient(130% 130% at 50% 30%, var(--rosa-claro), var(--magenta) 45%, var(--vino) 100%);
}
.portal-swirl {
  position: fixed; inset: -25%; z-index: -2;
  pointer-events: none;
  background: conic-gradient(from 90deg at 50% 50%,
    var(--magenta), var(--naranja), var(--rosa-claro), var(--rosa), var(--magenta));
  filter: blur(90px) saturate(1.15);
  opacity: .28;
  animation: swirl 28s linear infinite;
}
@keyframes swirl {
  from { transform: rotate(0deg) scale(1.25); }
  to   { transform: rotate(360deg) scale(1.25); }
}

/* ---------- Estrellas / brillos (generadas en main.js) ---------- */
.stars {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--c, #fff);
  box-shadow: 0 0 6px 1px var(--c, #fff);
  opacity: .6;
  animation: twinkle 3s ease-in-out infinite;
}
.star--spark {
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: var(--c, #fff);
  text-shadow: 0 0 8px var(--c, #fff), 0 0 16px var(--c, #fff);
  line-height: 1;
}
@keyframes twinkle {
  0%, 100% { opacity: .12; transform: scale(.6); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Accesibilidad: foco visible para teclado ---------- */
:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Doble anillo para que el foco se vea sobre cualquier fondo (claro u oscuro) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.85);
}

/* ---------- Skip link (salta al contenido con Tab) ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--vino);
  color: var(--crema);
  font-family: var(--font-title);
  font-weight: 600;
  padding: .7rem 1.2rem;
  border-radius: 0 0 12px 12px;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 0;
}

section { padding: clamp(3.5rem, 8vw, 7rem) 1.25rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
}
.btn--primary {
  background: var(--gradiente);
  color: var(--blanco);
  box-shadow: 0 10px 22px rgba(251, 30, 112, 0.35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(251, 30, 112, 0.45); }
.btn--ghost {
  background: transparent;
  color: var(--vino);
  border-color: var(--vino);
}
.btn--ghost:hover { background: var(--vino); color: var(--crema); transform: translateY(-3px); }

/* ---------- Encabezados de sección ---------- */
.section-head { max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-head__kicker {
  /* Chip/badge: el fondo vino propio garantiza el contraste del naranja
     sobre cualquier color del fondo "portal" (WCAG AA). */
  display: inline-block;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  color: var(--naranja);
  font-weight: 600;
  background: rgba(61, 10, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: .35rem .95rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.section-head__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height: 1.1;
  margin: .3rem 0 .6rem;
}
.section-head__lead { opacity: .85; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 241, 245, 0.82);
  border-bottom: 1px solid rgba(61, 10, 30, 0.08);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
}
.nav__brand {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--magenta);
}
.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__menu a { font-family: var(--font-title); font-weight: 500; transition: color .2s; }
.nav__menu a:hover { color: var(--magenta); }
.nav__cta {
  background: var(--gradiente);
  color: var(--blanco) !important;
  padding: .5rem 1.2rem;
  border-radius: 999px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 3px;
  background: var(--vino);
  border-radius: 3px;
  transition: transform .25s, opacity .25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 94vh;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  text-align: left;
}
.hero__content { position: relative; z-index: 2; max-width: 620px; padding: 1rem 0; }
.hero__eyebrow {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .8rem;
  color: var(--rosa-claro);
  opacity: .85;
}
.hero__title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 7rem);
  line-height: .95;
  color: #FFC2E0;                 /* rosita claro con glow */
  text-shadow:
    0 0 10px rgba(255, 150, 200, .9),
    0 0 28px rgba(251, 30, 112, .7),
    0 0 56px rgba(251, 30, 112, .45);
  animation: titleGlow 3.5s ease-in-out infinite;
  margin: .4rem 0;
}
@keyframes titleGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(255,150,200,.8), 0 0 26px rgba(251,30,112,.6), 0 0 50px rgba(251,30,112,.4); }
  50%      { text-shadow: 0 0 16px rgba(255,180,220,1), 0 0 42px rgba(251,30,112,.85), 0 0 82px rgba(251,30,112,.6); }
}
.hero__subtitle { font-size: clamp(1rem, 2.4vw, 1.3rem); max-width: 540px; margin: 0 0 2rem; color: var(--crema); opacity: .92; }
.hero__actions { display: flex; gap: 1rem; justify-content: flex-start; flex-wrap: wrap; }

/* Sobre el fondo oscuro de la portada, los elementos vino van claros */
.hero .btn--ghost { color: var(--crema); border-color: var(--crema); }
.hero .btn--ghost:hover { background: var(--crema); color: var(--vino); }

/* Preview 3D de la portada */
.hero__preview {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 2;
}
.hero__viewer { width: min(420px, 80vw); aspect-ratio: 1 / 1; }
.hero__preview-glow {
  position: absolute;
  width: 78%; aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 30, 112, .55), transparent 65%);
  filter: blur(34px);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(1.12); opacity: 1; }
}
.hero__preview-tag {
  position: absolute; bottom: -.6rem;
  font-family: var(--font-title);
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rosa-claro); opacity: .75;
}
.hero__scroll {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: 1.6rem; color: var(--rosa-claro); z-index: 2;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* =========================================================
   MERCH / CARRUSEL 3D
   ========================================================= */
.merch {
  background: linear-gradient(180deg, rgba(61,10,30,.97), rgba(61,10,30,.86));
  color: var(--crema);
}
.merch .section-head__title { color: var(--crema); }
.merch .section-head__kicker { color: var(--rosa-claro); }

.merch__stage {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.5rem, 3vw, 2rem);
}
.merch__viewer {
  position: relative;
  width: min(520px, 80vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(251,30,112,.35), transparent 60%);
  display: grid;
  place-items: center;
}
.merch__viewer canvas { border-radius: 50%; }
.merch__loading {
  position: absolute;
  font-family: var(--font-title);
  letter-spacing: .1em;
  opacity: .6;
}
.merch__arrow {
  font-family: var(--font-title);
  font-size: 2rem;
  width: 56px; height: 56px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--rosa-claro);
  background: transparent;
  color: var(--crema);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.merch__arrow:hover { background: var(--magenta); border-color: var(--magenta); transform: scale(1.08); }

.merch__info { max-width: 520px; margin: 2rem auto 0; text-align: center; }
.merch__name { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.merch__price { font-family: var(--font-title); color: var(--rosa-claro); font-size: 1.3rem; margin: .2rem 0 .6rem; }
.merch__desc { opacity: .85; margin-bottom: 1.4rem; }

.merch__dots { display: flex; gap: .6rem; justify-content: center; margin-top: 1.8rem; flex-wrap: wrap; }
.merch__dots button {
  width: 12px; height: 12px; border-radius: 50%;
  border: 0; background: rgba(249,201,214,.4); cursor: pointer; transition: background .2s, transform .2s;
}
.merch__dots button.is-active { background: var(--magenta); transform: scale(1.3); }

/* =========================================================
   PERKS / BENEFICIOS
   ========================================================= */
.perks__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.perk {
  /* Glass effect oscuro: vidrio esmerilado tintado en vino para que el texto
     BLANCO contraste (WCAG AA) sobre el fondo "portal" animado. */
  background: rgba(61, 10, 30, 0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radio);
  padding: 2rem 1.6rem;
  box-shadow: var(--sombra), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-align: center;
  color: var(--crema);
  transition: transform .25s ease, box-shadow .25s ease;
}
.perk:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(61, 10, 30, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
/* Navegadores sin soporte de backdrop-filter: fondo casi sólido para no perder contraste */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .perk { background: rgba(61, 10, 30, 0.88); }
}
.perk__icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: .8rem;
  border-radius: 50%;
  background: var(--gradiente);
  color: var(--blanco);
  font-size: 1.3rem;
}
.perk h3 { font-family: var(--font-title); margin-bottom: .3rem; }
.perk p { color: var(--crema); opacity: .92; font-size: .95rem; }

/* =========================================================
   BIO
   ========================================================= */
.bio {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.bio__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radio);
  overflow: hidden;
  background:
    conic-gradient(from 200deg at 40% 40%, var(--magenta), var(--naranja), var(--rosa), var(--magenta));
  box-shadow: var(--sombra);
}
.bio__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bio__text .section-head__title { text-align: left; }
.bio__text p { margin-bottom: 1rem; }
.bio__stats { display: flex; gap: 2rem; margin-top: 1.5rem; }
.bio__stats strong { font-family: var(--font-title); font-size: 2rem; color: var(--magenta); display: block; }
.bio__stats span { font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; opacity: .85; }

/* =========================================================
   GALERÍA — carrusel flotante deslizable
   ========================================================= */
.gallery__carousel {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(.3rem, 2vw, 1.2rem);
}
.gallery__viewport {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 2.2rem 0;        /* aire para las sombras y el escalado */
  touch-action: pan-y;      /* deja el scroll vertical; el horizontal lo manejamos nosotros */
  cursor: grab;
}
.gallery__viewport.is-dragging { cursor: grabbing; }
.gallery__track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  will-change: transform;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.gallery__slide {
  position: relative;
  flex: 0 0 auto;
  width: clamp(260px, 78vw, 560px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  transform: scale(.8);
  opacity: .45;
  filter: saturate(.85);
  transition: transform .55s cubic-bezier(.22, .61, .36, 1), opacity .55s, filter .55s;
  user-select: none;
}
.gallery__slide.is-active { transform: scale(1); opacity: 1; filter: none; }
.gallery__slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none;
}
.gallery__slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(61, 10, 30, .55), transparent 55%);
  pointer-events: none;
}
.gallery__slide span {
  position: absolute; bottom: 1rem; left: 1.2rem;
  z-index: 2;
  font-family: var(--font-script); color: var(--blanco); font-size: 1.6rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

/* Flechas */
.gallery__arrow {
  font-family: var(--font-title);
  font-size: 2rem;
  width: 56px; height: 56px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--magenta);
  background: rgba(255, 255, 255, .6);
  color: var(--magenta);
  cursor: pointer;
  z-index: 3;
  transition: background .2s, color .2s, transform .2s;
}
.gallery__arrow:hover { background: var(--magenta); color: var(--blanco); transform: scale(1.08); }

/* Puntos selectores */
.gallery__dots { display: flex; gap: .6rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.gallery__dots button {
  width: 12px; height: 12px; border-radius: 50%;
  border: 0; background: rgba(251, 30, 112, .3); cursor: pointer; transition: background .2s, transform .2s;
}
.gallery__dots button.is-active { background: var(--magenta); transform: scale(1.3); }

/* Destellos al cambiar de foto */
.gallery__sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.gallery__spark {
  position: absolute;
  transform: translate(-50%, -50%) scale(0);
  animation: galSpark .7s ease-out forwards;
  text-shadow: 0 0 10px currentColor;
}
@keyframes galSpark {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
  30%  { opacity: 1; }
  100% {
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(1.3) rotate(90deg);
    opacity: 0;
  }
}

/* =========================================================
   REPRODUCTOR DE AUDIO (botón flotante)
   ========================================================= */
.audio-toggle {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: var(--gradiente);
  box-shadow: var(--sombra);
  display: grid;
  place-items: center;
  transition: transform .2s ease;
}
.audio-toggle:hover { transform: translateY(-3px) scale(1.06); }
.audio-toggle:active { transform: scale(.95); }

.audio-toggle__bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.audio-toggle__bars i {
  display: block;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--blanco);
}
/* Reproduciendo: ecualizador animado */
.audio-toggle.is-playing .audio-toggle__bars i { animation: eq .9s ease-in-out infinite; }
.audio-toggle.is-playing .audio-toggle__bars i:nth-child(2) { animation-delay: .2s; }
.audio-toggle.is-playing .audio-toggle__bars i:nth-child(3) { animation-delay: .4s; }
.audio-toggle.is-playing .audio-toggle__bars i:nth-child(4) { animation-delay: .1s; }

@keyframes eq {
  0%, 100% { height: 6px; }
  50%      { height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .audio-toggle.is-playing .audio-toggle__bars i { animation: none; height: 14px; }
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { background: rgba(249, 201, 214, .5); backdrop-filter: blur(6px); }
.contact__form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.contact__form label { font-family: var(--font-title); font-weight: 500; margin-bottom: .35rem; font-size: .95rem; }
.contact__form input,
.contact__form textarea {
  font-family: var(--font-body);
  padding: .8rem 1rem;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--blanco);
  color: var(--vino);
  font-size: 1rem;
  transition: border-color .2s;
}
.contact__form input:focus,
.contact__form textarea:focus { border-color: var(--magenta); }
.contact__form .btn { grid-column: 1 / -1; justify-self: start; }
.contact__hp { display: none; }
.contact__status { grid-column: 1 / -1; font-family: var(--font-title); color: var(--magenta); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--vino);
  color: var(--crema);
  text-align: center;
  padding: 3rem 1.25rem;
}
.site-footer__brand { font-family: var(--font-script); font-size: 2rem; color: var(--rosa-claro); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin: 1rem 0; }
.site-footer__links a { font-family: var(--font-title); transition: color .2s; }
.site-footer__links a:hover { color: var(--magenta); }
.site-footer__legal { opacity: .6; font-size: .85rem; }

/* ---------- Aparición al scrollear ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 6rem 1.25rem 3rem;
  }
  .hero__content { margin: 0 auto; order: 1; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__preview { order: 2; margin-top: 1rem; }
  .hero__viewer { width: min(320px, 70vw); }

  .perks__grid { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio__media { max-width: 360px; }
  .bio__text .section-head__title { text-align: center; }
}

@media (max-width: 680px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--crema);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(61,10,30,.08);
    transform: translateY(-120%);
    transition: transform .3s ease;
    z-index: -1;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .contact__form { grid-template-columns: 1fr; }
  .merch__arrow { width: 46px; height: 46px; font-size: 1.6rem; }
}

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
