/* ==========================================================================
   PUNTO ZERO · Alicia del Corazón
   Ambientación teatral con Recursos Oficiales + Paleta Propuesta B
   ========================================================================== */

:root {
  /* Paleta de color exacta (Propuesta B) */
  --pz-bg: #EAF1F3;           /* Azul bruma */
  --pz-surface: #F9FCFC;      /* Blanco hielo - Tarjetas, contenedores y campos */
  --pz-navy: #102D41;         /* Azul noche - Header, textos principales y títulos */
  --pz-teal: #096D73;         /* Turquesa profundo - CTA principal, enlaces activos y foco */
  --pz-gold: #A97728;         /* Oro antiguo - Bordes de selección y ornamentos */
  --pz-burgundy: #923F4E;     /* Rojo naipe - Acentos relacionados con los naipes */

  /* Colores de apoyo para la interfaz */
  --pz-text-muted: #526A78;   /* Textos secundarios */
  --pz-border: #CFDDE1;       /* Bordes neutros, separadores */
  --pz-hero-tint: #D5E5E9;    /* Áreas suaves del encabezado visual */
  --pz-selected-bg: #F0F7F5;  /* Fondo de tarjeta seleccionada */
  --pz-white: #FFFFFF;        /* Texto sobre turquesa o azul noche */

  /* Estados semánticos accesibles */
  --pz-teal-hover: #07575C;
  --pz-success-bg: #E6F4EE;
  --pz-success-text: #0F5132;
  --pz-success-border: #A3CFBB;
  --pz-warning-bg: #FEF5E7;
  --pz-warning-text: #7D4E00;
  --pz-warning-border: #F5CBA7;
  --pz-danger-bg: #FDECEC;
  --pz-danger-text: #842029;
  --pz-danger-border: #F1AEB5;

  /* Radios y sombras teatrales */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 16px 44px rgba(8, 24, 38, 0.38);
  --shadow-card: 0 12px 34px rgba(8, 24, 38, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--pz-navy);
  color: var(--pz-navy);
  line-height: 1.55;
  min-height: 100vh;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--pz-navy);
  letter-spacing: -0.01em;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.main-content {
  flex: 1;
  padding-bottom: 64px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   FONDO AMBIENTADO DE LA OBRA (Nubes celestes, haz de luz, damero y mariposas)
   ========================================================================== */
.alice-world-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #0d2638;
}

/* Escenario principal unificado de Alicia del Corazón (sin cortes) */
.alice-bg-stage {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(16, 45, 65, 0.18) 0%, rgba(16, 45, 65, 0.10) 50%, rgba(13, 38, 56, 0.35) 100%),
    url('/assets/oficial/fondo-escenario-alicia.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.96;
}

/* Capa de nubes y damero integrada suavemente con máscara degradada */
.alice-bg-clouds-top {
  position: absolute;
  inset: 0;
  background-image: url('/assets/oficial/fondo-nubes-damero.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  mix-blend-mode: lighten;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0.9) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0.9) 100%);
}

/* Banco de niebla azul cinematográfica en la base con fundido suave superior (sin línea de corte) */
.alice-bg-mist-bottom {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -40px;
  height: 55vh;
  min-height: 360px;
  background: url('/assets/oficial/niebla-azul.png') center bottom / cover no-repeat;
  opacity: 0.52;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.65) 65%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.65) 65%, rgba(0, 0, 0, 1) 100%);
  animation: driftMist 14s ease-in-out infinite alternate;
}

@keyframes driftMist {
  0% { transform: translateX(-1.5%) scale(1.02); }
  100% { transform: translateX(1.5%) scale(1.06); }
}

/* Mariposas azules mágicas flotando en los laterales */
.ambient-butterflies {
  position: absolute;
  width: 340px;
  max-width: 36vw;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(125, 211, 252, 0.55));
  opacity: 0.85;
}

.ambient-bf-left {
  top: 14%;
  left: -20px;
  animation: floatButterflyLeft 9s ease-in-out infinite alternate;
}

.ambient-bf-right {
  top: 46%;
  right: -20px;
  transform: scaleX(-1);
  animation: floatButterflyRight 11s ease-in-out infinite alternate;
}

