/* ═══════════════════════════════════════════════
   JUSTQRO · estilos compartidos (ES + EN)
   Azul de marca #1f4ef5 · letras en blanco · Eina 01
═══════════════════════════════════════════════ */

@font-face { font-family: "Eina 01"; src: url("../fonts/Eina01-Light.woff2") format("woff2"), url("../fonts/Eina01-Light.otf") format("opentype");          font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Eina 01"; src: url("../fonts/Eina01-LightItalic.woff2") format("woff2"), url("../fonts/Eina01-LightItalic.otf") format("opentype");    font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Eina 01"; src: url("../fonts/Eina01-Regular.woff2") format("woff2"), url("../fonts/Eina01-Regular.otf") format("opentype");        font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Eina 01"; src: url("../fonts/Eina01-RegularItalic.woff2") format("woff2"), url("../fonts/Eina01-RegularItalic.otf") format("opentype");  font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Eina 01"; src: url("../fonts/Eina01-SemiBold.woff2") format("woff2"), url("../fonts/Eina01-SemiBold.otf") format("opentype");       font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Eina 01"; src: url("../fonts/Eina01-SemiboldItalic.woff2") format("woff2"), url("../fonts/Eina01-SemiboldItalic.otf") format("opentype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Eina 01"; src: url("../fonts/Eina01-Bold.woff2") format("woff2"), url("../fonts/Eina01-Bold.otf") format("opentype");           font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Eina 01"; src: url("../fonts/Eina01-BoldItalic.woff2") format("woff2"), url("../fonts/Eina01-BoldItalic.otf") format("opentype");     font-weight: 700; font-style: italic; font-display: swap; }

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

:root {
  --blue:  #1f4ef5;
  --white: #ffffff;
  --bg:    var(--blue);
  --ink:   var(--white);
  --soft:  rgba(255, 255, 255, 0.86);
  --line:  rgba(255, 255, 255, 0.3);
  --max-w: 1360px;
  --px:    64px;
  --font:  "Eina 01", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--blue);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

::selection { background: var(--white); color: var(--blue); }
.section--white ::selection { background: var(--blue); color: var(--white); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--white); color: var(--blue);
  padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ── Bloques base ───────────────────────────── */

.section { background: var(--bg); color: var(--ink); padding: 128px 0; position: relative; }

.section--white {
  --bg:   var(--white);
  --ink:  var(--blue);
  --soft: rgba(31, 78, 245, 0.88);
  --line: rgba(31, 78, 245, 0.26);
}

.section--ruled, .section--white + .section--white { border-top: 1px solid var(--line); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }

