/*
Theme Name: Dani Mago V2
Author: Dani Mago
Description: Tema WordPress personalizado para Dani Mago.
Version: 2.0.0
License: GPL-2.0-or-later
Text Domain: mago-dani
*/

:root {
  --purple: #32105f;
  --purple-dark: #160b27;
  --purple-soft: #6d45a5;
  --violet: #8e52d6;
  --red: #e51f45;
  --gold: #ffc928;
  --cyan: #22b8b0;
  --cream: #fbf8ff;
  --white: #fff;
  --ink: #20152d;
  --muted: #665d72;
  --shadow: 0 18px 50px rgba(34, 12, 62, .14);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6
}

a {
  color: inherit;
  text-decoration: none
}

.post-entry a,
.entry-content a,
.wp-block-post-content a {
  color: #0b59d3 !important;
  font-weight: 800 !important
}

.post-entry a:hover,
.entry-content a:hover,
.wp-block-post-content a:hover {
  color: #0b59d3 !important;
  text-decoration: underline
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

button,
input,
select,
textarea {
  font: inherit
}

.container {
  width: min(calc(100% - 36px), var(--max));
  margin: auto
}

.screen-reader-text {
  position: absolute !important;
  left: -9999px
}

/* HEADER */

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(22, 11, 39, .92);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 22px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px
}

.brand-text {
  font-family: "Baloo 2", sans-serif;
  font-size: 25px;
  font-weight: 900;
  line-height: .9
}

.brand-text span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 5px
}

.primary-nav {
  margin-left: auto
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 23px;
  margin: 0;
  padding: 0
}

.primary-nav a {
  font-weight: 900;
  color: #fff;
  transition: .2s
}

.primary-nav a:hover {
  color: var(--gold)
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  padding: 13px 20px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s
}

.header-cta {
  background: var(--gold);
  color: var(--purple-dark)
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px)
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  padding: 10px 13px
}

/* HERO */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: linear-gradient(105deg, #1d1424 0%, #32105f 45%, #512c83 68%, #b39bcf 100%)
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 52%;
  margin: 0 auto;
  padding: 110px 0 70px
}

.kicker {
  font-weight: 900;
  letter-spacing: 1.7px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 14px
}

.hero h1 {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(52px, 6.5vw, 86px);
  line-height: .9;
  margin: 12px 0 22px;
  font-weight: 900;
  letter-spacing: -1.5px
}

.hero h1 span {
  display: block;
  color: var(--gold)
}

.hero p {
  font-size: 20px;
  max-width: 610px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .92)
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.btn-purple {
  background: var(--violet);
  color: #fff
}

.btn-gold {
  background: var(--gold);
  color: var(--purple-dark)
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, .7);
  color: #fff;
  background: transparent
}

.location {
  margin-top: 18px;
  font-weight: 900
}

/* SECTIONS */

.section {
  padding: 76px 0
}

.section-title {
  text-align: center;
  font-family: "Baloo 2", sans-serif;
  font-size: 40px;
  line-height: 1.05;
  margin: 0 0 36px;
  color: var(--purple-dark)
}

.spark {
  display: inline-block;
  width: .65em;
  height: .65em;
  object-fit: contain;
  vertical-align: baseline
}

.spark-left {
  background: transparent url("assets/images/dado1.png") center / contain no-repeat
}

.spark-right {
  background: transparent url("assets/images/dado2.png") center / contain no-repeat
}

/* EVENTOS */

.events {
  background: var(--cream)
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.event-card {
  display: block;
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 1px solid rgba(50, 16, 95, .06);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease
}

.event-card.fade-up {
  transition: opacity .7s ease, transform .2s ease
}

.event-card.fade-up:hover,
.event-card.fade-up:focus-visible {
  transform: translateY(-2px)
}

.event-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--violet)
}

.event-card:nth-child(2):before,
.event-card:nth-child(5):before {
  background: var(--gold)
}

.event-card:nth-child(3):before,
.event-card:nth-child(6):before {
  background: var(--cyan)
}

.event-icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: #f0e7ff;
  margin-bottom: 14px
}

