:root {
  --charcoal: #0b0b0c;
  --coal: #131313;
  --night: #0f1724;
  --leather: #2f1d16;
  --leather-dark: #1b100d;
  --wood: #4a2f1d;
  --gold: #d9b66f;
  --gold-bright: #f0d38c;
  --parchment: #e8dcc4;
  --parchment-deep: #cdb88f;
  --ink: #2a1b0b;
  --wine: #692021;
  --wine-bright: #9b3532;
  --bottle: #203a2c;
  --mist: rgba(220, 227, 218, 0.16);
  --line: rgba(217, 182, 111, 0.42);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.62);
  --sidebar: 17rem;
  --max: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: #eee5d3;
  background:
    linear-gradient(rgba(6, 7, 12, 0.32), rgba(6, 7, 12, 0.5)),
    url("../img/bg-shandalar.jpg") center / cover fixed,
    var(--coal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.45)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  background: var(--gold-bright);
  border: 2px solid var(--ink);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  border-right: 4px ridge rgba(217, 182, 111, 0.34);
  background:
    linear-gradient(rgba(24, 25, 26, 0.92), rgba(11, 11, 12, 0.96)),
    url("../img/texture-stone.svg") center / cover;
  box-shadow: 14px 0 40px rgba(0, 0, 0, 0.72);
}

.brand {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 1.2rem 1rem;
  text-decoration: none;
  border-bottom: 2px solid rgba(217, 182, 111, 0.24);
}

.brand__sigil,
.mobile-brand__sigil {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  color: var(--gold-bright);
  background:
    radial-gradient(circle at 50% 38%, rgba(240, 211, 140, 0.22), transparent 54%),
    linear-gradient(145deg, #331816, #0c0c0e);
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.76), 0 0 18px rgba(217, 182, 111, 0.16);
  font-weight: 700;
}

.brand__copy strong,
.mobile-brand span:last-child {
  display: block;
  color: var(--gold-bright);
  font-size: 1.08rem;
  line-height: 1.1;
}

.brand__copy small {
  display: block;
  color: #d2c5aa;
  margin-top: 0.2rem;
}

.nav-list {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem 0.8rem;
}

.nav-link,
.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  color: #d8cbb4;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(74, 47, 29, 0.38), rgba(15, 23, 36, 0.08));
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active,
.mobile-nav__link.is-active {
  color: var(--gold-bright);
  border-color: rgba(217, 182, 111, 0.46);
  background: linear-gradient(90deg, rgba(105, 32, 33, 0.72), rgba(32, 58, 44, 0.28));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.28), 0 0 14px rgba(217, 182, 111, 0.12);
}

.nav-link:hover {
  transform: translateX(3px);
}

.nav-link__icon,
.mobile-nav__icon {
  width: 1.45rem;
  color: var(--gold);
  text-align: center;
}

.sidebar__footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 2px solid rgba(217, 182, 111, 0.24);
}

.language-block {
  margin-bottom: 1rem;
}

