/**
 * Miscelánea Tickets — Frontend CSS
 * Hereda tipografía del tema activo.
 *
 * @package MiscelaneaTickets
 */

/* =========================================================================
   CSS Custom Properties
   ========================================================================= */
:root {
  --mt-gold:          #fe3331; /* rojo de marca Pablo Méndez Performances */
  --mt-gold-light:    #dd201e;
  --mt-gold-pale:     #f5f5f5;
  --mt-gold-muted:    rgba(0,0,0,.06);
  --mt-black:         #111111;
  --mt-dark:          #1c1c1c;
  --mt-dark-2:        #252525;
  --mt-gray:          #6b6b6b;
  --mt-gray-light:    #aaaaaa;
  --mt-border:        #e6e6e6;
  --mt-bg:            #f7f7f7;
  --mt-white:         #ffffff;
  --mt-radius:        12px;
  --mt-radius-sm:     7px;
  --mt-radius-xs:     4px;
  --mt-shadow-sm:     0 2px 12px rgba(0,0,0,.06);
  --mt-shadow:        0 4px 24px rgba(0,0,0,.10);
  --mt-shadow-lg:     0 12px 48px rgba(0,0,0,.18);
  --mt-shadow-hover:  0 8px 36px rgba(0,0,0,.16);
  --mt-gold-glow:     0 4px 20px rgba(254,51,49,.30);
  --mt-transition:    .22s ease;
}

/* =========================================================================
   Reset / Base
   ========================================================================= */
.mt-events-listing *,
.mt-confirmation * {
  box-sizing: border-box;
}

.mt-events-listing,
.mt-confirmation {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================================
   Theme override — neutralise max-width: 40em on entry-content wrapper
   ========================================================================= */
.entry-content-wrapper .mt-events-listing,
.entry-content-wrapper .mt-seat-map-container,
.entry-content-wrapper .mt-confirmation,
.entry-content .mt-events-listing,
.entry-content .mt-seat-map-container,
.entry-content .mt-confirmation,
/* Catch-all: any direct child of the content wrapper that is an MT block */
.entry-content-wrapper > [class^="mt-"],
.entry-content-wrapper > [class*=" mt-"] {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* =========================================================================
   EVENTS LISTING
   ========================================================================= */

.mt-events-listing {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header opcional ────────────────────────────────────────────────────── */
.mt-listing-header {
  text-align: center;
  padding: 56px 0 48px;
}

.mt-listing-header h1 {

  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--mt-black);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}

.mt-listing-header p {

  font-size: 16px;
  color: var(--mt-gray);
  margin: 0;
}

.mt-listing-header-line {
  width: 48px;
  height: 2px;
  background: var(--mt-gold);
  margin: 20px auto 0;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.mt-events-empty {
  text-align: center;
  padding: 80px 32px;
  background: var(--mt-white);
  border-radius: var(--mt-radius);
  border: 1px solid var(--mt-border);
}

.mt-events-empty-icon {
  font-size: 52px;
  opacity: .25;
  margin-bottom: 20px;
  display: block;
}

.mt-events-empty p {

  font-style: italic;
  font-size: 18px;
  color: var(--mt-gray-light);
  line-height: 1.6;
  margin: 0;
}

/* ── Grid — 3 columnas fijas ─────────────────────────────────────────────── */
.mt-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Event Card ──────────────────────────────────────────────────────────── */
.mt-event-card {
  background: var(--mt-white);
  border-radius: var(--mt-radius);
  overflow: hidden;
  box-shadow: var(--mt-shadow);
  transition: box-shadow .28s ease, transform .28s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mt-border);
  position: relative;
}

.mt-event-card:hover {
  box-shadow: 0 14px 44px rgba(0,0,0,.16);
  transform: translateY(-5px);
}

/* Featured: acento dorado en la parte superior */
.mt-event-card--featured {
  border-color: rgba(0,0,0,.3);
  box-shadow: var(--mt-gold-glow), var(--mt-shadow);
}

.mt-event-card--featured:hover {
  box-shadow: 0 18px 56px rgba(0,0,0,.18);
}

.mt-event-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.55), transparent);
  z-index: 2;
}