.event-card:nth-child(2) .event-icon,
.event-card:nth-child(5) .event-icon {
  background: #fff5c8
}

.event-card:nth-child(3) .event-icon,
.event-card:nth-child(6) .event-icon {
  background: #ddf7f5
}

.event-card:nth-child(3) .event-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  white-space: nowrap
}

.event-card h3 {
  font-family: "Baloo 2", sans-serif;
  font-size: 25px;
  line-height: 1.05;
  margin: 0 0 8px;
  color: var(--purple)
}

.event-card p {
  margin: 0;
  color: var(--muted)
}

.event-card h3 a {
  color: inherit
}

.event-card h3 a:hover {
  color: var(--violet)
}

.events .gallery-more-wrap {
  margin-top: 34px
}

/* ABOUT */

.about {
  background: var(--purple-dark);
  color: #fff
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.7fr 1fr;
  gap: 35px;
  align-items: center
}

.about-photo {
  width: 270px;
  height: 270px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
  border: 5px solid rgba(255, 255, 255, .1)
}

.about h2 {
  font-family: "Baloo 2", sans-serif;
  font-size: 44px;
  line-height: 1;
  margin: 0 0 16px;
  color: #fff
}

.about p {
  color: rgba(255, 255, 255, .84)
}

.about-more-link {
  color: var(--gold);
  font-weight: 900
}

.about-more-link:hover {
  color: #fff
}

.stats {
  border-left: 1px solid rgba(255, 255, 255, .18);
  padding-left: 28px;
  display: grid;
  gap: 17px
}

.stat {
  display: flex;
  gap: 11px;
  align-items: center;
  font-weight: 900
}

.stat-bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--violet);
  flex: 0 0 auto
}

.stat-dice {
  width: 1.5em;
  height: 1.5em;
  background: transparent
}

.stat-bubble img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.stat:nth-child(2) .stat-bubble {
  background: var(--gold);
  color: var(--purple-dark)
}

.stat:nth-child(3) .stat-bubble {
  background: var(--cyan);
  color: var(--purple-dark)
}

.stat:nth-child(4) .stat-bubble {
  background: var(--red)
}

/* VIDEO */

.video-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 35px;
  align-items: center
}

.video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1c0c39
}

.video-box img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* VÍDEO YOUTUBE */

.video-box iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center
}

.play span {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  display: grid;
  place-items: center;
  font-size: 34px;
  color: var(--purple);
  padding-left: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25)
}

.video-copy h2 {
  font-family: "Baloo 2", sans-serif;
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--purple-dark);
  white-space: nowrap;
  letter-spacing: -.4px
}

.video-copy {
  text-align: center
}

.video-copy .btn {
  display: flex;
  width: fit-content;
  margin: 20px auto 0
}

/* GALLERY */

.gallery {
  background: var(--cream)
}

.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px
}

.gallery-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none
}

.gallery-track::-webkit-scrollbar {
  display: none
}

.gallery-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(50, 16, 95, .07)
}

.gallery-media {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #1c0c39
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.04)
}

.gallery-type {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--gold);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
  border-radius: 999px;
  letter-spacing: .5px
}

.gallery-type-die {
  display: inline-block;
  width: .95em;
  height: .95em;
  object-fit: contain;
  vertical-align: baseline
}

.gallery-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 22px;
  padding-left: 3px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .25)
}

.gallery-no-image {
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-size: 28px;
  background: linear-gradient(135deg, var(--purple-dark), var(--violet))
}

.gallery-card-body {
  padding: 14px 16px 16px
}

.gallery-card-body h3 {
  font-family: "Baloo 2", sans-serif;
  color: var(--purple);
  font-size: 22px;
  line-height: 1.05;
  margin: 0
}

.gallery-arrow {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(50, 16, 95, .18);
  transition: .2s
}

.gallery-arrow:hover {
  background: var(--gold);
  color: var(--purple-dark);
  transform: translateY(-2px)
}

.gallery-more-wrap {
  text-align: center;
  margin-top: 26px
}