.language-block__label {
  display: block;
  margin-bottom: 0.45rem;
  color: #bcae90;
  font-size: 0.85rem;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.language-button {
  min-width: 2.35rem;
  min-height: 2rem;
  padding: 0.25rem 0.45rem;
  color: #d8cbb4;
  background: rgba(13, 13, 14, 0.6);
  border: 1px solid rgba(217, 182, 111, 0.32);
  border-radius: 5px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.language-button:hover,
.language-button:focus-visible,
.language-button.is-active {
  color: var(--ink);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.mobile-header {
  display: none;
}

.page {
  margin-left: var(--sidebar);
}

.section {
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
  border-bottom: 4px ridge rgba(217, 182, 111, 0.22);
}

.section-heading {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto 3rem;
}

.section-heading h2,
.hero h1 {
  margin: 0;
  color: var(--gold-bright);
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.88), 0 0 18px rgba(217, 182, 111, 0.14);
}

.section-heading p {
  max-width: 46rem;
  margin: 0.75rem 0 0;
  color: #d8cbb4;
}

.section-heading--compact {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-heading--compact p {
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: #c7d8bd;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero {
  display: grid;
  min-height: 92vh;
  place-items: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero__media,
.events__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img,
.events__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media img {
  opacity: 0.92;
}

.hero__shade,
.events__media span {
  position: absolute;
  inset: 0;
}

/* Mapa de eventos: se mantiene bien oscuro (hay texto encima) */
.events__media span {
  background:
    linear-gradient(0deg, rgba(10, 10, 11, 0.96), rgba(10, 10, 11, 0.32) 42%, rgba(10, 10, 11, 0.88)),
    linear-gradient(90deg, rgba(10, 10, 11, 0.94), transparent 34%, transparent 66%, rgba(10, 10, 11, 0.88));
}

/* Hero: dejamos respirar el cielo y la luna, oscurecemos suelo y bordes */
.hero__shade {
  background:
    linear-gradient(0deg, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.42) 30%, rgba(9, 9, 11, 0.06) 56%, rgba(9, 9, 11, 0.26) 100%),
    radial-gradient(132% 76% at 50% 32%, transparent 40%, rgba(9, 9, 11, 0.6));
}

.hero__content {
  position: relative;
  z-index: 4;
  width: min(100%, 48rem);
  text-align: center;
}

.hero h1 {
  font-size: 3.1rem;
}

.hero__subtitle {
  max-width: 38rem;
  margin: 1.2rem auto 0;
  color: #efe4cf;
  font-size: 1.18rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.relic-panel,
.parchment,
.image-relic,
.event-card,
.gallery-card {
  border-radius: 6px;
}

.relic-panel {
  padding: 2.4rem;
  border: 2px solid var(--line);
  background:
    linear-gradient(rgba(47, 29, 22, 0.88), rgba(15, 23, 36, 0.82)),
    url("../img/texture-dark.svg") center / cover;
  box-shadow: var(--shadow), inset 0 0 26px rgba(0, 0, 0, 0.72);
}

.gem-button,
.stone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.72rem 1.1rem;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(180deg, var(--gold-bright), #b98d45);
  border: 2px solid #5d3d13;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.gem-button:hover,
.gem-button:focus-visible,
.stone-link:hover,
.stone-link:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 0 20px rgba(217, 182, 111, 0.28), 0 10px 26px rgba(0, 0, 0, 0.56);
}

.gem-button--wide {
  width: 100%;
}

.gem-button--wine {
  color: #ffe5d9;
  background: linear-gradient(180deg, var(--wine-bright), #4c1518);
  border-color: #2d0d0e;
}

.stone-link {
  color: #eee5d3;
  background:
    linear-gradient(180deg, #30353a, #15191f);
  border-color: rgba(217, 182, 111, 0.28);
}

.fog {
  position: absolute;
  z-index: 2;
  left: -20%;
  right: -20%;
  height: 18rem;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 45%, var(--mist), transparent 56%),
    radial-gradient(ellipse at 55% 60%, rgba(198, 207, 195, 0.13), transparent 60%),
    radial-gradient(ellipse at 82% 35%, rgba(238, 226, 204, 0.12), transparent 58%);
  filter: blur(14px);
  opacity: 0.78;
  animation: fog-drift 22s linear infinite alternate;
}

.fog--one {
  top: 14%;
}

.fog--two {
  bottom: 13%;
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}

.candle-row {
  position: absolute;
  z-index: 5;
  display: flex;
  gap: 0.35rem;
}

.candle-row--hero {
  right: 10%;
  bottom: 13%;
}

.candle {
  position: relative;
  width: 0.75rem;
  height: 2.6rem;
  background: linear-gradient(90deg, #9a7a52, #f4dfad, #785431);
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(255, 178, 74, 0.2);
}

.candle::before {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 0.7rem;
  height: 1.05rem;
  content: "";
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 72%, #fff8c6 0 16%, #f5a642 38%, #bc4b2f 68%, transparent 70%);
  border-radius: 50% 50% 48% 48%;
  filter: blur(0.2px);
  animation: candle-flicker 1.8s ease-in-out infinite;
}

.candle--short {
  height: 2rem;
  margin-top: 0.6rem;
}

.candle--thin {
  width: 0.55rem;
  height: 2.3rem;
  margin-top: 0.3rem;
}

.assassin {
  position: absolute;
  z-index: 3;
  width: 4.2rem;
  height: 8.5rem;
  opacity: 0.78;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.8));
}

.assassin__head,
.assassin__cloak,
.assassin__blade {
  position: absolute;
  display: block;
}

.assassin__head {
  left: 1.52rem;
  top: 0.3rem;
  width: 1.2rem;
  height: 1.55rem;
  background: linear-gradient(160deg, #111, #2f1c1f);
  border: 1px solid rgba(217, 182, 111, 0.28);
  border-radius: 48% 48% 42% 42%;
}

.assassin__cloak {
  left: 0.8rem;
  top: 1.42rem;
  width: 2.75rem;
  height: 6.6rem;
  background: linear-gradient(135deg, #08080a 8%, #1c1115 58%, #060607);
  clip-path: polygon(50% 0, 88% 16%, 100% 100%, 12% 100%, 0 16%);
}

.assassin__blade {
  right: 0.05rem;
  top: 3.35rem;
  width: 0.28rem;
  height: 2.5rem;
  background: linear-gradient(#f2e7be, #7f8d8c);
  transform: rotate(32deg);
  box-shadow: 0 0 10px rgba(240, 211, 140, 0.3);
}

.assassin--hero {
  right: 13%;
  top: 21%;
}

.assassin--corner {
  right: 1.1rem;
  bottom: 1rem;
  transform: scale(0.78);
}

.assassin--events {
  right: 4%;
  top: 18%;
}

/* Velos semitransparentes: dejan ver la escena de fondo (bg-world) a través de la web */
.section--stone {
  background: linear-gradient(rgba(12, 12, 18, 0.5), rgba(9, 9, 14, 0.64));
}

.section--deep {
  background: linear-gradient(rgba(6, 8, 12, 0.44), rgba(9, 8, 13, 0.6));
}

.about__grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, var(--max));
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.parchment {
  position: relative;
  color: var(--ink);
  padding: 2rem;
  background:
    linear-gradient(rgba(232, 220, 196, 0.88), rgba(222, 203, 165, 0.9)),
    url("../img/texture-parchment.svg") center / cover;
  border: 2px solid #8c6e3f;
  box-shadow: var(--shadow), inset 0 0 28px rgba(96, 60, 23, 0.22);
}

.parchment p + p {
  margin-top: 1rem;
}

.parchment--tilted {
  transform: rotate(-1.2deg);
}

.wax-seal {
  position: absolute;
  right: -1rem;
  top: -1rem;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  color: #ffd7c9;
  background: radial-gradient(circle at 35% 28%, #b64239, var(--wine) 66%);
  border: 2px solid #4c1518;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(0, 0, 0, 0.28);
}

.image-relic {
  position: relative;
  overflow: hidden;
  min-height: 30rem;
  border: 2px solid var(--line);
  background: var(--leather-dark);
  box-shadow: var(--shadow);
}

.image-relic img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06);
}

.image-relic figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.7rem 0.85rem;
  color: #efe4cf;
  background: rgba(11, 11, 12, 0.72);
  border: 1px solid rgba(217, 182, 111, 0.28);
  border-radius: 5px;
}

.gallery {
  background: linear-gradient(rgba(9, 9, 14, 0.5), rgba(13, 13, 18, 0.66));
}

.gallery-grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, var(--max));
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border: 2px solid rgba(217, 182, 111, 0.36);
  background: var(--leather-dark);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46);
}

.gallery-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 37rem;
}

