@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@300;400&display=swap');

:root {
  --marfil: #F7F3EE;
  --crema: #EDE6D9;
  --crema-oscura: #E0D5C5;
  --burdeos: #8B3A52;
  --burdeos-claro: #A8506A;
  --oro: #B8965A;
  --oro-claro: #D4B07A;
  --texto: #2E1E14;
  --texto-suave: #7A6A60;
  --texto-muy-suave: #A89A90;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'EB Garamond', serif; background-color: var(--marfil); color: var(--texto); overflow-x: hidden; }

/* ─── NAV ─────────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 999999;
  padding: 1.4rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

nav.scrolled { background: transparent; box-shadow: none; backdrop-filter: none; }

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--marfil);
  text-decoration: none;
  transition: color 0.4s;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 1.2rem 2rem;
  align-items: center;
}

.nav-links li:nth-child(5) { grid-column: 2; }
.nav-links li:nth-child(6) { grid-column: 3; }

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burdeos);
  text-decoration: none;
  position: relative;
  transition: color 0.4s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--oro);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--oro); }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 1rem;
  cursor: none;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 1px;
  background: var(--burdeos);
  transition: background 0.4s;
  transform-origin: center;
}
.hamburger:hover span { background: var(--oro); }

/* ─── NAV DIFERENCIAL ─────────────────────────────────────────── */

nav.nav-logo-dark .nav-logo              { color: var(--marfil) !important; }
nav.nav-links-dark .nav-links a          { color: var(--marfil) !important; }
nav.nav-links-dark .nav-links a:hover    { color: var(--oro-claro) !important; }
nav.nav-links-dark .hamburger span       { background: var(--marfil) !important; }
nav.nav-links-dark .hamburger:hover span { background: var(--oro-claro) !important; }
nav.nav-links-dark .lang-current         { color: var(--marfil) !important; border-color: rgba(247,243,238,.35) !important; }
nav.nav-links-dark .lang-current:hover   { color: var(--oro-claro) !important; border-color: var(--oro-claro) !important; }

/* ─── CURSOR ──────────────────────────────────────────────────── */

* { cursor: none !important; }

.cursor-dot {
  width: 8px; height: 8px;
  background: var(--oro);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 2147483647;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.3s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--oro);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 2147483646;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s;
  opacity: 0.6;
}
body.cursor-hover .cursor-dot  { transform: translate(-50%,-50%) scale(1.5); background: var(--burdeos); }
body.cursor-hover .cursor-ring { width: 44px; height: 44px; opacity: 0.4; }

/* ─── MENÚ OVERLAY ────────────────────────────────────────────── */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: #2A1F1F;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.menu-overlay.open { opacity: 1; pointer-events: all; }

.menu-close {
  position: absolute;
  top: 2rem; left: 3rem;
  background: none; border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--oro);
  cursor: none;
  z-index: 99999999;
  transition: color 0.3s;
}
.menu-close:hover { color: var(--marfil); }

.menu-nav { display: flex; flex-direction: column; gap: 0.2rem; }

.menu-link {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-style: italic;
  color: var(--crema-oscura);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  line-height: 1.4;
  transition: color 0.3s, transform 0.3s;
}
.menu-link::before {
  content: attr(data-num);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  font-style: normal;
  letter-spacing: 0.2em;
  color: var(--oro);
  opacity: 0.7;
  min-width: 2rem;
}
.menu-link:hover { color: var(--marfil); transform: translateX(1rem); }

.menu-footer {
  position: absolute;
  bottom: 3rem; left: 6rem;
}
.menu-footer p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--texto-muy-suave);
  margin-bottom: 0.3rem;
}

