/* PURPL example landing — SeatGeek-inspired discovery, scoped to body.ex-home */

:root {
  --ex-purple: #3d15ce;
  --ex-purple-mid: #6b3dd4;
  --ex-purple-light: #9046ea;
  --ex-black: #050508;
  --ex-gray-50: #fafafa;
  --ex-gray-100: #f4f4f5;
  --ex-gray-400: #a1a1aa;
  --ex-gray-500: #71717a;
  --ex-gray-600: #52525b;
  --ex-gray-700: #3f3f46;
  --ex-gray-800: #27272a;
  --ex-gray-900: #18181b;
  --ex-radius: 16px;
  --ex-radius-sm: 12px;
  --ex-max: 1200px;
  /* Carrusel destacado: puede ser algo más ancho que --ex-max en pantallas grandes */
  --ex-spotlight-max: 1572px;
  --ex-hero-pad-x: 24px;
  --ex-header-h: 76px;
  --ex-hero-header-btn: 36px;
}

body.ex-home {
  background: #f4f4f5;
  color: var(--ex-gray-900);
  /* Extensión del blanco hacia el hero (mismo ritmo que búsqueda→banner); ver .ex-home-sheet */
  --ex-sheet-bg-lift: 1.5rem;
}

/* /unete — landing oscura: sin esto, body.ex-home gana al `body {}` local y el header transparente se veía sobre gris/blanco */
body.ex-home.ex-page-unete {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.92);
}