.gallery-card__image {
  position: absolute;
  inset: 0;
}

.gallery-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease, filter 600ms ease;
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(6, 6, 7, 0.9), rgba(6, 6, 7, 0.08) 58%, rgba(6, 6, 7, 0.44)),
    linear-gradient(90deg, rgba(105, 32, 33, 0.18), rgba(32, 58, 44, 0.1));
}

.gallery-card:hover .gallery-card__image img {
  transform: scale(1.045);
  filter: saturate(1.08) brightness(1.08);
}

.gallery-card__content {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
}

.gallery-card__tag {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.18rem 0.5rem;
  color: var(--ink);
  background: rgba(240, 211, 140, 0.9);
  border-radius: 4px;
  font-size: 0.82rem;
}

.gallery-card h3 {
  margin: 0 0 0.35rem;
  color: var(--gold-bright);
  font-size: 1.45rem;
  line-height: 1.15;
}

.gallery-card p {
  margin: 0;
  color: #eadfcb;
}

.gallery-card__watcher {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  color: rgba(240, 211, 140, 0.72);
  text-shadow: 0 0 14px rgba(217, 182, 111, 0.28);
}

.events {
  min-height: 45rem;
}

.events__media img {
  opacity: 0.55;
}

.section-heading--on-dark {
  text-align: center;
}

