/* ====================================================
   MapaTeatral v2 — Design System
   ==================================================== */

/* ── Tokens ── */
:root {
  --pu: #6420AA;
  --mg: #FF3EA5;
  --ink: #1A1228;
  --muted: #7B6E8C;
  --border: #E8E0F0;
  --cream: #F7F4EF;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.hide-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scroll::-webkit-scrollbar { display: none; }

/* ── DESKTOP NAV ── */
.mt-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: none;
}
@media (min-width: 768px) { .mt-nav { display: block; } }

.mt-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.mt-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.mt-logo span { color: var(--pu); }

.mt-search-form {
  flex: 1;
  max-width: 480px;
  border: 1.5px solid var(--border);
  border-radius: 28px;
  display: flex;
  align-items: center;
  background: #fff;
  transition: border-color 0.2s;
  overflow: hidden;
}
.mt-search-form:focus-within { border-color: var(--pu); }
.mt-search-form svg { flex-shrink: 0; margin-left: 14px; }
.mt-search-form input {
  flex: 1; border: none; outline: none;
  font-family: inherit; font-size: 14px; color: var(--ink);
  padding: 11px 14px; background: transparent;
}
.mt-search-form input::placeholder { color: var(--muted); }
.mt-search-form button {
  background: none; border: none; cursor: pointer;
  padding: 0 14px; color: var(--muted); font-size: 13px; font-weight: 700;
  white-space: nowrap; color: var(--pu);
}

.mt-nav-spacer { flex: 1; }