body.ex-home.ex-page-unete footer.footer.ex-footer {
  background-color: #0f0f12;
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.ex-home.ex-page-unete footer.footer.ex-footer .ex-footer__divider {
  background-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

body.ex-home.ex-page-unete footer.footer.ex-footer .footer-logo svg {
  filter: brightness(0) invert(1);
}

body.ex-home.ex-page-unete footer.footer.ex-footer .footeropyright,
body.ex-home.ex-page-unete footer.footer.ex-footer .language-text {
  color: rgba(255, 255, 255, 0.55);
}

body.ex-home.ex-page-unete footer.footer.ex-footer .language-icon svg path {
  fill: rgba(255, 255, 255, 0.45);
}

body.ex-home.ex-page-unete footer.footer.ex-footer .footer-link {
  color: rgba(255, 255, 255, 0.7);
}

body.ex-home.ex-page-unete footer.footer.ex-footer .footer-link:hover {
  color: #fff;
}

body.ex-home.ex-page-unete footer.footer.ex-footer .ex-footer__description {
  color: rgba(255, 255, 255, 0.55);
}

body.ex-home.ex-page-unete footer.footer.ex-footer .ex-footer__address p {
  color: rgba(255, 255, 255, 0.45);
}

/* /seguro — misma idea que /unete: fondo oscuro + footer oscuro (header transparente sobre body) */
body.ex-home.ex-page-seguro {
  background: #000000;
  color: #f1f1f5;
}

body.ex-home.ex-page-seguro footer.footer.ex-footer {
  background-color: #0f0f12;
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.ex-home.ex-page-seguro footer.footer.ex-footer .ex-footer__divider {
  background-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

body.ex-home.ex-page-seguro footer.footer.ex-footer .footer-logo svg {
  filter: brightness(0) invert(1);
}

body.ex-home.ex-page-seguro footer.footer.ex-footer .footeropyright,
body.ex-home.ex-page-seguro footer.footer.ex-footer .language-text {
  color: rgba(255, 255, 255, 0.55);
}

body.ex-home.ex-page-seguro footer.footer.ex-footer .language-icon svg path {
  fill: rgba(255, 255, 255, 0.45);
}

body.ex-home.ex-page-seguro footer.footer.ex-footer .footer-link {
  color: rgba(255, 255, 255, 0.7);
}

body.ex-home.ex-page-seguro footer.footer.ex-footer .footer-link:hover {
  color: #fff;
}

body.ex-home.ex-page-seguro footer.footer.ex-footer .ex-footer__description {
  color: rgba(255, 255, 255, 0.55);
}

body.ex-home.ex-page-seguro footer.footer.ex-footer .ex-footer__address p {
  color: rgba(255, 255, 255, 0.45);
}

/* Páginas con header sobre fondo claro: fondo blanco puro (no el gris del home) */
body.ex-home.site-header-light {
  background: #ffffff;
}

/* Franja del header 100% blanca (sin transparencia: evita que se vea gris el hero/degradados detrás) */
body.ex-home.site-header-light > .main-header,
body.ex-home.site-header-light > .main-header .header-container {
  background: #ffffff;
  background-image: none;
}

body.ex-home .ex-hero {
  border-bottom: none;
}

/* ——— Nav dentro del hero (flujo normal, sobre fondo oscuro) ——— */
body.ex-home .ex-hero .main-header,
body.ex-home > .main-header {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

/* Solo el hero oscuro oculta la línea; páginas claras conservan .main-header::after (como event.ejs) */
body.ex-home .ex-hero .main-header::after,
body.ex-home:not(.site-header-light) > .main-header::after {
  display: none;
}

/* Header claro: misma jerarquía que event.ejs (mega menú y borde inferior visibles) */
body.ex-home.site-header-light > .main-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

body.ex-home.site-header-light.ex-solutions-menu-open > .main-header {
  z-index: 110;
}

body.ex-home .ex-hero .main-header .nav-link:not(.btn-create-event),
body.ex-home > .main-header .nav-link:not(.btn-create-event) {
  color: rgba(255, 255, 255, 0.88);
}

body.ex-home .ex-hero .main-header .nav-link:not(.btn-create-event):hover,
body.ex-home > .main-header .nav-link:not(.btn-create-event):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.ex-home .ex-hero .main-header .mobile-menu-btn,
body.ex-home .ex-hero .main-header .search-btn,
body.ex-home > .main-header .mobile-menu-btn,
body.ex-home > .main-header .search-btn {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.ex-home .ex-hero .main-header .mobile-menu-btn:hover,
body.ex-home .ex-hero .main-header .search-btn:hover,
body.ex-home > .main-header .mobile-menu-btn:hover,
body.ex-home > .main-header .search-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Subpáginas con fondo claro: mismo layout; texto e iconos legibles */
body.ex-home.site-header-light > .main-header .nav-link:not(.btn-create-event) {
  color: var(--ex-gray-800);
}

body.ex-home.site-header-light > .main-header .nav-link:not(.btn-create-event):hover {
  color: var(--ex-gray-900);
  background: rgba(0, 0, 0, 0.06);
}

body.ex-home.site-header-light > .main-header .mobile-menu-btn,
body.ex-home.site-header-light > .main-header .search-btn,
body.ex-home.site-header-light > .main-header a.search-btn {
  color: var(--ex-gray-800);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  box-sizing: border-box;
}

body.ex-home.site-header-light > .main-header .mobile-menu-btn:hover,
body.ex-home.site-header-light > .main-header .search-btn:hover,
body.ex-home.site-header-light > .main-header a.search-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--ex-gray-900);
}

/* Soluciones: mismo color/hover que .nav-link (reglas arriba con :not(.btn-create-event)) */

body.ex-home.site-header-light > .main-header .nav-solutions-btn[aria-expanded="true"] {
  color: var(--ex-gray-900);
  background: rgba(0, 0, 0, 0.06);
}

/* Misma caja de contenido que el hero */
body.ex-home .header-container {
  max-width: var(--ex-max);
  margin-left: auto;
  margin-right: auto;
  min-height: var(--ex-header-h);
  padding: 12px var(--ex-hero-pad-x);
  box-sizing: border-box;
  overflow: visible;
}

@media (max-width: 768px) {
  body.ex-home {
    --ex-header-h: 66px;
  }

  body.ex-home .ex-hero .header-container,
  body.ex-home > .main-header .header-container {
    min-height: 62px;
    padding: 8px var(--ex-hero-pad-x) 10px;
    gap: 6px;
    align-items: center;
  }

  body.ex-home .ex-hero .header-container .logo-section,
  body.ex-home > .main-header .header-container .logo-section {
    flex: 1;
    justify-content: flex-start;
    min-width: 0;
  }

  body.ex-home .ex-hero .header-container .logo-section .logo-icon svg,
  body.ex-home > .main-header .header-container .logo-section .logo-icon svg {
    width: 100px;
    height: auto;
    max-height: 30px;
  }

  body.ex-home .ex-hero .header-container .search-btn,
  body.ex-home > .main-header .header-container .search-btn {
    margin-left: auto;
  }

  body.ex-home .ex-hero .main-header .mobile-menu-btn,
  body.ex-home .ex-hero .main-header .search-btn,
  body.ex-home > .main-header .mobile-menu-btn,
  body.ex-home > .main-header .search-btn {
    width: var(--ex-hero-header-btn);
    height: var(--ex-hero-header-btn);
    min-width: var(--ex-hero-header-btn);
    min-height: var(--ex-hero-header-btn);
    padding: 0;
    border-radius: 11px;
    font-size: 1.05rem;
    line-height: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  body.ex-home .ex-hero .main-header .mobile-menu-btn::before,
  body.ex-home > .main-header .mobile-menu-btn::before {
    display: none;
  }

  body.ex-home .ex-hero .main-header .mobile-menu-btn:hover,
  body.ex-home .ex-hero .main-header .search-btn:hover,
  body.ex-home > .main-header .mobile-menu-btn:hover,
  body.ex-home > .main-header .search-btn:hover {
    transform: none;
  }

  body.ex-home .ex-hero .main-header .mobile-menu-btn:active,
  body.ex-home .ex-hero .main-header .search-btn:active,
  body.ex-home > .main-header .mobile-menu-btn:active,
  body.ex-home > .main-header .search-btn:active {
    transform: scale(0.96);
  }

  body.ex-home .ex-hero .main-header .search-btn svg,
  body.ex-home > .main-header .search-btn svg {
    width: 17px;
    height: 17px;
  }

  /*
   * Páginas claras + mobile: styles.css fuerza .mobile-menu-btn sin caja (block, sin borde, ripple ::before).
   * Misma geometría que el hero (36×36, 11px); colores legibles sobre blanco.
   */
  body.ex-home.site-header-light > .main-header .mobile-menu-btn,
  body.ex-home.site-header-light > .main-header .search-btn,
  body.ex-home.site-header-light > .main-header a.search-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: var(--ex-hero-header-btn) !important;
    height: var(--ex-hero-header-btn) !important;
    min-width: var(--ex-hero-header-btn) !important;
    min-height: var(--ex-hero-header-btn) !important;
    padding: 0 !important;
    border-radius: 11px !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
    color: var(--ex-gray-800) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: visible !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent;
  }

  body.ex-home.site-header-light > .main-header .mobile-menu-btn:hover,
  body.ex-home.site-header-light > .main-header .search-btn:hover,
  body.ex-home.site-header-light > .main-header a.search-btn:hover {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(0, 0, 0, 0.14) !important;
    color: var(--ex-gray-900) !important;
    transform: none !important;
  }

  body.ex-home.site-header-light > .main-header .mobile-menu-btn:active,
  body.ex-home.site-header-light > .main-header .search-btn:active,
  body.ex-home.site-header-light > .main-header a.search-btn:active {
    transform: scale(0.96) !important;
  }

  body.ex-home.site-header-light > .main-header .mobile-menu-btn::before {
    display: none !important;
    content: none !important;
  }
}

@media (min-width: 769px) {
  body.ex-home .navigation.desktop-nav {
    margin-left: 16px;
    margin-right: 16px;
    gap: 4px 18px;
    overflow: visible;
  }

  body.ex-home .nav-link {
    padding: 6px 12px;
  }

  body.ex-home .desktop-actions {
    flex-shrink: 0;
  }
}

/* ——— Hero ——— */
.ex-hero {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-height: 75vh;
  /* svh: estable cuando Chrome muestra/oculta la barra; dvh reajusta altura y “empuja” el sheet blanco */
  min-height: 75svh;
  /* Base casi negro con tinte índigo profundo */
  background: #05040f;
  color: #fff;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  /* Sin overflow aquí: evita scrollport interno; el carrusel recorta en su bloque */
  overflow: visible;
}

/* ─── Hero fondo: cinematic PURPL — capas + ::before (sin cambiar HTML) ─── */
.ex-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #05040f;
}

/* Velos angulados muy suaves: lectura de “nebula” sin manchas redondas */
.ex-hero__bg::before {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
  background:
    linear-gradient(
      158deg,
      transparent 0%,
      transparent 38%,
      rgba(91, 33, 182, 0.055) 49%,
      rgba(124, 58, 237, 0.035) 53%,
      transparent 64%
    ),
    linear-gradient(
      118deg,
      transparent 42%,
      rgba(55, 48, 163, 0.045) 52%,
      transparent 62%
    ),
    linear-gradient(
      198deg,
      transparent 48%,
      rgba(76, 29, 149, 0.038) 56%,
      transparent 68%
    ),
    linear-gradient(
      82deg,
      rgba(124, 92, 255, 0.03) 0%,
      transparent 28%,
      transparent 100%
    );
  opacity: 0.85;
  mix-blend-mode: soft-light;
}

/* Luz ambiental escenográfica: halo cósmico, focos laterales, bloom carrusel; centro superior más contenido para el titular */
.ex-hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    /* Viñeta: centra la mirada en titular + búsqueda + banner */
    radial-gradient(
      ellipse 122% 105% at 50% 44%,
      transparent 0%,
      transparent 34%,
      rgba(2, 2, 10, 0.58) 82%,
      rgba(1, 1, 6, 0.82) 100%
    ),
    /* Halo circular muy grande (inferior centro-inferior izq): borde etéreo */
    radial-gradient(
      ellipse 165% 105% at 32% 118%,
      transparent 40%,
      rgba(124, 92, 255, 0.055) 46%,
      rgba(167, 139, 250, 0.045) 49.5%,
      rgba(91, 33, 182, 0.028) 53%,
      transparent 61%
    ),
    radial-gradient(
      ellipse 115% 85% at -18% 108%,
      transparent 44%,
      rgba(139, 92, 246, 0.065) 51%,
      transparent 62%
    ),
    /* Glow protagonista inferior izquierdo (amplio, muy difuminado) */
    radial-gradient(
      ellipse 110% 95% at -12% 106%,
      rgba(109, 61, 212, 0.38),
      rgba(91, 33, 182, 0.14) 42%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 75% 65% at 10% 92%,
      rgba(124, 58, 237, 0.18),
      transparent 54%
    ),
    /* Contrapeso derecho (más humilde) */
    radial-gradient(
      ellipse 70% 95% at 108% 36%,
      rgba(55, 48, 163, 0.2),
      rgba(67, 56, 163, 0.06) 44%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 55% 55% at 94% 76%,
      rgba(76, 29, 149, 0.09),
      transparent 56%
    ),
    /* Bloom escénico detrás del carrusel / tarjetas destacadas */
    radial-gradient(
      ellipse 135% 85% at 50% 112%,
      rgba(91, 33, 182, 0.42),
      rgba(124, 58, 237, 0.15) 38%,
      transparent 52%
    ),
    radial-gradient(
      ellipse 95% 42% at 50% 98%,
      rgba(192, 176, 255, 0.11),
      transparent 46%
    ),
    /* Respiración muy suave arriba (no compite con el headline) */
    radial-gradient(
      ellipse 90% 48% at 50% -8%,
      rgba(124, 92, 255, 0.05),
      transparent 62%
    ),
    /* Profundidad en el suelo del cuadro */
    radial-gradient(
      ellipse 130% 55% at 50% 125%,
      rgba(25, 12, 48, 0.55),
      transparent 52%
    );
}

/* Polvo de estrellas + micro-brillo; por debajo de viñeta multiply */
.ex-hero__bg-beams {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle closest-side at 6% 21%, rgba(230, 225, 255, 0.28), transparent 100%),
    radial-gradient(circle closest-side at 14% 38%, rgba(199, 181, 255, 0.14), transparent 100%),
    radial-gradient(circle closest-side at 22% 58%, rgba(255, 255, 255, 0.09), transparent 100%),
    radial-gradient(circle closest-side at 31% 16%, rgba(220, 208, 255, 0.1), transparent 100%),
    radial-gradient(circle closest-side at 48% 44%, rgba(255, 255, 255, 0.06), transparent 100%),
    radial-gradient(circle closest-side at 63% 26%, rgba(230, 225, 255, 0.08), transparent 100%),
    radial-gradient(circle closest-side at 78% 52%, rgba(199, 181, 255, 0.09), transparent 100%),
    radial-gradient(circle closest-side at 91% 19%, rgba(255, 255, 255, 0.14), transparent 100%),
    radial-gradient(circle closest-side at 86% 76%, rgba(230, 225, 255, 0.06), transparent 100%),
    radial-gradient(circle closest-side at 67% 82%, rgba(255, 255, 255, 0.05), transparent 100%),
    radial-gradient(circle closest-side at 40% 74%, rgba(220, 208, 255, 0.06), transparent 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  mix-blend-mode: screen;
  opacity: 0.32;
}

.ex-hero__bg-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 118% 100% at 50% 46%,
      transparent 28%,
      rgba(4, 3, 14, 0.42) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 6, 22, 0.5) 0%,
      transparent 18%,
      transparent 72%,
      rgba(5, 4, 16, 0.62) 100%
    );
  mix-blend-mode: multiply;
  opacity: 0.68;
}

.ex-hero__bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  .ex-hero__bg::before {
    opacity: 0.65;
  }
}

.ex-hero__inner {
  position: relative;
  z-index: 2;
  /* Crece para cumplir min-height del hero; flex-shrink:0 + sin min-height:0 evita scroll interno */
  flex: 1 0 auto;
  min-height: auto;
  max-width: var(--ex-max);
  margin: 0 auto;
  width: 100%;
  padding: 28px var(--ex-hero-pad-x) 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.ex-hero__copy {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 1.25rem;
}

.ex-hero__title {
  font-size: clamp(1.638rem, 3.825vw, 2.565rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: #fff;
}

.ex-hero__accent {
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 35%, #9046ea 70%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ex-hero__title-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .ex-hero__title-desktop {
    display: block;
  }

  .ex-hero__title-mobile {
    display: none;
  }
}

.ex-hero__subtitle {
  font-size: clamp(0.94rem, 1.85vw, 1.1rem);
  color: rgba(255, 255, 255, 0.68);
  font-weight: 400;
  line-height: 1.45;
  max-width: 28rem;
  margin: 0 auto;
}

.ex-hero__search-wrap {
  max-width: 40rem;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 4;
}

.ex-hero__search-wrap.is-dropdown-open {
  z-index: 25;
}

/* Dropdown búsqueda (estilo panel claro tipo discovery) */
.ex-hero-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition:
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.ex-hero-search-dropdown.ex-hero-search-dropdown--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ex-hero-search-dropdown__panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 22px 56px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.ex-hero-search-dropdown__section-title {
  margin: 0;
  padding: 16px 18px 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #09090b;
  text-transform: none;
}

.ex-hero-search-dropdown__section-title--sub {
  padding: 14px 18px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #71717a;
}

.ex-hero-search-dropdown__list-scroll {
  max-height: min(340px, 56vh);
  overflow-y: auto;
  padding: 2px 8px 14px;
  scrollbar-width: thin;
  scrollbar-color: #e4e4e7 transparent;
}

.ex-hero-search-dropdown__list-scroll::-webkit-scrollbar {
  width: 6px;
}

.ex-hero-search-dropdown__list-scroll::-webkit-scrollbar-thumb {
  background: #e4e4e7;
  border-radius: 6px;
}

.ex-hero-search-dropdown__list {
  padding: 0;
}

.ex-hero-search-dropdown__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 4px;
}

