/* ==========================================================================
   WUNDERKAMMER BLACKWOOD — ESTILOS VICTORIANOS Y STEAMPUNK
   ========================================================================== */

:root {
  --wood-darkest: #0f0705;
  --wood-dark: #1b0e0a;
  --wood-mid: #2b1812;
  --wood-grain: #3d221a;
  --velvet-burgundy: #2e0811;
  --velvet-emerald: #0b1c14;
  --brass-bright: #ecd58c;
  --brass-base: #c59b27;
  --brass-shadow: #6b4e13;
  --brass-patina: #4a5d4e;
  --parchment-light: #fbf5e6;
  --parchment-base: #ebdcc0;
  --parchment-aged: #d4c19c;
  --parchment-border: #9f8863;
  --ink-black: #1a1614;
  --ink-faded: #443c37;
  --ink-blood: #6b1414;
  
  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-header: 'Cinzel', 'Marcellus', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-quote: 'Playfair Display', Georgia, serif;
  
  --shadow-brass: 0 4px 12px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 235, 175, 0.6);
  --shadow-case: 0 12px 28px rgba(0, 0, 0, 0.85), inset 0 0 40px rgba(0, 0, 0, 0.9);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--wood-darkest);
  color: var(--parchment-base);
  overflow-x: hidden;
  max-width: 100vw;
}

body.victorian-theme {
  font-family: var(--font-serif);
  background: radial-gradient(circle at 50% 20%, #20100a 0%, #120805 60%, #080302 100%);
  color: var(--parchment-base);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  cursor: default;
}

/* Efectos ambientales de grano y viñeta */
.vignette-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 998;
}

.grain-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  opacity: 0.04;
  background-image: repeating-radial-gradient(#ffffff 0 0.0001%, transparent 0 0.0004%);
  z-index: 997;
}

/* ==========================================================================
   NAVEGACIÓN SUPERIOR
   ========================================================================== */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  background: linear-gradient(180deg, rgba(15, 7, 5, 0.95) 0%, rgba(27, 14, 10, 0.85) 100%);
  border-bottom: 2px solid var(--brass-shadow);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(4px);
}

.nav-seal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.seal-icon {
  color: var(--brass-base);
  font-size: 1.4rem;
  text-shadow: 0 0 10px rgba(197, 155, 39, 0.5);
}

.est-tag {
  font-family: var(--font-header);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: var(--brass-bright);
}

.nav-controls {
  display: flex;
  gap: 0.75rem;
}