@keyframes floatButterflyLeft {
  0% { transform: translateY(0px) rotate(-2deg); }
  100% { transform: translateY(-18px) rotate(3deg); }
}

@keyframes floatButterflyRight {
  0% { transform: scaleX(-1) translateY(0px) rotate(-2deg); }
  100% { transform: scaleX(-1) translateY(-20px) rotate(3deg); }
}

/* ==========================================================================
   INTRO MÁGICO ("ALICIA DEL CORAZÓN")
   ========================================================================== */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--pz-navy);
  cursor: pointer;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
}

.intro-splash.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-bg-scene {
  position: absolute;
  inset: 0;
  background: url('/assets/oficial/fondo-escenario-alicia.png') center/cover no-repeat;
  opacity: 0.92;
  transform: scale(1.03);
}

.intro-mist-layer {
  position: absolute;
  inset: 0;
  background: url('/assets/oficial/niebla-azul.png') center bottom/cover no-repeat;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.25) 35%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.25) 35%, rgba(0, 0, 0, 1) 100%);
  pointer-events: none;
}

.intro-butterflies-floating {
  position: absolute;
  width: 520px;
  max-width: 90vw;
  top: 12%;
  opacity: 0.9;
  pointer-events: none;
  animation: floatButterflyLeft 4s ease-in-out infinite alternate;
}

.intro-center-stage {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 480px;
  width: 88%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: revealStage 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealStage {
  0% { opacity: 0; transform: translateY(20px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.intro-pz-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

.intro-alicia-logo {
  width: 100%;
  max-width: 390px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.65));
}

.intro-dates-img {
  width: 240px;
  max-width: 78%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}

.intro-loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
}

.intro-loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5eead4, var(--pz-gold));
  border-radius: 99px;
  animation: fillIntroBar 2.2s ease-out forwards;
}

@keyframes fillIntroBar {
  0% { width: 0%; }
  100% { width: 100%; }
}

.intro-enter-hint {
  background: rgba(16, 45, 65, 0.65);
  border: 1px solid rgba(207, 221, 225, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--pz-white);
  font-size: 0.8rem;
  cursor: pointer;
}

/* ==========================================================================
   ICONOS SVG Y ORNAMENTOS
   ========================================================================== */
.svg-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}

.svg-icon-lg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.suit-accent {
  color: var(--pz-burgundy);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  user-select: none;
}

/* ==========================================================================
   A. BARRA SUPERIOR / NAVEGACIÓN (Fondo Azul Noche #102D41 + Menú Hamburguesa)
   ========================================================================== */
.navbar {
  background-color: rgba(16, 45, 65, 0.94);
  backdrop-filter: blur(14px);
  color: var(--pz-white);
  border-bottom: 1px solid rgba(169, 119, 40, 0.42);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(6, 18, 28, 0.45);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--pz-white);
  cursor: pointer;
}

.brand-logo-official {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background-color: rgba(169, 119, 40, 0.5);
}

.brand-alicia-mini {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Botón menú hamburguesa: oculto en desktop, visible en mobile */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--pz-white);
  border: 1px solid rgba(169, 119, 40, 0.55);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
}

.mobile-menu-btn .icon-close {
  display: none;
}

.mobile-menu-btn.open .icon-hamburger {
  display: none;
}

.mobile-menu-btn.open .icon-close {
  display: block;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--pz-white);
  border: 1px solid rgba(207, 221, 225, 0.28);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--pz-gold);
}

.nav-btn-highlight {
  border-color: rgba(169, 119, 40, 0.75);
  background: rgba(169, 119, 40, 0.16);
}

.nav-btn.active {
  background-color: var(--pz-teal);
  border-color: var(--pz-gold);
  color: var(--pz-white);
  box-shadow: 0 4px 14px rgba(9, 109, 115, 0.45);
}