.ex-hero-search-dropdown__chip {
  font-family: var(--font-roobert, inherit);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #18181b;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ex-hero-search-dropdown__chip:hover,
.ex-hero-search-dropdown__chip:focus-visible {
  background: #f4f4f5;
  border-color: rgba(0, 0, 0, 0.12);
  outline: none;
}

.ex-hero-search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  margin: 3px 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-roobert, inherit);
  transition: background 0.15s ease;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.ex-hero-search-dropdown__item:hover,
.ex-hero-search-dropdown__item:focus-visible {
  background: #f5f5f5;
  outline: none;
}

.ex-hero-search-dropdown__item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: #f5f3ff;
}

.ex-hero-search-dropdown__item-icon svg.lucide {
  display: block;
  width: 22px;
  height: 22px;
  opacity: 0.88;
  filter: drop-shadow(0 0 3px rgba(139, 92, 246, 0.2));
}

.ex-hero-search-dropdown__item-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #09090b;
  letter-spacing: -0.02em;
}

.ex-hero-search-dropdown__item--event .ex-hero-search-dropdown__item-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  overflow: hidden;
  background: #f4f4f5;
}

.ex-hero-search-dropdown__item--event .ex-hero-search-dropdown__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ex-hero-search-dropdown__item-thumb--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f4f4f5, #e4e4e7);
  color: #a1a1aa;
  font-size: 1.1rem;
}

.ex-hero-search-dropdown__item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ex-hero-search-dropdown__item--event .ex-hero-search-dropdown__item-label {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.ex-hero-search-dropdown__item-venue {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #52525b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.ex-hero-search-dropdown__item-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: #71717a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-hero-search-dropdown__item-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: #71717a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-hero-search-dropdown__empty {
  padding: 28px 20px 32px;
  text-align: center;
}

.ex-hero-search-dropdown__empty-emoji {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 8px;
  opacity: 0.85;
}

.ex-hero-search-dropdown__empty-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #18181b;
  margin-bottom: 4px;
}

.ex-hero-search-dropdown__empty-text {
  font-size: 0.8125rem;
  color: #71717a;
  line-height: 1.45;
}

/* Barra única estilo discovery (superficie clara sobre hero oscuro) */
.ex-hero__search {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 11px 18px 11px 16px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 11px 36px rgba(0, 0, 0, 0.17);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: text;
}

.ex-hero__search:focus-within {
  border-color: rgba(144, 70, 234, 0.35);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 13px 40px rgba(0, 0, 0, 0.19),
    0 0 0 3px rgba(144, 70, 234, 0.18);
}

.ex-hero__search-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ex-purple-mid);
}

.ex-hero__search-icon svg {
  width: 20px;
  height: 20px;
}

.ex-hero__search .search-input,
.ex-hero__search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ex-gray-900);
  font-size: 1rem;
  outline: none;
  min-width: 0;
  padding: 3px 0;
  line-height: 1.35;
}

.ex-hero__search .search-input::placeholder,
.ex-hero__search-input::placeholder {
  color: #71717a;
}

/* Hero móvil: sin min-height vh/svh (contenido define alto); overscroll iOS / Chrome */
@media (max-width: 767px) {
  html.ex-home {
    background-color: #05040f;
    overscroll-behavior-y: none;
  }

  body.ex-home {
    background-color: #05040f;
    overscroll-behavior-y: none;
    --ex-sheet-bg-lift: 1.35rem;
  }

  /* Menos franja oscura bajo el banner; el sheet blanco empieza más cerca */
  .ex-hero {
    min-height: 0;
    min-height: auto;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.2rem);
  }

  .ex-hero__inner {
    flex: 0 0 auto;
    padding-bottom: 0.85rem;
  }

  .ex-hero__copy {
    margin-bottom: 1.25rem;
  }

  .ex-hero__search {
    gap: 7px;
    padding: 6px 11px 6px 10px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.6) inset,
      0 1px 2px rgba(0, 0, 0, 0.04),
      0 4px 16px rgba(0, 0, 0, 0.085);
  }

  .ex-hero__search:focus-within {
    border-color: rgba(144, 70, 234, 0.32);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.6) inset,
      0 1px 2px rgba(0, 0, 0, 0.05),
      0 6px 20px rgba(0, 0, 0, 0.1),
      0 0 0 2px rgba(144, 70, 234, 0.16);
  }

  .ex-hero__search-icon svg {
    width: 15px;
    height: 15px;
  }

  .ex-hero__search-icon {
    opacity: 0.88;
  }

  /* 16px mín.: iOS Safari no hace zoom al enfocar inputs < 16px */
  .ex-hero__search .search-input,
  .ex-hero__search-input {
    font-size: 16px;
    padding: 1px 0;
    line-height: 1.35;
  }
}

/* Hero: carrusel destacados — mismo ancho relativo y proporción que index (styles.css: slider-container 1572px, item 2300/1000) */
.ex-hero-spotlight {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: min(var(--ex-spotlight-max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.ex-hero-spotlight__slider-wrap {
  position: relative;
  padding-top: 0.25rem;
}

body.ex-home .ex-hero-spotlight__slider.slider-section {
  background: transparent;
  margin-top: 0;
  overflow-x: clip;
  overflow-y: visible;
}

body.ex-home .ex-hero-spotlight__slider .slider-container {
  max-width: var(--ex-spotlight-max);
  margin-left: auto;
  margin-right: auto;
  /* Sin padding extra: el inset horizontal ya lo da .ex-hero__inner (como en index solo hay un contenedor con pad) */
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

body.ex-home .ex-hero-spotlight__slider .owl-carousel .item {
  /* Proporción y radius: heredan de styles.css (2300/1000, 20px); aquí solo estilo sobre fondo oscuro */
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

body.ex-home .ex-hero-spotlight__slider .owl-carousel .item img {
  background: transparent;
}

.ex-hero-spotlight__fallback {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  text-align: center;
  background: linear-gradient(135deg, var(--ex-purple) 0%, var(--ex-purple-light) 100%);
  color: rgba(255, 255, 255, 0.95);
}

.ex-hero-spotlight__fallback svg {
  opacity: 0.85;
}

.ex-hero-spotlight__fallback-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.ex-hero-spotlight__fallback-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.ex-hero-spotlight__empty {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.5;
  margin: 0;
  padding: 1.25rem 0.5rem 0.25rem;
}

/* Móvil: mismo ancho útil y reglas de slide que index (styles.css ≤768px / ≤480px) */
@media (max-width: 768px) {
  /* Sangrar al ancho del viewport: index usa slider full-bleed + padding 16px en .slider-container */
  body.ex-home .ex-hero-spotlight {
    width: calc(100% + 2 * var(--ex-hero-pad-x));
    max-width: min(var(--ex-spotlight-max), 100vw);
    margin-left: calc(-1 * var(--ex-hero-pad-x));
    margin-right: calc(-1 * var(--ex-hero-pad-x));
    box-sizing: border-box;
  }

  body.ex-home .ex-hero-spotlight__slider.slider-section {
    overflow-x: hidden;
  }

  body.ex-home .ex-hero-spotlight__slider .slider-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.ex-home .ex-hero-spotlight__slider .owl-carousel .item {
    height: auto;
    aspect-ratio: auto;
    box-shadow: none !important;
  }

  body.ex-home .ex-hero-spotlight__slider .owl-carousel .item img {
    height: auto;
    max-height: 300px;
    width: 100%;
    object-fit: contain;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  body.ex-home .ex-hero-spotlight__slider .owl-carousel .item img {
    max-height: 240px;
  }
}

/* Carrusel “Esta semana” (main, estilo discovery claro) */
.ex-weekend-browse {
  padding-top: 0;
}

.ex-weekend-browse--rail .ex-weekend-browse__masthead {
  display: block;
  margin-bottom: 0;
}

.ex-weekend-browse--rail .ex-weekend-browse__head-text .ex-section__sub {
  margin-bottom: 24px;
}

body.ex-home .ex-main > .ex-section.ex-weekend-browse--rail .ex-section__title,
body.ex-home .ex-main > .ex-section.ex-categories--rail .ex-section__title {
  margin-bottom: 3px;
}

body.ex-home .ex-main > .ex-section.ex-grid .ex-grid__head:not(:has(.ex-grid__filter-row:not([hidden]))) .ex-grid__title-row {
  margin-bottom: 3px;
}

body.ex-home .ex-main > .ex-section.ex-grid .ex-section__sub.ex-grid__sub {
  margin-bottom: 24px;
}

.ex-weekend-browse__masthead {
  display: block;
}

.ex-weekend-browse__scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 0 8px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ex-weekend-browse__scroll::-webkit-scrollbar {
  display: none;
}

.ex-weekend-browse--rail .ex-weekend-browse__scroll {
  margin: 0;
  padding: 10px 0 16px;
  gap: 16px;
  scroll-snap-type: x proximity;
}

/* Carril “Esta semana”: paginador en cabecera (desktop); sin flechas ni degradados en el rail */
.ex-weekend-browse__rail {
  position: relative;
}

@media (min-width: 1024px) {
  .ex-weekend-browse--rail .ex-weekend-browse__scroll {
    cursor: grab;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__scroll.is-week-rail-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }
}

.ex-weekend-browse__card-wrap {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(168px, 42vw);
  min-width: 132px;
}

.ex-weekend-browse--rail .ex-weekend-browse__card.ex-weekend-browse__card-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  margin: 0;
  gap: 0;
  min-height: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: opacity 0.2s;
}

.ex-weekend-browse--rail .ex-weekend-browse__card.ex-weekend-browse__card-wrap:hover {
  opacity: 0.92;
  transform: none;
  border: none;
  box-shadow: none;
}

.ex-weekend-browse--rail .ex-weekend-browse__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: var(--ex-radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ex-gray-100);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.ex-weekend-browse--rail .ex-weekend-browse__thumb img,
.ex-weekend-browse__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ex-weekend-browse__thumb-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--ex-gray-100), #e4e4e7);
  color: var(--ex-gray-400);
  font-size: 1.75rem;
}

.ex-weekend-browse--rail .ex-weekend-browse__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 8px;
}

.ex-weekend-browse--rail .ex-weekend-browse__name {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ex-gray-900);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-weekend-browse--rail .ex-weekend-browse__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.ex-weekend-browse--rail .ex-weekend-browse__date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ex-purple-mid);
  line-height: 1.2;
  text-transform: capitalize;
}