/* ─── HERO ────────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero-img-wrap { position: relative; overflow: hidden; }
.hero-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.05);
  animation: heroReveal 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes heroReveal {
  from { transform: scale(1.12); opacity: 0.6; }
  to   { transform: scale(1.0);  opacity: 1; }
}

/* ── NO TOCAR ESTE BLOQUE ── */
.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 90%, var(--marfil) 100%);
}
/* ── FIN BLOQUE INTOCABLE ── */

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 6rem 8rem;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300; font-size: 0.75rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--oro); margin-bottom: 1.8rem;
  animation: fadeUp 0.9s 0.4s ease both;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.8rem, 6vw, 7rem);
  line-height: 1.05; color: var(--texto);
  animation: fadeUp 0.9s 0.6s ease both;
}
.hero-name em { font-style: italic; color: var(--burdeos); }
.hero-divider { width: 60px; height: 1px; background: var(--oro); margin: 2rem 0; animation: fadeUp 0.9s 0.8s ease both; }
.hero-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 1.35rem; color: var(--texto-suave);
  font-style: italic; line-height: 1.7; max-width: 380px;
  animation: fadeUp 0.9s 1s ease both;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; right: 3rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: fadeUp 0.9s 1.4s ease both;
}
.hero-scroll span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--texto-muy-suave); writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--oro), transparent);
  animation: scrollPulse 2s 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SECCIONES COMUNES ───────────────────────────────────────── */

.section-label {
  font-family: 'Montserrat', sans-serif; font-weight: 300;
  font-size: 0.6rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--oro); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.15; color: var(--texto);
}
.section-title em { font-style: italic; color: var(--burdeos); }

.ornament { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.ornament-line { flex: 1; max-width: 60px; height: 1px; background: var(--oro); }
.ornament-diamond { width: 5px; height: 5px; background: var(--oro); transform: rotate(45deg); }

/* ─── SOBRE ───────────────────────────────────────────────────── */

#sobre { padding: 8rem 0; background: var(--marfil); }
.sobre-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
}
.sobre-img-col { position: relative; }
.sobre-img-frame { position: relative; width: 100%; padding-bottom: 130%; overflow: hidden; }
.sobre-img-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.sobre-img-accent {
  position: absolute; top: -1.5rem; left: -1.5rem;
  width: 60%; height: 60%;
  border: 1px solid var(--oro-claro); z-index: -1; opacity: 0.5;
}
.sobre-img-caption {
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif; font-size: 0.58rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--texto-muy-suave);
}
.sobre-text p { font-size: 1.05rem; line-height: 1.9; color: var(--texto-suave); margin-bottom: 1.2rem; }
.sobre-text p strong { color: var(--texto); font-weight: 500; }

/* ─── EVENTOS ─────────────────────────────────────────────────── */

#eventos {
  padding: 8rem 0;
  background: var(--crema);
  border-top: 1px solid var(--crema-oscura);
  border-bottom: 1px solid var(--crema-oscura);
}
.eventos-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 4rem;
  display: grid; grid-template-columns: 1fr; gap: 0;
  max-width: 700px;
}
.eventos-header { margin-bottom: 2.5rem; }
.eventos-lista { list-style: none; display: flex; flex-direction: column; gap: 0; }
.evento-item {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--crema-oscura);
}
.evento-item:first-child { border-top: 1px solid var(--crema-oscura); }
.evento-fecha {
  font-family: 'Montserrat', sans-serif; font-weight: 300;
  font-size: 1rem; letter-spacing: 0.15em;
  color: var(--oro); min-width: 9rem; white-space: nowrap;
}
.evento-sep { width: 1px; height: 2rem; background: var(--crema-oscura); flex-shrink: 0; }
.evento-info { flex: 1; }
.evento-programa {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-style: italic;
  color: var(--texto); line-height: 1.3; margin-bottom: 0.4rem;
}
.evento-lugar {
  font-family: 'Montserrat', sans-serif; font-weight: 300;
  font-size: 0.85rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--texto-muy-suave);
}
.eventos-lista--pasados .evento-programa { color: var(--texto-suave); }
.eventos-lista--pasados .evento-fecha    { color: var(--texto-muy-suave); }

/* ─── MEDIEVAL MX ─────────────────────────────────────────────── */

#medievalmx { padding: 8rem 0; background: var(--marfil); }
.medievalmx-inner { max-width: 1200px; margin: 0 auto; padding: 0 4rem; display: grid; grid-template-columns: 1fr 1.2fr; gap: 6rem; align-items: center; }
.medievalmx-text .section-title { margin-bottom: 0; }
.medievalmx-text p { font-size: 1.05rem; line-height: 1.9; color: var(--texto-suave); margin-bottom: 1.2rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0; }
.tag { font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--burdeos); border: 1px solid var(--burdeos); padding: 0.4rem 1rem; }
.medievalmx-fotos { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.6rem; }
.medievalmx-fotos img { width: 100%; height: auto; object-fit: cover; display: block; }
.medievalmx-fotos img:first-child { grid-column: 1 / -1; }