/* ── Image wrapper ───────────────────────────────────────────────────────── */
.mt-event-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--mt-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.mt-event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}

.mt-event-card:hover .mt-event-card-image img {
  transform: scale(1.07);
}

/* Gradient overlay */
.mt-event-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    transparent 35%,
    rgba(17,17,17,.5) 100%
  );
  pointer-events: none;
}

/* Placeholder */
.mt-event-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #181818 0%, #2a2a2a 50%, #181818 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mt-event-placeholder::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  opacity: .12;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* ── Badges ──────────────────────────────────────────────────────────────── */
.mt-event-comingsoon-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--mt-gold, #C5A028);
  color: #1A1A1A;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  z-index: 2;
}

.mt-event-card-btn--comingsoon {
  background: transparent;
  border: 1px solid var(--mt-gold, #C5A028);
  color: var(--mt-gold, #C5A028);
  cursor: default;
  pointer-events: none;
}

.mt-flow-comingsoon {
  margin: 24px 0;
  padding: 28px 24px;
  border: 1px solid var(--mt-gold, #C5A028);
  border-radius: 10px;
  text-align: center;
}

.mt-flow-comingsoon strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mt-gold, #C5A028);
  margin-bottom: 8px;
}

.mt-flow-comingsoon p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.mt-event-featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--mt-black);
  color: var(--mt-white);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 20px;
  z-index: 4;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.mt-event-soldout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.mt-event-soldout-overlay span {

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--mt-white);
  border: 1.5px solid rgba(255,255,255,.45);
  padding: 10px 24px;
  border-radius: 3px;
}

/* ── Card body ───────────────────────────────────────────────────────────── */
.mt-event-card-body {
  display: flex;
  gap: 0;
  padding: 22px 22px 20px;
  flex: 1;
}

/* Date block */
.mt-event-card-date {
  flex-shrink: 0;
  width: 58px;
  text-align: center;
  margin-right: 18px;
  background: var(--mt-black);
  border-radius: var(--mt-radius-sm);
  padding: 10px 6px 9px;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

/* Acento dorado en la parte superior del bloque de fecha */
.mt-event-card-date::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.9);
  border-radius: var(--mt-radius-sm) var(--mt-radius-sm) 0 0;
}

.mt-event-card-day {
  display: block;

  font-size: 30px;
  font-weight: 700;
  color: var(--mt-white);
  line-height: 1;
  margin-top: 3px;
}

.mt-event-card-month {
  display: block;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-top: 5px;
}

/* Card info */
.mt-event-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mt-event-card-title {

  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--mt-black);
}

.mt-event-card-title a {
  color: var(--mt-black);
  text-decoration: none;
  transition: color var(--mt-transition);
}

.mt-event-card-title a:hover { color: var(--mt-gray); }

/* Meta */
.mt-event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-bottom: 10px;
}

.mt-event-meta-item {

  font-size: 12px;
  color: var(--mt-gray);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mt-event-meta-item svg {
  width: 12px;
  height: 12px;
  opacity: .55;
  flex-shrink: 0;
}

/* Excerpt */
.mt-event-card-excerpt {

  font-size: 13px;
  color: var(--mt-gray);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.mt-event-card-excerpt p {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Footer */
.mt-event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--mt-border);
}

.mt-event-card-price {

  font-size: 11px;
  color: var(--mt-gray-light);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.mt-event-card-price strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--mt-black);
  margin-top: 2px;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

/* CTA Button */
.mt-event-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--mt-gold);
  color: var(--mt-white);

  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 30px;
  transition: background var(--mt-transition), transform var(--mt-transition), box-shadow var(--mt-transition);
  white-space: nowrap;
  letter-spacing: .3px;
}