.ex-weekend-browse--rail .ex-weekend-browse__venue {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ex-gray-500);
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ex-weekend-browse__empty {
  font-size: 0.95rem;
  color: var(--ex-gray-500);
  line-height: 1.5;
  margin: 0;
  padding: 8px 0 16px;
}

@media (max-width: 767px) {
  /* Destacado = foco principal (regla tras .ex-hero-spotlight base) */
  .ex-hero-spotlight {
    margin-top: 1.35rem;
    margin-bottom: 0.65rem;
  }

  body.ex-home .ex-main > .ex-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* «Esta semana»: más aire bajo la curva superior del sheet */
  body.ex-home .ex-main > .ex-section.ex-weekend-browse--rail:first-of-type {
    padding-top: 20px;
  }

  .ex-hero-spotlight__slider-wrap {
    padding-top: 0;
  }

  .ex-weekend-browse__card-wrap {
    scroll-snap-align: start;
    width: min(158px, 44vw);
    min-width: 128px;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__scroll {
    padding-top: 10px;
    padding-bottom: 16px;
    gap: 14px;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__text {
    padding-top: 8px;
    gap: 3px;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__name {
    font-size: 0.8125rem;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__date {
    font-size: 0.6875rem;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__venue {
    font-size: 0.625rem;
  }

}

/* ——— Main + sheet: flujo normal; el sheet puede “subir” solo el fondo (padding + compensación en main) ——— */
.ex-main {
  position: relative;
}

/* Contenedor único (incluye <main> + <footer>); curva superior solo aquí */
body.ex-home .ex-home-sheet {
  width: 100%;
  max-width: none;
  background: #fff;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  /* Más blanco plano bajo el banner, sin mover el contenido: padding + margin negativo en .ex-main */
  padding-top: var(--ex-sheet-bg-lift);
  box-shadow:
    0 -10px 28px rgba(0, 0, 0, 0.14),
    0 -1px 0 rgba(255, 255, 255, 0.85) inset;
}

body.ex-home .ex-home-sheet > .ex-main {
  margin-top: calc(-1 * var(--ex-sheet-bg-lift));
}

body.ex-home .ex-home-sheet > .footer.ex-footer {
  margin-top: 0;
}

/* Bloque blanco: mismo padding vertical en cada sección (espacio entre secciones = suma simétrica) */
body.ex-home .ex-main > .ex-section {
  padding: 16px 20px;
}

/* Primera sección del sheet: menos aire sobre «Esta semana» (ritmo tipo mockup) */
body.ex-home .ex-main > .ex-section.ex-weekend-browse--rail:first-of-type {
  padding-top: 8px;
}

/* Un poco menos de aire entre «Esta semana» y «Categorías» (vs. padding simétrico 16+16) */
body.ex-home .ex-main > .ex-section.ex-weekend-browse--rail {
  padding-bottom: 8px;
}

/* Chips → «Todos los eventos»: ~24–32px de separación neta (scroll + bajo categorías + alto grilla) */
body.ex-home .ex-main > .ex-section.ex-categories--rail {
  padding-bottom: 6px;
}

body.ex-home .ex-main > .ex-section.ex-grid {
  padding-top: 10px;
}

body.ex-home .ex-main > .ex-section .ex-section__sub {
  margin-bottom: 14px;
}

.ex-section {
  max-width: var(--ex-max);
  margin: 0 auto;
  padding: 56px 20px 72px;
}

.ex-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ex-gray-900);
  margin-bottom: 8px;
}

.ex-section__sub {
  font-size: 0.95rem;
  color: var(--ex-gray-500);
  margin-bottom: 28px;
}

/* Categories — Lucide icons (same paths as lucide-react), icon top-left / label bottom-left */
.ex-categories__masthead {
  display: block;
}

.ex-categories__head-text .ex-section__sub {
  margin-bottom: 24px;
}

.ex-categories__pager {
  display: none;
}

.ex-categories__rail {
  min-width: 0;
}

.ex-categories__scroll {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding: 10px 0 16px;
  margin: 0;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ex-categories__scroll::-webkit-scrollbar {
  display: none;
}

.ex-cat-card {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  box-sizing: border-box;
  width: min(188px, 44vw);
  min-width: 168px;
  min-height: 100px;
  max-height: 110px;
  padding: 16px 17px 15px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background-color: #0a0a0a;
  color: rgba(245, 243, 255, 0.94);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  isolation: isolate;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.ex-cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.02) 100%
  );
  opacity: 0.9;
}

.ex-cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.58;
  transition: opacity 0.25s ease;
}

.ex-cat-card[data-filter='all']::after {
  background: radial-gradient(ellipse 95% 75% at 18% 12%, rgba(124, 58, 237, 0.44), transparent 58%);
}

.ex-cat-card[data-filter='gratis']::after {
  background: radial-gradient(ellipse 90% 72% at 82% 18%, rgba(34, 197, 94, 0.36), transparent 58%);
}

.ex-cat-card[data-filter='fiestas']::after {
  background: radial-gradient(ellipse 95% 78% at 22% 15%, rgba(217, 70, 239, 0.35), transparent 58%);
}

.ex-cat-card[data-filter='deportes']::after {
  background: radial-gradient(ellipse 88% 70% at 78% 22%, rgba(59, 130, 246, 0.36), transparent 58%);
}

.ex-cat-card[data-filter='conciertos']::after {
  background: radial-gradient(ellipse 92% 75% at 50% 8%, rgba(249, 115, 22, 0.32), transparent 58%);
}

.ex-cat-card[data-filter='festivales']::after {
  background: radial-gradient(ellipse 95% 80% at 55% 5%, rgba(192, 38, 211, 0.32), transparent 58%);
}

.ex-cat-card[data-filter='bienestar']::after {
  background: radial-gradient(ellipse 88% 72% at 30% 20%, rgba(45, 212, 191, 0.34), transparent 58%);
}

.ex-cat-card[data-filter='conferencia']::after {
  background: radial-gradient(ellipse 90% 75% at 75% 12%, rgba(99, 102, 241, 0.35), transparent 58%);
}

.ex-cat-card[data-filter='comedia']::after {
  background: radial-gradient(ellipse 92% 78% at 40% 18%, rgba(234, 179, 8, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 55% at 70% 30%, rgba(124, 58, 237, 0.26), transparent 58%);
}

.ex-cat-card[data-filter='teatro']::after {
  background: radial-gradient(ellipse 88% 72% at 45% 12%, rgba(244, 63, 94, 0.26), transparent 55%),
    radial-gradient(ellipse 75% 60% at 72% 28%, rgba(139, 92, 246, 0.3), transparent 58%);
}

.ex-cat-card[data-filter='otros']::after {
  background: radial-gradient(ellipse 95% 80% at 50% 15%, rgba(124, 58, 237, 0.32), transparent 60%);
}

.ex-cat-card > * {
  position: relative;
  z-index: 1;
}

.ex-cat-card:focus {
  outline: none;
}

.ex-cat-card:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.45);
}

.ex-cat-card.is-active {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.2);
}

.ex-cat-card.is-active::before {
  opacity: 0.95;
}

.ex-cat-card.is-active::after {
  opacity: 0.64;
}

.ex-cat-card:hover:not(.is-active) {
  border-color: rgba(255, 255, 255, 0.16);
}

.ex-cat-card:hover:not(.is-active)::after {
  opacity: 0.66;
}

.ex-cat-card__icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
  color: rgba(245, 243, 255, 0.92);
}