.nav-btn-private {
  background: transparent;
  color: rgba(213, 229, 233, 0.75);
  border: 1px solid transparent;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-btn-private:hover,
.nav-btn-private.active {
  color: var(--pz-white);
  background: rgba(255, 255, 255, 0.12);
}

/* Views */
.view-section {
  display: none;
  padding-top: 26px;
}

.view-section.active {
  display: block;
}

/* ==========================================================================
   B. CABECERA DEL ESPECTÁCULO (Marco dorado + Niebla + Mariposas)
   ========================================================================== */
.show-hero-block {
  position: relative;
  background-color: var(--pz-surface);
  border: 2px solid var(--pz-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 32px;
}

.hero-corner-butterflies {
  position: absolute;
  top: -12px;
  right: 12px;
  width: 190px;
  height: auto;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.show-hero-visual {
  background-color: var(--pz-navy);
  position: relative;
  line-height: 0;
  border-bottom: 2px solid var(--pz-gold);
  overflow: hidden;
}

.show-hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-mist-overlay {
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 100%;
  height: 110px;
  object-fit: cover;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 1) 100%);
  pointer-events: none;
}

.show-hero-editorial-bar {
  padding: 16px 24px;
  background: linear-gradient(180deg, var(--pz-surface) 0%, var(--pz-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-editorial-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--pz-navy);
  font-size: 0.94rem;
}

.hero-editorial-copy p {
  margin: 0;
  color: var(--pz-text-muted);
}

.hero-editorial-copy strong {
  color: var(--pz-navy);
}

.hero-editorial-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   C. TARJETAS DE FUNCIONES (Con Logos Oficiales en Bronce y Naipes)
   ========================================================================== */
.functions-section {
  margin-bottom: 28px;
}

.section-magic-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 28px 24px;
  background: rgba(16, 45, 65, 0.88);
  backdrop-filter: blur(12px);
  border: 2px solid var(--pz-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(6, 18, 28, 0.38);
}

.section-alicia-logo {
  height: 122px;
  max-width: 560px;
  width: 92%;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

.section-magic-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.ornate-gold-line {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pz-gold), transparent);
}

.section-step-pill {
  background-color: var(--pz-gold);
  color: var(--pz-white);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 16px;
  border-radius: 999px;
}

.section-magic-desc {
  color: var(--pz-bg);
  font-size: 0.96rem;
}

.section-magic-desc strong {
  color: #fde68a;
}

/* Dos tarjetas del mismo peso visual en paralelo en desktop */
.dates-grid-equal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* Tarjeta de función: Superficie luminosa #F9FCFC con marco editorial */
.date-card {
  background: linear-gradient(180deg, var(--pz-surface) 0%, var(--pz-bg) 100%);
  border: 1.5px solid var(--pz-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.date-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pz-teal), var(--pz-gold), var(--pz-burgundy));
  opacity: 0.55;
}

.date-card:hover:not(.sold-out) {
  border-color: var(--pz-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(6, 18, 28, 0.38);
}

/* Estado seleccionado: Fondo #F0F7F5, borde 2px en oro antiguo #A97728 */
.date-card.selected {
  background: linear-gradient(180deg, var(--pz-selected-bg) 0%, #E2F1EE 100%);
  border: 2.5px solid var(--pz-gold);
  padding: 19px;
  box-shadow:
    0 16px 38px rgba(6, 18, 28, 0.42),
    0 0 0 3px rgba(169, 119, 40, 0.28);
}

.date-card.selected::before {
  opacity: 1;
  height: 5px;
}

.date-card.sold-out {
  opacity: 0.6;
  cursor: not-allowed;
}

.date-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.date-card-suit {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--pz-burgundy);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Indicador textual + ícono de selección («Seleccionada») */
.date-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--pz-border);
  background-color: var(--pz-white);
  color: var(--pz-text-muted);
}

.date-card.selected .date-status-indicator {
  background-color: var(--pz-gold);
  border-color: var(--pz-gold);
  color: var(--pz-white);
  box-shadow: 0 2px 10px rgba(169, 119, 40, 0.35);
}

.date-card-body {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.date-naipe-wrap {
  background: radial-gradient(circle at 50% 40%, #1d4d68 0%, var(--pz-navy) 100%);
  border: 1.5px solid var(--pz-gold);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  box-shadow: 0 6px 16px rgba(16, 45, 65, 0.22);
}

.date-naipe-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.date-card:hover .date-naipe-img {
  transform: scale(1.04);
}

.date-info-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.date-eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--pz-teal);
  font-weight: 700;
}