.mt-genre-nav { display: flex; gap: 4px; }
.mt-gnav-btn {
  border: none; cursor: pointer; font-family: inherit;
  padding: 7px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  background: transparent; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.mt-gnav-btn:hover, .mt-gnav-btn.active { background: var(--pu); color: #fff; }

.mt-nav-ctas { display: flex; gap: 10px; flex-shrink: 0; }
.mt-btn-ghost {
  border: 1.5px solid var(--border); background: #fff;
  cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600; color: var(--ink);
  padding: 8px 18px; border-radius: 20px;
  transition: border-color 0.15s, color 0.15s;
}
.mt-btn-ghost:hover { border-color: var(--pu); color: var(--pu); }

.mt-btn-primary {
  background: linear-gradient(135deg, var(--pu), var(--mg));
  color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700;
  padding: 9px 18px; border-radius: 20px;
  box-shadow: 0 4px 16px rgba(100,32,170,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.mt-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(100,32,170,0.4);
}

.mt-btn-primary-lg {
  background: linear-gradient(135deg, var(--pu), var(--mg));
  color: #fff !important; border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700;
  padding: 13px 28px; border-radius: 28px;
  box-shadow: 0 4px 16px rgba(100,32,170,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-block;
}
.mt-btn-primary-lg:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(100,32,170,0.4);
  color: #fff;
}

/* ── MOBILE HEADER ── */
.mt-mobile-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
@media (min-width: 768px) { .mt-mobile-header { display: none !important; } }

.mt-mobile-actions { display: flex; gap: 4px; }
.mt-icon-btn {
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--ink); border-radius: 8px;
  transition: background 0.15s;
  display: flex; align-items: center;
}
.mt-icon-btn:hover { background: var(--cream); }

/* ── DESKTOP HERO ── */
.mt-hero { background: var(--cream); border-bottom: 1px solid var(--border); display: none; }
@media (min-width: 768px) { .mt-hero { display: block; } }

.mt-hero-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 40px 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
}
.mt-genre-tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  background: rgba(100,32,170,0.1); font-size: 11px; font-weight: 700;
  color: var(--pu); letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 16px;
}
.mt-hero-title {
  font-size: 44px; font-weight: 800; color: var(--ink);
  line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 14px;
}
.mt-hero-dir { font-size: 16px; color: var(--muted); margin-bottom: 8px; line-height: 1.6; }
.mt-hero-meta { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.mt-hero-price-row { display: flex; align-items: center; gap: 20px; }
.mt-hero-price { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -1px; }
.mt-hero-price-label { font-size: 13px; color: var(--muted); margin-bottom: 2px; }

.mt-hero-img {
  border-radius: 24px 24px 0 0; overflow: hidden;
  height: 340px; position: relative;
}
.mt-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.mt-hero-img-badge {
  position: absolute; top: 20px; right: 20px;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(8px);
  border-radius: 10px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; color: #fff;
}

/* ── DATE STRIP (desktop, inside hero) ── */
.mt-date-strip {
  max-width: 1280px; margin: 0 auto;
  padding: 24px 40px;
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
}
.mt-date-strip::-webkit-scrollbar { display: none; }
.mt-date-strip-btn {
  flex-shrink: 0; min-width: 72px; padding: 10px 4px;
  border: none; cursor: pointer; font-family: inherit;
  border-radius: 14px; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: background 0.15s, box-shadow 0.15s;
  text-decoration: none; color: inherit;
}
.mt-date-strip-btn.active {
  background: var(--pu);
  box-shadow: 0 4px 16px rgba(100,32,170,0.25);
}
.mt-dsd { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.mt-date-strip-btn.active .mt-dsd { color: rgba(255,255,255,0.7); }
.mt-dsn { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.mt-date-strip-btn.active .mt-dsn { color: #fff; }
.mt-dsf { font-size: 11px; color: var(--muted); }
.mt-date-strip-btn.active .mt-dsf { color: rgba(255,255,255,0.65); }

/* ── SEARCH HERO (mobile only) ── */
.mt-search-hero {
  background: var(--ink);
  padding: 22px 16px;
}
@media (min-width: 768px) { .mt-search-hero { display: none; } }

.mt-search-hero-title {
  font-size: 1.1rem; font-weight: 700; color: #fff;
  margin-bottom: 12px; line-height: 1.3;
}
.mt-search-hero-title span { color: var(--mg); }
.mt-search-hero-row {
  display: flex; background: #fff; border-radius: 10px; overflow: hidden;
}
.mt-search-hero-input {
  flex: 1; border: none; padding: 13px 14px;
  font-family: inherit; font-size: 0.85rem;
  outline: none; color: var(--ink);
}
.mt-search-hero-input::placeholder { color: var(--muted); }
.mt-search-hero-btn {
  background: linear-gradient(135deg, var(--pu), var(--mg));
  border: none; color: #fff; padding: 0 18px;
  font-family: inherit; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}

/* ── DATE TABS (mobile) ── */
.mt-date-tabs {
  display: flex; gap: 8px; padding: 0 16px 12px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--ink);
}
.mt-date-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .mt-date-tabs { display: none; } }

.mt-date-tab {
  flex-shrink: 0; text-align: center;
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.mt-date-tab.active { background: var(--mg); border-color: var(--mg); }
.mt-date-tab-num { font-size: 1rem; font-weight: 700; color: #fff; line-height: 1; }
.mt-date-tab-name { font-size: 0.58rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.mt-date-tab.active .mt-date-tab-name { color: rgba(255,255,255,0.85); }
.mt-date-tab-count { font-size: 0.55rem; color: rgba(255,255,255,0.5); margin-top: 1px; }
.mt-date-tab.active .mt-date-tab-count { color: rgba(255,255,255,0.8); }

/* ── GENRE STRIP (both) ── */
.mt-genre-strip {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 14px 16px;
  background: #fff; border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.mt-genre-strip::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .mt-genre-strip { display: none; } }

.mt-gchip {
  flex-shrink: 0; padding: 7px 16px; border-radius: 20px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mt-gchip.active { border-color: var(--pu); background: var(--pu); color: #fff; }

/* ── MAIN CONTENT GRID ── */
.mt-page-body { padding-bottom: 16px; }

@media (min-width: 768px) {
  .mt-page-body {
    max-width: 1280px; margin: 0 auto;
    padding: 40px 40px 80px;
    display: grid; grid-template-columns: 1fr 340px;
    gap: 48px;
  }
}

/* ── SECTION HEADER ── */
.mt-sh {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; padding: 0 16px;
}
.mt-sh-title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.4px; }
.mt-sh-link { font-size: 12px; font-weight: 600; color: var(--pu); }
.mt-sh-link:hover { color: var(--mg); }

@media (min-width: 768px) {
  .mt-sh { padding: 0; margin-bottom: 20px; }
  .mt-sh-title { font-size: 22px; letter-spacing: -0.5px; }
  .mt-sh-link { font-size: 13px; }
}

/* ── FEATURED (mobile) ── */
.mt-feat-wrap { padding: 16px; }
@media (min-width: 768px) { .mt-feat-wrap { padding: 0; margin-bottom: 40px; } }

.mt-feat-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--mg); text-transform: uppercase; margin-bottom: 10px;
}
.mt-feat {
  display: block; border-radius: 16px; overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 20px rgba(100,32,170,0.08);
  color: inherit;
}
.mt-feat:hover { box-shadow: 0 8px 32px rgba(100,32,170,0.15); }
.mt-feat-img {
  height: 175px; background: linear-gradient(135deg, var(--pu), var(--mg));
  position: relative; overflow: hidden;
}
@media (min-width: 768px) { .mt-feat-img { height: 220px; } }
.mt-feat-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mt-feat-pill {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  color: #fff; font-size: 0.6rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
}
.mt-feat-pill-mg { background: var(--mg); }
.mt-feat-body { padding: 14px; background: #fff; }
.mt-feat-genre { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mg); margin-bottom: 4px; }
.mt-feat-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; line-height: 1.25; color: var(--ink); }
.mt-feat-dir { font-size: 0.72rem; color: var(--muted); margin-bottom: 12px; }
.mt-feat-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-feat-price { font-size: 1.05rem; font-weight: 800; color: var(--pu); }
.mt-feat-when { font-size: 0.72rem; color: var(--muted); }
.mt-btn-buy {
  background: linear-gradient(135deg, var(--pu), var(--mg));
  color: #fff; border: none; padding: 10px 18px; border-radius: 10px;
  font-family: inherit; font-size: 0.78rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}

/* ── SHOWS SECTION ── */
.mt-shows-sec { padding: 0 16px 16px; }
@media (min-width: 768px) { .mt-shows-sec { padding: 0; margin-bottom: 40px; } }

.mt-shows-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 768px) { .mt-shows-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.mt-scard {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-decoration: none; color: inherit; display: block;
  transition: box-shadow 0.15s, transform 0.15s;
}
.mt-scard:hover {
  box-shadow: 0 8px 32px rgba(100,32,170,0.14);
  transform: translateY(-2px);
}
.mt-scard-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--pu), var(--mg));
  position: relative; overflow: hidden;
}
@media (min-width: 768px) { .mt-scard-img { aspect-ratio: auto; height: 140px; } }
.mt-scard-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mt-scard-genre {
  position: absolute; bottom: 6px; left: 6px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  color: #fff; font-size: 0.6rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.mt-scard-body { padding: 10px; }
@media (min-width: 768px) { .mt-scard-body { padding: 14px; } }
.mt-scard-title { font-size: 0.78rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px; color: var(--ink); }
@media (min-width: 768px) { .mt-scard-title { font-size: 15px; margin-bottom: 6px; } }
.mt-scard-venue { font-size: 0.65rem; color: var(--muted); margin-bottom: 4px; }
@media (min-width: 768px) { .mt-scard-venue { font-size: 13px; margin-bottom: 6px; } }
.mt-scard-date { font-size: 0.65rem; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
@media (min-width: 768px) { .mt-scard-date { font-size: 12px; margin-bottom: 10px; } }
.mt-scard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mt-scard-time { font-size: 0.62rem; color: var(--muted); }
.mt-scard-price { font-size: 0.78rem; font-weight: 800; color: var(--pu); }
@media (min-width: 768px) { .mt-scard-price { font-size: 16px; } }

.mt-no-shows { text-align: center; padding: 32px 0; color: var(--muted); font-size: 0.85rem; }

/* ── SIDEBAR ── */
@media (max-width: 767px) { .mt-page-side { display: none; } }

.mt-map-widget { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 28px; }
.mt-map-inner { height: 200px; background: #F0EBF8; position: relative; overflow: hidden; }
.mt-map-inner svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mt-map-pill {
  position: absolute; bottom: 12px; left: 12px;
  background: #fff; border-radius: 10px; padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--ink); z-index: 1;
}
.mt-map-pill-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--mg); flex-shrink: 0; }
.mt-map-footer {
  padding: 14px 16px; background: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.mt-map-footer-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.mt-map-link { font-size: 12px; font-weight: 600; color: var(--pu); }
.mt-map-link:hover { color: var(--mg); }

.mt-spaces-section { margin-bottom: 28px; }
.mt-sidebar-title { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.3px; }

.mt-space-card {
  display: flex; gap: 12px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--border);
  margin-bottom: 10px; transition: background 0.15s;
  color: inherit;
}
.mt-space-card:hover { background: var(--cream); }
.mt-space-thumb {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--pu), var(--mg));
  flex-shrink: 0; overflow: hidden;
}
.mt-space-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mt-space-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 2px; }
.mt-space-meta { font-size: 12px; color: var(--muted); }
.mt-space-ciudad { font-size: 11px; font-weight: 600; color: var(--pu); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.04em; }