.mt-event-card-btn:hover {
  background: var(--mt-gold-light);
  color: var(--mt-white);
  transform: translateY(-2px);
  box-shadow: var(--mt-gold-glow);
  text-decoration: none;
}

.mt-event-card-btn--soldout {
  background: transparent;
  color: var(--mt-gray-light);
  border: 1px solid var(--mt-border);
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================================
   CART SEAT BREAKDOWN (WooCommerce Blocks)
   ========================================================================= */

.mt-seat-details {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mt-seat-detail-item {
  font-size: .82em;
  color: var(--mt-gray);
  line-height: 1.4;
}

.mt-seat-detail-label {
  font-weight: 600;
  color: var(--mt-black);
}

.mt-seat-detail-zone {
  color: var(--mt-gray);
}

.mt-seat-detail-price {
  color: var(--mt-black);
  font-weight: 600;
}

.mt-seat-detail-sep {
  color: var(--mt-gray-light);
}

/* =========================================================================
   PURCHASE CONFIRMATION
   ========================================================================= */

.mt-confirmation {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px 72px;

}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.mt-confirmation-hero {
  background: var(--mt-black);
  border-radius: var(--mt-radius) var(--mt-radius) 0 0;
  padding: 56px 48px 48px;
  text-align: center;
  color: var(--mt-white);
  position: relative;
  overflow: hidden;
}

.mt-confirmation-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%);
  pointer-events: none;
}

.mt-confirmation-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(255,255,255,.25));
  position: relative;
}

.mt-confirmation-title {

  font-size: 30px;
  font-weight: 400;
  color: var(--mt-white);
  margin: 0 0 12px;
  line-height: 1.25;
  position: relative;
}

.mt-confirmation-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.mt-confirmation-hero-bar {
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  margin-top: 40px;
}

/* ── Event Card ──────────────────────────────────────────────────────────── */
.mt-confirmation-event-card {
  background: var(--mt-white);
  border: 1px solid var(--mt-border);
  border-top: none;
  display: flex;
  gap: 20px;
  padding: 26px;
  align-items: flex-start;
}

.mt-confirmation-event-img {
  width: 130px;
  height: 86px;
  object-fit: cover;
  border-radius: var(--mt-radius-sm);
  flex-shrink: 0;
  box-shadow: var(--mt-shadow-sm);
}

.mt-confirmation-event-info h2 {

  font-size: 20px;
  font-weight: 400;
  color: var(--mt-black);
  margin: 0 0 8px;
  line-height: 1.3;
}

.mt-confirmation-event-info p {
  font-size: 13px;
  color: var(--mt-gray);
  margin: 4px 0 0;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Tickets Grid ────────────────────────────────────────────────────────── */
.mt-confirmation-tickets {
  background: var(--mt-bg);
  border: 1px solid var(--mt-border);
  border-top: none;
  padding: 32px 26px;
}

.mt-confirmation-tickets h3 {

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mt-gray);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mt-border);
}

.mt-confirmation-tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}

/* Ticket stub */
.mt-ticket-stub {
  background: var(--mt-dark);
  border-radius: var(--mt-radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform var(--mt-transition), box-shadow var(--mt-transition);
}

.mt-ticket-stub:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,.35);
}

.mt-ticket-stub-stripe {
  height: 4px;
  background: rgba(255,255,255,.85);
}

.mt-ticket-stub-body {
  padding: 18px 14px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mt-ticket-stub-seat {

  font-size: 24px;
  font-weight: 700;
  color: var(--mt-white);
  line-height: 1;
  letter-spacing: -.01em;
}

.mt-ticket-stub-zone {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

.mt-ticket-stub-qr {
  background: var(--mt-white);
  border-radius: 8px;
  padding: 8px;
  margin: 4px 0;
}

.mt-ticket-stub-qr img {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 2px;
}

.mt-ticket-stub-divider {
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.15) 0,
    rgba(255,255,255,.15) 6px,
    transparent 6px,
    transparent 12px
  );
  margin: 2px 0;
}

