/* ==========================================================================
   GRUPO LA COMEDIA - ESTILOS PRINCIPALES
   Fiel a la identidad visual de la referencia: 
   Fondo oscuro lujoso, detalles dorados metálicos, acentos púrpuras y tipografía teatral.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Montserrat:wght@700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-body: #0c0d15;
  --bg-header: rgba(12, 13, 21, 0.94);
  --bg-card: #151724;
  --bg-card-hover: #1b1e2e;
  --bg-ribbon: #1b1c2b;
  --bg-elevated: #1e2133;
  
  --gold-primary: #e5be7d;
  --gold-light: #fbebd0;
  --gold-dark: #b88a44;
  --gold-glow: rgba(229, 190, 125, 0.35);
  --gold-border: rgba(229, 190, 125, 0.28);
  --gold-border-bright: rgba(229, 190, 125, 0.65);

  --purple-accent: #c05295;
  --purple-light: #df73b4;
  --purple-glow: rgba(192, 82, 149, 0.3);
  --purple-ribbon-text: #ce60a2;

  --text-primary: #f5eedf;
  --text-secondary: #c9c3b8;
  --text-muted: #8c8da6;

  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-pill: 50px;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(229, 190, 125, 0.18);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(135, 45, 110, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 100% 40%, rgba(229, 190, 125, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 0% 80%, rgba(135, 45, 110, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 190, 125, 0.12);
  padding: 1.1rem 2rem;
  transition: var(--transition-fast);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO GRUPO LA COMEDIA */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: scale(1.02);
}

.logo-masks-svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(229, 190, 125, 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title-top {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.brand-title-bottom {
  font-family: 'Cinzel', serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 3.5px;
  color: #eed5a7;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fcedd2 0%, #dfb872 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* NAV LINKS */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: var(--transition-fast);
  cursor: pointer;
}

.nav-link.nav-events {
  color: var(--gold-primary);
}

.nav-link.nav-events::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
  border-radius: 2px;
}

.nav-link.nav-contact {
  color: var(--purple-accent);
}

.nav-link.nav-contact:hover {
  color: var(--purple-light);
  text-shadow: 0 0 12px var(--purple-glow);
}

.nav-link.nav-events:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   HERO / BANNER SUBTLE
   ========================================================================== */
.hero-headline {
  max-width: 1400px;
  margin: 2.5rem auto 1.5rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--purple-accent);
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 1px;
}

/* ==========================================================================
   VENUE FILTER BAR
   ========================================================================== */
.venue-filters {
  max-width: 1400px;
  margin: 0 auto 2.5rem auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-chip {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(27, 28, 43, 0.8);
  border: 1px solid rgba(229, 190, 125, 0.2);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
}

.filter-chip:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: rgba(229, 190, 125, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 14px rgba(229, 190, 125, 0.25);
}

/* ==========================================================================
   EVENT CARDS GRID
   Exact structure and look of media_1788686388607.png
   ========================================================================== */
.events-section {
  max-width: 1400px;
  margin: 0 auto 4.5rem auto;
  padding: 0 2rem;
  width: 100%;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.85rem;
}

/* EVENT CARD */
.event-card {
  background-color: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  box-shadow: var(--shadow-card);
  position: relative;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-border-bright);
  box-shadow: var(--shadow-card-hover);
  background-color: var(--bg-card-hover);
}

/* POSTER CONTAINER */
.card-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background-color: #0b0c12;
  overflow: hidden;
  border-top-left-radius: calc(var(--radius-card) - 1px);
  border-top-right-radius: calc(var(--radius-card) - 1px);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-card:hover .card-poster img {
  transform: scale(1.06);
}

.poster-badge {
  display: none !important;
}

