/* MarviTicket público — tema oscuro + naranja (primary) */
:root {
  --bg: #040b1d;
  --bg2: #09142d;
  --bg3: #102040;
  --border: #1f3a66;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --primary: #2a6fd8;
  --primary-d: #1a56b3;
  --primary-bright: #79b5ff;
  --header-h: 5rem;
  --radius: 1rem;
  /* Sin fuentes externas: menos RTT y peso (alto tráfico) */
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}
.brand-logo {
  width: auto;
  height: 4.75rem;
  max-height: calc(var(--header-h) - 0.5rem);
  object-fit: cover;
  border-radius: 0.55rem;
}
.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: var(--radius);
  font-size: 1.25rem;
}
.brand-text { font-size: 1.5rem; font-weight: 800; }
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-burger { display: none; }
}
.nav-link, .nav-icon-btn {
  padding: 0.5rem 1rem;
  color: #d1d5db;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}
.nav-link:hover, .nav-icon-btn:hover {
  color: #fff;
  background: var(--bg3);
}
.nav-burger {
  padding: 0.5rem 0.75rem;
  background: var(--bg3);
  border: none;
  color: var(--text);
  border-radius: var(--radius);
  font-size: 1.25rem;
  cursor: pointer;
}
.search-panel {
  border-top: 1px solid var(--border);
  padding: 1rem;
  background: var(--bg2);
}
.search-form {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.search-input {
  flex: 1;
  min-width: 12rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-family: inherit;
}
.nav-mobile {
  border-top: 1px solid var(--border);
  padding: 1rem;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile-link {
  padding: 0.75rem 1rem;
  color: #d1d5db;
  text-decoration: none;
  border-radius: var(--radius);
}
.nav-mobile-link:hover { background: var(--bg3); color: #fff; }

.site-main { padding-top: var(--header-h); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff;
  box-shadow: 0 8px 20px rgba(42, 111, 216, 0.28);
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(42, 111, 216, 0.36);
}
.btn-ghost {
  background: transparent;
  color: #d1d5db;
}
.btn-ghost:hover { background: var(--bg3); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.05rem; }

/* Hero carousel — mobile sin cambios; desktop más alto y 16:9 al ancho del viewport (encaja con banners 1920×1080) */
.hero-wrap {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-wrap { min-height: 42rem; }
}
@media (min-width: 1024px) {
  .hero-wrap {
    min-height: max(50rem, 56.25vw);
    max-height: 90vh;
  }
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.hero-nav:hover { background: rgba(255,255,255,0.35); }
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.hero-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
}
.hero-dot.is-active { width: 2rem; background: #fff; }

/* Category strip */
.cat-strip {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.cat-strip-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.cat-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.cat-chip:hover { background: var(--bg3); color: #fff; }

/* Sections */
.section {
  padding: 4rem 1rem;
}
.section-alt { background: var(--bg2); }
.section-inner { max-width: 80rem; margin: 0 auto; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-title { font-size: 1.75rem; font-weight: 800; margin: 0; }
@media (min-width: 768px) { .section-title { font-size: 2rem; } }

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .events-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Event card */
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.event-card-img-wrap {
  position: relative;
  height: 14rem;
  overflow: hidden;
}
.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.event-card:hover .event-card-img { transform: scale(1.08); }
.event-card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}
.badge-danger { background: #ef4444; color: #fff; }
.badge-primary { background: var(--primary); color: #fff; }
.event-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.event-card-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 0.5rem; }
.event-card:hover .event-card-title { color: var(--primary-bright); }
.event-card-desc { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; flex: 1; line-height: 1.5; }
.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 1.25rem;
}
.event-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.event-card-price { font-size: 1.75rem; font-weight: 800; color: var(--primary-bright); }
.event-card-price-hint { font-size: 0.7rem; color: var(--muted); }
.event-card-cta {
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Page blocks */
.page-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  max-width: 48rem;
  margin: 0 auto;
}
.page-hero h1 { font-size: 2.25rem; font-weight: 800; margin: 0 0 0.75rem; }
.page-hero p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.filter-bar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.filter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .filter-form { flex-direction: row; align-items: stretch; }
}
.filter-form input[type="text"],
.filter-form input[type="date"],
.filter-form select {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-family: inherit;
}

.detail-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: 2fr 1fr; }
}
.detail-gallery {
  position: relative;
  height: 24rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
@media (min-width: 768px) { .detail-gallery { height: 28rem; } }
.detail-gallery .hero-wrap { min-height: 100%; height: 100%; }
.detail-gallery .hero-slide img { object-fit: cover; }

.card-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.card-panel h2 { margin-top: 0; font-size: 1.35rem; }

.info-row {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg3);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.info-row-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.progress {
  height: 0.65rem;
  background: var(--bg3);
  border-radius: 9999px;
  overflow: hidden;
}
.progress > span { display: block; height: 100%; border-radius: 9999px; }
.progress-green { background: #22c55e; }
.progress-yellow { background: #eab308; }
.progress-red { background: #ef4444; }

.sticky-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); }

.map-iframe {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: var(--radius);
}

.waze-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: #33ccff;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 0.75rem;
}
.waze-btn:hover { filter: brightness(0.95); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db;
  text-decoration: none;
  margin-bottom: 1rem;
}
.back-link:hover { color: var(--primary-bright); }

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg2);
  border: 2px dashed var(--border);
  border-radius: 1.25rem;
  color: var(--muted);
}

/* Forms reservar */
.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #d1d5db; margin-bottom: 0.35rem; }
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-family: inherit;
}
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.qty-btns { display: flex; align-items: center; gap: 0.75rem; }
.qty-btns button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: none;
  background: var(--bg2);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}
.qty-btns button:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-val { font-size: 1.25rem; font-weight: 800; min-width: 2rem; text-align: center; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.alert-error { background: rgba(127,29,29,0.35); border: 1px solid #b91c1c; color: #fecaca; }
.alert-info { background: rgba(30,58,138,0.35); border: 1px solid #1d4ed8; color: #bfdbfe; }
.alert-warn { background: rgba(113,63,18,0.35); border: 1px solid #ca8a04; color: #fef08a; }
.alert-success { background: rgba(20,83,45,0.35); border: 1px solid #15803d; color: #bbf7d0; }

.summary-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
}
.summary-line { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.9rem; }
.summary-total { font-size: 1.25rem; font-weight: 800; padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: 0.75rem; }
.summary-total span:last-child { color: var(--primary-bright); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  max-width: 42rem;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 { margin: 0; font-size: 1.25rem; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-body { padding: 1.5rem; overflow-y: auto; font-size: 0.95rem; color: #d1d5db; line-height: 1.6; }
.modal-body h3 { color: #fff; font-size: 1.05rem; margin: 1.25rem 0 0.5rem; }
.modal-body h3:first-child { margin-top: 0; }
.modal-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.5rem; justify-content: flex-end; }

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: #d1d5db;
  margin-top: 3rem;
}
.footer-inner { max-width: 80rem; margin: 0 auto; padding: 3rem 1rem 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-logo { display:flex; align-items:center; gap:0.6rem; font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.footer-logo-img { width: 2.4rem; height: 2.4rem; border-radius: 0.55rem; object-fit: cover; }
.footer-desc { color: var(--muted); margin: 0 0 1rem; line-height: 1.6; }
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.footer-contact li { margin-bottom: 0.35rem; }
.footer-heading { color: #fff; font-size: 1rem; margin: 0 0 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #d1d5db; text-decoration: none; }
.footer-links a:hover { color: var(--primary-bright); }
.footer-links li { margin-bottom: 0.5rem; }
.footer-copy {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mb-0 { margin-bottom: 0; }

.embed-16 {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.embed-16 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.two-col {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .two-col { grid-template-columns: 2fr 1fr; }
}

[hidden] { display: none !important; }
