:root {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 10% 20%, rgba(162, 114, 255, 0.15), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(255, 200, 124, 0.1), transparent 40%),
    #07011a;
  min-height: 100vh;
  position: relative;
  margin: 0;
}

body.menu-open {
  overflow: hidden;
}

.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
  opacity: 0.08;
  z-index: 5;
}

header .nav-link {
  color: rgba(240, 233, 255, 0.75);
  position: relative;
  transition: color 0.3s ease;
}

header .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f8d49d, #a272ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

header .nav-link:hover,
header .nav-link:focus-visible {
  color: #f8d49d;
}

header .nav-link:hover::after,
header .nav-link:focus-visible::after {
  transform: scaleX(1);
}

.logo-orb {
  position: relative;
  overflow: hidden;
}

.logo-orb::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.24);
  opacity: 0.5;
  pointer-events: none;
}

.logo-knot {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(248, 212, 157, 0.38));
}

.logo-knot .knot-ring,
.logo-knot .knot-path {
  fill: none;
  stroke: url(#logo-knot-gradient);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-knot .knot-ring {
  stroke-width: 2.2;
  opacity: 0.8;
}

.logo-knot .knot-path {
  stroke-width: 2.6;
}

.logo-knot .knot-core {
  fill: url(#logo-knot-gradient);
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 1, 26, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 70;
}

.menu-open .nav-overlay {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  flex-direction: column;
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #f8d49d;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-open .menu-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #07011a;
  background: linear-gradient(120deg, #f8d49d, #a272ff);
  box-shadow: 0 10px 30px rgba(248, 212, 157, 0.25);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(162, 114, 255, 0.35);
  opacity: 0.95;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e6d8ff;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8d49d;
}

.text-shadow {
  text-shadow: 0 0 18px rgba(248, 212, 157, 0.65);
}

/* Audio bar compact */
.audio-bar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(12, 6, 36, 0.92), rgba(36, 18, 74, 0.9), rgba(10, 4, 24, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 22px rgba(7, 1, 26, 0.4);
  backdrop-filter: blur(5px);
}

.audio-bar.visible {
  opacity: 1;
  pointer-events: auto;
}

.audio-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #f8d49d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.audio-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 212, 157, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.audio-info {
  display: grid;
  gap: 0.04rem;
  min-width: 130px;
}

.audio-title {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8d49d;
  font-size: 0.7rem;
}

.audio-time {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
}

.audio-progress {
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(248, 212, 157, 0.35), rgba(162, 114, 255, 0.4));
  outline: none;
  width: 100%;
}

.audio-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f8d49d;
  box-shadow: 0 0 0 3px rgba(248, 212, 157, 0.25);
}

.audio-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 999px;
  background: #f8d49d;
  box-shadow: 0 0 0 3px rgba(248, 212, 157, 0.25);
}

.icon-pause,
.icon-muted {
  display: none;
}

.audio-playing .icon-play {
  display: none;
}

.audio-playing .icon-pause {
  display: inline;
}

.audio-muted .icon-volume {
  display: none;
}

.audio-muted .icon-muted {
  display: inline;
}

/* Hero / layout */
.mystic-frame {
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: clamp(0.6rem, 1.5vw, 1.1rem);
  max-width: 100vw;
  margin: 0 auto;
  background: rgba(10, 6, 28, 0.65);
  box-shadow: 0 20px 60px rgba(7, 1, 26, 0.5);
  position: relative;
  overflow: hidden;
}

.mystic-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(248, 212, 157, 0.25);
  pointer-events: none;
}

.mystic-glow {
  background: radial-gradient(circle, rgba(162, 114, 255, 0.4), transparent 70%);
  filter: blur(80px);
}