/* Imagen oficial de la fecha en bronce antiguo + texto accesible */
.date-official-bronze-img {
  height: 54px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(16, 45, 65, 0.14));
}

.date-heading-navy {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--pz-navy);
}

/* Protagonista destacada en azul noche */
.date-protagonist-main {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--pz-navy);
  margin-top: 2px;
  padding: 5px 10px;
  background-color: rgba(9, 109, 115, 0.09);
  border-left: 3px solid var(--pz-teal);
  border-radius: 0 6px 6px 0;
}

.date-cast-secondary {
  font-size: 0.83rem;
  color: var(--pz-text-muted);
  line-height: 1.45;
  margin-top: 2px;
}

.date-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--pz-border);
}

.date-price-block {
  display: flex;
  flex-direction: column;
}

.date-price-label {
  font-size: 0.72rem;
  color: var(--pz-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.date-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pz-navy);
}

/* ==========================================================================
   FRANJA DE NAIPES DE PERSONAJES (Tabatha & Alfred grandes + Fechas en Bronce)
   ========================================================================== */
.wonderland-cards-strip {
  margin-bottom: 30px;
  background: rgba(16, 45, 65, 0.88);
  backdrop-filter: blur(12px);
  border: 2px solid var(--pz-gold);
  border-radius: 26px;
  padding: 36px 48px;
  box-shadow: 0 14px 36px rgba(6, 18, 28, 0.38);
}

.cards-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 32px;
}

.mini-naipe-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.mini-naipe-img {
  width: 215px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.52));
  transition: transform 0.25s ease;
}

.mini-naipe-item:hover .mini-naipe-img {
  transform: translateY(-4px) scale(1.02);
}

.mini-naipe-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--pz-white);
  font-size: 0.9rem;
  padding-left: 8px;
}

.mini-suit {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fda4af;
  letter-spacing: 1px;
}

.mini-naipe-caption strong {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--pz-white);
}

.mini-naipe-caption span:last-child {
  color: var(--pz-hero-tint);
  font-size: 0.88rem;
}

.mini-naipe-center-banner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 12px;
}

.center-bronze-dates {
  width: 310px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}

.center-time-city {
  color: var(--pz-hero-tint);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.center-venue-address {
  color: var(--pz-hero-tint);
  font-size: 0.96rem;
  opacity: 0.92;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   D. FORMULARIO, CANTIDAD DE ENTRADAS Y RESUMEN
   ========================================================================== */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.card {
  background: linear-gradient(180deg, var(--pz-surface) 0%, var(--pz-bg) 100%);
  border: 1.5px solid rgba(169, 119, 40, 0.45);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.step-card {
  margin-bottom: 20px;
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--pz-navy);
  border: 1.5px solid var(--pz-gold);
  color: var(--pz-white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-header h2 {
  font-size: 1.2rem;
  color: var(--pz-navy);
  margin-bottom: 2px;
}

.step-header p {
  font-size: 0.88rem;
  color: var(--pz-text-muted);
}

/* Selector de cantidad */
.quantity-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--pz-white);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--pz-border);
  gap: 16px;
  flex-wrap: wrap;
}

.quantity-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--pz-navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--pz-text-muted);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--pz-teal);
  background-color: var(--pz-surface);
  color: var(--pz-teal);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.qty-btn:hover {
  background-color: var(--pz-teal);
  color: var(--pz-white);
}

#ticket-qty {
  width: 60px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  background-color: var(--pz-white);
  border: 1px solid var(--pz-border);
  color: var(--pz-navy);
  padding: 7px;
  border-radius: var(--radius-sm);
}

/* Campos de formulario */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--pz-navy);
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--pz-border);
  background-color: var(--pz-white);
  color: var(--pz-navy);
  font-size: 0.94rem;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #879CA8;
}

/* Estado de foco en turquesa #096D73 */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--pz-teal);
  box-shadow: 0 0 0 3px rgba(9, 109, 115, 0.16);
}