/* VENUE RIBBON (BAR UNDER IMAGE) */
.card-venue-ribbon {
  background-color: var(--bg-ribbon);
  padding: 0.65rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.venue-pin-icon {
  width: 15px;
  height: 15px;
  fill: var(--purple-accent);
  flex-shrink: 0;
}

.venue-name-text {
  color: var(--purple-ribbon-text);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* CARD BODY */
.card-body {
  padding: 1.15rem 1.25rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 1.2rem;
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.28;
  text-transform: uppercase;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CARD META & BUTTON */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-date-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.calendar-icon {
  width: 17px;
  height: 17px;
  fill: var(--gold-primary);
  flex-shrink: 0;
}

/* BUTTON "IR AL EVENTO ->" */
.btn-event {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: #1a1a27;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-btn);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.event-card:hover .btn-event,
.btn-event:hover {
  background: var(--gold-primary);
  color: #12131d;
  box-shadow: 0 0 16px var(--gold-glow);
  transform: translateX(2px);
}

.btn-event .arrow-icon {
  transition: transform var(--transition-fast);
}

.event-card:hover .btn-event .arrow-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   EVENT DETAIL VIEW (PANTALLA EVENTO)
   ========================================================================== */
.view-container {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.event-detail-section {
  max-width: 1350px;
  margin: 1.5rem auto 5rem auto;
  padding: 0 2rem;
}

/* Back Link */
.back-bar {
  margin-bottom: 2rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-primary);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(229, 190, 125, 0.35);
  background: rgba(21, 23, 36, 0.85);
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-back:hover {
  border-color: var(--gold-primary);
  background: rgba(229, 190, 125, 0.15);
  transform: translateX(-4px);
}

/* Detail Grid (Poster + Meta on left, Ticketing on right) */
.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Left Column: Poster & Info */
.detail-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.detail-poster-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
  background: #10111a;
}

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

.detail-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.detail-venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-ribbon);
  color: var(--purple-light);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(192, 82, 149, 0.35);
  width: fit-content;
}

.detail-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 2.3rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.detail-meta-box {
  background: var(--bg-card);
  border: 1px solid rgba(229, 190, 125, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.meta-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-description-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.desc-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: var(--gold-primary);
  border-bottom: 1px solid rgba(229, 190, 125, 0.2);
  padding-bottom: 0.5rem;
}

.desc-text {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.desc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.desc-features li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.desc-features li::before {
  content: '✦';
  color: var(--purple-accent);
  font-weight: 800;
}

/* ==========================================================================
   SIMULATED ENTERTICKET IFRAME WIDGET
   Venta de entradas incrustada
   ========================================================================== */
.detail-ticketing-col {
  position: sticky;
  top: 90px;
}

.enterticket-frame {
  background: #11121c;
  border: 1.5px solid var(--gold-border-bright);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(229, 190, 125, 0.12);
}

/* Simulated Iframe Top Bar */
.enterticket-header {
  background: linear-gradient(90deg, #181a29 0%, #22162f 100%);
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(229, 190, 125, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.enterticket-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.enterticket-logo-badge {
  background: #e30613;
  color: #fff;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.6px;
}

.enterticket-title-wrap h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.enterticket-title-wrap span {
  font-size: 0.72rem;
  color: #a0a2bc;
}

.ssl-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #4cd964;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(76, 217, 100, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(76, 217, 100, 0.08);
}

.enterticket-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

/* Ticket items */
.ticket-type-card {
  background: rgba(25, 27, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  transition: var(--transition-fast);
}

.ticket-type-card:hover {
  border-color: rgba(229, 190, 125, 0.4);
  background: rgba(30, 33, 52, 0.9);
}

.ticket-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ticket-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f5eedf;
}

.ticket-sub {
  font-size: 0.75rem;
  color: #9294ab;
}

.ticket-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-primary);
}

/* Quantity selector */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #0d0e17;
  border: 1px solid rgba(229, 190, 125, 0.3);
  border-radius: 8px;
  padding: 0.2rem 0.4rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold-primary);
  border-radius: 6px;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: rgba(229, 190, 125, 0.2);
  color: #ffffff;
}

.qty-count {
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  color: #fff;
}

/* Form inputs for checkout */
.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background: #0d0e17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.88rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(229, 190, 125, 0.2);
}

.input-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Summary Box */
.enterticket-summary {
  background: rgba(14, 15, 24, 0.8);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
  margin-top: 0.2rem;
}

/* Buy Button */
.btn-buy-tickets {
  background: linear-gradient(135deg, #dfb872 0%, #b88a44 100%);
  color: #12131d;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px rgba(223, 184, 114, 0.35);
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-buy-tickets:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(223, 184, 114, 0.5);
  background: linear-gradient(135deg, #f7dcae 0%, #c99951 100%);
}

.secure-payment-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #7b7d96;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Order Success Notification */
.order-success-msg {
  display: none;
  background: rgba(76, 217, 100, 0.15);
  border: 1px solid #4cd964;
  color: #d1f7d9;
  padding: 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: #08090f;
  border-top: 1px solid rgba(229, 190, 125, 0.12);
  padding: 3rem 2rem 2rem 2rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  cursor: pointer;
}

.footer-nav-link:hover {
  color: var(--gold-primary);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  width: 100%;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: #68697d;
}

/* ==========================================================================
   MODALS (CONTACTO, POLÍTICA DE PRIVACIDAD, COOKIES, AVISO LEGAL)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #141624;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 650px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid rgba(229, 190, 125, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #181a2b;
}

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: var(--gold-light);
  font-weight: 700;
}

.modal-close-btn {
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.2rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--gold-primary);
}

.modal-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Venues address cards in contact modal */
.venues-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.venue-contact-box {
  background: #0d0e17;
  border: 1px solid rgba(192, 82, 149, 0.25);
  border-radius: 8px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.venue-contact-box h5 {
  color: var(--purple-light);
  font-size: 0.85rem;
  font-weight: 700;
}

.venue-contact-box p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MÓVIL)
   ========================================================================== */
@media (max-width: 1200px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
  }
}

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

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .detail-ticketing-col {
    position: static;
  }

  .hero-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.7rem 0.85rem;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .brand-logo {
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .logo-masks-svg {
    width: 28px;
    height: 28px;
  }

  .brand-title-top {
    font-size: 0.68rem;
    letter-spacing: 1px;
  }

  .brand-title-bottom {
    font-size: 0.92rem;
    letter-spacing: 1.2px;
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
  }

  .nav-link {
    font-size: 0.72rem;
    letter-spacing: 0.6px;
    padding: 0.2rem 0;
  }

  .hero-headline {
    padding: 0 1rem;
    margin: 1.5rem auto 1rem auto;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .hero-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .venue-filters {
    padding: 0 1rem;
    gap: 0.45rem;
    margin-bottom: 1.8rem;
  }

  .filter-label {
    width: 100%;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
  }

  .filter-chip {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
  }

  .events-section {
    padding: 0 1rem;
    margin-bottom: 3rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-poster {
    aspect-ratio: 16 / 10;
  }

  .card-body {
    padding: 1rem 1.1rem;
  }

  .card-title {
    font-size: 1.05rem;
    min-height: auto;
  }

  .btn-event {
    font-size: 0.72rem;
    padding: 0.45rem 0.75rem;
  }

  .event-detail-section {
    padding: 0 1rem;
  }

  .detail-title {
    font-size: 1.6rem;
  }

  .detail-meta-box {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1rem;
  }

  .input-row-2 {
    grid-template-columns: 1fr;
  }

  .venues-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}