/* ─── ESCÚCHAME ───────────────────────────────────────────────── */

#escuchame { padding: 8rem 0; background: var(--marfil); }
.escuchame-inner { max-width: 1000px; margin: 0 auto; padding: 0 4rem; text-align: center; }
.escuchame-inner .section-label, .escuchame-inner .section-title, .escuchame-inner .ornament { display: flex; flex-direction: column; align-items: center; }
.escuchame-inner .section-label { display: block; }
.youtube-embed { margin-top: 3rem; position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: var(--crema); }
.youtube-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.youtube-link { display: inline-block; margin-top: 2rem; font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--burdeos); text-decoration: none; padding: 0.8rem 2rem; border: 1px solid var(--burdeos); transition: background 0.3s, color 0.3s; }
.youtube-link:hover { background: var(--burdeos); color: var(--marfil); }

/* ─── BITÁCORA ─────────────────────────────────────────────────── */

#bitacora {
  padding: 8rem 0 5rem;
  background: var(--texto);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.bitacora-header-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 4rem 3.5rem;
}
.bitacora-header-wrap .section-label { color: var(--oro); }
.bitacora-header-wrap .section-title { color: var(--marfil); }
.bitacora-header-wrap .section-title em { color: var(--oro-claro); }
.bitacora-intro {
  font-family: 'EB Garamond', serif;
  font-size: 1rem; font-style: italic;
  color: var(--texto-muy-suave); margin-top: 0.8rem; line-height: 1.6;
}
.bitacora-strip-wrap {
  overflow-x: auto; overflow-y: visible;
  padding: 1rem 4rem 3rem;
  scrollbar-width: thin; scrollbar-color: var(--oro) transparent;
  cursor: grab;
}
.bitacora-strip-wrap:active { cursor: grabbing; }
.bitacora-strip-wrap::-webkit-scrollbar { height: 3px; }
.bitacora-strip-wrap::-webkit-scrollbar-thumb { background: var(--oro); }
.bitacora-strip { display: flex; gap: 1.2rem; width: max-content; padding-bottom: 0.5rem; }
.bcard { flex-shrink: 0; width: 180px; cursor: none; position: relative; }
.bcard-inner {
  position: relative; overflow: hidden;
  border: 1px solid rgba(184,150,90,0.15);
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.35s ease, border-color 0.35s ease;
}
.bcard:hover .bcard-inner { transform: translateY(-10px) scale(1.04); box-shadow: 0 20px 40px rgba(0,0,0,0.5); border-color: rgba(184,150,90,0.5); }
.bcard-inner img { width: 100%; height: auto; display: block; filter: saturate(0.85) brightness(0.9); transition: filter 0.35s ease; }
.bcard:hover .bcard-inner img { filter: saturate(1) brightness(1); }
.bcard-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.6rem 0.7rem;
  background: linear-gradient(to top, rgba(20,10,5,0.85) 0%, transparent 100%);
  display: flex; align-items: flex-end; justify-content: flex-end;
  opacity: 0; transition: opacity 0.3s ease;
}
.bcard:hover .bcard-overlay { opacity: 1; }
.bcard-year { font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 0.55rem; letter-spacing: 0.2em; color: var(--oro-claro); }

/* ─── LIGHTBOX BITÁCORA ──────────────────────────────────────── */

.blight {
  display: none; position: fixed; inset: 0;
  background: rgba(20,10,5,0.97);
  z-index: 99999999;
  align-items: center; justify-content: center; flex-direction: column;
  padding: 2rem;
}
.blight.open { display: flex; }
.blight-inner { display: flex; align-items: flex-start; gap: 3rem; max-width: 1100px; width: 100%; max-height: 90vh; }
.blight-inner img { max-height: 82vh; max-width: 55vw; object-fit: contain; display: block; flex-shrink: 0; }
.blight-info { flex: 1; display: flex; flex-direction: column; gap: 1.2rem; padding-top: 1rem; }
.blight-num { font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 0.58rem; letter-spacing: 0.25em; color: var(--oro); }
.blight-desc { font-family: 'EB Garamond', serif; font-size: 1.1rem; font-style: italic; line-height: 1.85; color: var(--crema-oscura); }
.blight-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: var(--marfil); font-size: 1.4rem; cursor: none; z-index: 100; transition: color 0.3s; }
.blight-close:hover { color: var(--oro); }
.blight-prev, .blight-next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--oro); font-size: 1.8rem; cursor: none; z-index: 100; padding: 1rem; transition: color 0.3s, transform 0.3s; }
.blight-prev { left: 1rem; }
.blight-next { right: 1rem; }
.blight-prev:hover { color: var(--marfil); transform: translateY(-50%) translateX(-4px); }
.blight-next:hover { color: var(--marfil); transform: translateY(-50%) translateX(4px); }