/* Botones de Estilo Anticuario / Latón */
.btn-antiquarian {
  background: linear-gradient(180deg, #382419 0%, #1f120c 100%);
  color: var(--parchment-base);
  border: 1px solid var(--brass-shadow);
  padding: 0.45rem 0.9rem;
  font-family: var(--font-header);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 235, 175, 0.15), 0 2px 5px rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.btn-antiquarian:hover {
  background: linear-gradient(180deg, #4d3324 0%, #2b1810 100%);
  border-color: var(--brass-base);
  color: var(--brass-bright);
  box-shadow: inset 0 1px 0 rgba(255, 235, 175, 0.3), 0 0 10px rgba(197, 155, 39, 0.3);
}

.btn-antiquarian.active {
  border-color: var(--brass-bright);
  color: var(--brass-bright);
  background: linear-gradient(180deg, #4d1c10 0%, #290d07 100%);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.8), 0 0 12px rgba(236, 213, 140, 0.4);
}

/* ==========================================================================
   HERO / FACHADA DEL GABINETE
   ========================================================================== */
.hero-sanctuary {
  padding: 3.5rem 1.5rem 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ornate-frame-outer {
  max-width: 950px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #4a281a 0%, #1f0f09 50%, #3e2216 100%);
  border: 3px solid var(--brass-shadow);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95), inset 0 0 15px rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  position: relative;
}

.ornate-frame-inner {
  padding: 3.5rem 2.5rem;
  background: radial-gradient(circle at 50% 30%, #24130d 0%, #150906 100%);
  border: 1px solid rgba(197, 155, 39, 0.35);
  text-align: center;
  position: relative;
  outline: 1px dashed rgba(197, 155, 39, 0.2);
  outline-offset: -8px;
}

.header-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.victorian-flourish {
  width: 120px;
  height: 35px;
  color: var(--brass-base);
}

.hero-badge {
  font-family: var(--font-header);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--brass-bright);
  text-transform: uppercase;
  background: rgba(10, 4, 3, 0.6);
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(197, 155, 39, 0.3);
}

.museum-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--brass-bright);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.4);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.museum-subtitle {
  font-family: var(--font-header);
  font-size: 1.2rem;
  color: var(--parchment-aged);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.curator-quote {
  background: rgba(12, 6, 4, 0.6);
  border-left: 2px solid var(--brass-base);
  border-right: 2px solid var(--brass-base);
  padding: 1.3rem 2rem;
  margin: 1.5rem auto 2.2rem;
  max-width: 720px;
  position: relative;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--parchment-base);
}

.curator-quote p {
  margin-bottom: 0.5rem;
}

.curator-quote cite {
  font-family: var(--font-header);
  font-size: 0.85rem;
  color: var(--brass-base);
  font-style: normal;
  display: block;
  letter-spacing: 0.05em;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--brass-shadow);
  line-height: 0;
  vertical-align: -0.4em;
  padding: 0 0.3rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Botones Principales */
.btn-brass-primary {
  background: linear-gradient(180deg, #d4af37 0%, #aa821d 60%, #7d5b12 100%);
  color: #1a1005;
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border: 1px solid #ffd966;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.25s ease;
}

.btn-brass-primary:hover {
  background: linear-gradient(180deg, #ebd171 0%, #c49929 60%, #946f1b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(197, 155, 39, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-parchment-secondary {
  background: rgba(31, 18, 12, 0.8);
  color: var(--parchment-light);
  font-family: var(--font-header);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.8rem;
  border: 1px solid var(--brass-base);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
}

.btn-parchment-secondary:hover {
  background: rgba(45, 25, 17, 0.9);
  border-color: var(--brass-bright);
  color: var(--brass-bright);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECCIÓN DE VITRINAS (CABINET SPECIMENS)
   ========================================================================== */
.cabinet-section {
  max-width: 1250px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.divider-line::before, .divider-line::after {
  content: "";
  display: block;
  height: 1px;
  width: 120px;
  background: linear-gradient(90deg, transparent, var(--brass-base), transparent);
}

.divider-line .gem {
  color: var(--brass-base);
  font-size: 1.1rem;
}

.section-title {
  font-family: var(--font-header);
  font-size: 2.3rem;
  color: var(--brass-bright);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--parchment-aged);
  font-style: italic;
}

/* Categorías en forma de Píldoras Victoriana */
.cabinet-categories {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cat-pill {
  background: rgba(22, 11, 8, 0.8);
  border: 1px solid var(--brass-shadow);
  color: var(--parchment-aged);
  font-family: var(--font-header);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

.cat-pill:hover {
  background: rgba(38, 20, 14, 0.9);
  border-color: var(--brass-base);
  color: var(--brass-bright);
}

.cat-pill.active {
  background: linear-gradient(180deg, #381a10 0%, #1f0d07 100%);
  border-color: var(--brass-bright);
  color: var(--brass-bright);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25), inset 0 0 5px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   CUADRÍCULA DE VITRINAS (SPECIMEN CARDS)
   ========================================================================== */
.specimens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.2rem;
}

/* Vitrina individual: Caja de madera noble con marco de bronce y cristal */
.specimen-card {
  background: radial-gradient(circle at 50% 30%, #1c0e09 0%, #0d0604 100%);
  border: 3px solid #3d2319;
  border-radius: 5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85), inset 0 0 30px rgba(0, 0, 0, 0.95);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.specimen-card::before {
  /* Reflejo de cristal */
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 200%; height: 100%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.12) 50%, transparent 55%);
  pointer-events: none;
  transition: transform 0.75s ease;
  z-index: 10;
}

.specimen-card:hover {
  transform: translateY(-6px);
  border-color: var(--brass-base);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.95), 0 0 25px rgba(197, 155, 39, 0.2);
}

.specimen-card:hover::before {
  transform: translateX(50%);
}

.card-specimen-view {
  height: 220px;
  background: radial-gradient(circle at center, #1b261d 0%, #0d120e 70%, #070908 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 2px solid var(--brass-shadow);
  padding: 1.5rem;
}

/* Fondos temáticos por categoría de vitrina */
.card-specimen-view.cat-criptozoologia {
  background: radial-gradient(circle at center, #261614 0%, #130a09 80%);
}
.card-specimen-view.cat-reliquias {
  background: radial-gradient(circle at center, #2a2212 0%, #141008 80%);
}
.card-specimen-view.cat-botanica {
  background: radial-gradient(circle at center, #13241b 0%, #08120d 80%);
}
.card-specimen-view.cat-cartografia {
  background: radial-gradient(circle at center, #231b14 0%, #0f0b08 80%);
}

.specimen-svg-art {
  width: 100%;
  height: 100%;
  max-height: 160px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
  transition: transform 0.4s ease;
}

.specimen-card:hover .specimen-svg-art {
  transform: scale(1.07);
}

.specimen-tag-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 8, 5, 0.85);
  border: 1px solid var(--brass-shadow);
  color: var(--brass-bright);
  font-family: var(--font-header);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* Placa de Latón con Nombre Grabado */
.card-brass-plaque {
  background: linear-gradient(180deg, #c59b27 0%, #8c6a18 70%, #57400b 100%);
  color: #1a1005;
  padding: 0.55rem 1rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 235, 175, 0.7), 0 3px 6px rgba(0, 0, 0, 0.7);
  border-top: 1px solid #e0ba4a;
  border-bottom: 1px solid #382604;
  position: relative;
}

.card-brass-plaque h3 {
  font-family: var(--font-header);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 rgba(255, 235, 175, 0.4);
  line-height: 1.25;
  margin: 0;
}

.card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.specimen-origin-tag {
  font-family: var(--font-header);
  font-size: 0.82rem;
  color: var(--brass-bright);
  margin-bottom: 0.5rem;
  display: block;
}

.specimen-brief {
  font-size: 0.98rem;
  color: var(--parchment-base);
  margin-bottom: 1.2rem;
  line-height: 1.5;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(197, 155, 39, 0.2);
  padding-top: 0.8rem;
  font-size: 0.85rem;
}

.curator-initials {
  color: var(--brass-shadow);
  font-family: var(--font-header);
  letter-spacing: 0.08em;
}

.inspect-link {
  color: var(--brass-bright);
  font-family: var(--font-header);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s ease;
}

.inspect-link:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--brass-bright);
}

/* ==========================================================================
   CAJÓN SECRETO (THE LOCKED COMBINATION DRAWER)
   ========================================================================== */
.secret-drawer-section {
  max-width: 820px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.drawer-wood-box {
  background: linear-gradient(135deg, #3d2015 0%, #1f0e08 50%, #2e170e 100%);
  border: 4px solid #573121;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.95), inset 0 0 25px rgba(0, 0, 0, 0.9);
  padding: 18px;
  border-radius: 6px;
}

.drawer-brass-plate {
  background: radial-gradient(circle at 50% 20%, #24140e 0%, #120804 100%);
  border: 2px solid var(--brass-base);
  padding: 2.8rem 2rem;
  text-align: center;
  position: relative;
  outline: 1px dashed rgba(197, 155, 39, 0.3);
  outline-offset: -8px;
}

/* Tornillos decorativos de latón */
.brass-screws {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ecd58c 0%, #997519 70%, #543e09 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.brass-screws::after {
  content: "";
  display: block;
  position: absolute;
  top: 5px; left: 2px; width: 8px; height: 1.5px;
  background: #3a2704;
}
.brass-screws.tl { top: 12px; left: 12px; }
.brass-screws.tr { top: 12px; right: 12px; }
.brass-screws.bl { bottom: 12px; left: 12px; }
.brass-screws.br { bottom: 12px; right: 12px; }

.skull-badge {
  font-size: 2rem;
  color: var(--brass-base);
  display: block;
  margin-bottom: 0.5rem;
}

.lock-header h3 {
  font-family: var(--font-header);
  font-size: 1.6rem;
  color: var(--brass-bright);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.lock-header p {
  color: var(--parchment-aged);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto 2rem;
}

/* Tambores del Candado */
.combination-lock {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-bottom: 2.2rem;
}

.tumbler {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tumbler-btn {
  background: linear-gradient(180deg, #4d3324 0%, #26160e 100%);
  color: var(--brass-bright);
  border: 1px solid var(--brass-shadow);
  width: 48px;
  height: 32px;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.tumbler-btn:hover {
  background: var(--brass-base);
  color: #1a1005;
  border-color: var(--brass-bright);
}

.tumbler-val {
  width: 68px;
  height: 78px;
  background: linear-gradient(180deg, #0d0604 0%, #1e110b 50%, #0d0604 100%);
  border: 2px solid var(--brass-base);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9), 0 4px 10px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--brass-bright);
  margin: 0.5rem 0;
  border-radius: 4px;
  user-select: none;
}

.drawer-feedback {
  margin-top: 1.2rem;
  font-size: 1rem;
  min-height: 1.5rem;
  font-style: italic;
  font-weight: 600;
}

.drawer-feedback.error {
  color: #e57373;
}

.drawer-feedback.success {
  color: #81c784;
}

/* Contenido Secreto al Abrir */
.drawer-secret-content {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px dashed var(--brass-base);
  animation: revealParchment 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.drawer-secret-content.hidden {
  display: none;
}

@keyframes revealParchment {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.secret-parchment {
  background: var(--parchment-base);
  color: var(--ink-black);
  padding: 2.2rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  position: relative;
  text-align: left;
  border: 1px solid var(--parchment-border);
}

.wax-seal-burst {
  position: absolute;
  top: -15px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 35% 35%, #a61c1c 0%, #6e0c0c 70%, #3d0505 100%);
  color: #f7d2d2;
  font-family: var(--font-header);
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
  transform: rotate(12deg);
}

.secret-parchment h4 {
  font-family: var(--font-header);
  font-size: 1.35rem;
  color: var(--ink-blood);
  margin-bottom: 0.8rem;
}

.secret-text {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.secret-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--parchment-border);
  padding-top: 0.8rem;
  font-family: var(--font-header);
  font-size: 0.85rem;
  color: var(--ink-faded);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   LIBRO DE VISITAS / REGISTRO DE EXPEDICIONARIOS
   ========================================================================== */
.guestbook-section {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.guestbook-wrapper {
  background: linear-gradient(135deg, #2e170e 0%, #150905 100%);
  padding: 16px;
  border: 4px solid var(--brass-shadow);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.95);
}

.guestbook-binder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--parchment-base);
  color: var(--ink-black);
  border-radius: 4px;
  position: relative;
  box-shadow: inset 0 0 35px rgba(117, 95, 63, 0.5);
  overflow: hidden;
}

.book-spine {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 24px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  z-index: 5;
}

.book-page {
  padding: 2.5rem 2.2rem;
  min-height: 480px;
}

.book-page-left {
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.page-title {
  font-family: var(--font-header);
  font-size: 1.55rem;
  color: var(--ink-blood);
  margin-bottom: 0.4rem;
}

.page-desc {
  font-size: 0.98rem;
  color: var(--ink-faded);
  margin-bottom: 1.5rem;
}

.victorian-form .form-group {
  margin-bottom: 1.1rem;
}

.victorian-form label {
  display: block;
  font-family: var(--font-header);
  font-size: 0.85rem;
  color: var(--ink-black);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.victorian-form input,
.victorian-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--parchment-border);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink-black);
  border-radius: 3px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.victorian-form input:focus,
.victorian-form textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--ink-blood);
  box-shadow: 0 0 6px rgba(107, 20, 20, 0.3);
}

.btn-parchment-stamp {
  background: linear-gradient(180deg, #7a1d1d 0%, #4f0e0e 100%);
  color: #fff;
  border: 1px solid #942929;
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.4rem;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-parchment-stamp:hover {
  background: linear-gradient(180deg, #912424 0%, #631313 100%);
  transform: translateY(-1px);
}

.page-header-stamp {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--parchment-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-header);
  font-size: 0.8rem;
  color: var(--ink-faded);
  letter-spacing: 0.1em;
}

.guestbook-entries {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.guest-entry-card {
  border-bottom: 1px dashed rgba(159, 136, 99, 0.6);
  padding-bottom: 0.8rem;
}

.entry-author-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.entry-name {
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-blood);
}

.entry-origin {
  font-size: 0.8rem;
  color: var(--ink-faded);
  font-style: italic;
}

.entry-body {
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink-black);
}

/* ==========================================================================
   MODAL DE EXPEDIENTE CONFIDENCIAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-parchment {
  background: var(--parchment-base);
  color: var(--ink-black);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
  border: 8px solid #2e170e;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), inset 0 0 50px rgba(117, 95, 63, 0.6);
  position: relative;
  animation: modalPop 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #3d1c10;
  color: var(--brass-bright);
  border: 1px solid var(--brass-base);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal-close-btn:hover {
  background: #632e1a;
}

.parchment-inner {
  padding: 2.8rem 2.5rem;
}

.top-registry {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-header);
  font-size: 0.82rem;
  color: var(--ink-faded);
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--ink-blood);
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
}

.specimen-title {
  font-family: var(--font-header);
  font-size: 2.1rem;
  color: var(--ink-blood);
  line-height: 1.15;
}

.specimen-origin {
  font-size: 1.1rem;
  color: var(--ink-faded);
  font-style: italic;
  display: block;
  margin-bottom: 1.5rem;
}

.parchment-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.specimen-art-frame {
  background: #120906;
  border: 3px solid var(--brass-base);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  height: 240px;
}

.specimen-dossier {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 1.05rem;
}

.dossier-row.highlight {
  background: rgba(107, 20, 20, 0.08);
  border-left: 3px solid var(--ink-blood);
  padding: 0.4rem 0.6rem;
}

.curator-field-notes {
  margin-top: 0.8rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.4);
  border: 1px dashed var(--parchment-border);
  border-radius: 3px;
}

.curator-field-notes h4 {
  font-family: var(--font-header);
  font-size: 0.9rem;
  color: var(--ink-blood);
  margin-bottom: 0.3rem;
}

.curator-field-notes p {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-black);
}

.specimen-cipher-hint {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-header);
  font-size: 0.9rem;
  color: #7a460b;
  background: #faeacc;
  padding: 0.4rem 0.8rem;
  border: 1px solid #d4b57b;
  border-radius: 3px;
}

.parchment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--parchment-border);
  padding-top: 1.2rem;
}

.wax-seal-stamp {
  font-family: var(--font-header);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--ink-blood);
  border: 1px solid var(--ink-blood);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

/* ==========================================================================
   LUPA DE DETECTIVE & PERITO VICTORIANA (SISTEMA MEJORADO)
   ========================================================================== */
.inspector-lens {
  position: fixed;
  width: 210px;
  height: 210px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.9));
}

.inspector-lens.hidden {
  display: none !important;
}

.lens-brass-rim {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 8px;
  background: radial-gradient(circle at 35% 35%, #ecd58c 0%, #aa821d 40%, #5c430e 75%, #ecd58c 95%, #382604 100%);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.85), inset 0 2px 4px rgba(255, 235, 175, 0.8);
  position: relative;
}

/* Tornillos de época en el bisel de la lupa */
.lens-brass-rim::before {
  content: "";
  position: absolute;
  top: 4px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px;
  background: #3a2704;
  border-radius: 50%;
  box-shadow: 0 196px 0 #3a2704, -98px 98px 0 #3a2704, 98px 98px 0 #3a2704;
}

.lens-glass {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: brightness(1.05);
  border: 1.5px solid rgba(197, 155, 39, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Reflejo curvado sutil solo en el extremo del borde para no entorpecer la lectura */
.lens-glare {
  position: absolute;
  top: 6px;
  left: 25px;
  width: 90px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 75%);
  transform: rotate(-30deg);
  pointer-events: none;
}

/* Retícula de puntería dorada */
.lens-crosshair {
  width: 44px;
  height: 44px;
  border: 1px dashed rgba(255, 215, 0, 0.7);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lens-crosshair::before {
  content: "";
  position: absolute;
  top: 50%; left: -14px; right: -14px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.8), transparent);
}

.lens-crosshair::after {
  content: "";
  position: absolute;
  left: 50%; top: -14px; bottom: -14px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.8), transparent);
}

.crosshair-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffea75;
  box-shadow: 0 0 6px #ffd700;
}

/* Texto de lectura inferior */
.lens-readout {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-header);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--brass-bright);
  background: rgba(15, 7, 5, 0.88);
  border: 1px solid var(--brass-base);
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  max-width: 90%;
  text-align: center;
}

/* Indicador de Modo Arriba */
.lens-mode-indicator {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-header);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: #ffd966;
  background: rgba(45, 20, 10, 0.85);
  border: 1px solid rgba(255, 217, 102, 0.4);
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
}

/* Revelador de Tinta Invisible en el centro de la lente */
.lens-secret-reveal {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #39ff14;
  text-shadow: 0 0 10px #39ff14, 0 0 20px #00ffaa;
  text-align: center;
  max-width: 80%;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.lens-secret-reveal.active {
  opacity: 1;
  transform: scale(1);
}

/* Efecto cuando la lupa pasa sobre una vitrina */
body.magnifier-active .specimen-card:hover .specimen-svg-art {
  transform: scale(1.35) rotate(2deg);
  filter: drop-shadow(0 0 15px rgba(236, 213, 140, 0.6));
}

body.magnifier-active .specimen-card:hover {
  border-color: #ffd700;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.45);
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.museum-footer {
  margin-top: 6rem;
  background: #0d0604;
  border-top: 3px solid var(--brass-shadow);
  padding: 3rem 2rem 2.5rem;
}

.footer-brass-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-base), transparent);
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.footer-col h4 {
  font-family: var(--font-header);
  font-size: 1.15rem;
  color: var(--brass-bright);
  margin-bottom: 0.4rem;
}

.footer-col p {
  font-size: 0.92rem;
  color: var(--parchment-aged);
}

.footer-col.center {
  text-align: center;
}

.ouroboros-icon {
  font-size: 1.4rem;
  color: var(--brass-base);
  margin-bottom: 0.4rem;
}

.footer-col.right {
  text-align: right;
}

.cloudflare-ready-badge {
  display: inline-block;
  background: rgba(36, 19, 13, 0.8);
  border: 1px solid var(--brass-shadow);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--brass-bright);
}

/* ==========================================================================
   BOTÓN DE MENÚ MÓVIL (DESKTOP: OCULTO)
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  background: linear-gradient(180deg, #3d2215 0%, #1f0e08 100%);
  color: var(--brass-bright);
  border: 1px solid var(--brass-base);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-header);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.mobile-menu-toggle .hamburger-icon {
  font-size: 1.1rem;
}

/* ==========================================================================
   RESPONSIVIDAD MÓVIL PROFESIONAL (PANTALLAS < 860px y SMARTPHONES)
   ========================================================================== */

/* ==========================================================================
   SECCIÓN: CRÓNICA & MANIFIESTO DEL WUNDERKAMMER (ORIGEN Y OBJETIVO)
   ========================================================================== */
.chronicle-section {
  max-width: 1250px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.chronicle-wrapper {
  background: linear-gradient(135deg, #2b150c 0%, #150905 100%);
  border: 3px solid var(--brass-base);
  border-radius: 6px;
  padding: 3.5rem 2.8rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), inset 0 0 35px rgba(0, 0, 0, 0.85);
  position: relative;
}

.chronicle-header {
  text-align: center;
  margin-bottom: 3rem;
}

.chronicle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}

.chronicle-card {
  background: radial-gradient(circle at 50% 20%, #20110a 0%, #110704 100%);
  border: 1px solid var(--brass-shadow);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.chronicle-card:hover {
  transform: translateY(-4px);
  border-color: var(--brass-bright);
}

.chronicle-card.full-span {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 1.8rem;
  background: radial-gradient(circle at 20% 50%, #30170d 0%, #140804 100%);
  border-color: var(--brass-base);
}

.chronicle-card-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.chronicle-card h3 {
  font-family: var(--font-header);
  font-size: 1.35rem;
  color: var(--brass-bright);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.chronicle-card p {
  font-size: 1.05rem;
  color: var(--parchment-base);
  line-height: 1.6;
}

/* ==========================================================================
   MODAL DE ACERTIJO / EXAMEN DE LA LUPA
   ========================================================================== */
.puzzle-box {
  max-width: 680px;
}

.puzzle-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.puzzle-emblem {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.4rem;
  color: var(--brass-bright);
}

.puzzle-intro {
  font-size: 1.05rem;
  color: var(--ink-faded);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.5;
}

.puzzle-question-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed var(--parchment-border);
  padding: 1.6rem;
  border-radius: 4px;
}

.puzzle-question-card h4 {
  font-family: var(--font-header);
  font-size: 1.05rem;
  color: var(--ink-blood);
  margin-bottom: 0.4rem;
}

.puzzle-question {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-black);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

.puzzle-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.puzzle-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--parchment-border);
  padding: 0.8rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.puzzle-option:hover {
  background: #ffffff;
  border-color: var(--ink-blood);
}

.puzzle-option input[type="radio"] {
  accent-color: var(--ink-blood);
  width: 18px;
  height: 18px;
}

.option-label {
  font-family: var(--font-header);
  font-size: 0.95rem;
  color: var(--ink-black);
}

.puzzle-feedback-msg {
  margin-top: 1rem;
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  text-align: center;
  min-height: 1.5rem;
}
.puzzle-feedback-msg.error {
  color: #a81c1c;
}
.puzzle-feedback-msg.success {
  color: #1b5e20;
}

/* ==========================================================================
   ILUMINACIÓN: MODO LUZ DE GAS VS. PENUMBRA Y LINTERNA VICTORIANA
   ========================================================================== */
.candlelight-mask {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 996;
  background: radial-gradient(circle 240px at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 0%, rgba(5, 2, 1, 0.78) 60%, rgba(2, 1, 0, 0.94) 100%);
  transition: opacity 0.4s ease;
}

.candlelight-mask.hidden {
  display: none !important;
}

body.candlelight-active {
  filter: contrast(1.15) brightness(0.92);
}

/* ==========================================================================
   CANVAS DE PARTÍCULAS DE TRIUNFO (CHISPAS ALQUÍMICAS)
   ========================================================================== */
.alchemy-particles-canvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 10000;
}

/* ==========================================================================
   BARRA DE BÚSQUEDA RÁPIDA EN VITRINAS
   ========================================================================== */
.cabinet-search-container {
  max-width: 640px;
  margin: 0 auto 2.2rem;
  padding: 0 1rem;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(18, 9, 6, 0.85);
  border: 2px solid var(--brass-shadow);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.7);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--brass-bright);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212, 175, 55, 0.35);
}

.search-icon {
  font-size: 1.15rem;
  margin-right: 0.6rem;
  color: var(--brass-base);
}

#specimen-search-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--parchment-light);
}

#specimen-search-input:focus {
  outline: none;
}