.gallery-placeholder {
  min-height: 180px;
  border: 2px dashed #cfc0df;
  border-radius: 22px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  color: var(--muted);
  background: #fff
}

.gallery-placeholder strong {
  display: block;
  color: var(--purple);
  font-family: "Baloo 2", sans-serif;
  font-size: 27px;
  margin-bottom: 6px
}

/* CONTACT */

.contact {
  background: linear-gradient(110deg,
      var(--purple),
      #5c2a96 58%,
      #32105f);
  color: #fff
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 35px;
  align-items: center
}

.contact-success {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 22px;
  border: 2px solid var(--gold);
  border-radius: 14px;
  background: rgba(255, 201, 40, .96);
  color: var(--purple-dark);
  font-family: "Baloo 2", sans-serif;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  animation: contact-success-hide 5s ease forwards
}

.contact-success-icon {
  flex: 0 0 auto;
  font-size: 25px;
  line-height: 1
}

.contact-error {
  grid-column: 1/-1;
  padding: 16px 22px;
  border: 2px solid #ffb4ab;
  border-radius: 14px;
  background: #b42318;
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2)
}

.contact-error strong,
.contact-error span {
  display: block
}

.contact-error a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px
}

.contact-error {
  animation: contact-error-hide 5s ease forwards
}

@keyframes contact-error-hide {

  0%,
  82% {
    opacity: 1;
    visibility: visible
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
  }
}

@keyframes contact-success-hide {

  0%,
  82% {
    opacity: 1;
    visibility: visible
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
  }
}

.contact h2 {
  font-family: "Baloo 2", sans-serif;
  font-size: 50px;
  line-height: 1;
  margin: 0 0 16px
}

.contact p {
  font-size: 18px;
  color: rgba(255, 255, 255, .9)
}

.contact-details {
  display: grid;
  gap: 12px;
  margin: 25px 0
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 900
}

.contact-detail span:first-child {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  display: grid;
  place-items: center
}

.contact-form {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2)
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.field {
  display: grid;
  gap: 6px
}

.field.full {
  grid-column: 1/-1
}

.field label {
  font-weight: 900;
  font-size: 14px
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #ded7e6;
  border-radius: 10px;
  background: #fff;
  outline: none
}

.field input:disabled {
  background: #f0edf4;
  border-color: #c9c2d4;
  color: var(--muted);
  cursor: not-allowed;
  opacity: .72
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(142, 82, 214, .12)
}

.field textarea {
  min-height: 120px;
  resize: vertical
}

.form-submit {
  margin-top: 15px;
  width: 100%;
  background: var(--red);
  color: #fff
}

.privacy-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 700
}

.privacy-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--purple)
}

.privacy-consent a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px
}

/* FOOTER */

.site-footer {
  background: #0d0717;
  color: #fff;
  padding: 32px 0
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 25px;
  align-items: center
}

.footer-brand {
  font-family: "Baloo 2", sans-serif;
  font-size: 22px;
  font-weight: 900
}

.footer-small {
  color: rgba(255, 255, 255, .65);
  font-size: 13px
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
  padding: 18px 110px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .65);
  font-size: 13px
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px
}

.footer-legal-links a {
  color: #fff
}

.footer-legal-links a:hover {
  color: var(--gold)
}

.footer-legal > span {
  padding-left: 55px
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 14px;
  font-weight: 800
}

.socials {
  display: flex;
  gap: 10px;
  justify-content: flex-end
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  display: grid;
  place-items: center;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(142, 82, 214, .4)
}

/* WHATSAPP */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
  transition: .2s
}

.whatsapp-float:hover {
  transform: scale(1.06)
}

.whatsapp-float img {
  width: 36px;
  height: 36px
}

/* ANIMATION */

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease
}

.fade-up.visible {
  opacity: 1;
  transform: none
}

/* TABLET */