/* ─── GALERÍA ─────────────────────────────────────────────────── */

#galeria { background: #1a1008; padding-bottom: 6rem; }
.galeria-header-wrap { max-width: 1200px; margin: 0 auto; padding: 8rem 4rem 5rem; }
.galeria-header-wrap .section-label { color: var(--oro); }
.galeria-header-wrap .section-title { color: var(--marfil); }
.galeria-header-wrap .section-title em { color: var(--oro-claro); }
.galeria-stack { display: flex; flex-direction: column; gap: 0; }
.stack-item { position: relative; width: 90%; margin: 0 auto 4rem; overflow: hidden; cursor: pointer; opacity: 1; transition: opacity 1s cubic-bezier(0.25,0.46,0.45,0.94), transform 1s cubic-bezier(0.25,0.46,0.45,0.94); }
.stack-item:nth-child(even) { margin-left: 10%; margin-right: 0; }
.stack-item img { width: 100%; height: auto; display: block; transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.8s ease; filter: saturate(0.7) brightness(0.92); }
.stack-item:hover img { transform: scale(1.03); filter: saturate(1) brightness(1); }
.stack-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 2rem 2.5rem; background: linear-gradient(to top, rgba(26,16,8,.6) 0%, transparent 50%); opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.stack-item:hover .stack-overlay { opacity: 1; }
.stack-num { font-family: 'Cormorant Garamond', serif; font-size: 5rem; font-weight: 300; font-style: italic; color: rgba(184,150,90,.3); line-height: 1; user-select: none; }
.stack-expand { font-family: 'Montserrat', sans-serif; font-size: 0.58rem; font-weight: 300; letter-spacing: 0.25em; text-transform: uppercase; color: var(--marfil); opacity: 0.7; }

/* ─── CONTACTO ────────────────────────────────────────────────── */

#contacto { padding: 8rem 0; background: var(--texto); }
.contacto-inner { max-width: 1200px; margin: 0 auto; padding: 0 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.contacto-text .section-label { color: var(--oro); }
.contacto-text .section-title { color: var(--marfil); }
.contacto-text .section-title em { color: var(--oro-claro); }
.contacto-text .ornament-line { background: var(--oro); }
.contacto-text .ornament-diamond { background: var(--oro); }
.contacto-text p { font-size: 1rem; line-height: 1.8; color: var(--texto-muy-suave); margin-bottom: 2rem; }
.contacto-email { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-style: italic; color: var(--oro-claro); text-decoration: none; border-bottom: 1px solid var(--oro); padding-bottom: 0.2rem; transition: color 0.3s; }
.contacto-email:hover { color: var(--marfil); }
.contacto-social { margin-top: 2.5rem; }
.contacto-social a { display: inline-flex; align-items: center; gap: 0.8rem; font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--texto-muy-suave); text-decoration: none; margin-right: 2rem; transition: color 0.3s; }
.contacto-social a:hover { color: var(--oro-claro); }
.contacto-img { position: relative; }
.contacto-img img { width: 100%; height: 500px; object-fit: cover; object-position: center top; display: block; filter: sepia(0.2) saturate(0.9); }
.contacto-img::before { content: ''; position: absolute; top: -1rem; right: -1rem; width: 100%; height: 100%; border: 1px solid var(--oro); opacity: 0.3; z-index: -1; }

/* ─── FOOTER ──────────────────────────────────────────────────── */

footer { background: var(--texto); border-top: 1px solid rgba(255,255,255,.05); padding: 2rem 4rem; display: flex; justify-content: space-between; align-items: center; }
footer p { font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--texto-muy-suave); }

/* ─── LIGHTBOX GALERÍA ────────────────────────────────────────── */