.mt-download-ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--mt-gold);
  color: var(--mt-white);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 20px;
  margin-top: 2px;
  transition: background var(--mt-transition), transform var(--mt-transition);
  letter-spacing: .3px;
}

.mt-download-ticket-btn:hover {
  background: var(--mt-gold-light);
  color: var(--mt-white);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Order Summary ───────────────────────────────────────────────────────── */
.mt-confirmation-order-summary {
  background: var(--mt-white);
  border: 1px solid var(--mt-border);
  border-top: none;
  padding: 32px 26px;
}

.mt-confirmation-order-summary h3 {

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mt-gray);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mt-border);
}

.mt-conf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--mt-bg);
  font-size: 14px;
  gap: 16px;
}

.mt-conf-row:last-child { border-bottom: none; }

.mt-conf-row span  { color: var(--mt-gray); }
.mt-conf-row strong { color: var(--mt-black); text-align: right; }

.mt-conf-row--total {
  padding: 16px 0 0;
  margin-top: 6px;
  border-top: 2px solid var(--mt-border);
  border-bottom: none !important;
}

.mt-conf-row--total span  { font-weight: 700; color: var(--mt-black); font-size: 15px; }
.mt-conf-row--total strong { font-size: 22px; color: var(--mt-black); font-weight: 700; }

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.mt-confirmation-cta {
  background: var(--mt-black);
  border-radius: 0 0 var(--mt-radius) var(--mt-radius);
  padding: 40px 48px;
  text-align: center;
}

.mt-confirmation-cta p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin: 0 0 20px;
}

.mt-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mt-gold);
  color: var(--mt-white);

  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 30px;
  transition: background var(--mt-transition), transform var(--mt-transition), box-shadow var(--mt-transition);
  letter-spacing: .3px;
}

.mt-cta-btn:hover {
  background: var(--mt-gold-light);
  color: var(--mt-white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--mt-gold-glow);
}

/* =========================================================================
   UTILITIES
   ========================================================================= */

.mt-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background var(--mt-transition), transform var(--mt-transition), box-shadow var(--mt-transition);
  letter-spacing: .2px;
  line-height: 1;
}

.mt-btn--gold  { background: var(--mt-gold); color: var(--mt-white); }
.mt-btn--gold:hover { background: var(--mt-gold-light); color: var(--mt-white); transform: translateY(-1px); box-shadow: var(--mt-gold-glow); }
.mt-btn--dark  { background: var(--mt-black); color: var(--mt-white); }
.mt-btn--dark:hover { background: #333; color: var(--mt-white); transform: translateY(-1px); }
.mt-btn--outline { background: transparent; color: var(--mt-black); border: 1.5px solid var(--mt-border); }
.mt-btn--outline:hover { border-color: var(--mt-gold); color: var(--mt-gold); }
.mt-btn:disabled, .mt-btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* Spinner */
.mt-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(254,51,49,.18);
  border-top-color: var(--mt-gold);
  border-radius: 50%;
  animation: mt-spin .7s linear infinite;
  vertical-align: middle;
}

@keyframes mt-spin { to { transform: rotate(360deg); } }