.ex-cat-card__icon svg.lucide {
  display: block;
  width: 25px;
  height: 25px;
  opacity: 0.88;
  filter: drop-shadow(0 0 3px rgba(139, 92, 246, 0.18));
}

.ex-cat-card__label {
  margin: 0;
  padding: 0;
  align-self: stretch;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: rgba(245, 243, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Example homepage: categorías como chips claros (móvil: scroll horizontal; ver ≥1024) */
body.ex-home .ex-main .ex-categories--rail .ex-categories__scroll {
  gap: 10px;
  padding: 10px 0 14px;
  scroll-snap-type: x proximity;
}

body.ex-home .ex-main .ex-categories--rail .ex-cat-card {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 0;
  max-height: none;
  height: auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ex-gray-900);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-align: left;
  overflow: visible;
  isolation: auto;
  transform: none;
}

body.ex-home .ex-main .ex-categories--rail .ex-cat-card::before,
body.ex-home .ex-main .ex-categories--rail .ex-cat-card::after {
  content: none;
  display: none;
}

body.ex-home .ex-main .ex-categories--rail .ex-cat-card:focus-visible {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(61, 21, 206, 0.35);
}

body.ex-home .ex-main .ex-categories--rail .ex-cat-card.is-active {
  border-color: rgba(107, 61, 212, 0.5);
  background: linear-gradient(180deg, #faf5ff 0%, #f5f3ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(124, 58, 237, 0.14),
    0 2px 10px rgba(61, 21, 206, 0.1);
}

body.ex-home .ex-main .ex-categories--rail .ex-cat-card.is-active::before,
body.ex-home .ex-main .ex-categories--rail .ex-cat-card.is-active::after {
  content: none;
  display: none;
}

body.ex-home .ex-main .ex-categories--rail .ex-cat-card:hover:not(.is-active) {
  background: #fafafa;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transform: none;
}

body.ex-home .ex-main .ex-categories--rail .ex-cat-card:hover:not(.is-active)::after {
  opacity: 0;
}

body.ex-home .ex-main .ex-categories--rail .ex-cat-card.is-active:hover {
  transform: none;
}

body.ex-home .ex-main .ex-categories--rail .ex-cat-card__icon {
  color: var(--ex-purple-mid);
  justify-content: center;
}

body.ex-home .ex-main .ex-categories--rail .ex-cat-card__icon svg.lucide {
  width: 20px;
  height: 20px;
  opacity: 1;
  filter: none;
}

body.ex-home .ex-main .ex-categories--rail .ex-cat-card__label {
  align-self: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ex-gray-900);
  text-shadow: none;
  white-space: nowrap;
}

/* Desktop: una sola fila, sin scroll — reparto + tamaño ajustado para caber en el ancho del contenido */
@media (min-width: 1024px) {
  body.ex-home .ex-main .ex-categories--rail .ex-categories__scroll {
    flex-wrap: nowrap;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    gap: 6px;
    padding: 14px 0 16px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 8px 10px;
    gap: 6px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card__icon {
    flex-shrink: 0;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card__icon svg.lucide {
    width: 17px;
    height: 17px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card__label {
    font-size: clamp(0.6875rem, 0.35vw + 0.62rem, 0.8125rem);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
}

@media (min-width: 1280px) {
  body.ex-home .ex-main .ex-categories--rail .ex-categories__scroll {
    gap: 8px;
    padding: 16px 0 18px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card {
    padding: 9px 12px;
    gap: 7px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card__icon svg.lucide {
    width: 18px;
    height: 18px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card__label {
    font-size: clamp(0.75rem, 0.28vw + 0.65rem, 0.875rem);
  }
}

@media (min-width: 1536px) {
  body.ex-home .ex-main .ex-categories--rail .ex-categories__scroll {
    gap: 10px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card {
    padding: 10px 14px;
    gap: 8px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card__icon svg.lucide {
    width: 19px;
    height: 19px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card__label {
    font-size: clamp(0.78125rem, 0.22vw + 0.68rem, 0.90625rem);
  }
}

@media (min-width: 1024px) {
  .ex-categories--rail .ex-categories__masthead {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    margin-bottom: 16px;
  }

  .ex-categories--rail .ex-categories__head-text {
    flex: 1;
    min-width: 0;
  }

  .ex-categories--rail .ex-categories__head-text .ex-section__sub {
    margin-bottom: 0;
  }

  body.ex-home .ex-main > .ex-section.ex-categories .ex-categories__head-text .ex-section__sub {
    margin-bottom: 0;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__masthead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__head-text {
    flex: 1;
    min-width: 0;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__head-text .ex-section__sub {
    margin-bottom: 0;
  }

  body.ex-home .ex-main > .ex-section.ex-weekend-browse--rail .ex-weekend-browse__head-text .ex-section__sub {
    margin-bottom: 0;
  }

  .ex-weekend-browse--rail .ex-categories__pager {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  .ex-categories__pager-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--ex-gray-700);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .ex-categories__pager-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
    color: var(--ex-gray-900);
  }

  .ex-categories__pager-btn:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .ex-categories__pager-btn:focus {
    outline: none;
  }

  .ex-categories__pager-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(61, 21, 206, 0.35);
  }

  .ex-categories__pager-count {
    min-width: 4.5rem;
    padding: 0 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ex-gray-600);
    text-align: center;
    font-variant-numeric: tabular-nums;
  }

}

/* Ancla al filtrar por categoría: respeta header sticky */
#eventsGridSection {
  scroll-margin-top: calc(var(--ex-header-h, 76px) + 12px);
}

.ex-grid__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0;
}

.ex-grid__head-main {
  min-width: 0;
}

.ex-grid__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
}

.ex-grid__title-row .ex-grid__title {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

/* Acceso rápido a la búsqueda del hero (solo móvil) */
.ex-grid__mobile-search {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 9px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-family: var(--font-roobert, inherit);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ex-gray-800);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ex-grid__mobile-search-icon {
  display: flex;
  color: var(--ex-purple-mid);
}

.ex-grid__mobile-search-icon svg {
  display: block;
  width: 15px;
  height: 15px;
}

.ex-grid__mobile-search-label {
  line-height: 1;
}

.ex-grid__mobile-search:active {
  background: #f4f4f5;
}

.ex-grid__mobile-search:focus {
  outline: none;
}

.ex-grid__mobile-search:focus-visible {
  border-color: rgba(144, 70, 234, 0.45);
  box-shadow: 0 0 0 2px rgba(144, 70, 234, 0.2);
}

@media (max-width: 767px) {
  .ex-grid__mobile-search {
    display: inline-flex;
  }
}

.ex-grid__sub {
  margin-top: 0;
}

.ex-grid__title {
  margin-bottom: 0;
}

#exCategoriesSection {
  scroll-margin-top: calc(var(--ex-header-h, 76px) + 12px);
}

/* Fila de filtro activo: chip + acción secundaria como un solo bloque de estado */
.ex-grid__filter-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 18px;
  max-width: 100%;
}

.ex-grid__filter-row[hidden] {
  display: none !important;
}

.ex-grid__filter-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, 16rem);
  padding: 4px 12px;
  min-height: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  font-family: var(--font-roobert, inherit);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #3a2d58;
  background: rgba(144, 70, 234, 0.11);
  border: 1px solid rgba(107, 61, 212, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ex-grid__filter-clear {
  margin: 0;
  padding: 4px 8px;
  margin-left: -2px;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-family: var(--font-roobert, inherit);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ex-purple-mid);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  align-self: center;
}

.ex-grid__filter-clear:hover {
  color: var(--ex-purple);
  background: rgba(144, 70, 234, 0.06);
  text-decoration: underline;
  text-decoration-color: rgba(107, 61, 212, 0.45);
}

.ex-grid__filter-clear:active {
  color: var(--ex-purple);
  background: rgba(144, 70, 234, 0.1);
}

.ex-grid__filter-clear:focus {
  outline: none;
}

.ex-grid__filter-clear:focus-visible {
  color: var(--ex-purple);
  text-decoration: underline;
  text-decoration-color: rgba(61, 21, 206, 0.4);
  box-shadow: 0 0 0 2px rgba(144, 70, 234, 0.28);
}

/* Events grid — móvil: 2 por fila; tablet: 2; desktop: 4 */
.ex-grid__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  justify-items: stretch;
}

@media (min-width: 641px) {
  .ex-grid__list {
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .ex-grid__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ex-event-card {
  border-radius: var(--ex-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4e4e7;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
  width: 100%;
  max-width: none;
  font-family: var(--font-roobert);
}

.ex-event-card:hover {
  border-color: #d4d4d8;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.ex-event-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  background: var(--ex-gray-100);
  position: relative;
  overflow: hidden;
}

.ex-event-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ex-event-card:hover .ex-event-card__img img {
  transform: scale(1.04);
}

.ex-event-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f4f4f5, #e4e4e7);
  color: var(--ex-gray-400);
  font-size: 2rem;
}

.ex-event-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  gap: 0;
}

.ex-event-card__title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #111827;
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.ex-event-card__venue {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--ex-gray-500);
  margin: 0 0 8px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Una línea fecha+hora, una línea precio; sin reglas internas */
.ex-event-card__meta {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
}

.ex-event-card__when {
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ex-gray-500);
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  word-break: break-word;
}

.ex-event-card__price {
  margin: 0;
  padding: 0;
  border: none;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ex-gray-800);
  font-size: 0.9375rem;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.ex-grid__empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ex-gray-500);
  border: 1px dashed #e4e4e7;
  border-radius: var(--ex-radius);
}

.ex-grid__filter-empty {
  text-align: center;
  padding: 40px 24px 48px;
  border: 1px dashed #e4e4e7;
  border-radius: var(--ex-radius);
  background: var(--ex-gray-50);
}

.ex-grid__filter-empty__emoji {
  display: block;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 12px;
  filter: grayscale(0.15);
}

.ex-grid__filter-empty__title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ex-gray-900);
  letter-spacing: -0.02em;
}