.lightbox { display: none; position: fixed; inset: 0; background: rgba(46,30,20,.95); z-index: 99999999; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 85vw; max-height: 85vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 2rem; right: 2rem; background: none; border: none; color: var(--marfil); font-size: 1.5rem; cursor: none; font-family: 'Montserrat', sans-serif; font-weight: 300; letter-spacing: 0.1em; }

/* ─── SCROLL REVEAL ───────────────────────────────────────────── */

.reveal { opacity: 1; transform: none; transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── SELECTOR DE IDIOMA ──────────────────────────────────────── */

.lang-selector { position: relative; display: flex; align-items: center; }
.lang-current { font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 0.85rem; letter-spacing: 0.22em; color: var(--burdeos); background: none; border: 1px solid rgba(139,58,82,.35); padding: 0.55rem 1.2rem; cursor: none; transition: color 0.4s, border-color 0.4s; }
.lang-current:hover { color: var(--oro); border-color: var(--oro); }
.lang-dropdown { position: absolute; top: calc(100% + 0.6rem); right: 0; list-style: none; background: #2A1F1F; border: 1px solid rgba(184,150,90,.2); min-width: 130px; z-index: 1000000; display: none; }
.lang-dropdown.open { display: block; }
.lang-dropdown li + li { border-top: 1px solid rgba(184,150,90,.08); }
.lang-dropdown li button { display: block; width: 100%; background: none; border: none; font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 0.85rem; letter-spacing: 0.18em; color: var(--crema-oscura); padding: 0.65rem 1.1rem; text-align: left; cursor: none; transition: color 0.2s, background 0.2s; }
.lang-dropdown li button:hover, .lang-dropdown li button.active { color: var(--oro); background: rgba(184,150,90,.07); }

/* ─── MENÚ OVERLAY IDIOMAS ────────────────────────────────────── */

.menu-lang { display: flex; align-items: center; gap: 0.55rem; margin-top: 2.5rem; }
.menu-lang-btn { background: none; border: none; font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 0.85rem; letter-spacing: 0.25em; color: var(--texto-muy-suave); cursor: none; transition: color 0.3s; padding: 0.4rem; }
.menu-lang-btn:hover, .menu-lang-btn.active { color: var(--oro); }
.menu-lang-sep { font-size: 0.7rem; color: var(--texto-muy-suave); opacity: 0.3; user-select: none; }

/* ─── MUSIC PLAYER ────────────────────────────────────────────── */

.music-player { position: fixed; bottom: 2.5rem; left: 2.5rem; z-index: 9000; display: flex; align-items: center; gap: 0.6rem; }
.music-btn { width: 48px; height: 48px; border-radius: 50%; background: rgba(46,30,20,0.85); border: 1px solid rgba(184,150,90,0.4); display: flex; align-items: center; justify-content: center; cursor: none; color: var(--oro); transition: background 0.3s, border-color 0.3s, transform 0.3s; backdrop-filter: blur(6px); flex-shrink: 0; }
.music-btn:hover { background: rgba(46,30,20,0.95); border-color: var(--oro); transform: scale(1.08); }
.music-icon { width: 16px; height: 20px; color: var(--oro); }
.music-controls { display: flex; flex-direction: column; gap: 0.3rem; }
.music-btn--sm { width: 28px; height: 28px; border-radius: 50%; background: rgba(46,30,20,0.7); border: 1px solid rgba(184,150,90,0.2); display: flex; align-items: center; justify-content: center; cursor: none; color: var(--oro); transition: background 0.3s, border-color 0.3s, transform 0.3s; backdrop-filter: blur(6px); flex-shrink: 0; }
.music-btn--sm:hover { background: rgba(46,30,20,0.95); border-color: var(--oro); transform: scale(1.1); }
.music-info { font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--marfil); background: rgba(46,30,20,0.85); border: 1px solid rgba(184,150,90,0.25); padding: 0.4rem 0.9rem; backdrop-filter: blur(6px); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateX(-6px); transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none; }
.music-info.visible { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — móvil (max 900px)
══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {

  nav { padding: 1.2rem 1.5rem; }
  .nav-links    { display: none !important; }
  .lang-selector { display: none !important; }
  .hamburger { display: flex !important; padding: 0.9rem; }
  .hamburger span { width: 28px; }

  nav.nav-logo-dark .nav-logo        { color: var(--marfil) !important; }
  nav.nav-links-dark .hamburger span { background: var(--marfil) !important; }
  .nav-logo { color: var(--marfil); font-size: 1rem; }

  .hero { grid-template-columns: 1fr; height: 100vh; }
  .hero-img-wrap { position: absolute; inset: 0; }
  .hero-img-wrap::after {
    background: linear-gradient(to top, rgba(20,10,5,0.88) 0%, rgba(20,10,5,0.50) 40%, transparent 70%);
  }
  .hero-text { position: relative; z-index: 2; padding: 0 1.8rem 5rem; justify-content: flex-end; height: 100vh; }
  .hero-eyebrow  { color: var(--oro-claro); }
  .hero-name     { color: var(--marfil); font-size: clamp(3rem, 12vw, 5rem); }
  .hero-name em  { color: var(--oro-claro); }
  .hero-subtitle { color: rgba(247,243,238,0.85); font-size: 1.1rem; }

  .sobre-inner, .medievalmx-inner, .contacto-inner { grid-template-columns: 1fr; gap: 3rem; padding: 0 1.5rem; }
  .eventos-inner { grid-template-columns: 1fr; gap: 4rem; padding: 0 1.5rem; }
  .medievalmx-fotos { grid-template-columns: 1fr; }
  .medievalmx-fotos img:first-child { grid-column: 1; }
  .stack-item { width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
  .contacto-img { display: none; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 2rem 1.5rem; }

  .menu-overlay { padding: 4rem 2.5rem; }
  .menu-footer  { left: 2.5rem; }

  .bitacora-header-wrap { padding: 0 1.5rem 2.5rem; }
  .bitacora-strip-wrap  { padding: 1rem 1.5rem 2.5rem; }
  .bcard { width: 140px; }
  .blight-inner { flex-direction: column; gap: 1.5rem; align-items: center; }
  .blight-inner img { max-width: 90vw; max-height: 55vh; }
  .blight-info { padding-top: 0; }
}

/* ─── MEDIEVALMX EXPANDIDO ──────────────────────────────────────── */

.mmx-expanded {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem 8rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.mmx-block {}

.mmx-body {
  font-family: 'EB Garamond', serif;
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--texto-suave);
  margin-top: 1rem;
}

/* Integrantes */
.mmx-members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.mmx-member {
  border-top: 1px solid var(--crema-oscura);
  padding-top: 1.2rem;
}

.mmx-member-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--texto);
  margin-bottom: 0.3rem;
}

.mmx-member-role {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro);
}