.hero-slide {
  width: 100%;
  max-width: 100%;
  height: clamp(480px, 85vh, 760px);
  flex-shrink: 0;
  border-radius: 32px;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: #0a0520;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  box-shadow: 0 30px 60px rgba(7, 1, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 1, 26, 0.68), rgba(7, 1, 26, 0.45), rgba(12, 4, 31, 0.6));
  z-index: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(7, 1, 26, 0.75) 85%, rgba(7, 1, 26, 0.9) 100%);
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-audio {
  display: flex;
  justify-content: center;
  margin: clamp(0.75rem, 2vw, 1.5rem) auto 0;
  padding: 0 1.5rem;
  width: min(1100px, 92vw);
}

.hero-audio .audio-bar {
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  margin: clamp(1rem, 3vw, 2rem);
  max-width: min(900px, 100%);
  width: min(900px, 94vw);
  border-radius: 28px;
  backdrop-filter: blur(4px);
  background: linear-gradient(180deg, rgba(10, 6, 28, 0.05) 0%, rgba(10, 6, 28, 0.75) 60%, rgba(10, 6, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 1rem;
  overflow-wrap: break-word;
  margin-bottom: clamp(0.4rem, 2vw, 1.2rem);
}

.hero-content h1,
.hero-content h2,
.hero-content p {
  word-break: break-word;
  hyphens: auto;
}

.hero-metrics {
  gap: 1rem;
}

.hero-actions {
  gap: 1rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.3rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.73rem;
  color: #f8d49d;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(162, 114, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sigil-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(120deg, #f8d49d, #a272ff);
  box-shadow: 0 0 15px rgba(248, 212, 157, 0.7);
}

[data-carousel-track] {
  will-change: transform;
  gap: 0;
}

[data-parallax] {
  transition: transform 0.25s ease, filter 0.25s ease;
}

[data-parallax].is-hovering {
  filter: saturate(1.05);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 5, 26, 0.6);
  color: #f8d49d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.2s ease, border 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 212, 157, 0.8);
}

.carousel-btn:disabled,
.carousel-btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.carousel-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.carousel-scroll::-webkit-scrollbar {
  height: 6px;
}

.carousel-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(120deg, rgba(248, 212, 157, 0.7), rgba(162, 114, 255, 0.7));
  border-radius: 999px;
}

.event-visual {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 380px;
  background: radial-gradient(circle at 30% 20%, rgba(248, 212, 157, 0.2), transparent 55%),
    radial-gradient(circle at 70% 0%, rgba(162, 114, 255, 0.3), transparent 40%),
    #07011a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px rgba(3, 0, 15, 0.8);
  isolation: isolate;
}

.event-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  animation: eventZoom 16s ease-in-out infinite;
  position: relative;
  z-index: 0;
}

.event-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 1, 26, 0.15), rgba(7, 1, 26, 0.85));
  pointer-events: none;
  z-index: 1;
}

.event-visual-ring {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  border: 1px solid rgba(248, 212, 157, 0.4);
  animation: ringPulse 14s linear infinite;
  z-index: 2;
}