.ex-grid__filter-empty__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ex-gray-500);
  line-height: 1.45;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

/* Shared footer partial (views/partials/ex-home-footer.ejs) — all breakpoints, overrides styles.css */
footer.footer.ex-footer {
  border-top: 1px solid #e4e4e7;
  background-color: #f8f9fa;
  margin-top: 48px;
  padding: 0;
  box-sizing: border-box;
}

/* Event page: body is white (site-header-light) and .event-main is gray; default footer margin exposed the body as a white strip above the footer */
body.ex-home main.event-main ~ footer.footer.ex-footer {
  margin-top: 0;
}

footer.footer.ex-footer .footeropyright,
footer.footer.ex-footer .language-text {
  font-size: 0.875rem;
  color: var(--ex-gray-600, #52525b);
}

footer.footer.ex-footer .footer-link {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--ex-gray-600, #52525b);
  font-weight: 400;
}

footer.footer.ex-footer .footer-link:hover {
  color: var(--ex-gray-900, #18181b);
}

footer.footer.ex-footer .ex-footer__container {
  max-width: var(--ex-max);
  margin-left: auto;
  margin-right: auto;
  padding: 40px 16px 32px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  footer.footer.ex-footer .ex-footer__container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 1024px) {
  footer.footer.ex-footer .ex-footer__container {
    padding: 48px 40px 40px;
  }
}

@media (min-width: 1280px) {
  footer.footer.ex-footer .ex-footer__container {
    padding: 56px 48px 48px;
  }
}

@media (min-width: 1800px) {
  footer.footer.ex-footer .ex-footer__container {
    padding-left: 56px;
    padding-right: 56px;
  }
}

@media (min-width: 2200px) {
  footer.footer.ex-footer .ex-footer__container {
    padding-left: 64px;
    padding-right: 64px;
  }
}

footer.footer.ex-footer .footer-left.ex-footer__brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

footer.footer.ex-footer .ex-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 32px;
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  footer.footer.ex-footer .ex-footer__top {
    gap: 32px 48px;
  }
}

footer.footer.ex-footer .ex-footer__brand {
  flex: 1 1 100%;
  min-width: 0;
}

@media (min-width: 1024px) {
  footer.footer.ex-footer .ex-footer__brand {
    flex: 0 1 280px;
    min-width: 220px;
  }
}

footer.footer.ex-footer .ex-footer__brand .footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

footer.footer.ex-footer .ex-footer__lang {
  margin-top: 20px;
  opacity: 0.85;
}

footer.footer.ex-footer .ex-footer__links {
  flex: 1 1 100%;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  footer.footer.ex-footer .ex-footer__links {
    flex: 1 1 340px;
    min-width: 280px;
    justify-content: flex-end;
  }
}

footer.footer.ex-footer .ex-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px 18px;
}

@media (min-width: 1024px) {
  footer.footer.ex-footer .ex-footer__nav {
    justify-content: flex-end;
    gap: 8px 22px;
    max-width: 520px;
  }
}

@media (min-width: 1024px) {
  footer.footer.ex-footer .ex-footer__nav .footer-link {
    white-space: nowrap;
  }
}

footer.footer.ex-footer .ex-footer__divider {
  margin: 24px 0;
  opacity: 0.7;
  width: 100%;
  height: 1px;
  background-color: #e5e7eb;
}

@media (min-width: 1024px) {
  footer.footer.ex-footer .ex-footer__divider {
    margin: 28px 0;
  }
}

footer.footer.ex-footer .ex-footer__middle {
  margin: 0;
  max-width: 48rem;
}

footer.footer.ex-footer .ex-footer__description {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ex-gray-600, #52525b);
  margin: 0;
}

footer.footer.ex-footer .ex-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 8px;
  margin-top: 0;
}

footer.footer.ex-footer .ex-footer__address p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ex-gray-500);
}

@media (max-width: 768px) {
  footer.footer.ex-footer .ex-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  footer.footer.ex-footer .ex-footer__social {
    align-self: flex-end;
  }
}

@media (max-width: 640px) {
  .ex-hero__inner {
    padding: 22px var(--ex-hero-pad-x) 0.8rem;
  }

  .ex-section {
    padding: 40px 20px 56px;
  }

  body.ex-home .ex-main > .ex-section {
    padding: 14px 16px;
  }

  body.ex-home .ex-main > .ex-section.ex-weekend-browse--rail:first-of-type {
    padding-top: 18px;
  }

  body.ex-home .ex-main > .ex-section.ex-weekend-browse--rail {
    padding-bottom: 6px;
  }

  /* Tarjetas compactas: título primario; metadata más ligera y alineada */
  .ex-event-card__body {
    padding: 11px 11px 12px;
    gap: 0;
  }

  .ex-event-card__title {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.28;
    margin-bottom: 5px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .ex-event-card__venue {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--ex-gray-500);
    margin-bottom: 6px;
    line-height: 1.35;
  }

  .ex-event-card__meta {
    gap: 2px;
    margin-top: 1px;
  }

  .ex-event-card__when {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.015em;
    color: var(--ex-gray-500);
  }

  .ex-event-card__price {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.015em;
    color: var(--ex-gray-700);
  }
}

@media (min-width: 641px) {
  .ex-event-card__body {
    padding: 16px 16px 18px;
  }

  .ex-event-card__title {
    margin-bottom: 4px;
  }

  .ex-event-card__venue {
    margin-bottom: 8px;
  }

  .ex-event-card__meta {
    gap: 5px;
  }
}