.payment-section-divider {
  margin-top: 8px;
  margin-bottom: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--pz-border);
}

/* Opciones de pago */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--pz-border);
  background-color: var(--pz-white);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.payment-option:hover {
  border-color: var(--pz-teal);
}

.payment-option.selected {
  background-color: var(--pz-selected-bg);
  border: 2px solid var(--pz-gold);
  padding: 14px;
}

.payment-option input[type="radio"] {
  display: none;
}

.pay-svg-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--pz-bg);
  border: 1px solid var(--pz-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pz-teal);
  flex-shrink: 0;
}

.payment-option.selected .pay-svg-badge {
  background-color: var(--pz-teal);
  border-color: var(--pz-teal);
  color: var(--pz-white);
}

.pay-svg-badge svg {
  width: 20px;
  height: 20px;
}

.pay-title {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--pz-navy);
  margin-bottom: 3px;
}

.pay-desc {
  font-size: 0.8rem;
  color: var(--pz-text-muted);
  line-height: 1.4;
}

.payment-info-box {
  background-color: var(--pz-white);
  border: 1px solid var(--pz-border);
  border-left: 4px solid var(--pz-teal);
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--pz-navy);
}

.alias-pill {
  background-color: var(--pz-bg);
  border: 1px solid var(--pz-border);
  padding: 3px 9px;
  border-radius: 6px;
  color: var(--pz-navy);
  font-weight: 700;
  font-family: monospace;
}

.receipt-upload-box {
  background-color: var(--pz-white);
  border: 1px dashed var(--pz-teal);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.receipt-upload-box input[type="file"] {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--pz-text-muted);
}

