/* Pulido visual 2D: claridad, calidez y foco en la inscripción. */
:root {
  --line: rgba(247, 241, 248, .17);
  --surface-raised: #211b25;
  --surface-soft: #1d1920;
}

.site-header.shell {
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
}

.nav-cta,
.button,
.carousel-control,
.carousel-toggle,
.membership-option-copy,
.signup-form input:not([type="checkbox"]):not([type="radio"]),
.signup-form select,
.signup-form textarea {
  border-radius: 4px;
}

.nav-cta span,
.button span,
.text-link span {
  display: inline-block;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}

.nav-cta:hover span,
.button:hover span {
  transform: translate(2px, -1px);
}

.hero.shell {
  isolation: isolate;
  padding-top: clamp(58px, 7.4vw, 96px);
}

.hero-copy {
  max-width: 650px;
}

.hero-concept {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  padding: 10px 0;
  border-block: 1px solid var(--line);
  color: #f3edf5;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .09em;
  scroll-margin-top: 100px;
}

.hero-concept span:last-of-type {
  color: var(--lime);
}

.hero-concept i {
  color: var(--pink);
  font-size: 11px;
  font-style: normal;
}

.hero h1 .hero-event-name {
  letter-spacing: -.065em;
}

.hero-lede,
.experience-copy > p:not(.eyebrow),
.registration-copy > p:not(.eyebrow) {
  color: #e0d8e3;
}

.hero-signals {
  padding-block: 7px;
  border-block: 1px solid var(--line);
}

.photo-frame {
  border-color: rgba(255, 63, 164, .38);
  box-shadow: 0 24px 68px rgba(0, 0, 0, .22);
}

.photo-frame::after {
  border-color: rgba(247, 241, 248, .46);
}

.hero-photo {
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), filter .6s ease;
}

.hero-photo-wrap:hover .hero-photo {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.03);
}

.photo-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.photo-index::before {
  width: 24px;
  height: 1px;
  background: var(--lime);
  content: "";
}

.characters-title,
.experience-copy h2,
.registration-copy h2,
.closing h2 {
  text-wrap: balance;
}

.character-card.is-active .character-portrait {
  border-color: rgba(255, 63, 164, .76);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}

.character-caption > span {
  transition: color .2s ease, border-color .2s ease;
}

.character-option:hover .character-caption > span {
  border-color: rgba(255, 63, 164, .52);
  color: #fff;
}

.character-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface-raised);
}

.character-selection p {
  margin: 0;
  color: #eee7f0;
  font-size: 14px;
  line-height: 1.5;
}

.experience {
  background: var(--surface-soft);
}

.experience-photo-frame {
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
}

.registration-copy {
  position: sticky;
  top: 118px;
}

.registration-note {
  padding: 12px 14px;
  border: 1px solid rgba(247, 241, 248, .14);
  border-left: 2px solid var(--pink);
  border-radius: 4px;
  background: rgba(33, 27, 37, .58);
}

.registration-selection-note {
  border-left-color: var(--lime);
}

.signup-form {
  padding: clamp(24px, 3.4vw, 42px);
  border: 1px solid rgba(247, 241, 248, .2);
  border-top: 3px solid var(--pink);
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(160, 32, 240, .08), var(--surface-raised) 42%, rgba(255, 63, 164, .035));
  box-shadow: 0 22px 62px rgba(0, 0, 0, .2);
}

.form-step {
  border-color: rgba(247, 241, 248, .17);
}

.membership-question {
  border-color: rgba(184, 255, 44, .34);
  background: rgba(23, 23, 23, .38);
}

.membership-option-copy:hover {
  border-color: rgba(184, 255, 44, .68);
}

.signup-submit {
  min-height: 56px;
  font-size: 12px;
}

.form-message {
  min-height: 1.5em;
}