@media(max-width:1000px) {

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 82px 0 55px
  }

  .footer-legal > span {
    padding-left: 0
  }

  .primary-nav ul {
    gap: 14px
  }

  .brand {
    min-width: 190px
  }

  .header-cta {
    padding: 11px 14px
  }

  .hero-content {
    width: 58%
  }

  .hero {
    min-height: auto
  }

  .about-grid {
    grid-template-columns: 1fr 1.7fr
  }

  .stats {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding: 20px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr)
  }

  .video-grid,
  .contact-grid {
    grid-template-columns: 1fr
  }
}

/* MOBILE */

@media(max-width:760px) {

  .navbar {
    min-height: 72px
  }

  .brand img {
    width: 62px;
    height: 62px
  }

  .brand-text {
    font-size: 22px
  }

  .menu-toggle {
    display: block
  }

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    background: var(--purple-dark);
    border-radius: 15px;
    padding: 12px;
    display: none;
    box-shadow: var(--shadow)
  }

  .primary-nav.open {
    display: block
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0
  }

  .primary-nav li a {
    display: block;
    padding: 11px 10px
  }

  .header-cta {
    display: none
  }

  .hero-content {
    width: 100%;
    padding: 95px 18px 24px
  }

  .hero h1 {
    font-size: 54px
  }

  .hero p {
    font-size: 18px
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch
  }

  .hero-buttons .btn {
    width: 100%
  }

  .section {
    padding: 56px 0
  }

  .section-title {
    font-size: 34px
  }

  .event-grid {
    grid-template-columns: 1fr
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center
  }

  .about-photo {
    margin: auto
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    text-align: left
  }

  .video-copy h2 {
    font-size: 30px;
    letter-spacing: -.2px
  }

  .gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none
  }

  .gallery-track::-webkit-scrollbar {
    display: none
  }

  .gallery-card {
    min-width: 84%;
    scroll-snap-align: center
  }

  .gallery-arrow {
    display: none
  }

  .contact h2 {
    font-size: 40px
  }

  .form-grid {
    grid-template-columns: 1fr
  }

  .field.full {
    grid-column: auto
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center
  }

  .socials {
    justify-content: center
  }

}

@media(max-width:420px) {

  .hero h1 {
    font-size: 46px
  }

  .stats {
    grid-template-columns: 1fr
  }
}

/* GALERÍA COMPLETA */

.gallery-page-hero {
  padding: 150px 0 70px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff;
  text-align: center
}

.gallery-page-hero .kicker {
  color: var(--gold)
}

.gallery-page-hero h1 {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  margin: 12px 0 16px
}

.gallery-page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .86);
  font-size: 18px
}

.spectacles-content {
  background: var(--cream)
}

.spectacles-intro {
  max-width: 780px;
  margin: 0 auto 46px;
  text-align: center
}

.spectacles-intro .section-title {
  margin-bottom: 12px
}

.spectacles-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 18px
}

.spectacles-list {
  display: grid;
  gap: 30px
}

.spectacle-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  scroll-margin-top: 105px
}

.spectacle-detail-reverse .spectacle-detail-image {
  order: 2
}

.spectacle-detail-image {
  min-height: 320px;
  background: #e9e1f3
}

.spectacle-detail-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover
}

.spectacle-detail-copy {
  align-self: center;
  padding: clamp(28px, 5vw, 58px)
}

.spectacle-detail-copy .event-icon {
  margin-bottom: 18px
}

.spectacle-detail-copy h2 {
  margin: 0 0 14px;
  color: var(--purple);
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(29px, 3.2vw, 40px);
  line-height: 1.05
}

.spectacle-detail-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 17px
}

.spectacle-contact-link {
  color: var(--purple);
  font-weight: 900
}

.spectacle-contact-link:hover {
  color: var(--violet)
}

.spectacle-contact-link span {
  margin-left: 5px
}

.legal-page-content {
  background: var(--cream)
}

.legal-document {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(50, 16, 95, .06);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow)
}

.about-page .legal-document,
.post-entry {
  display: flow-root
}

.about-page .legal-document figure.wp-block-image,
.post-entry figure.wp-block-image {
  margin: 1.2em 0
}