.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Titulares: mismo juego que el logo, JUST en bold + QRO en light */
.title {
  font-size: clamp(34px, 5.2vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.title .lt, .display .lt { font-weight: 300; }

.body { color: var(--soft); max-width: 560px; }
.body p + p { margin-top: 18px; }
.body strong { color: var(--ink); font-weight: 600; }

/* ── Botones ────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  border: 1.5px solid var(--ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 26px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: transparent; color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.btn .arr { font-weight: 400; transition: transform 0.2s ease; }
.btn:hover .arr { transform: translate(2px, -2px); }

/* ── Aparición al hacer scroll ──────────────── */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ── Cabecera ───────────────────────────────── */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  padding: 26px var(--px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.topbar a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.topbar a:hover { border-color: currentColor; }

.lang { display: flex; gap: 12px; padding-left: 28px; border-left: 1px solid var(--line); }
.lang a { opacity: 0.6; }
.lang a[aria-current="true"] { opacity: 1; border-color: currentColor; }

/* ── Hero ───────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 124px 0 72px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 72px;
  align-items: end;
}

.hero__logo { width: clamp(260px, 31vw, 460px); height: auto; margin: 0 0 48px -3px; }

.hero__eyebrow { margin-bottom: 20px; }

.display {
  display: block;
  font-size: clamp(44px, 6.6vw, 100px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__lead { margin-top: 30px; max-width: 500px; font-size: 18px; color: var(--soft); }
.hero__lead em { font-style: italic; font-weight: 600; color: var(--white); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero__date { font-size: 22px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.hero__place a { text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.hero__place a:hover { border-bottom-color: transparent; }
.hero__place { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5; }

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1.5px solid var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.countdown[hidden] { display: none; }
.countdown::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--white);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Carrusel de obras (como el reel de redes) */
.reel { display: block; text-decoration: none; }

.reel__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.reel__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.reel__frame img.on { opacity: 1; }

.reel__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.reel__count { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── La feria ───────────────────────────────── */

.intro__grid { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: 48px; }

.statement {
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 900px;
}
.statement strong { font-weight: 700; }

.intro .body { margin-top: 40px; max-width: 620px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 88px;
  list-style: none;
}
.stats li { border-top: 1px solid var(--line); padding-top: 20px; }
.stats__n { display: block; font-size: clamp(52px, 6.4vw, 92px); font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.stats__t { display: block; margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5; max-width: 200px; }

/* ── Galerías confirmadas ───────────────────── */

.galleries__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px 72px;
  align-items: end;
  margin-bottom: 72px;
}
.galleries__head .label { margin-bottom: 22px; }
.galleries__side .body { margin-bottom: 26px; }

.g-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 24px; list-style: none; }

.g-card { display: block; text-decoration: none; height: 100%; }

.g-card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: rgba(31, 78, 245, 0.08); }
.g-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.g-card:hover .g-card__media img { transform: scale(1.04); }

.g-card__go {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--blue); color: var(--white);
  font-size: 18px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.g-card:hover .g-card__go, .g-card:focus-visible .g-card__go { opacity: 1; transform: none; }

.g-card__name { margin-top: 16px; font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; }
.g-card__name .lc { text-transform: none; }
.g-card__city { margin-top: 5px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.g-card__artists { margin-top: 10px; font-size: 14px; font-weight: 600; font-style: italic; line-height: 1.35; letter-spacing: 0.03em; text-transform: uppercase; }

.g-more-li { grid-column: span 2; }
.g-more {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
  min-height: 260px;
  padding: 32px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}
.g-more__t { font-size: clamp(34px, 4vw, 58px); font-weight: 700; line-height: 0.96; letter-spacing: -0.015em; text-transform: uppercase; }
.g-more__t .lt { font-weight: 300; }
.g-more__b { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.6; }
.g-more__arr { font-size: 30px; line-height: 1; font-weight: 300; transition: transform 0.25s ease; }
.g-more:hover .g-more__arr { transform: translate(4px, -4px); }

.partner { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.partner a { text-underline-offset: 4px; }

/* ── Lo que viene ───────────────────────────── */

.soon__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }

.bigcount__n { display: block; font-size: clamp(150px, 25vw, 380px); font-weight: 700; line-height: 0.78; letter-spacing: -0.05em; margin-left: -0.04em; font-variant-numeric: tabular-nums; }
.bigcount__n--text { font-size: clamp(84px, 13vw, 200px); line-height: 0.9; letter-spacing: -0.03em; }
.bigcount__t { display: block; margin-top: 28px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }

.soon .label { margin-bottom: 22px; }
.soon .body { margin-top: 30px; }

.soon__list { list-style: none; margin-top: 44px; border-bottom: 1px solid var(--line); }
.soon__list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 19px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.2; }
.tag { flex-shrink: 0; padding: 6px 10px; border: 1.5px solid currentColor; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; white-space: nowrap; }

.soon__cta { margin-top: 40px; }

/* ── Art Week Querétaro ─────────────────────── */

.awq__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.awq__tile { background: var(--blue); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 10%; }
.awq__tile img { width: 100%; height: auto; }
.awq .label { margin-bottom: 22px; }
.awq .body { margin-top: 30px; }
.awq__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.awq__tile { transition: opacity 0.2s ease; }
.awq__tile:hover { opacity: 0.9; }

/* ── Preguntas frecuentes ───────────────────── */

.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px 72px; align-items: start; }
.faq .label { margin-bottom: 22px; }
.faq__list { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex-shrink: 0; font-size: 28px; font-weight: 300; line-height: 1; transition: transform 0.25s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item h3 { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: 0.01em; }
.faq__item p { padding: 0 44px 26px 0; color: var(--soft); max-width: 640px; }
.faq__item a { text-underline-offset: 3px; }

/* ── Contacto ───────────────────────────────── */

.contact .label { margin-bottom: 22px; }
.contact__q { font-size: clamp(22px, 2.6vw, 34px); font-weight: 300; line-height: 1.2; max-width: 640px; }
.contact__mail {
  display: inline-block;
  margin-top: 26px;
  font-size: clamp(30px, 7vw, 108px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 3px no-repeat;
  padding-bottom: 8px;
  transition: background-size 0.35s ease;
}
.contact__mail:hover { background-size: 100% 3px; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

/* ── Pie ────────────────────────────────────── */

.footer { background: var(--blue); color: var(--white); padding: 64px 0 36px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.footer__logo { height: 62px; width: auto; margin-left: -2px; }
.footer__tag { margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.6; }
.footer__awq { height: 70px; width: auto; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px;
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.footer__bottom a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.footer__bottom a:hover { border-color: currentColor; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* ── Responsive ─────────────────────────────── */

@media (max-width: 1100px) {
  .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-more-li { grid-column: span 3; }
}

@media (max-width: 900px) {
  :root { --px: 24px; }
  body { font-size: 16px; }

  .section { padding: 84px 0; }

  .topbar { gap: 18px; padding-top: 18px; padding-bottom: 18px; }
  .lang { padding-left: 18px; }

  .hero { min-height: 0; padding: 96px 0 64px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .hero__logo { width: min(78%, 300px); margin-bottom: 36px; }
  .display { font-size: clamp(40px, 12.6vw, 88px); }
  .hero__lead { font-size: 17px; }
  .countdown { margin-left: 0; }
  .reel { max-width: 520px; }

  .intro__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .stats { gap: 0 16px; margin-top: 64px; }

  .galleries__head { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 52px; }

  .soon__grid, .awq__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .faq__item h3 { font-size: 17px; }
  .faq__item p { padding-right: 0; }

  .footer__logo { height: 50px; }
  .footer__awq { height: 58px; }
}

@media (max-width: 640px) {
  .topbar .topbar__hide { display: none; }

  .hero__cta .btn, .contact__cta .btn, .soon__cta .btn, .awq__cta .btn { width: 100%; justify-content: space-between; }

  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
  .g-more-li { grid-column: span 2; }
  .g-more { min-height: 220px; padding: 24px; }
  .g-card__name { font-size: 14px; }
  .g-card__artists { font-size: 12px; }
  .g-card__go { display: none; }

  .soon__list li { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .countdown::before { animation: none; }
  .reel__frame img, .g-card__media img { transition: none; }
}