/* Notices */
.mt-notice {
  padding: 14px 18px;
  border-radius: var(--mt-radius-sm);
  font-size: 14px;
  line-height: 1.5;
  margin: 16px 0;
  border-left: 3px solid transparent;
}
.mt-notice--success { background: #edf8f0; border-color: #4A9C5D; color: #2a6b3a; }
.mt-notice--error   { background: #fdf1f1; border-color: #c0392b; color: #8b2020; }
.mt-notice--warning { background: #f7f7f7; border-color: #8a8a8a; color: #555555; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 960px) {
  .mt-events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .mt-confirmation-hero {
    padding: 40px 28px 36px;
  }
}

@media (max-width: 600px) {
  .mt-events-listing { padding: 0 14px; }

  .mt-events-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mt-event-card-body  { padding: 16px 16px 14px; }
  .mt-event-card-date  { width: 50px; margin-right: 14px; }
  .mt-event-card-day   { font-size: 24px; }
  .mt-event-card-title { font-size: 17px; }

  .mt-confirmation { padding: 0 10px 52px; }

  .mt-confirmation-hero {
    padding: 36px 22px 32px;
    border-radius: var(--mt-radius) var(--mt-radius) 0 0;
  }

  .mt-confirmation-title    { font-size: 24px; }
  .mt-confirmation-icon     { font-size: 52px; }

  .mt-confirmation-event-card {
    flex-direction: column;
    padding: 20px 18px;
  }

  .mt-confirmation-event-img { width: 100%; height: 170px; }

  .mt-confirmation-tickets,
  .mt-confirmation-order-summary { padding: 24px 18px; }

  .mt-confirmation-tickets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .mt-confirmation-cta { padding: 32px 22px; }

  .mt-event-card-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .mt-event-card-btn { flex: 1; justify-content: center; }
}

@media (max-width: 400px) {
  .mt-confirmation-tickets-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   PRINT
   ========================================================================= */

@media print {
  .mt-confirmation-cta, .mt-download-ticket-btn { display: none !important; }
  .mt-confirmation { padding: 0; }
  .mt-ticket-stub  { break-inside: avoid; }
}

/* ══════════════════════════════════════════════════════════
   Vista de calendario de espectáculos
   ══════════════════════════════════════════════════════════ */

.mt-view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.mt-view-btn {
  padding: 9px 22px;
  border: 1px solid var(--mt-black, #1A1A1A);
  background: transparent;
  color: var(--mt-black, #1A1A1A);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}

.mt-view-btn.is-active,
.mt-view-btn:hover {
  background: var(--mt-black, #1A1A1A);
  color: var(--mt-gold, #C5A028);
}

.mt-events-cal-wrap.is-loading { opacity: .5; pointer-events: none; }
.mt-cal-loading { text-align: center; color: #888; padding: 32px 0; }

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

.mt-cal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.mt-cal-nav {
  width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--mt-black, #1A1A1A);
  transition: all .15s ease;
}

.mt-cal-nav:hover {
  background: var(--mt-gold, #C5A028);
  border-color: var(--mt-gold, #C5A028);
  color: #fff;
}

.mt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.mt-cal-grid--head { margin-bottom: 6px; }

.mt-cal-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  padding: 4px 0;
}

.mt-cal-cell {
  min-height: 92px;
  background: #fafaf7;
  border: 1px solid #eee9df;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mt-cal-cell--empty { background: transparent; border: none; }

.mt-cal-cell.is-today { border-color: var(--mt-gold, #C5A028); box-shadow: inset 0 0 0 1px var(--mt-gold, #C5A028); }

.mt-cal-cell.has-events { background: #fff; }

.mt-cal-daynum {
  font-size: 12px;
  font-weight: 700;
  color: #999;
}

.mt-cal-cell.has-events .mt-cal-daynum { color: var(--mt-black, #1A1A1A); }

.mt-cal-event-name {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--mt-black, #1A1A1A);
}

.mt-cal-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 3px 0;
}

.mt-cal-slot {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
  transition: transform .1s ease;
}

.mt-cal-slot:hover { transform: translateY(-1px); }

.mt-cal-slot--buy {
  background: #fe3331 !important;
  color: #ffffff !important;
}

.mt-cal-slot--buy:hover {
  background: #e02220 !important;
  color: #ffffff !important;
}

.mt-cal-slot--soon {
  background: transparent;
  border: 1px solid var(--mt-gold, #C5A028);
  color: var(--mt-gold, #C5A028);
}

.mt-cal-slot--soldout {
  background: #ececec;
  color: #999;
  text-decoration: line-through;
}

.mt-cal-slot--closed {
  background: #555;
  color: #fff;
}

.mt-cal-from {
  font-size: 11px;
  color: #777;
}

.mt-cal-from strong { color: var(--mt-black, #1A1A1A); }

.mt-cal-legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 16px;
  font-size: 12px;
  color: #666;
}

.mt-cal-legend-item { display: inline-flex; align-items: center; gap: 6px; }

.mt-cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.mt-cal-dot--buy { background: #fe3331; }
.mt-cal-dot--soon { border: 1px solid var(--mt-gold, #C5A028); }
.mt-cal-dot--soldout { background: #d5d5d5; }
.mt-cal-dot--closed { background: #555; }

/* Responsive del calendario: dos maquetaciones.
   - Escritorio/tablet: cuadrícula mensual (.mt-cal-grid).
   - Móvil: vista agenda (.mt-cal-agenda), markup propio. */

.mt-cal { width: 100%; max-width: 100%; }
.mt-cal-event { min-width: 0; }
.mt-cal-event-name { overflow-wrap: anywhere; }

/* La agenda solo existe en móvil */
.mt-cal-agenda { display: none; }

/* Tablet: celdas más compactas */
@media (max-width: 1024px) {
  .mt-cal-grid { gap: 4px; }
  .mt-cal-cell { min-height: 78px; padding: 6px; border-radius: 6px; }
  .mt-cal-title { font-size: 17px; }
  .mt-cal-event-name { font-size: 11px; }
  .mt-cal-slot { padding: 3px 6px; font-size: 10.5px; }
  .mt-cal-from { font-size: 10px; }
  .mt-cal-weekday { font-size: 10px; letter-spacing: .06em; }
}

/* Móvil: fuera la cuadrícula, dentro la agenda */
@media (max-width: 782px) {
  .mt-cal .mt-cal-grid,
  .mt-cal .mt-cal-grid--head { display: none !important; }

  .mt-cal-agenda { display: block; }

  .mt-cal-agenda-day {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid #eee9df;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
  }

  .mt-cal-agenda-day.is-today { border-color: var(--mt-gold, #C5A028); box-shadow: inset 0 0 0 1px var(--mt-gold, #C5A028); }

  .mt-cal-agenda-date {
    flex: 0 0 52px;
    text-align: center;
    background: var(--mt-black, #1A1A1A);
    border-radius: 8px;
    padding: 8px 0;
  }

  .mt-cal-agenda-num {
    display: block;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--mt-gold, #C5A028);
  }

  .mt-cal-agenda-wd {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
  }

  .mt-cal-agenda-body { flex: 1; min-width: 0; }

  .mt-cal-agenda-body .mt-cal-event + .mt-cal-event { margin-top: 10px; }

  .mt-cal-agenda-body .mt-cal-event-name { font-size: 14px; }

  .mt-cal-agenda-body .mt-cal-slots { gap: 6px; margin: 6px 0; }

  .mt-cal-agenda-body .mt-cal-slot { padding: 8px 14px; font-size: 13px; border-radius: 6px; }

  .mt-cal-agenda-body .mt-cal-from { font-size: 12px; }

  .mt-cal-header { gap: 8px; }
  .mt-cal-title { font-size: 16px; text-align: center; flex: 1; }
  .mt-cal-nav { flex: 0 0 40px; height: 40px; }

  .mt-cal-legend { flex-wrap: wrap; gap: 10px 16px; }

  .mt-view-toggle { width: 100%; }
  .mt-view-btn { flex: 1; padding: 10px 0; }
}

/* Móvil pequeño */
@media (max-width: 400px) {
  .mt-cal-agenda-date { flex-basis: 44px; }
  .mt-cal-agenda-num { font-size: 16px; }
  .mt-cal-agenda-body .mt-cal-slot { padding: 7px 10px; font-size: 12px; }
}


/* Botón Comprar (tarjetas del listado): rojo de marca con texto blanco */
.mt-event-card-btn:not(.mt-event-card-btn--soldout):not(.mt-event-card-btn--comingsoon) {
  background: #fe3331 !important;
  border-color: #fe3331 !important;
  color: #ffffff !important;
}

.mt-event-card-btn:not(.mt-event-card-btn--soldout):not(.mt-event-card-btn--comingsoon):hover {
  background: #e02220 !important;
  border-color: #e02220 !important;
  color: #ffffff !important;
}

/* ── Barra del espectáculo en el calendario filtrado ───────── */
.mt-cal-showbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* Un único espectáculo en cartel: el calendario se abre directo y no hay
   listado al que volver → sin botón «Todos los espectáculos». */
.mt-events-listing--single .mt-cal-back { display: none; }

.mt-cal-back {
  border: 1px solid #ddd;
  background: #fff;
  color: var(--mt-black, #1A1A1A);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}

.mt-cal-back:hover {
  background: var(--mt-black, #1A1A1A);
  color: var(--mt-gold, #C5A028);
  border-color: var(--mt-black, #1A1A1A);
}

.mt-cal-showname {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@media (max-width: 782px) {
  .mt-cal-back { width: 100%; text-align: center; }
  .mt-cal-showname { font-size: 16px; }
}

/* ── Cabecera del espectáculo en su calendario ─────────────── */
.mt-cal-showhead {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #eee9df;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.mt-cal-showthumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.mt-cal-showmain { flex: 1; min-width: 0; }

.mt-cal-showname {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.mt-cal-showdates {
  display: block;
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}

.mt-cal-showvenue {
  text-align: right;
  flex: 0 0 auto;
  max-width: 40%;
}

.mt-cal-showvenue-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.mt-cal-showvenue-addr {
  display: block;
  font-size: 12px;
  color: #777;
  margin-top: 3px;
}

/* ── Ubicación + Cómo llegar (bajo el calendario) ──────────── */
.mt-cal-location {
  margin-top: 22px;
  background: #fff;
  border: 1px solid #eee9df;
  border-radius: 10px;
  overflow: hidden;
}

.mt-cal-location-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  flex-wrap: wrap;
}

.mt-cal-location-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}

.mt-cal-location-addr {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 3px;
}

.mt-cal-directions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fe3331 !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background .15s ease;
  white-space: nowrap;
}

.mt-cal-directions:hover { background: #e02220 !important; color: #ffffff !important; }

.mt-cal-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

@media (max-width: 782px) {
  .mt-cal-showhead { flex-wrap: wrap; gap: 12px; }
  .mt-cal-showthumb img { width: 56px; height: 56px; }
  .mt-cal-showname { font-size: 16px; }
  .mt-cal-showvenue { text-align: left; max-width: 100%; flex-basis: 100%; }
  .mt-cal-location-head > div { flex-basis: 100%; }
  .mt-cal-directions { width: 100%; justify-content: center; }
  .mt-cal-map iframe { height: 240px; }
}

/* ── Calendario vertical: meses apilados con scroll ────────── */
.mt-cal-months {
  max-height: 680px;
  overflow-y: auto;
  padding-right: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mt-cal-monthsec { margin-bottom: 26px; }
.mt-cal-monthsec:last-child { margin-bottom: 0; }

.mt-cal-monthsec .mt-cal-title {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  margin: 0 0 10px;
  padding: 8px 0;
  font-size: 18px;
  font-weight: 800;
  border-bottom: 2px solid var(--mt-gold, #C5A028);
}

@media (max-width: 782px) {
  .mt-cal-months { max-height: 70vh; }
  .mt-cal-monthsec .mt-cal-title { font-size: 16px; }
}