.about-page .legal-document .alignleft,
.about-page .legal-document figure.wp-block-image.alignleft,
.about-page .legal-document figure.wp-block-image:has(> img.alignleft),
.post-entry figure.wp-block-image.alignleft,
.post-entry figure.wp-block-image:has(> img.alignleft),
.post-entry .alignleft {
  float: left;
  max-width: min(45%, 320px);
  margin: .35em 1.5em 1em 0
}

.about-page .legal-document .alignright,
.about-page .legal-document figure.wp-block-image.alignright,
.about-page .legal-document figure.wp-block-image:has(> img.alignright),
.post-entry figure.wp-block-image.alignright,
.post-entry figure.wp-block-image:has(> img.alignright),
.post-entry .alignright {
  float: right;
  max-width: min(45%, 320px);
  margin: .35em 0 1em 1.5em
}

.about-page .legal-document figure.wp-block-image:has(> img.alignleft) > img.alignleft,
.about-page .legal-document figure.wp-block-image:has(> img.alignright) > img.alignright,
.post-entry figure.wp-block-image:has(> img.alignleft) > img.alignleft,
.post-entry figure.wp-block-image:has(> img.alignright) > img.alignright {
  float: none;
  max-width: 100%;
  margin: 0
}

.about-page .legal-document .aligncenter,
.about-page .legal-document figure.wp-block-image.aligncenter,
.about-page .legal-document figure.wp-block-image:has(> img.aligncenter),
.post-entry figure.wp-block-image.aligncenter,
.post-entry figure.wp-block-image:has(> img.aligncenter),
.post-entry .aligncenter {
  display: table;
  float: none;
  clear: both;
  max-width: 100%;
  margin: 1.5em auto
}

.about-page .legal-document .alignnone,
.about-page .legal-document figure.wp-block-image.alignnone,
.about-page .legal-document figure.wp-block-image:has(> img.alignnone),
.post-entry figure.wp-block-image.alignnone,
.post-entry figure.wp-block-image:has(> img.alignnone),
.post-entry .alignnone {
  display: block;
  float: none;
  max-width: 100%;
  margin: 1.5em 0
}

.legal-document h2 {
  margin: 0 0 12px;
  color: var(--purple);
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.15
}

.legal-document h2:not(:first-child) {
  margin-top: 30px
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-size: 16px
}

.about-page .legal-document a {
  color: var(--purple);
  font-weight: 900
}

.about-page .legal-document a:hover,
.about-page .legal-document a:focus-visible {
  color: var(--violet)
}

.legal-document ul {
  display: grid;
  gap: 8px;
  padding-left: 24px
}

.legal-document strong {
  color: var(--ink)
}

.gallery-group {
  margin-bottom: 64px
}

.gallery-group:last-child {
  margin-bottom: 0
}

.gallery-category-title {
  margin: 0 0 22px;
  color: var(--purple-dark);
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  text-align: center
}

.gallery-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 320px;
  place-items: center;
  color: var(--purple);
  font-family: "Baloo 2", sans-serif;
  font-size: 32px;
  font-weight: 800
}

.spectacle-detail-image a {
  display: block;
  width: 100%;
  height: 100%
}

.gallery-page .gallery-section-list {
  gap: 24px
}

.gallery-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  align-items: start;
  gap: 16px
}

.gallery-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow)
}

.gallery-poster-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(22, 11, 39, .9));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease
}

.gallery-poster:hover .gallery-poster-title,
.gallery-poster:focus-visible .gallery-poster-title {
  opacity: 1
}

.gallery-poster:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px
}

.gallery-media-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow)
}

.gallery-poster img {
  display: block;
  width: 100%;
  height: auto
}

.gallery-page .gallery-section-detail .spectacle-detail-image {
  height: auto;
  min-height: 320px;
  align-self: stretch
}

.gallery-page .gallery-section-detail .gallery-section-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  overflow: hidden
}

.gallery-page .gallery-section-detail .gallery-section-slide,
.gallery-page .gallery-section-detail .gallery-section-slide img {
  width: 100%;
  height: 100%;
  min-height: 320px
}