/* ——— Desktop discovery (1024px+): densidad y ancho ——— */
@media (min-width: 1024px) {
  body.ex-home {
    --ex-max: 1240px;
    --ex-spotlight-max: 1572px;
    --ex-hero-pad-x: 32px;
    --ex-sheet-bg-lift: 2rem;
  }

  .ex-hero {
    min-height: 72vh;
    min-height: 72svh;
  }

  .ex-hero__inner {
    padding: 36px var(--ex-hero-pad-x) 1.15rem;
  }

  .ex-hero__copy {
    margin-bottom: 1.65rem;
    max-width: 42rem;
  }

  .ex-hero__title {
    font-size: clamp(2rem, 2.35vw, 2.625rem);
  }

  .ex-hero__search-wrap {
    max-width: min(44rem, 100%);
  }

  .ex-hero__search {
    padding: 13px 22px 13px 18px;
    border-radius: 14px;
  }

  .ex-hero-spotlight {
    margin-top: 2rem;
    margin-bottom: 0.9rem;
  }

  body.ex-home .ex-main > .ex-section {
    padding: 16px 32px;
  }

  body.ex-home .ex-main > .ex-section.ex-weekend-browse--rail:first-of-type {
    padding-top: 22px;
  }

  body.ex-home .ex-main > .ex-section.ex-weekend-browse--rail {
    padding-bottom: 8px;
  }

  body.ex-home .ex-main > .ex-section .ex-section__sub {
    margin-bottom: 14px;
  }

  body.ex-home .ex-main > .ex-section.ex-categories,
  body.ex-home .ex-main > .ex-section.ex-weekend-browse--rail {
    overflow-x: visible;
  }

  .ex-section__title {
    font-size: 1.625rem;
  }

  .ex-section__sub {
    font-size: 0.98rem;
    margin-bottom: 18px;
  }

  .ex-categories__scroll {
    gap: 16px;
    padding: 12px 4px 14px 2px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #d4d4d8 #f4f4f5;
    scroll-padding-inline: 4px;
  }

  .ex-categories__scroll::-webkit-scrollbar {
    display: block;
    height: 7px;
  }

  .ex-categories__scroll::-webkit-scrollbar-track {
    background: #f4f4f5;
    border-radius: 6px;
  }

  .ex-categories__scroll::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 6px;
  }

  /* Carril categorías: sin barra visible (navegación con paginador) */
  .ex-categories--rail .ex-categories__scroll {
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
  }

  .ex-categories--rail .ex-categories__scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__scroll {
    gap: 20px;
    padding: 14px 2px 16px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-padding-inline: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__scroll::-webkit-scrollbar {
    display: none;
  }

  .ex-weekend-browse__card-wrap {
    width: 248px;
    min-width: 248px;
    max-width: 248px;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__thumb {
    aspect-ratio: 1 / 1;
    border-radius: var(--ex-radius);
    box-shadow:
      0 1px 0 rgba(0, 0, 0, 0.04),
      0 14px 36px rgba(0, 0, 0, 0.08);
  }

  .ex-weekend-browse--rail .ex-weekend-browse__text {
    padding-top: 12px;
    gap: 6px;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__name {
    font-size: 0.9375rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__meta {
    gap: 5px;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__date {
    font-size: 0.8125rem;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__venue {
    font-size: 0.75rem;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__card.ex-weekend-browse__card-wrap {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__card.ex-weekend-browse__card-wrap:hover {
    opacity: 1;
    transform: translateY(-3px);
  }

  .ex-grid__list {
    gap: 28px;
  }

  .ex-event-card__body {
    padding: 18px 18px 20px;
  }

  .ex-event-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 6px;
  }

  .ex-event-card__venue {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 10px;
  }

  .ex-event-card__when {
    font-size: 0.8125rem;
  }

  .ex-event-card__price {
    font-size: 0.9375rem;
    font-weight: 500;
  }
}

/* ——— Desktop amplio (1280px+): marketplace 1280–1440 ——— */
@media (min-width: 1280px) {
  body.ex-home {
    --ex-max: 1450px;
    --ex-spotlight-max: 1620px;
    --ex-hero-pad-x: 40px;
    --ex-sheet-bg-lift: 2.25rem;
  }

  .ex-hero__inner {
    padding: 44px var(--ex-hero-pad-x) 1.3rem;
  }

  .ex-hero__copy {
    margin-bottom: 1.85rem;
    max-width: 44rem;
  }

  .ex-hero__title {
    font-size: clamp(2.125rem, 2.5vw, 2.75rem);
    letter-spacing: -0.032em;
  }

  .ex-hero__search-wrap {
    max-width: min(48rem, 100%);
  }

  .ex-hero-spotlight {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
  }

  body.ex-home .header-container {
    padding-left: var(--ex-hero-pad-x);
    padding-right: var(--ex-hero-pad-x);
  }

  body.ex-home .ex-main > .ex-section {
    padding: 18px 40px;
  }

  body.ex-home .ex-main > .ex-section.ex-weekend-browse--rail:first-of-type {
    padding-top: 24px;
  }

  body.ex-home .ex-main > .ex-section.ex-weekend-browse--rail {
    padding-bottom: 10px;
  }

  .ex-section__title {
    font-size: 1.875rem;
    letter-spacing: -0.034em;
    margin-bottom: 10px;
  }

  body.ex-home .ex-main > .ex-section.ex-weekend-browse--rail .ex-section__title,
  body.ex-home .ex-main > .ex-section.ex-categories--rail .ex-section__title {
    margin-bottom: 5px;
  }

  body.ex-home .ex-main > .ex-section.ex-grid .ex-grid__head:not(:has(.ex-grid__filter-row:not([hidden]))) .ex-grid__title-row {
    margin-bottom: 5px;
  }

  .ex-section__sub {
    font-size: 1.02rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  body.ex-home .ex-main > .ex-section .ex-section__sub {
    margin-bottom: 14px;
  }

  .ex-categories__scroll {
    gap: 20px;
    padding: 14px 6px 16px 4px;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__scroll {
    gap: 24px;
    padding: 16px 2px 18px;
  }

  .ex-weekend-browse__card-wrap {
    width: 272px;
    min-width: 272px;
    max-width: 272px;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__thumb {
    aspect-ratio: 1 / 1;
    border-radius: var(--ex-radius);
    box-shadow:
      0 1px 0 rgba(0, 0, 0, 0.05),
      0 18px 44px rgba(0, 0, 0, 0.1);
  }

  .ex-weekend-browse--rail .ex-weekend-browse__text {
    padding-top: 14px;
    gap: 8px;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.28;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__date {
    font-size: 0.8125rem;
  }

  .ex-weekend-browse--rail .ex-weekend-browse__venue {
    font-size: 0.78125rem;
    color: var(--ex-gray-600);
  }

  /* Encabezado de grilla: composición 2 columnas solo con filtro activo visible */
  .ex-grid .ex-grid__head:not(:has(.ex-grid__filter-row:not([hidden]))) {
    display: flex;
    flex-direction: column;
    margin-bottom: 34px;
  }

  .ex-grid .ex-grid__head:not(:has(.ex-grid__filter-row:not([hidden]))) .ex-grid__head-main {
    display: block;
  }

  .ex-grid .ex-grid__head:has(.ex-grid__filter-row:not([hidden])) .ex-grid__head-main {
    display: contents;
  }

  .ex-grid .ex-grid__head:has(.ex-grid__filter-row:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'title filter'
      'sub filter';
    column-gap: 40px;
    row-gap: 12px;
    align-items: center;
    margin-bottom: 34px;
  }

  .ex-grid .ex-grid__head:has(.ex-grid__filter-row:not([hidden])) .ex-grid__title-row {
    grid-area: title;
    margin-bottom: 0;
    align-self: center;
  }

  .ex-grid .ex-grid__head:has(.ex-grid__filter-row:not([hidden])) .ex-grid__title {
    margin-bottom: 0;
  }

  .ex-grid .ex-grid__head:has(.ex-grid__filter-row:not([hidden])) .ex-section__sub.ex-grid__sub {
    grid-area: sub;
    margin-bottom: 0;
    max-width: 36rem;
  }

  .ex-grid .ex-grid__filter-row:not([hidden]) {
    grid-area: filter;
    margin: 0;
    justify-self: end;
    align-self: center;
  }

  .ex-grid__list {
    gap: 32px;
  }

  .ex-event-card__body {
    padding: 20px 20px 22px;
  }

  .ex-event-card__title {
    font-size: 1.09375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.28;
  }

  .ex-event-card__venue {
    font-size: 0.9375rem;
    color: var(--ex-gray-600, #52525b);
  }

  .ex-event-card__meta {
    gap: 6px;
    padding-top: 2px;
    border-top: 1px solid var(--ex-gray-100);
  }

  .ex-event-card__when {
    font-size: 0.8125rem;
  }

  .ex-event-card__price {
    font-size: 0.96875rem;
  }
}

@media (min-width: 1536px) {
  body.ex-home {
    --ex-max: 1580px;
    --ex-spotlight-max: 1700px;
    --ex-hero-pad-x: 48px;
  }

  body.ex-home .ex-main > .ex-section {
    padding-left: 48px;
    padding-right: 48px;
  }

  .ex-grid__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 32px;
  }

  .ex-weekend-browse__card-wrap {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
  }
}

/* Pantallas grandes: más ancho útil y grilla de 5 columnas */
@media (min-width: 1800px) {
  body.ex-home {
    --ex-max: 1680px;
    --ex-spotlight-max: 1740px;
    --ex-hero-pad-x: 56px;
  }

  body.ex-home .ex-main > .ex-section {
    padding-left: 56px;
    padding-right: 56px;
  }

  .ex-grid__list {
    grid-template-columns: repeat(5, 1fr);
    gap: 28px 32px;
  }

  .ex-weekend-browse__card-wrap {
    width: 292px;
    min-width: 292px;
    max-width: 292px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-categories__scroll {
    gap: 12px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card {
    padding: 11px 16px;
    gap: 9px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card__icon svg.lucide {
    width: 20px;
    height: 20px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card__label {
    font-size: clamp(0.8125rem, 0.18vw + 0.72rem, 0.9375rem);
  }
}

/* Muy anchas: tope cómodo para legibilidad */
@media (min-width: 2200px) {
  body.ex-home {
    --ex-max: 1780px;
    --ex-spotlight-max: 1820px;
    --ex-hero-pad-x: 64px;
  }

  body.ex-home .ex-main > .ex-section {
    padding-left: 64px;
    padding-right: 64px;
  }

  .ex-weekend-browse__card-wrap {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-categories__scroll {
    gap: 14px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card {
    padding: 12px 18px;
    gap: 10px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card__icon svg.lucide {
    width: 21px;
    height: 21px;
  }

  body.ex-home .ex-main .ex-categories--rail .ex-cat-card__label {
    font-size: clamp(0.84375rem, 0.14vw + 0.75rem, 0.96875rem);
  }
}

/* ── Soluciones dropdown — desktop ─────────────────────────────────── */
.nav-solutions-wrapper {
  position: relative;
  background: transparent;
  isolation: isolate;
}

/* Oscurece cuando el mega menú está abierto (sin blur): velos siempre definidos + transition opacity.
   - body::before: sobre sheet/footer; por debajo de .ex-hero cuando el menú está abierto.
   - .ex-hero::after: mismo tinte dentro del hero (título, búsqueda); header/panel por encima al abrir. */
body.ex-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(4, 4, 10, 0.42);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

body.ex-home.ex-solutions-menu-open::before {
  opacity: 1;
}

body.ex-home.ex-solutions-menu-open .ex-hero {
  z-index: 20;
}

body.ex-home .ex-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  background: rgba(4, 4, 10, 0.42);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

body.ex-home.ex-solutions-menu-open .ex-hero::after {
  opacity: 1;
}

body.ex-home.ex-solutions-menu-open .ex-hero .main-header,
body.ex-home.ex-solutions-menu-open > .main-header {
  z-index: 30;
}

@media (prefers-reduced-motion: reduce) {
  body.ex-home::before,
  body.ex-home .ex-hero::after {
    transition-duration: 0.01ms;
  }
}

.nav-solutions-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  cursor: pointer;
  background: none;
  border: none;
  /* Typography/spacing: do not set font-size/weight — same element also has .nav-link (responsive 18px→15px, etc.) */
  line-height: normal;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  appearance: none;
}

.nav-solutions-chevron {
  transition: transform 0.22s ease, color 0.2s ease;
  flex-shrink: 0;
}

.nav-solutions-btn[aria-expanded="true"] .nav-solutions-chevron {
  transform: rotate(180deg);
}

body.ex-home:not(.site-header-light) .ex-hero .main-header .nav-solutions-btn[aria-expanded="true"],
body.ex-home:not(.site-header-light) > .main-header .nav-solutions-btn[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.nav-solutions-panel {
  position: absolute;
  top: calc(100% + 34px);
  left: 50%;
  width: min(920px, calc(100vw - 40px));
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.04),
    0 4px 8px rgba(15, 23, 42, 0.04),
    0 18px 42px rgba(61, 21, 206, 0.09),
    0 28px 68px rgba(15, 23, 42, 0.08);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-5px);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.2s ease;
}

/* Flecha sutil hacia “Soluciones”; sin overflow:hidden en el panel para que no recorte artefactos laterales */
.nav-solutions-panel::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: -1px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
  filter: drop-shadow(0 -1px 0 rgba(15, 23, 42, 0.04));
}

.nav-solutions-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-solutions-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: start;
  padding: 17px 20px 21px;
}

.nav-solutions-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.nav-solutions-col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9CA3AF;
  padding: 0 6px 10px;
  margin-bottom: 0;
}

.nav-solution-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 6px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.nav-solution-item:hover {
  background: #F5F3FF;
}

.nav-solution-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 9px;
  background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7C3AED;
  flex-shrink: 0;
}

.nav-solution-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.nav-solution-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  min-width: 0;
  padding-top: 2px;
}

.nav-solution-title {
  font-size: 0.875rem;
  font-weight: 400;
  color: #111827;
  line-height: 1.3;
}

.nav-solution-desc {
  font-size: 0.75rem;
  color: #6B7280;
  line-height: 1.4;
}

/* ── Soluciones accordion — mobile nav ──────────────────────────────── */
.mobile-nav-solutions-btn {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
}

.mobile-solutions-chevron {
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.mobile-nav-solutions-btn.open .mobile-solutions-chevron {
  transform: rotate(180deg);
}

.mobile-nav-solutions-list {
  display: none;
  padding: 4px 0 4px 8px;
}

.mobile-nav-solutions-list.open {
  display: block;
}

.mobile-solutions-section-title {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9CA3AF;
  padding: 10px 16px 4px;
}

.mobile-solution-link {
  font-size: 0.9rem !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

/* ── Mobile: hero búsqueda en pantalla completa (sheet) ─────────────────── */
body.ex-mobile-search-open {
  overflow: hidden;
}

.ex-hero__search-sheet-close {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 0 0 4px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  color: #18181b;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ex-hero__search-sheet-close svg {
  flex-shrink: 0;
}

.ex-hero__search-wrap.is-mobile-search-sheet .ex-hero__search-sheet-close:not([hidden]) {
  display: inline-flex;
}

@media (max-width: 767px) {
  .ex-hero__search-wrap.is-mobile-search-sheet {
    position: fixed;
    inset: 0;
    z-index: 10050;
    max-width: none;
    margin: 0;
    padding: max(10px, env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
    background: #f4f4f5;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
  }

  .ex-hero__search-wrap.is-mobile-search-sheet .ex-hero__search {
    flex-shrink: 0;
  }

  .ex-hero__search-wrap.is-mobile-search-sheet .ex-hero-search-dropdown {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    flex: 1;
    min-height: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 8px;
  }

  .ex-hero__search-wrap.is-mobile-search-sheet .ex-hero-search-dropdown__list-scroll {
    max-height: calc(100vh - 200px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .ex-hero__search-wrap.is-mobile-search-sheet .ex-hero-search-dropdown__panel {
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}

/* ── Búsqueda global móvil: pantalla completa (patrón menú hamburger) ───────── */
.ex-global-mobile-search {
  position: fixed;
  inset: 0;
  z-index: 10060;
  pointer-events: none;
}

.ex-global-mobile-search:not([hidden]) {
  pointer-events: auto;
}

.ex-global-mobile-search[hidden] {
  display: none !important;
}

/* Capa bajo el panel: oculta el sitio detrás (misma idea que .mobile-nav-overlay) */
.ex-global-mobile-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.42s;
}

.ex-global-mobile-search:not([hidden]) .ex-global-mobile-search__backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s;
}

.ex-global-mobile-search__sheet {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
  background: #fff;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.ex-global-mobile-search:not([hidden]) .ex-global-mobile-search__sheet {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .ex-global-mobile-search__sheet {
    transition: none;
    transform: none;
  }

  .ex-global-mobile-search:not([hidden]) .ex-global-mobile-search__sheet {
    transform: none;
  }

  .ex-global-mobile-search__backdrop {
    transition: none;
  }
}

/* Barra superior fija: solo buscador + cerrar (estilo .mobile-nav-header) */
.ex-global-mobile-search__sticky-top {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.ex-global-mobile-search__top-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.25rem 1.5rem 1.25rem;
  box-sizing: border-box;
}

.ex-global-mobile-search__top-inner .ex-global-mobile-search__field.ex-hero__search {
  flex: 1;
  min-width: 0;
  background: #f3f4f6;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  gap: 10px;
  box-shadow: none;
  cursor: text;
}

.ex-global-mobile-search__top-inner .ex-global-mobile-search__field.ex-hero__search:focus-within {
  border-color: #d1d5db;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.ex-global-mobile-search__field .ex-hero__search-icon {
  color: #6b7280;
}

.ex-global-mobile-search__field .ex-hero__search-icon svg path {
  stroke: currentColor;
}

.ex-global-mobile-search__field .search-input::placeholder,
.ex-global-mobile-search__field .ex-hero__search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Anula .search-input:focus de styles.css (#3d15ce + halo morado) en este modal */
.ex-global-mobile-search__top-inner .ex-global-mobile-search__field.ex-hero__search .search-input,
.ex-global-mobile-search__top-inner .ex-global-mobile-search__field.ex-hero__search .ex-hero__search-input {
  border: none;
  box-shadow: none;
  background: transparent;
}

.ex-global-mobile-search__top-inner .ex-global-mobile-search__field.ex-hero__search .search-input:focus,
.ex-global-mobile-search__top-inner .ex-global-mobile-search__field.ex-hero__search .search-input:focus-visible,
.ex-global-mobile-search__top-inner .ex-global-mobile-search__field.ex-hero__search .ex-hero__search-input:focus,
.ex-global-mobile-search__top-inner .ex-global-mobile-search__field.ex-hero__search .ex-hero__search-input:focus-visible {
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.ex-global-mobile-search__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  color: #000;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ex-global-mobile-search__close svg {
  width: 24px;
  height: 24px;
  display: block;
}

.ex-global-mobile-search__close:hover,
.ex-global-mobile-search__close:focus-visible {
  background: #e5e7eb;
  outline: none;
}

.ex-global-mobile-search__close:active {
  background: #d1d5db;
}

.ex-global-mobile-search__panel-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.ex-global-mobile-search__panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}

.ex-global-mobile-search__panel .ex-hero-search-dropdown__section-title {
  padding: 14px 1.5rem 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #52525b;
  flex-shrink: 0;
}

.ex-global-mobile-search__panel .ex-hero-search-dropdown__section-title--sub {
  padding: 12px 1.5rem 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ca3af;
}

.ex-global-mobile-search__scroll {
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 4px 10px 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ex-global-mobile-search__scroll .ex-hero-search-dropdown__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ex-global-mobile-search .ex-global-mobile-search__discover-item {
  gap: 12px;
  padding: 10px 12px;
  margin: 0;
  border-radius: 12px;
}

.ex-global-mobile-search .ex-global-mobile-search__discover-item:hover,
.ex-global-mobile-search .ex-global-mobile-search__discover-item:focus-visible {
  background: #f3f4f6;
  outline: none;
}

.ex-global-mobile-search .ex-global-mobile-search__discover-item:active {
  background: #e5e7eb;
}

.ex-global-mobile-search .ex-global-mobile-search__discover-item .ex-hero-search-dropdown__item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.ex-global-mobile-search .ex-global-mobile-search__discover-item .ex-hero-search-dropdown__item-icon svg.lucide {
  width: 20px;
  height: 20px;
  opacity: 1;
  filter: none;
}

.ex-global-mobile-search .ex-global-mobile-search__discover-item .ex-hero-search-dropdown__item-label {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #18181b;
}

.ex-global-mobile-search__row-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  line-height: 0;
}

.ex-global-mobile-search .ex-hero-search-dropdown__item--event {
  gap: 12px;
  padding: 10px 12px;
  margin: 0;
  border-radius: 12px;
}

.ex-global-mobile-search .ex-hero-search-dropdown__item--event:hover,
.ex-global-mobile-search .ex-hero-search-dropdown__item--event:focus-visible {
  background: #f3f4f6;
  outline: none;
}

.ex-global-mobile-search .ex-hero-search-dropdown__chips {
  padding: 2px 8px 10px;
  gap: 8px;
}

.ex-global-mobile-search .ex-hero-search-dropdown__chip {
  background: #f3f4f6;
  border-color: #e5e7eb;
  font-weight: 600;
}

.ex-global-mobile-search .ex-hero-search-dropdown__chip:hover,
.ex-global-mobile-search .ex-hero-search-dropdown__chip:focus-visible {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #111827;
}

.ex-global-mobile-search .ex-hero-search-dropdown__empty {
  padding: 24px 1.5rem 28px;
  flex-shrink: 0;
}

.ex-global-mobile-search .ex-hero-search-dropdown__empty-title {
  color: #27272a;
}

/* Soluciones (landings estilo invite): aire bajo el CTA final */
body.ex-home.invite-page .invite-section.exclusividad {
  padding-bottom: clamp(104px, 12vw, 168px);
}

@media (max-width: 768px) {
  body.ex-home.invite-page .invite-section.exclusividad {
    padding-bottom: clamp(96px, 22vw, 140px);
  }
}