#specimen-search-input::placeholder {
  color: rgba(212, 193, 156, 0.55);
  font-style: italic;
}

.btn-clear-search {
  background: none;
  border: none;
  color: var(--brass-shadow);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.3rem;
}
.btn-clear-search:hover {
  color: var(--brass-bright);
}
.btn-clear-search.hidden {
  display: none;
}

/* ==========================================================================
   BITÁCORAS DE EXPEDICIÓN PÚBLICAS (SINCRONIZADAS CON FORMULARIO 2)
   ========================================================================== */
.expeditions-public-section {
  max-width: 1250px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.expeditions-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
}

.public-expedition-card {
  background: radial-gradient(circle at 50% 20%, #29150d 0%, #150905 100%);
  border: 2px solid var(--brass-shadow);
  border-radius: 5px;
  padding: 1.8rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.public-expedition-card:hover {
  transform: translateY(-4px);
  border-color: var(--brass-base);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95), 0 0 15px rgba(197, 155, 39, 0.2);
}

.exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(197, 155, 39, 0.25);
  padding-bottom: 0.5rem;
}

.exp-ref-id {
  font-family: var(--font-header);
  font-size: 0.78rem;
  color: var(--brass-bright);
  letter-spacing: 0.1em;
}

.public-expedition-card h3 {
  font-family: var(--font-header);
  font-size: 1.35rem;
  color: var(--brass-bright);
  margin-top: 0.2rem;
}