.section-heading--on-dark p {
  margin-left: auto;
  margin-right: auto;
}

.events-list {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, var(--max));
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.event-card {
  position: relative;
  display: flex;
  min-height: 26rem;
  flex-direction: column;
  padding: 2rem 1.4rem 1.4rem;
  color: var(--ink);
  background:
    linear-gradient(rgba(232, 220, 196, 0.9), rgba(210, 188, 143, 0.92)),
    url("../img/texture-parchment.svg") center / cover;
  border: 2px solid #846335;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.54);
}

.event-card:nth-child(1) {
  transform: rotate(1deg);
}

.event-card:nth-child(2) {
  transform: rotate(-1.4deg);
}

.event-card:nth-child(3) {
  transform: rotate(1.8deg);
}

.event-card::before {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  width: 1.35rem;
  height: 1.35rem;
  content: "";
  transform: translateX(-50%);
  background: radial-gradient(circle, #6f7172 0 28%, #1b1d1f 31% 100%);
  border: 2px solid #151515;
  border-radius: 50%;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.42);
}

.event-card h3 {
  margin: 0;
  padding-bottom: 0.75rem;
  color: #241505;
  border-bottom: 1px solid rgba(96, 65, 24, 0.34);
  font-size: 1.35rem;
  line-height: 1.2;
  text-align: center;
}

.event-card p {
  margin: 1rem 0;
}

.event-card dl {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
}

.event-card__row {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 0.5rem;
}

.event-card dt {
  color: #603912;
  font-weight: 700;
}

.event-card dd {
  margin: 0;
}

.event-card .gem-button {
  margin-top: auto;
}

.contact__wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 42rem);
  margin: 0 auto;
}

.contact__quote {
  color: #d8cbb4;
  font-style: italic;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  color: #2b1a08;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 244, 219, 0.35);
  border: 1px solid rgba(84, 53, 18, 0.4);
  border-radius: 5px;
  padding: 0.72rem 0.8rem;
  outline: none;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: #4d2e0d;
  box-shadow: 0 0 0 3px rgba(105, 32, 33, 0.16);
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: #3e250b;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0.5rem 0.8rem;
  color: #eee5d3;
  text-decoration: none;
  background: rgba(15, 23, 36, 0.72);
  border: 1px solid rgba(217, 182, 111, 0.36);
  border-radius: 5px;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.mobile-nav {
  display: none;
}

@keyframes fog-drift {
  from {
    transform: translateX(-5%);
  }
  to {
    transform: translateX(7%);
  }
}

@keyframes candle-flicker {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.9;
  }
  45% {
    transform: translateX(-48%) scale(0.9, 1.08);
    opacity: 1;
  }
  70% {
    transform: translateX(-54%) scale(1.05, 0.95);
    opacity: 0.82;
  }
}

