/* ------------------------------------------------------------------
   Pop-up JUSTQRO · Art Week Querétaro
   Azul de identidad de Art Week Querétaro: #004FFF
   Mobile first: hoja inferior en móvil, tarjeta centrada en escritorio.
   ------------------------------------------------------------------ */

.jq-pop[hidden] { display: none; }

.jq-pop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: Eina, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.jq-pop__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 12, 24, .58);
  cursor: pointer;
  animation: jq-fade .25s ease-out both;
}

.jq-pop__card {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: #004FFF;
  color: #fff;
  padding: 30px 22px 26px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 44px rgba(0, 0, 0, .34);
  animation: jq-rise .34s cubic-bezier(.22, .68, .36, 1) both;
  max-height: 92vh;
  overflow-y: auto;
}

/* --- cerrar --- */

.jq-pop__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}

.jq-pop__close:hover { background: rgba(255, 255, 255, .28); }

.jq-pop__close:focus-visible,
.jq-pop__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* --- contenido --- */

.jq-pop__eyebrow {
  margin: 0 0 14px;
  padding-right: 44px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

.jq-pop__brand {
  margin: 0;
  font-size: clamp(40px, 13vw, 58px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 300;
}

.jq-pop__brand strong { font-weight: 700; }

.jq-pop__date {
  margin: 18px 0 0;
  font-size: clamp(20px, 5.6vw, 26px);
  line-height: 1.2;
  letter-spacing: -.5px;
  font-weight: 400;
}

.jq-pop__place {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .8);
}

/* El selector lleva `a` + dos clases a propósito: el sitio declara
   `.home-2027 a{color:inherit}` y, sin más peso, el texto saldría blanco
   sobre el fondo blanco del botón. */
.jq-pop a.jq-pop__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 16px 20px;
  background: #fff;
  color: #004FFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  min-height: 44px;
  transition: background .2s, color .2s;
}

.jq-pop a.jq-pop__cta span { font-size: 19px; }
.jq-pop a.jq-pop__cta:hover { background: #0b1220; color: #fff; }

/* --- marco Art Week --- */

.jq-pop__frame {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .26);
}

.jq-pop__frame > span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 12px;
}

.jq-pop__frame img {
  display: block;
  width: 190px;
  max-width: 62%;
  height: auto;
}

/* --- animaciones --- */

@keyframes jq-rise {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes jq-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ------------------------------------------------------------------
   Escritorio
   ------------------------------------------------------------------ */

@media (min-width: 700px) {
  .jq-pop { align-items: center; padding: 32px; }

  .jq-pop__card {
    max-width: 620px;
    padding: 48px 52px 44px;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
    animation-name: jq-pop-in;
  }

  .jq-pop__close { top: 18px; right: 18px; }

  .jq-pop__eyebrow { font-size: 11px; margin-bottom: 18px; }
  .jq-pop__brand   { font-size: 76px; }
  .jq-pop__date    { font-size: 30px; margin-top: 22px; }
  .jq-pop__place   { font-size: 15px; }

  .jq-pop a.jq-pop__cta {
    margin-top: 32px;
    padding: 18px 24px;
    font-size: 15px;
  }

  .jq-pop__frame { margin-top: 34px; padding-top: 24px; }
  .jq-pop__frame img { width: 230px; }

  @keyframes jq-pop-in {
    from { transform: translateY(14px) scale(.985); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }
}

/* Pantallas muy bajas: evita que la tarjeta desborde. */
@media (max-height: 620px) and (min-width: 700px) {
  .jq-pop__card { padding: 30px 36px 28px; }
  .jq-pop__brand { font-size: 54px; }
  .jq-pop__date { font-size: 24px; margin-top: 16px; }
  .jq-pop__frame { margin-top: 22px; padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .jq-pop__card,
  .jq-pop__backdrop { animation: none; }
}