/* Acordeón repertorio */
.mmx-accordion {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--crema-oscura);
}

.mmx-acc-item {
  border-bottom: 1px solid var(--crema-oscura);
}

.mmx-acc-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--texto);
  padding: 1.2rem 0;
  cursor: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.mmx-acc-btn::after {
  content: '+';
  font-style: normal;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--oro);
  transition: transform 0.3s;
}

.mmx-acc-btn.open::after {
  transform: rotate(45deg);
}

.mmx-acc-btn:hover { color: var(--burdeos); }

.mmx-acc-body {
  display: none;
  padding: 0 0 1.5rem 1rem;
}

.mmx-acc-body.open { display: block; }

.mmx-acc-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mmx-acc-body li {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  color: var(--texto-suave);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.mmx-acc-body li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--oro);
}

.mmx-acc-body li em {
  color: var(--texto-muy-suave);
  font-size: 0.95rem;
}

/* Agenda */
.mmx-agenda {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mmx-agenda li {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--texto-suave);
  padding-left: 1.2rem;
  position: relative;
}

.mmx-agenda li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--oro);
  font-style: normal;
  font-size: 1rem;
}

/* Cita */
.mmx-quote-block {
  border-left: 2px solid var(--oro);
  padding-left: 2.5rem;
}

.mmx-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--texto);
  line-height: 1.75;
  quotes: none;
  margin-bottom: 1rem;
}

.mmx-quote-credit {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--texto-muy-suave);
}

/* Responsive mmx */
@media (max-width: 900px) {
  .mmx-expanded { padding: 0 1.5rem 5rem; gap: 3.5rem; }
  .mmx-members { grid-template-columns: 1fr; gap: 1.5rem; }
  .mmx-quote-block { padding-left: 1.5rem; }
}