.gallery-page .gallery-section-detail .gallery-section-slider .gallery-section-slide[hidden] {
  display: none
}

.gallery-page .gallery-section-detail .gallery-section-slider .gallery-section-slide {
  position: absolute;
  inset: 0;
  display: block
}

.gallery-page .gallery-section-detail .gallery-section-slide img {
  display: block;
  object-fit: cover
}

.spectacle-carousel-trigger {
  cursor: zoom-in
}

.spectacle-carousel-trigger::after {
  position: absolute;
  right: 12px;
  bottom: 42px;
  left: 12px;
  z-index: 2;
  width: fit-content;
  margin: 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(22, 11, 39, .82);
  color: #fff;
  content: "Haz clic para ampliar";
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease
}

.spectacle-carousel-trigger:hover::after,
.spectacle-carousel-trigger:focus-visible::after {
  opacity: 1;
  transform: translateY(0)
}

.spectacle-carousel-trigger .gallery-section-arrow {
  cursor: pointer
}

.spectacle-lightbox-open {
  overflow: hidden
}

.spectacle-lightbox {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 10050;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 5, 18, .96);
  color: #fff
}

.spectacle-lightbox::backdrop {
  background: rgba(10, 5, 18, .96)
}

.spectacle-lightbox-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden
}

.spectacle-lightbox-dialog h2 {
  z-index: 3;
  margin: 0;
  padding: 18px 72px 10px;
  color: #fff;
  text-align: center
}

.spectacle-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--purple-dark);
  font-size: 34px;
  line-height: 1;
  cursor: pointer
}

.spectacle-lightbox-stage {
  position: relative;
  box-sizing: border-box;
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  overflow: hidden
}

.spectacle-lightbox-slides {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  overflow: hidden
}

.spectacle-lightbox-slide {
  position: absolute;
  inset: 0;
  display: grid;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: 12px 76px 70px;
  place-items: center
}

.spectacle-lightbox-slide[hidden] {
  display: none
}

.spectacle-lightbox-slide img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 160px) !important;
  max-height: calc(100vh - 180px) !important;
  max-height: calc(100dvh - 180px) !important;
  object-fit: contain
}

.spectacle-lightbox-prev,
.spectacle-lightbox-next {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--purple-dark);
  font-size: 38px;
  line-height: 1;
  cursor: pointer
}

.spectacle-lightbox-prev {
  left: 20px
}

.spectacle-lightbox-next {
  right: 20px
}

.spectacle-lightbox-dots {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 9px
}

.spectacle-lightbox-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55)
}

.spectacle-lightbox-dots span.is-active {
  background: var(--gold)
}

@media(max-width:760px) {
  .spectacle-lightbox-dialog h2 {
    padding: 12px 56px 6px;
    font-size: 24px
  }

  .spectacle-lightbox-stage {
    padding: 0
  }

  .spectacle-lightbox-slide {
    padding: 8px 56px 54px
  }

  .spectacle-lightbox-slide img {
    max-width: calc(100vw - 96px) !important;
    max-height: calc(100vh - 140px) !important;
    max-height: calc(100dvh - 140px) !important
  }

  .spectacle-lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px
  }

  .spectacle-lightbox-prev,
  .spectacle-lightbox-next {
    width: 42px;
    height: 42px
  }

  .spectacle-lightbox-prev {
    left: 8px
  }

  .spectacle-lightbox-next {
    right: 8px
  }
}

.gallery-section-slider .gallery-section-slide {
  transition: transform .8s cubic-bezier(.22, .61, .36, 1)
}

.gallery-section-slider .gallery-section-slide.gallery-sweep-enter-from-left {
  transform: translateX(-100%)
}

.gallery-section-slider .gallery-section-slide.gallery-sweep-enter-from-right {
  transform: translateX(100%)
}

.gallery-section-slider .gallery-section-slide.gallery-sweep-exit-to-left {
  transform: translateX(-100%)
}

.gallery-section-slider .gallery-section-slide.gallery-sweep-exit-to-right {
  transform: translateX(100%)
}