@media (max-width: 980px) {
  .sidebar {
    display: none;
  }

  .mobile-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    display: flex;
    min-height: 4.6rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.65rem 0.85rem;
    background:
      linear-gradient(rgba(15, 15, 16, 0.94), rgba(24, 16, 14, 0.94)),
      url("../img/texture-dark.svg") center / cover;
    border-bottom: 2px solid rgba(217, 182, 111, 0.32);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.46);
  }

  .mobile-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
    color: var(--gold-bright);
    text-decoration: none;
  }

  .mobile-brand__sigil {
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    font-size: 0.85rem;
  }

  .mobile-brand span:last-child {
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .language-switcher--compact {
    justify-content: flex-end;
  }

  .language-switcher--compact .language-button {
    min-width: 2rem;
    min-height: 1.9rem;
    padding: 0.2rem 0.35rem;
    font-size: 0.8rem;
  }

  .page {
    margin-left: 0;
    padding-top: 4.6rem;
    padding-bottom: 4.4rem;
  }

  .section {
    padding: 4.4rem 1rem;
  }

  .hero {
    min-height: 48rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero__subtitle {
    font-size: 1.04rem;
  }

  .relic-panel {
    padding: 1.5rem;
  }

  .about__grid,
  .gallery-grid,
  .events-list {
    grid-template-columns: 1fr;
  }

  .gallery-card--featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 23rem;
  }

  .about__image,
  .image-relic img {
    min-height: 24rem;
    height: 24rem;
  }

  .event-card,
  .event-card:nth-child(1),
  .event-card:nth-child(2),
  .event-card:nth-child(3),
  .parchment--tilted {
    transform: none;
  }

  .assassin--hero {
    right: 4%;
    top: 18%;
    transform: scale(0.78);
  }

  .assassin--events {
    display: none;
  }

  .candle-row--hero {
    right: 1rem;
    bottom: 4.8rem;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 4.25rem;
    background:
      linear-gradient(rgba(12, 12, 13, 0.96), rgba(20, 13, 12, 0.96)),
      url("../img/texture-dark.svg") center / cover;
    border-top: 2px solid rgba(217, 182, 111, 0.32);
    box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.48);
  }

  .mobile-nav__link {
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    min-width: 0;
    min-height: 4.25rem;
    padding: 0.35rem 0.15rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.76rem;
    text-align: center;
  }

  .mobile-nav__icon {
    width: auto;
    font-size: 1.1rem;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 43rem;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero h1,
  .section-heading h2 {
    font-size: 2rem;
  }

  .event-card__row {
    grid-template-columns: 1fr;
    gap: 0.05rem;
  }

  .contact-form {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================================
   BLOG / Bitácora (contenido dinámico desde D1)
   ===================================================== */
.blog-list {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, var(--max));
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid rgba(217, 182, 111, 0.32);
  background:
    linear-gradient(rgba(232, 220, 196, 0.96), rgba(205, 184, 143, 0.96)),
    url("../img/texture-parchment.svg") center / cover;
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46);
}

.blog-card__media {
  height: 12rem;
  overflow: hidden;
  border-bottom: 2px solid rgba(74, 47, 29, 0.4);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.3rem 1.4rem 1.5rem;
}

.blog-card__date {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine);
}

.blog-card__title {
  margin: 0;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.15;
}

.blog-card__excerpt {
  margin: 0;
  color: #4a3720;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: #3a2a15;
  border-top: 1px solid rgba(74, 47, 29, 0.28);
  padding-top: 0.8rem;
}

.blog-card__body p {
  margin: 0;
}

.blog-card__toggle {
  align-self: flex-start;
  margin-top: 0.4rem;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--parchment-deep);
  font-style: italic;
}

/* Enlace discreto al panel de administración */
.admin-sigil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-top: 0.6rem;
  color: rgba(217, 182, 111, 0.45);
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid rgba(217, 182, 111, 0.22);
  border-radius: 50%;
  transition: color 200ms ease, border-color 200ms ease;
}

.admin-sigil:hover,
.admin-sigil:focus-visible {
  color: var(--gold-bright);
  border-color: var(--line);
}

@media (max-width: 720px) {
  .blog-list {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   Galería navegable: portadas + visor (lightbox)
   ===================================================== */
.gallery-card--cover { cursor: pointer; }

.gallery-card__enter {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  color: rgba(240, 211, 140, 0.9);
  font-size: 1.15rem;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.65);
}

.gallery-card--cover:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.blog-card__gallery {
  align-self: flex-start;
  margin-top: 0.6rem;
  text-decoration: none;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(6, 6, 7, 0.93);
  backdrop-filter: blur(2px);
}

.lightbox[hidden] { display: none; }

.lightbox__stage {
  margin: 0;
  max-width: min(92vw, 60rem);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #000;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

.lightbox__cap {
  color: var(--parchment);
  font-style: italic;
  text-align: center;
}

.lightbox__counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  text-align: center;
  color: var(--gold);
  font-size: 0.9rem;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 150ms, color 150ms;
}

.lightbox__close { top: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; font-size: 1.05rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; font-size: 1.9rem; line-height: 1; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--wine);
  color: #fff;
}

@media (max-width: 720px) {
  .lightbox { padding: 1rem; }
  .lightbox__nav { width: 2.6rem; height: 2.6rem; font-size: 1.5rem; }
  .lightbox__nav--prev { left: 0.4rem; }
  .lightbox__nav--next { right: 0.4rem; }
}

/* Evento con inscripciones cerradas (sin botón «Solicitar») */
.event-card__closed {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.5rem 1rem;
  color: var(--parchment-deep);
  border: 1px dashed rgba(217, 182, 111, 0.5);
  border-radius: 6px;
  font-style: italic;
  letter-spacing: 0.03em;
}