.exp-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--parchment-aged);
}

.exp-report-snippet {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--parchment-base);
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.6rem 0.8rem;
  border-left: 2px solid var(--brass-base);
  border-radius: 2px;
}

/* ==========================================================================
   RESPONSIVIDAD MÓVIL INTEGRAL Y PROFESIONAL (PANTALLAS < 860px y SMARTPHONES)
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

@media (max-width: 860px) {
  /* 1. Header Compacto & Menú Plegable */
  .top-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.85rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: auto;
  }

  .nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }

  .nav-brand .brand-logo {
    font-size: 1.15rem;
    line-height: 1.15;
  }

  .nav-brand .subtitle {
    white-space: nowrap;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    line-height: 1;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-controls {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(18, 9, 6, 0.98);
    border-bottom: 2px solid var(--brass-base);
    padding: 1rem 1.2rem;
    flex-direction: column;
    gap: 0.7rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .nav-controls.mobile-open {
    display: flex;
    animation: slideDownMenu 0.25s ease forwards;
  }

  @keyframes slideDownMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-controls .btn-antiquarian {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    box-sizing: border-box;
  }

  /* 2. Hero Section */
  .hero-sanctuary {
    padding: 1.4rem 0.6rem 2rem;
  }

  .hero-crest-wrap {
    margin-bottom: 0.8rem;
  }

  .hero-crest {
    width: 44px;
    height: 44px;
  }

  .museum-title {
    font-size: clamp(1.35rem, 6.2vw, 1.85rem);
    line-height: 1.2;
    margin-bottom: 0.6rem;
    word-break: normal;
    letter-spacing: 0.05em;
  }

  .museum-tagline {
    font-size: 0.95rem;
    line-height: 1.45;
    padding: 0 0.5rem;
  }

  .hero-quote {
    font-size: 0.85rem;
    margin: 1.2rem auto 0;
    padding: 0 0.5rem;
  }

  /* 3. Manifiesto & Crónica */
  .chronicle-section {
    padding: 0 0.8rem !important;
    margin: 3rem auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .chronicle-wrapper {
    padding: 1.8rem 1rem !important;
  }

  .chronicle-header h2 {
    font-size: 1.5rem !important;
  }

  .chronicle-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .chronicle-card.full-span {
    flex-direction: column !important;
    text-align: center !important;
  }

  /* 4. Vitrina de Curiosidades */
  .cabinet-section {
    padding: 0 0.8rem !important;
    margin: 3rem auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .cabinet-header h2 {
    font-size: 1.55rem;
  }

  .cabinet-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .specimen-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .cabinet-search-container {
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cabinet-categories {
    gap: 0.4rem;
  }

  .cat-pill {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }

  /* 5. Bitácoras de Expedición Públicas */
  .expeditions-public-section {
    padding: 0 0.8rem !important;
    margin: 3rem auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .expeditions-public-section .cabinet-header h2 {
    font-size: 1.55rem;
  }

  .expeditions-public-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .public-expedition-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 1.2rem 1rem !important;
  }

  .public-expedition-card h3 {
    font-size: 1.2rem;
  }

  /* 6. Cajón Secreto & Candado */
  .secret-drawer-section {
    padding: 0 0.8rem !important;
    margin: 3rem auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .drawer-wood-box {
    padding: 8px;
    border-width: 2px;
  }

  .drawer-brass-plate {
    padding: 1.6rem 0.8rem;
    outline-offset: -5px;
  }

  .lock-header h3 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .lock-header p {
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
  }

  .combination-lock {
    gap: 0.8rem;
    margin-bottom: 1.6rem;
  }

  .tumbler-val {
    width: 58px;
    height: 68px;
    font-size: 2rem;
  }

  .tumbler-btn {
    width: 44px;
    height: 30px;
  }

  /* 7. Libro de Visitas */
  .guestbook-section {
    padding: 0 0.8rem !important;
    margin: 3rem auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .guestbook-wrapper {
    padding: 8px;
  }

  .guestbook-binder {
    grid-template-columns: 1fr;
  }

  .book-spine {
    display: none;
  }

  .book-page {
    padding: 1.5rem 1rem;
    min-height: auto;
  }

  .book-page-left {
    border-right: none;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.2);
  }

  /* 8. Lupa de Perito Compacta en Móvil */
  .inspector-lens {
    width: 155px;
    height: 155px;
  }

  .lens-readout {
    font-size: 0.62rem;
    padding: 0.15rem 0.4rem;
    max-width: 88%;
    white-space: normal;
    line-height: 1.2;
  }

  .lens-mode-indicator {
    font-size: 0.55rem;
    padding: 0.08rem 0.35rem;
  }

  .lens-secret-reveal {
    font-size: 0.95rem;
  }

  /* 9. Modales (Dossier & Acertijo) */
  .modal-parchment {
    max-height: 94vh;
    border-width: 4px;
    padding: 0;
  }

  .parchment-inner {
    padding: 1.8rem 1rem;
  }

  .specimen-title {
    font-size: 1.45rem;
  }

  .parchment-body {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .specimen-art-frame {
    height: 190px;
  }

  .parchment-footer {
    flex-direction: column;
    gap: 0.8rem;
    align-items: stretch;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-col.right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .museum-title {
    font-size: 1.6rem !important;
  }

  .combination-lock {
    gap: 0.5rem;
  }

  .tumbler-val {
    width: 50px;
    height: 60px;
    font-size: 1.8rem;
  }

  .tumbler-btn {
    width: 40px;
    height: 28px;
  }
}