.closing-frame {
  background: linear-gradient(110deg, #211b25, #211b25 68%, #251b27);
}

.site-footer {
  border-top: 1px solid var(--line);
}

/* Propuesta local: atmósfera nocturna en capas, con luz suave y textura discreta. */
body {
  background-color: #17121b;
  background-image:
    radial-gradient(ellipse at 8% 11%, rgba(160, 32, 240, .12), transparent 35%),
    radial-gradient(ellipse at 94% 34%, rgba(255, 63, 164, .075), transparent 36%),
    radial-gradient(ellipse at 54% 94%, rgba(184, 255, 44, .035), transparent 34%),
    linear-gradient(180deg, #17121b 0%, #141117 48%, #19131b 100%);
}

.ambient-background::before {
  inset: -15%;
  background:
    radial-gradient(ellipse at 9% 18%, rgba(160, 32, 240, .45), transparent 42%),
    radial-gradient(ellipse at 91% 32%, rgba(255, 63, 164, .28), transparent 41%),
    radial-gradient(ellipse at 48% 88%, rgba(184, 255, 44, .1), transparent 40%);
  opacity: .48;
  animation: background-ink-drift 34s ease-in-out infinite alternate;
}

.ambient-background::after {
  background-image:
    repeating-radial-gradient(ellipse at 92% 27%, transparent 0 116px, rgba(247, 241, 248, .022) 117px 118px, transparent 119px 170px),
    radial-gradient(circle at 9% 22%, rgba(255, 63, 164, .28) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 17%, rgba(184, 255, 44, .24) 0 1px, transparent 2px),
    radial-gradient(circle at 87% 71%, rgba(160, 32, 240, .3) 0 1px, transparent 2px),
    radial-gradient(circle at 31% 83%, rgba(255, 63, 164, .22) 0 1px, transparent 2px);
  opacity: .38;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 86%, transparent 100%);
  animation: background-ink-drift 46s ease-in-out infinite alternate;
}

.ambient-threads {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ambient-thread {
  fill: none;
  stroke-width: 1.15;
  stroke-dasharray: 2 9;
  vector-effect: non-scaling-stroke;
  animation: thread-drift 36s linear infinite;
}

.ambient-thread--pink { stroke: rgba(255, 63, 164, .23); }
.ambient-thread--lime { stroke: rgba(184, 255, 44, .18); animation-delay: -17s; }
.ambient-thread--wandering { stroke: rgba(206, 193, 213, .2); stroke-dasharray: 2 13; animation: thread-drift 52s linear infinite, thread-breathe 16s ease-in-out infinite alternate; }

.hero,
.characters,
.registration,
.closing { position: relative; }

.folklore-trigger {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--lime);
  cursor: pointer;
  opacity: .72;
  transition: opacity .2s ease, border-color .2s ease, transform .25s ease, background-color .2s ease;
}

.folklore-trigger span {
  display: grid;
  width: 22px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(255, 63, 164, .76);
  border-radius: 50% 50% 47% 47% / 62% 62% 38% 38%;
  background: linear-gradient(145deg, rgba(255, 63, 164, .18), rgba(160, 32, 240, .2) 64%, rgba(184, 255, 44, .11));
  color: var(--lime);
  font-size: 10px;
  line-height: 1;
  transform: rotate(12deg);
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.folklore-trigger:hover,
.folklore-trigger:focus-visible { opacity: 1; transform: scale(1.12); }
.folklore-trigger:hover span,
.folklore-trigger:focus-visible span { border-color: var(--lime); background-color: rgba(184, 255, 44, .14); transform: rotate(-12deg) scale(1.1); }
.folklore-trigger:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.folklore-trigger::after {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  padding: 4px 7px;
  border: 1px solid rgba(184, 255, 44, .26);
  background: #17121b;
  color: var(--paper);
  content: "secreto";
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition: opacity .18s ease, transform .18s ease;
}
.folklore-trigger:hover::after,
.folklore-trigger:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.folklore-trigger--hero { top: 47%; left: 48%; }
.folklore-trigger--characters { top: 34px; right: 7%; }
.folklore-trigger--registration { top: 28%; left: 32%; }
.folklore-trigger--closing { top: 27px; right: 29px; }

.folklore-dialog { width: min(520px, calc(100% - 28px)); }
.folklore-dialog .privacy-dialog-heading { margin-bottom: 16px; }
.folklore-dialog .privacy-dialog-heading h2 { color: var(--pink); }
.folklore-progress { margin: -6px 0 13px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.folklore-copy { color: #eee6f0; font-size: 16px; line-height: 1.7; }
.folklore-source { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: #c9c0cd; font-size: 11px; line-height: 1.6; }
.folklore-source a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.folklore-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.folklore-actions .button { min-height: 44px; justify-content: center; padding-inline: 15px; cursor: pointer; }
.folklore-actions .button-secondary { border: 1px solid rgba(247, 241, 248, .3); background: transparent; color: var(--paper); }
.folklore-actions .button-secondary:hover { border-color: var(--pink); color: var(--pink); }

@keyframes thread-drift { to { stroke-dashoffset: -66; } }
@keyframes thread-breathe { from { opacity: .45; } to { opacity: 1; } }

@keyframes background-ink-drift {
  from { transform: translate(-1.5%, 1%) scale(1); }
  to { transform: translate(1.5%, -1%) scale(1.06); }
}

@media (max-width: 980px) {
  .registration-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero.shell {
    padding-top: 42px;
  }

  .ambient-background::before {
    opacity: .34;
  }

  .ambient-thread { opacity: .75; }
  .ambient-thread--wandering { opacity: .85; }
  .folklore-trigger--hero { top: 55%; left: auto; right: 3%; }
  .folklore-trigger--characters { top: 25px; right: 12%; }
  .folklore-trigger--registration { top: 4%; left: auto; right: 3%; }

  .hero-concept {
    gap: 6px;
    font-size: 9px;
    letter-spacing: .065em;
  }

  .hero-photo-wrap:hover .hero-photo {
    transform: none;
    filter: saturate(.98) contrast(1.02);
  }

  .registration-copy {
    max-width: 640px;
  }

  .signup-form {
    gap: 19px;
    padding: 22px 18px;
  }

  .character-selection {
    align-items: stretch;
    flex-direction: column;
  }

  .character-selection .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .signup-form {
    padding-inline: 15px;
  }

  .registration-note {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-thread,
  .ambient-background::before,
  .ambient-background::after {
    animation: none !important;
  }

  .nav-cta span,
  .button span,
  .text-link span,
  .hero-photo,
  .character-caption > span {
    transition: none !important;
  }

  .hero-photo-wrap:hover .hero-photo {
    transform: none;
  }

  .folklore-trigger { transition: none !important; }
}

@media (max-width: 430px) {
  .folklore-trigger--hero { top: 63%; right: 0; }
  .folklore-trigger--characters { top: 18%; right: 13%; }
  .folklore-trigger--closing { top: 18px; right: 19px; }
  .folklore-actions { flex-direction: column; }
  .folklore-actions .button { width: 100%; }
}
.section-heading--characters { grid-template-columns: minmax(0, 1fr); }
.hero-lede--intro { max-width: 48ch; margin-top: 26px; font-size: 13px; line-height: 1.72; }
@media (max-width: 700px) {
  .hero-lede--intro { margin-top: 22px; font-size: 12px; line-height: 1.66; }
}