.receipt-preview-pill {
  margin-top: 10px;
  display: inline-block;
  background-color: var(--pz-success-bg);
  color: var(--pz-success-text);
  border: 1px solid var(--pz-success-border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==========================================================================
   E. BOTONES (Primario sólido #096D73, Secundario borde #096D73 y fondo claro)
   ========================================================================== */
.btn-primary {
  background-color: var(--pz-teal);
  color: var(--pz-white);
  border: 1px solid var(--pz-teal);
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: var(--pz-teal-hover);
  border-color: var(--pz-teal-hover);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-large {
  width: 100%;
  padding: 14px 22px;
  font-size: 1rem;
  margin-top: 6px;
}

.btn-secondary {
  background-color: var(--pz-surface);
  color: var(--pz-teal);
  border: 1px solid var(--pz-teal);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.btn-secondary:hover {
  background-color: var(--pz-selected-bg);
}

.btn-whatsapp {
  background-color: #1E7E48;
  color: var(--pz-white);
  border: 1px solid #1E7E48;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.18s ease;
}

.btn-whatsapp:hover {
  background-color: #166538;
}

.btn-sm {
  padding: 6px 11px;
  font-size: 0.78rem;
  border-radius: 6px;
  border: 1px solid var(--pz-teal);
  background-color: var(--pz-white);
  color: var(--pz-teal);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-sm:hover {
  background-color: var(--pz-selected-bg);
}

.btn-danger-sm {
  border-color: var(--pz-danger-border);
  color: var(--pz-danger-text);
  background-color: var(--pz-danger-bg);
}

/* ==========================================================================
   RESUMEN LATERAL (Sticky Sidebar con Naipe y Fecha en Bronce)
   ========================================================================== */
.summary-sidebar {
  position: sticky;
  top: 86px;
}

.summary-header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.summary-header-bar h3 {
  font-size: 1.08rem;
  color: var(--pz-navy);
}

.summary-poster-wrap {
  width: 100%;
  height: 210px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1.5px solid var(--pz-gold);
  background: radial-gradient(circle at 50% 35%, #1d4d68 0%, var(--pz-navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
}

.summary-poster-img {
  max-width: 48%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.summary-date-logo-img {
  max-width: 46%;
  max-height: 85px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.summary-ticket {
  background-color: var(--pz-white);
  border: 1px solid var(--pz-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.summary-label {
  color: var(--pz-text-muted);
}

.summary-date-highlight {
  color: var(--pz-navy);
  font-weight: 700;
}

.summary-protagonist-text {
  color: var(--pz-teal);
  font-weight: 600;
  text-align: right;
  font-size: 0.84rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--pz-border);
  margin: 12px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--pz-border);
  font-size: 1rem;
}

.summary-total span {
  font-weight: 600;
  color: var(--pz-navy);
}

.summary-total strong {
  font-size: 1.35rem;
  color: var(--pz-teal);
}

.summary-footer {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--pz-text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   BADGES Y ALERTAS ACCESIBLES
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-success {
  background-color: var(--pz-success-bg);
  color: var(--pz-success-text);
  border: 1px solid var(--pz-success-border);
}

.badge-warning {
  background-color: var(--pz-warning-bg);
  color: var(--pz-warning-text);
  border: 1px solid var(--pz-warning-border);
}

.badge-danger {
  background-color: var(--pz-danger-bg);
  color: var(--pz-danger-text);
  border: 1px solid var(--pz-danger-border);
}

.badge-info {
  background-color: #E3F2FD;
  color: #0D47A1;
  border: 1px solid #90CAF9;
}

.alert-error {
  background-color: var(--pz-danger-bg);
  border: 1px solid var(--pz-danger-border);
  color: var(--pz-danger-text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 500;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   VISTA DE CONFIRMACIÓN Y CONSULTA DE RESERVA («MI RESERVA»)
   ========================================================================== */
.confirmation-card,
.lookup-card {
  max-width: 700px;
  margin: 0 auto;
}

.lookup-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.lookup-header h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.lookup-header p {
  font-size: 0.9rem;
  color: var(--pz-text-muted);
}

.lookup-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.order-code-banner {
  background-color: var(--pz-selected-bg);
  border: 2px solid var(--pz-gold);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin: 18px 0;
}

.order-code-banner .code-big {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--pz-navy);
  font-family: 'Outfit', monospace;
}

.action-Steps-box {
  background-color: var(--pz-white);
  border: 1px solid var(--pz-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 16px;
}

.action-Steps-box h3 {
  font-size: 1.02rem;
  color: var(--pz-navy);
}

/* ==========================================================================
   PANEL ADMINISTRATIVO Y PLANILLA
   ========================================================================== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  background-color: var(--pz-surface);
  border: 1.5px solid var(--pz-gold);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-logo-badge {
  background-color: var(--pz-navy);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-logo-badge img {
  height: 36px;
  width: auto;
}

.admin-header h2 {
  font-size: 1.25rem;
}

.admin-header p {
  font-size: 0.86rem;
  color: var(--pz-text-muted);
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background-color: var(--pz-surface);
  border: 1px solid var(--pz-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--pz-text-muted);
  font-weight: 600;
}

.kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  margin-top: 4px;
  color: var(--pz-navy);
}

.admin-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.subtab-btn {
  background-color: var(--pz-surface);
  border: 1px solid var(--pz-border);
  color: var(--pz-navy);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.86rem;
  font-family: inherit;
}

.subtab-btn.active {
  background-color: var(--pz-teal);
  color: var(--pz-white);
  border-color: var(--pz-gold);
}

.studio-sale-card {
  margin-bottom: 20px;
  border-left: 4px solid var(--pz-gold);
}

.studio-sale-card h3 {
  font-size: 1.02rem;
  color: var(--pz-navy);
  margin-bottom: 4px;
}

.studio-sale-bar {
  display: grid;
  grid-template-columns: 1.2fr 75px 1.4fr 1.1fr 1.1fr 1.3fr auto;
  gap: 8px;
  align-items: center;
}

.filters-bar {
  display: grid;
  grid-template-columns: 1fr 220px 240px;
  gap: 12px;
  margin-bottom: 16px;
}

.table-responsive {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.orders-table th,
.orders-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--pz-border);
  vertical-align: middle;
}

.orders-table th {
  color: var(--pz-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0.5px;
  background-color: var(--pz-bg);
}

.row-paid {
  background-color: rgba(230, 244, 238, 0.65);
}

.paid-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--pz-border);
  background-color: var(--pz-white);
  color: var(--pz-navy);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  user-select: none;
}

.paid-toggle-label.is-paid {
  border-color: var(--pz-success-border);
  background-color: var(--pz-success-bg);
  color: var(--pz-success-text);
}

.paid-toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--pz-teal);
  cursor: pointer;
}

.admin-events-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.date-edit-row {
  background-color: var(--pz-white);
  border: 1px solid var(--pz-border);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.editorial-list {
  font-size: 0.86rem;
  color: var(--pz-text-muted);
  margin: 12px 0 16px 18px;
  line-height: 1.6;
}

.editorial-list strong {
  color: var(--pz-navy);
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.site-footer {
  background-color: rgba(16, 45, 65, 0.95);
  border-top: 1px solid rgba(169, 119, 40, 0.45);
  color: var(--pz-hero-tint);
  padding: 22px 0;
  margin-top: auto;
  font-size: 0.84rem;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 34px;
  width: auto;
}

.footer-alicia-logo {
  height: 32px;
  width: auto;
}

.footer-links-col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-link-btn {
  background: transparent;
  border: none;
  color: var(--pz-hero-tint);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-btn:hover {
  color: var(--pz-white);
}

.footer-admin-link {
  opacity: 0.75;
  text-decoration: none;
}

/* ==========================================================================
   MODAL DE COMPROBANTE
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 45, 65, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-box {
  background-color: var(--pz-surface);
  border: 1.5px solid var(--pz-gold);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(16, 45, 65, 0.45);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--pz-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-body img {
  width: 100%;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   4. CRITERIOS DE USO Y RESPONSIVE (Desktop y Mobile + Prevención de Overflow)
   ========================================================================== */

/* Evitar que hijos de grillas o contenedores flexibles empujen el ancho en mobile */
.dates-grid-equal > *,
.booking-grid > *,
.date-card-body > *,
.form-row > *,
.payment-options > *,
.admin-events-layout > *,
.kpi-grid > *,
.studio-sale-bar > *,
.filters-bar > *,
.step-header > *,
.lookup-header > *,
.payment-option > *,
.quantity-box > * {
  min-width: 0;
}

input[type="file"] {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-info-box,
.action-Steps-box,
.summary-ticket {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 920px) {
  .dates-grid-equal {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .booking-grid,
  .admin-events-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .summary-sidebar {
    position: static;
  }
  .studio-sale-bar {
    grid-template-columns: 1fr 1fr;
  }
  .wonderland-cards-strip {
    padding: 26px 24px;
  }
  .cards-strip-inner {
    gap: 20px;
  }
  .mini-naipe-img {
    width: 165px;
  }
  .center-bronze-dates {
    width: 240px;
  }
  .center-time-city {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .brand-divider,
  .brand-alicia-mini {
    display: none;
  }

  .brand-logo-official {
    height: 40px;
  }

  .container.nav-inner,
  .nav-inner {
    padding: 12px 18px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-tabs {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0 6px;
    margin-top: 6px;
    border-top: 1px solid rgba(169, 119, 40, 0.35);
    animation: slideDownMobileMenu 0.2s ease-out forwards;
  }

  .nav-tabs.open {
    display: flex;
  }

  @keyframes slideDownMobileMenu {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-btn,
  .nav-btn-private {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
  }

  .nav-btn-private {
    border-top: 1px solid rgba(207, 221, 225, 0.14);
    margin-top: 2px;
    padding-top: 12px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .container.nav-inner,
  .nav-inner {
    padding: 12px 18px;
  }

  .main-content {
    padding-bottom: 40px;
  }

  .view-section {
    padding-top: 14px;
  }

  .ambient-butterflies {
    width: 180px;
    opacity: 0.55;
  }

  /* Cabecera y banner en mobile */
  .show-hero-block {
    margin-bottom: 18px;
    border-radius: 14px;
  }

  .hero-corner-butterflies {
    width: 105px;
    top: -6px;
    right: 6px;
  }

  .show-hero-editorial-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }

  .hero-editorial-copy {
    align-items: flex-start;
    font-size: 0.86rem;
    gap: 10px;
  }

  .hero-editorial-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .hero-editorial-actions .btn-primary,
  .hero-editorial-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Encabezado Paso 1 */
  .functions-section {
    margin-bottom: 20px;
  }

  .section-magic-header {
    padding: 20px 14px;
    margin-bottom: 14px;
    border-radius: 16px;
  }

  .section-alicia-logo {
    height: 82px;
    max-width: 94%;
    margin-bottom: 10px;
  }

  .ornate-gold-line {
    width: 26px;
  }

  .section-step-pill {
    font-size: 0.72rem;
    padding: 4px 12px;
  }

  .section-magic-desc {
    font-size: 0.86rem;
  }

  /* Tarjetas de funciones en mobile */
  .date-card,
  .date-card.selected {
    padding: 14px;
    border-radius: 14px;
  }

  .date-card-top-bar {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
  }

  .date-card-suit {
    font-size: 0.76rem;
  }

  .date-status-indicator {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .date-card-body {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
  }

  .date-naipe-wrap {
    padding: 5px;
  }

  .date-official-bronze-img {
    width: 100%;
    max-width: 155px;
    height: auto;
    max-height: 40px;
  }

  .date-protagonist-main {
    font-size: 0.88rem;
    padding: 4px 8px;
  }

  .date-cast-secondary {
    font-size: 0.78rem;
  }

  .date-card-footer {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
  }

  .date-price {
    font-size: 1.2rem;
  }

  .badge {
    font-size: 0.72rem;
    padding: 4px 9px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  /* Franja de naipes de personajes grandes en mobile */
  .wonderland-cards-strip {
    padding: 22px 14px;
    margin-bottom: 20px;
    border-radius: 18px;
  }

  .cards-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
  }

  .mini-naipe-center-banner {
    grid-column: 1 / -1;
    order: -1;
    min-width: 0;
    width: 100%;
    margin-bottom: 4px;
  }

  .center-bronze-dates {
    max-width: 230px;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }

  .center-time-city {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }

  .center-venue-address {
    font-size: 0.86rem;
  }

  .mini-naipe-item {
    align-items: flex-start;
    width: 100%;
    max-width: 170px;
    gap: 10px;
  }

  .mini-naipe-img {
    width: 100%;
    height: auto;
  }

  .mini-naipe-caption {
    padding-left: 4px;
  }

  /* Tarjetas de formulario y pasos */
  .card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .step-card {
    margin-bottom: 16px;
  }

  .step-header {
    gap: 10px;
    margin-bottom: 14px;
  }

  .step-num {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }

  .step-header h2 {
    font-size: 1.08rem;
  }

  .step-header p {
    font-size: 0.82rem;
  }

  .quantity-box {
    padding: 12px;
    gap: 10px;
  }

  .qty-controls {
    width: 100%;
    justify-content: space-between;
  }

  #ticket-qty {
    flex: 1;
    max-width: 110px;
  }

  .form-row,
  .payment-options,
  .filters-bar,
  .studio-sale-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .payment-option,
  .payment-option.selected {
    padding: 12px;
    gap: 10px;
  }

  .receipt-upload-box {
    padding: 12px;
  }

  /* Resumen y confirmación */
  .summary-poster-wrap {
    height: 165px;
    padding: 10px;
    gap: 8px;
  }

  .summary-ticket {
    padding: 12px;
  }

  .summary-row {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.84rem;
  }

  .summary-protagonist-text {
    text-align: left;
  }

  .lookup-header {
    flex-direction: column;
    gap: 8px;
  }

  .lookup-form {
    flex-direction: column;
  }

  .lookup-form .btn-primary {
    width: 100%;
  }

  .order-code-banner {
    padding: 14px 10px;
  }

  .order-code-banner .code-big {
    font-size: 1.55rem;
    letter-spacing: 2px;
  }

  .action-Steps-box {
    padding: 14px 12px;
  }

  .admin-header {
    padding: 14px;
  }

  .admin-header-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .admin-actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-actions .btn-primary,
  .admin-actions .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .date-card-body {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
  }

  .date-official-bronze-img {
    max-width: 135px;
  }
}