.gallery-section-slider .gallery-section-slide.gallery-sweep-enter-from-left,
.gallery-section-slider .gallery-section-slide.gallery-sweep-enter-from-right {
  z-index: 2
}

.gallery-section-slider .gallery-section-slide.gallery-sweep-exit-to-left,
.gallery-section-slider .gallery-section-slide.gallery-sweep-exit-to-right {
  z-index: 1
}

@media(prefers-reduced-motion:reduce) {
  .gallery-section-slider .gallery-section-slide,
  .gallery-poster-title {
    transition-duration: .01ms
  }
}

.gallery-section-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--purple-dark);
  font-size: 30px;
  line-height: 1;
  cursor: pointer
}

.gallery-section-prev {
  left: 12px
}

.gallery-section-next {
  right: 12px
}

.gallery-section-dots {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 7px;
  pointer-events: none
}

.gallery-section-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65)
}

.gallery-section-dots span.is-active {
  background: var(--gold)
}

.gallery-page .gallery-section-detail .spectacle-detail-copy {
  padding: clamp(24px, 4vw, 42px)
}

.gallery-detail-media {
  position: relative;
  display: block;
  width: 100%;
  background: #1c0c39
}

.gallery-detail-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover
}

.gallery-media-card .gallery-detail-media .gallery-image-fallback {
  height: auto;
  min-height: 260px
}

.gallery-media-card-copy {
  padding: 20px
}

.gallery-media-card-copy .event-icon {
  margin-bottom: 12px
}

.gallery-media-card-copy h2 {
  margin: 0 0 10px;
  color: var(--purple);
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(23px, 2.4vw, 30px);
  line-height: 1.05
}

.gallery-media-card-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px
}

.gallery-section-back {
  margin-bottom: 22px
}

.gallery-page-hero .kicker a {
  color: inherit;
  text-decoration: none
}

@media(max-width:1000px) {
  .spectacle-detail {
    grid-template-columns: 1fr
  }

  .spectacle-detail-reverse .spectacle-detail-image {
    order: 0
  }

  .spectacle-detail-image,
  .spectacle-detail-image img,
  .gallery-image-fallback {
    min-height: 250px;
    max-height: 360px
  }
}

@media(max-width:1000px) {
  .gallery-page .gallery-section-detail .spectacle-detail-image,
  .gallery-page .gallery-section-detail .spectacle-detail-image img,
  .gallery-page .gallery-section-detail .gallery-image-fallback {
    height: 100%;
    min-height: 300px;
    max-height: none
  }

  .gallery-page .gallery-section-detail .gallery-section-slider,
  .gallery-page .gallery-section-detail .gallery-section-slide,
  .gallery-page .gallery-section-detail .gallery-section-slide img {
    min-height: 300px;
    max-height: none
  }
}

.empty-state {
  display: grid;
  gap: 6px;
  border-radius: 12px;
  padding: 20px;
  background: rgba(50, 16, 95, .03);
  border: 1px solid rgba(50, 16, 95, .08);
  color: var(--muted);
  font-weight: 700
}

@media(max-width:760px) {
  .gallery-page .gallery-page-hero {
    padding: 125px 0 55px
  }

  .gallery-page .gallery-section-detail .spectacle-detail-image {
    height: 250px
  }

  .gallery-page .gallery-section-list {
    gap: 18px
  }

  .gallery-poster-grid {
    gap: 12px
  }

  .gallery-page .gallery-section-detail .gallery-section-slider,
  .gallery-page .gallery-section-detail .gallery-section-slide,
  .gallery-page .gallery-section-detail .gallery-section-slide img {
    min-height: 250px;
    max-height: none
  }

  .gallery-group {
    margin-bottom: 48px
  }
}

@media(max-width:480px) {
  .gallery-page .gallery-section-detail .spectacle-detail-image {
    height: 250px
  }

  .gallery-page .gallery-section-detail .spectacle-detail-image,
  .gallery-page .gallery-section-detail .spectacle-detail-image img,
  .gallery-page .gallery-section-detail .gallery-image-fallback {
    min-height: 250px;
    max-height: none
  }
}
