/* Layout: header, navegación, contenedores, heroes */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 24px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid { display: grid; gap: 14px; }
.hide { display: none !important; }

/* Header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--hdr);
  background: linear-gradient(180deg, rgba(8, 8, 8, .9), rgba(8, 8, 8, .5) 70%, transparent);
  transition: background .3s var(--ease), box-shadow .3s;
}
.hdr.solid { background: rgba(8, 8, 8, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(200, 164, 93, .16); }
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-emblem { width: 40px; height: 40px; flex: none; }
.brand-emblem img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 8px rgba(143, 17, 27, .5)); }
.brand-txt { font-family: var(--serif); line-height: 1; text-transform: uppercase; }
.brand-txt small { display: block; font: 500 .56rem/1 var(--sans); letter-spacing: .5em; color: var(--gold); margin-bottom: 3px; padding-left: .1em; }
.brand-txt b { font-weight: 600; font-size: 1.18rem; letter-spacing: .04em; }
.brand-txt b i { font-style: normal; color: var(--red-hot); }
.hdr-menu { display: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); background: rgba(8, 8, 8, .45); transition: background .25s, color .25s; }
.icon-btn:hover { background: var(--gold); color: #120d03; }
.icon-btn .ic { width: 20px; height: 20px; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); min-height: 40px; }
.back-btn .ic { width: 18px; height: 18px; }

/* Bottom nav */
.bnav {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: var(--safe-b); background: rgba(9, 9, 9, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(200, 164, 93, .22);
}
.bnav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: var(--nav); color: #cfcac4; font: 500 .6rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; transition: color .25s; }
.bnav a .ic { width: 24px; height: 24px; }
.bnav a[aria-current="page"] { color: var(--red-hot); }
.bnav a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; background: linear-gradient(90deg, transparent, var(--red-hot), transparent); box-shadow: 0 0 12px rgba(229, 66, 79, .6); }
.bnav a + a::after { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: rgba(200, 164, 93, .14); }

main { display: block; padding-top: var(--hdr); padding-bottom: calc(var(--nav) + var(--safe-b) + 28px); min-height: 100vh; outline: none; }
main.has-hero { padding-top: 0; }
.view-in { animation: viewIn .5s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Heroes */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-art { position: relative; width: 100%; aspect-ratio: 1.38 / 1; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero-art::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(8, 8, 8, .55) 0, transparent 26%),
  linear-gradient(0deg, var(--bg) 0, rgba(8, 8, 8, .85) 24%, transparent 62%); }
.hero-body { position: relative; z-index: 2; margin-top: -92px; padding: 0 16px; }
.hero-body .wrap { padding: 0; }
.hero-home .hero-art { aspect-ratio: auto; height: 440px; }
.hero-home .hero-art img { position: absolute; left: -3%; top: 0; width: 272%; max-width: none; height: auto; }
.hero-home .hero-art::after { background:
  linear-gradient(180deg, rgba(8, 8, 8, .6) 0, transparent 22%),
  linear-gradient(90deg, rgba(8, 8, 8, .15) 0, rgba(8, 8, 8, .0) 40%, rgba(8, 8, 8, .85) 100%),
  linear-gradient(0deg, var(--bg) 0, rgba(8, 8, 8, .88) 26%, transparent 60%); }
.hero-home .hero-body { margin-top: -250px; }

/* Desktop */
@media (min-width: 640px) { .wrap { padding: 0 24px; } .hero-body { padding: 0 24px; } }
@media (min-width: 900px) {
  :root { --hdr: 72px; }
  .bnav { display: none; }
  main { padding-bottom: 72px; }
  .hdr { background: rgba(8, 8, 8, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(200, 164, 93, .16); }
  .hdr-menu { display: flex; align-items: center; gap: 4px; }
  .hdr-menu a { padding: 10px 14px; border-radius: 10px; font: 500 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #cfcac4; transition: color .2s, background .2s; }
  .hdr-menu a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
  .hdr-menu a[aria-current="page"] { color: var(--red-hot); background: rgba(143, 17, 27, .16); }
  .brand-emblem { width: 46px; height: 46px; }
  .wrap { padding: 0 32px; }
  .hero-body { padding: 0 32px; }

  /* hero de fase: texto a la izquierda, arte a la derecha */
  .hero-split { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; max-width: 1240px; margin: 0 auto; padding: calc(var(--hdr) + 28px) 32px 24px; gap: 32px; min-height: 460px; }
  .hero-split .hero-art { grid-column: 2; grid-row: 1; aspect-ratio: 1.38 / 1; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(143, 17, 27, .22); }
  .hero-split .hero-art::after { background: linear-gradient(0deg, rgba(8, 8, 8, .8) 0, transparent 40%); }
  .hero-split .hero-body { grid-column: 1; grid-row: 1; margin: 0; padding: 0; }
  .hero-home.hero-split .hero-art { aspect-ratio: auto; height: 440px; }
  .hero-home.hero-split .hero-art img { left: 0; width: 272%; }
  .hero-home.hero-split .hero-art::after { background: linear-gradient(0deg, rgba(8, 8, 8, .85) 0, transparent 38%); }
  .hero-home .hero-body { margin-top: 0; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .hero-art { aspect-ratio: 2 / 1; }
  .hero-home .hero-art { height: 480px; }
  .hero-home .hero-art img { width: 160%; left: -2%; }
}

/* recorte: oculta el texto incrustado en la parte baja de los pósteres */
@media (max-width: 899px) {
  .hero:not(.hero-home):not(.hero-wide) .hero-art { aspect-ratio: 1.55 / 1; }
  .hero:not(.hero-home):not(.hero-wide) .hero-art img { height: 118%; }
  .hero:not(.hero-home):not(.hero-wide) .hero-art::after { background:
    linear-gradient(180deg, rgba(8, 8, 8, .55) 0, transparent 26%),
    linear-gradient(0deg, var(--bg) 0, var(--bg) 24%, rgba(8, 8, 8, .85) 38%, transparent 72%); }
}

/* heros con fotografía horizontal (Vínculo Vivo, Código del Tacto) */
.hero-wide .hero-art { aspect-ratio: 1.8 / 1; }
.hero-wide .hero-art img { height: 100%; object-position: 50% 30%; }
@media (min-width: 900px) { .hero-split.hero-wide .hero-art { aspect-ratio: 1.8 / 1; } }