.mt-cta-box {
  border-radius: 20px;
  background: linear-gradient(135deg, var(--pu), var(--mg));
  padding: 24px; color: #fff;
}
.mt-cta-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.3px; color: #fff; }
.mt-cta-desc { font-size: 13px; line-height: 1.6; opacity: 0.85; margin-bottom: 18px; color: #fff; }
.mt-cta-btn {
  border: 2px solid rgba(255,255,255,0.7); background: transparent;
  color: #fff; font-family: inherit; font-size: 13px; font-weight: 700;
  padding: 10px 20px; border-radius: 20px; cursor: pointer;
  width: 100%; transition: background 0.15s; display: block; text-align: center;
}
.mt-cta-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── MOBILE TAB BAR ── */
.mt-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex; padding: 10px 0;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 50;
}
@media (min-width: 768px) { .mt-tabbar { display: none !important; } }
.mt-tab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px; cursor: pointer;
  color: var(--muted); font-size: 10px; font-weight: 500; text-decoration: none;
}
.mt-tab.active { color: var(--pu); font-weight: 700; }
.mt-tab-spacer { height: 80px; }
@media (min-width: 768px) { .mt-tab-spacer { display: none; } }

/* ── FOOTER ── */
.mt-footer {
  border-top: 1px solid var(--border);
  background: var(--cream);
  display: none;
}
@media (min-width: 768px) { .mt-footer { display: block; } }
.mt-footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 40px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.mt-footer-logo { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.5px; margin-bottom: 4px; }
.mt-footer-logo span { color: var(--pu); }
.mt-footer-sub { font-size: 13px; color: var(--muted); }
.mt-footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.mt-footer-link { font-size: 13px; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.mt-footer-link:hover { color: var(--pu); }