.event-visual-badge {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: rgba(7, 1, 26, 0.85);
  border: 1px solid rgba(248, 212, 157, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.65rem;
  z-index: 3;
}

.event-visual-badge span {
  font-weight: 700;
  color: #f8d49d;
}

.event-visual-badge small {
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.2em;
}

.service-card,
.card-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.service-card::after,
.card-item::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(248, 212, 157, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

.service-card:hover,
.card-item:hover {
  transform: translateY(-10px);
  border-color: rgba(248, 212, 157, 0.4);
}

.service-card:hover::after,
.card-item:hover::after {
  opacity: 1;
}

.service-card {
  min-width: min(320px, 80vw);
  scroll-snap-align: start;
  padding: 2rem;
  border-radius: 28px;
  background-image: linear-gradient(135deg, rgba(255, 233, 181, 0.08), rgba(162, 114, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(8, 2, 23, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #f8d49d;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-card li::before {
  content: '*';
  margin-right: 0.5rem;
  color: #a272ff;
}

.badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  padding: 0.2rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 212, 157, 0.5);
}

.price {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #e6d8ff;
}

.list-label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.card-item {
  border-radius: 24px;
  padding: 1.5rem;
  background: rgba(8, 4, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(7, 1, 26, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-item img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-item h3 {
  font-family: 'Cinzel', serif;
  color: #f8d49d;
  font-size: 1.4rem;
}

.rune-ring {
  position: absolute;
  inset: 10%;
  border-radius: 999px;
  border: 1px dashed rgba(248, 212, 157, 0.5);
  animation: rotate 18s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes eventZoom {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.card-stack {
  position: relative;
  width: min(420px, 90vw);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  perspective: 1200px;
}

.tarot-card {
  position: absolute;
  inset: 6%;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(7, 1, 26, 0.6);
  filter: drop-shadow(0 10px 40px rgba(162, 114, 255, 0.28));
  animation: shuffle 7s ease-in-out infinite;
}

.card-a {
  background-image: url('../assets/images/carta-emperatriz.jpg');
  animation-delay: 0s;
}

.card-b {
  background-image: url('../assets/images/carta-emperatriz.jpg');
  animation-delay: 1.4s;
}

.card-c {
  background-image: url('../assets/images/carta-mago.jpg');
  animation-delay: 2.8s;
}

@keyframes shuffle {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  25% {
    transform: translate3d(6%, -6%, 30px) rotate(6deg);
  }

  50% {
    transform: translate3d(-4%, 4%, -20px) rotate(-5deg);
  }

  75% {
    transform: translate3d(3%, -8%, 15px) rotate(8deg);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

.contact-form {
  border-radius: 32px;
  padding: 2.5rem;
  background: rgba(6, 3, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(5, 0, 20, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form.sent {
  border-color: rgba(248, 212, 157, 0.6);
  box-shadow: 0 0 0 3px rgba(162, 114, 255, 0.2), 0 25px 80px rgba(6, 0, 20, 0.75);
  animation: pulse-glow 1.6s ease infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 212, 157, 0.25), 0 25px 80px rgba(6, 0, 20, 0.7);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(162, 114, 255, 0.06), 0 28px 90px rgba(6, 0, 20, 0.8);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(248, 212, 157, 0.2), 0 25px 80px rgba(6, 0, 20, 0.7);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(248, 212, 157, 0.8);
  box-shadow: 0 0 0 2px rgba(248, 212, 157, 0.25);
}

.contact-icon {
  font-size: 1.8rem;
  color: #f8d49d;
}

[data-carousel-dots] button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.3s ease, background 0.3s ease;
}

[data-carousel-dots] button.active {
  width: 32px;
  background: linear-gradient(120deg, #f8d49d, #a272ff);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .audio-bar {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 0.2rem;
    padding: 0.3rem 0.45rem;
  }

  .audio-info {
    grid-column: 2 / span 1;
  }

  #audio-progress {
    grid-column: 1 / -1;
    width: 100%;
  }

  .mystic-frame {
    padding: 1rem;
  }

  .hero-content {
    margin: 0.8rem;
    padding: 1.2rem 1.4rem;
  }
}

@media (max-width: 768px) {
  .mystic-frame {
    padding: 0.85rem;
    max-width: 100vw;
  }

  .nav-links {
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(7, 1, 26, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 1.25rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 80;
  }

  .menu-open #main-nav {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .btn-primary {
    padding: 0.7rem 1.2rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
  }

  header .nav-link {
    font-size: 0.8rem;
  }

  main {
    padding-top: 6rem;
  }

  section {
    scroll-margin-top: 90px;
  }

  .hero-slide {
    height: clamp(360px, 85vh, 520px);
    border-radius: 18px;
    padding: 0;
  }

  .hero-content {
    margin: 0.5rem auto;
    padding: 0.9rem 0.95rem 1.05rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .hero-pill {
    letter-spacing: 0.25em;
    font-size: 0.65rem;
  }

  .hero-content .btn-primary,
  .hero-content .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .carousel-scroll {
    gap: 1rem;
  }

  .service-card,
  .card-item {
    min-width: 260px;
  }

  .event-visual {
    min-height: 320px;
  }

  .card-item {
    padding: 1.25rem;
  }
}
