/* =========================================================
   Museo del Vino de Almonte (MUVA) · estilos de la web pública
   Estética editorial: piedra, vino y latón. Bodoni Moda + Jost.
   ========================================================= */

@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/bodoni-moda-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/bodoni-moda-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/bodoni-moda-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/bodoni-moda-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/jost-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/jost-latin-600-normal.woff2) format("woff2"); }

/* ---------- Colores (claro) ---------- */
:root {
  color-scheme: light;
  --bg: #F4F0EA;
  --bg-alt: #ECE5DA;
  --surface: #FBF8F3;
  --ink: #1F1A17;
  --ink-soft: #463C36;
  --muted: #6A5E55;
  --line: rgba(31, 26, 23, .15);
  --line-strong: rgba(31, 26, 23, .3);
  --accent: #6E1E30;          /* vino: botones */
  --accent-hover: #551624;
  --accent-ink: #7A2236;      /* vino: textos y enlaces */
  --on-accent: #FFFFFF;
  --brass: #A07C42;           /* latón: líneas y adornos */
  --brass-ink: #7A5A28;       /* latón legible sobre claro */
  --band: #2A0E16;            /* franjas oscuras (visitas, menú, pie) */
  --band-2: #3A1520;
  --band-ink: #F3EBE1;
  --band-muted: #CDBDAE;
  --band-brass: #D7B57E;
  --band-line: rgba(243, 235, 225, .16);
  --header-solid: rgba(244, 240, 234, .94);
  --shadow: 0 30px 60px -32px rgba(48, 22, 12, .45);
  --ok: #2F6B3A; --err: #A3262A;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --sans: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --hdr: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14100E; --bg-alt: #1C1714; --surface: #211B17;
  --ink: #EFE7DD; --ink-soft: #D3C7BA; --muted: #A89A8C;
  --line: rgba(239, 231, 221, .14); --line-strong: rgba(239, 231, 221, .3);
  --accent: #8E2C42; --accent-hover: #A63A52; --accent-ink: #E6A1AF; --on-accent: #FFFFFF;
  --brass: #C8A36A; --brass-ink: #D8B886;
  --band: #1E0A10; --band-2: #2B1018;
  --header-solid: rgba(20, 16, 14, .92);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  --ok: #7CC48A; --err: #F08C8C;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #14100E; --bg-alt: #1C1714; --surface: #211B17;
    --ink: #EFE7DD; --ink-soft: #D3C7BA; --muted: #A89A8C;
    --line: rgba(239, 231, 221, .14); --line-strong: rgba(239, 231, 221, .3);
    --accent: #8E2C42; --accent-hover: #A63A52; --accent-ink: #E6A1AF; --on-accent: #FFFFFF;
    --brass: #C8A36A; --brass-ink: #D8B886;
    --band: #1E0A10; --band-2: #2B1018;
    --header-solid: rgba(20, 16, 14, .92);
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
    --ok: #7CC48A; --err: #F08C8C;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--accent); color: var(--on-accent); text-decoration: none; }
.skip:focus { top: 12px; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose a { color: inherit; }
.img-empty { display: grid; place-items: center; min-height: 240px; aspect-ratio: 4 / 3; background: var(--bg-alt); color: var(--muted); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
svg[viewBox="0 0 24 24"]:not([class]) { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Grano fino de fondo (Ajustes → Efectos) */
html.grain body::after {
  content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"].grain body::after { mix-blend-mode: screen; opacity: .045; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]).grain body::after { mix-blend-mode: screen; opacity: .045; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 14px 28px; border: 1px solid var(--accent); border-radius: 0; background: var(--accent); color: var(--on-accent); font: 500 .8rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn .ic { width: 16px; height: 16px; }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: .74rem; }
.btn-line { background: transparent; color: var(--accent-ink); border-color: currentColor; }
.btn-line:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-light { background: #F4EDE3; border-color: #F4EDE3; color: #3A0F1A; }
.btn-light:hover { background: #fff; border-color: #fff; color: #3A0F1A; }
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Cabecera ---------- */
.site-header { position: fixed; z-index: 90; inset: 0 0 auto 0; height: var(--hdr); color: #fff; transition: background .35s, color .35s, box-shadow .35s, height .35s; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px 0; background: linear-gradient(180deg, rgba(18, 6, 10, .55), transparent); pointer-events: none; transition: opacity .35s; }
.site-header.scrolled { background: var(--header-solid); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header.scrolled::before { opacity: 0; }
.hdr { position: relative; display: flex; align-items: center; gap: 24px; height: 100%; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; color: inherit; text-decoration: none; flex-shrink: 0; }
/* Al pasar el ratón el logotipo no cambia (antes se oscurecía y casi desaparecía sobre la portada) */
.brand:hover, .brand:focus-visible { color: inherit; }
/* La copa completa, con su tallo y su pie: las letras miden lo mismo que antes y la copa baja un poco más */
.brand-logo svg { height: 62px; width: auto; overflow: visible; }
.logo-partido { display: flex; align-items: center; gap: 14px; }
.logo-partido svg { display: block; height: 50px; }
.lp-raya { width: 1px; height: 42px; background: currentColor; opacity: .35; }
.logo-img img { height: 52px; width: auto; max-width: 180px; object-fit: contain; }
.site-header:not(.scrolled) .logo-img img, .menu-open .site-header .logo-img img { filter: brightness(0) invert(1); }
.main-nav { display: flex; gap: clamp(14px, 2vw, 30px); margin-inline: auto; }
.main-nav a { position: relative; color: inherit; text-decoration: none; font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 10px 0; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.hdr-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav + .hdr-tools { margin-left: 0; }
.hdr-rest { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; margin-right: 6px; border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 35%, transparent); color: inherit; text-decoration: none; font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.hdr-rest .ic { width: 15px; height: 15px; }
.hdr-rest:hover { color: inherit; opacity: .75; }
.hdr-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; transition: background .2s; }
.hdr-icon:hover { background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; }
.hdr-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn svg { display: none; }
.theme-btn[data-mode="auto"] .t-auto, .theme-btn[data-mode="light"] .t-light, .theme-btn[data-mode="dark"] .t-dark { display: block; }
.site-header:not(.scrolled) .hdr-book { background: transparent; border-color: rgba(255, 255, 255, .65); }
.site-header:not(.scrolled) .hdr-book:hover { background: #fff; border-color: #fff; color: #3A0F1A; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: inherit; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.menu-open .menu-btn span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21.5px; transform: rotate(-45deg); }
.menu-open .site-header { background: transparent; color: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .site-header::before { opacity: 0; }

/* Menú a pantalla completa (móvil y tableta) */
.menu { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: calc(var(--hdr) + 16px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: var(--band); color: var(--band-ink); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu ol { display: grid; gap: 2px; counter-reset: none; }
.menu ol a { display: flex; align-items: baseline; gap: 18px; padding: 6px 0; color: inherit; text-decoration: none; font: 400 clamp(1.8rem, 7vw, 3.2rem)/1.15 var(--serif); }
.menu ol a:hover, .menu ol a:focus-visible { color: var(--band-brass); }
.menu ol small { font: italic 400 .95rem/1 var(--serif); color: var(--band-brass); min-width: 26px; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; padding-top: 26px; border-top: 1px solid var(--band-line); }
.menu-foot a { display: inline-flex; align-items: center; gap: 10px; color: var(--band-ink); text-decoration: none; font-size: .95rem; letter-spacing: .04em; }
.menu-foot .btn-line { color: var(--band-ink); }
.menu-foot .btn-line:hover { background: var(--band-ink); border-color: var(--band-ink); color: var(--band); }
.menu-open { overflow: hidden; }
.fx .menu:not([hidden]) li { animation: menu-in .6s var(--ease) both; }
.fx .menu:not([hidden]) li:nth-child(2) { animation-delay: .04s; } .fx .menu:not([hidden]) li:nth-child(3) { animation-delay: .08s; }
.fx .menu:not([hidden]) li:nth-child(4) { animation-delay: .12s; } .fx .menu:not([hidden]) li:nth-child(5) { animation-delay: .16s; }
.fx .menu:not([hidden]) li:nth-child(6) { animation-delay: .2s; } .fx .menu:not([hidden]) li:nth-child(7) { animation-delay: .24s; }
.fx .menu:not([hidden]) li:nth-child(8) { animation-delay: .28s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 1600px) {
  .main-nav { gap: 18px; }
  .main-nav a, .hdr-rest { letter-spacing: .12em; }
}
/* Con el menú completo y poco ancho, el logotipo partido se encoge un poco para que todo quepa */
@media (min-width: 1366px) and (max-width: 1600px) {
  .hdr { gap: 18px; }
  .logo-partido { gap: 10px; }
  .logo-partido svg { height: 44px; }
  .lp-raya { height: 36px; }
}
@media (min-width: 1366px) and (max-width: 1440px) {
  .main-nav { gap: 14px; }
  .main-nav a, .hdr-rest { letter-spacing: .1em; }
}
@media (max-width: 1365px) {
  .main-nav { display: none; }
  .menu-btn { display: block; }
  .hdr-tools { margin-left: auto !important; }
}
@media (max-width: 640px) {
  :root { --hdr: 66px; }
  .brand-logo svg { height: 49px; }
  .lp-raya, .lp-texto { display: none; }
  .logo-img img { height: 42px; }
  .hdr { gap: 10px; }
  .hdr-book, .hdr-admin { display: none; }
  .hdr-rest { gap: 6px; padding: 0 8px; margin-right: 0; font: 500 .84rem/1 var(--sans); letter-spacing: .02em; text-transform: none; }
}
@media (max-width: 420px) {
  .brand-logo svg { height: 42px; }
  .logo-img img { height: 36px; }
  .hdr { gap: 6px; }
  .hdr-tools { gap: 0; }
}
@media (max-width: 349px) { .hdr-rest span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .hdr-rest { border-left: 0; } }

/* ---------- Portada ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; max-height: 1100px; padding: calc(var(--hdr) + 40px) 0 clamp(56px, 9vh, 110px); background: var(--band); color: #fff; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media .img-empty { height: 100%; aspect-ratio: auto; background: var(--band-2); color: var(--band-muted); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(20, 6, 10, .72) 0%, rgba(20, 6, 10, .35) 45%, rgba(20, 6, 10, 0) 75%),
  linear-gradient(180deg, rgba(20, 6, 10, 0) 45%, rgba(20, 6, 10, .78) 100%); pointer-events: none; }
.hero-in { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.hero-in > * { max-width: 780px; }
.notices { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.notices li { padding: 8px 16px; border: 1px solid rgba(215, 181, 126, .7); background: rgba(30, 10, 16, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: .92rem; letter-spacing: .02em; line-height: 1.4; }
.notices a { color: #fff; }
.hero-kicker { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; font: 500 .78rem/1.3 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: #E8D3AE; }
.hero-kicker::before { content: ""; width: 44px; height: 1px; background: currentColor; flex-shrink: 0; }
.hero-title { font-size: clamp(2.9rem, 8vw, 6.6rem); line-height: .98; letter-spacing: -.02em; margin-bottom: 26px; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.65; color: rgba(255, 255, 255, .88); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 30px; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.hero-meta:not(:has(span:not(:empty))) { display: none; }
.hero-today { display: inline-flex; align-items: center; gap: 8px; }
.hero-today a { color: inherit; }
.hero-scroll { position: absolute; right: var(--gutter); bottom: clamp(40px, 7vh, 90px); display: flex; flex-direction: column; align-items: center; gap: 14px; color: rgba(255, 255, 255, .8); text-decoration: none; font: 500 .68rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.hero-scroll span { writing-mode: vertical-rl; }
.hero-scroll i { position: relative; width: 1px; height: 64px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: -30%; width: 1px; height: 30%; background: #fff; animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { 0% { top: -30%; } 100% { top: 100%; } }
@media (max-width: 760px) { .hero-scroll { display: none; } .hero { min-height: 92svh; } .hero-shade { background: linear-gradient(180deg, rgba(20, 6, 10, .35) 0%, rgba(20, 6, 10, .25) 35%, rgba(20, 6, 10, .85) 100%); } }

/* Estado abierto / cerrado */
.open-status { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: .92rem; letter-spacing: .02em; }
.open-status:empty { display: none; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9A9A9A; flex-shrink: 0; }
.open-status.is-open::before { background: #5DBB6D; box-shadow: 0 0 0 4px rgba(93, 187, 109, .2); }
.open-status.is-closed::before { background: #D9817F; }

/* ---------- Secciones ---------- */
.sec { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.sec + .sec:not(.band) { border-top: 1px solid var(--line); }
.band + .sec, .rest + .sec { border-top: 0 !important; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-num { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; color: var(--brass-ink); }
.sec-num span { font: italic 400 1.15rem/1 var(--serif); }
.sec-num i { width: 48px; height: 1px; background: var(--brass); transform-origin: left; }
.sec-kicker { font: 500 .74rem/1.3 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 520px) { .sec-kicker { letter-spacing: .2em; } .hero-kicker { letter-spacing: .22em; } }
.sec-kicker.solo { display: block; margin-bottom: 18px; color: var(--brass-ink); }
.sec-head h2 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); max-width: 17ch; }
.sec-intro { margin-top: 22px; max-width: 40em; font-size: 1.1rem; color: var(--ink-soft); }
.sec-head .edit-panel-link { margin-top: 18px; }
@media (min-width: 980px) {
  .sec-head-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 72px; align-items: end; }
  .sec-head-row > * { grid-column: 1 / -1; }
  .sec-head-row > h2 { grid-column: 1; }
  .sec-head-row > .sec-intro { grid-column: 2; grid-row: 2; margin-top: 0; }
}
.sec-head-center { text-align: center; }
.sec-head-center .sec-num { justify-content: center; }
.sec-head-center h2, .sec-head-center .sec-intro { margin-inline: auto; }

/* Marco de museo (paspartú) */
.mat { padding: clamp(10px, 1.6vw, 20px); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.mat img { width: 100%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }

/* 01 · El museo */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-text .sec-head { margin-bottom: 34px; }
.about-text .prose { font-size: 1.1rem; color: var(--ink-soft); max-width: 36em; }
.dropcap > p:first-child::first-letter { float: left; margin: .06em .08em 0 0; font: 400 4.9em/.78 var(--serif); color: var(--accent-ink); }
.about-img img { aspect-ratio: 4 / 5; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(64px, 8vw, 110px) 0 0; border-top: 1px solid var(--line-strong); }
.facts > div { padding: 30px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font: 400 clamp(2.4rem, 4.5vw, 3.6rem)/1 var(--serif); color: var(--accent-ink); }
.facts dd { margin: 14px 0 0; font: 500 .76rem/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img { max-width: 560px; }
}
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 26px 16px 26px 0; }
  .facts > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts > div:nth-child(even) { padding-left: 18px; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* 02 · Recorrido (carrusel de salas) */
.route { background: var(--bg-alt); }
.sec.route + .sec { border-top: 0; }
.rooms-wrap { --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2)); }
.rooms { display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 400px); gap: clamp(20px, 3vw, 36px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px var(--edge) 10px; scroll-padding-inline: var(--edge); scrollbar-width: none; }
.rooms::-webkit-scrollbar { display: none; }
.rooms:focus-visible { outline-offset: -2px; }
.room { scroll-snap-align: start; display: flex; flex-direction: column; }
.room-img { overflow: hidden; background: var(--surface); }
.room-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.room:hover .room-img img { transform: scale(1.04); }
.room-txt { position: relative; padding-top: 26px; }
.room-num { position: absolute; right: 0; top: -.62em; font: italic 400 3.6rem/1 var(--serif); color: var(--surface); text-shadow: 0 1px 0 var(--line); }
.room h3 { font-size: 1.65rem; }
.room-sub { margin: 8px 0 14px; font: 500 .74rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-ink); }
.room p:not(.room-sub) { color: var(--ink-soft); font-size: 1rem; }
.rooms-nav { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.rooms-count { font: italic 400 1.05rem/1 var(--serif); color: var(--muted); min-width: 64px; }
.rooms-count b { font-weight: 400; color: var(--ink); }
.rooms-bar { position: relative; flex: 1; height: 1px; background: var(--line-strong); }
.rooms-bar i { position: absolute; left: 0; top: -.5px; height: 2px; width: 20%; background: var(--accent-ink); transition: left .3s, width .3s; }

/* museo_v019 · Recorrido en «cinta en movimiento» (Panel → Ajustes → Recorrido) */
.rooms-wrap.is-cinta .rooms-nav { display: none; }
.rooms-wrap.is-cinta .mq-view { position: relative; overflow: hidden; margin: 0 calc(50% - 50vw); padding: 4px 0 10px; cursor: grab; touch-action: pan-y; -webkit-mask: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
.rooms-wrap.is-cinta .mq-view.is-drag { cursor: grabbing; }
.rooms-wrap.is-cinta .rooms { display: flex; gap: clamp(20px, 3vw, 36px); width: max-content; grid-auto-flow: unset; grid-auto-columns: unset; overflow: visible; scroll-snap-type: none; padding: 0 0 0 var(--edge); will-change: transform; }
.rooms-wrap.is-cinta .room { flex: 0 0 min(80vw, 360px); scroll-snap-align: none; }
.rooms-wrap.is-cinta .mq-view.is-drag .room { pointer-events: none; }
.rooms-wrap.is-cinta .room a, .rooms-wrap.is-cinta .room-img img { -webkit-user-drag: none; user-select: none; }
.rooms-wrap.is-cinta .room-img img { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .rooms-wrap.is-cinta .rooms { overflow-x: auto; scroll-snap-type: x mandatory; } }
.round-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.round-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 03 · Visitas y precios (franja oscura) */
.band { background: var(--band); color: var(--band-ink); }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 500px at 85% 0%, rgba(215, 181, 126, .08), transparent 60%), radial-gradient(900px 600px at 0% 100%, rgba(122, 34, 54, .35), transparent 60%); pointer-events: none; }
.band > .wrap { position: relative; }
.band .sec-num { color: var(--band-brass); }
.band .sec-num i { background: var(--band-brass); }
.band .sec-kicker { color: var(--band-muted); }
.band h2 { color: #fff; }
.band .sec-intro { color: var(--band-muted); }
.band a:not(.btn):not(.edit-panel-link) { color: var(--band-brass); }
.band :focus-visible { outline-color: var(--band-brass); }
.xp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.xp { position: relative; display: flex; flex-direction: column; background: rgba(255, 255, 255, .035); border: 1px solid var(--band-line); transition: border-color .3s, transform .4s var(--ease); }
.xp:hover { border-color: rgba(215, 181, 126, .55); }
.xp.is-featured { border-color: rgba(215, 181, 126, .6); }
.xp-img { overflow: hidden; }
.xp-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.xp:hover .xp-img img { transform: scale(1.04); }
.xp-flag { position: absolute; z-index: 1; left: 18px; top: 18px; padding: 7px 12px; background: var(--band-brass); color: #2A0E16; font: 600 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.xp-body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.4vw, 32px); }
.xp h3 { font-size: 1.75rem; color: #fff; }
.xp-sub { margin: 8px 0 0; font: italic 400 1.1rem/1.4 var(--serif); color: var(--band-brass); }
.xp-desc { margin-top: 16px; color: var(--band-muted); font-size: .98rem; }
.xp-inc { display: grid; gap: 6px; margin: 4px 0 18px; font-size: .95rem; }
.xp-inc li { display: flex; gap: 12px; }
.xp-inc li::before { content: ""; width: 14px; height: 1px; margin-top: .85em; background: var(--band-brass); flex-shrink: 0; }
.xp-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 22px; font-size: .88rem; color: var(--band-muted); }
.xp-meta:empty { display: none; }
.xp-meta span { display: inline-flex; align-items: center; gap: 8px; }
.xp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--band-line); }
.xp-price { margin: 0; font: 400 2.1rem/1 var(--serif); color: #fff; }
.xp-price small { display: block; margin-top: 6px; font: 400 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); }

.rates { max-width: 820px; margin: clamp(64px, 8vw, 110px) auto 0; }
.rates-title { font-size: clamp(1.6rem, 3vw, 2.1rem); text-align: center; margin-bottom: 28px; color: #fff; }
.rates-title::after { content: ""; display: block; width: 44px; height: 1px; margin: 20px auto 0; background: var(--band-brass); }
.rates li { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--band-line); }
.rate-name { display: flex; flex-direction: column; font: 400 1.25rem/1.25 var(--serif); }
.rate-name small { margin-top: 4px; font: 400 .88rem/1.4 var(--sans); color: var(--band-muted); }
.rates li > i { flex: 1; min-width: 20px; border-bottom: 1px dotted rgba(243, 235, 225, .35); transform: translateY(-.3em); }
.rate-price { font: 400 1.4rem/1 var(--serif); color: var(--band-brass); white-space: nowrap; }
.rates-note { margin-top: 22px; text-align: center; font-size: .9rem; color: var(--band-muted); }

/* 04 · Agenda */
.events { border-top: 1px solid var(--line-strong); }
.event { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 200px; gap: clamp(20px, 3vw, 44px); align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.ev-date { display: flex; flex-direction: column; align-items: flex-start; }
.ev-date b { font: 400 3.6rem/.9 var(--serif); color: var(--accent-ink); }
.ev-date span { margin-top: 8px; font: 600 .78rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.ev-date small { margin-top: 6px; font: italic 400 1rem/1 var(--serif); color: var(--muted); }
.ev-body h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 12px; font-size: .9rem; color: var(--muted); }
.ev-meta:empty { display: none; }
.ev-meta span { display: inline-flex; align-items: center; gap: 8px; }
.ev-body > p:last-child { color: var(--ink-soft); max-width: 40em; }
.ev-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.ev-price { margin: 0; font: 400 1.7rem/1 var(--serif); }
.ev-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.event:not(:has(.ev-img)) { grid-template-columns: 110px minmax(0, 1fr) auto; }
.event.is-past .ev-date, .event.is-past .ev-body > :not(.ev-stamp), .event.is-past .ev-side, .event.is-past .ev-img { opacity: .55; }
.event.is-past .ev-img img { filter: grayscale(1); }
.event.is-past .ev-date b { color: var(--muted); }
.ev-stamp { display: inline-block; margin: 0 0 14px; padding: 6px 12px 5px; border: 2px solid var(--accent-ink); border-radius: 4px; outline: 1px solid var(--accent-ink); outline-offset: 2px; color: var(--accent-ink); font: 700 .72rem/1.15 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transform: rotate(-3deg); transform-origin: left center; }
@media (max-width: 980px) {
  .event, .event:not(:has(.ev-img)) { grid-template-columns: 84px minmax(0, 1fr); }
  .ev-img { display: none; }
  .ev-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; flex-wrap: wrap; }
  .ev-date b { font-size: 2.9rem; }
}

/* 05 · Historia (cronología) */
.history { background: var(--bg-alt); }
.sec.history + .sec { border-top: 0; }
.timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(40px, 6vw, 90px); padding: 0 0 clamp(44px, 6vw, 70px); }
.timeline li::before { content: ""; position: absolute; left: 50%; top: .55em; width: 11px; height: 11px; margin-left: -5px; border: 1px solid var(--brass); border-radius: 50%; background: var(--bg-alt); transform: rotate(45deg); border-radius: 0; }
.tl-year { margin: 0; text-align: right; font: italic 400 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--serif); color: var(--brass-ink); }
.tl-body h3 { font-size: 1.45rem; margin-bottom: 10px; }
.tl-body p { color: var(--ink-soft); }
.tl-img { margin-top: 18px; max-width: 360px; }
.timeline li:nth-child(even) .tl-year { order: 2; text-align: left; }
.timeline li:nth-child(even) .tl-body { order: 1; text-align: right; }
.timeline li:nth-child(even) .tl-img { margin-left: auto; }
@media (max-width: 760px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 34px; }
  .timeline li::before { left: 5px; }
  .timeline li .tl-year, .timeline li:nth-child(even) .tl-year { order: 0; text-align: left; margin-bottom: 8px; }
  .timeline li:nth-child(even) .tl-body { order: 1; text-align: left; }
  .timeline li:nth-child(even) .tl-img { margin-left: 0; }
}

/* 06 · Galería */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters button { min-height: 40px; padding: 8px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-soft); font: 500 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.gallery-grid { columns: 3 260px; column-gap: clamp(12px, 1.6vw, 22px); }
.gallery-grid li { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 22px); }
.gallery-grid li[hidden] { display: none; }
.gallery-grid a { position: relative; display: block; overflow: hidden; background: var(--bg-alt); }
.gallery-grid img { width: 100%; transition: transform 1s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.035); }
.g-cap { position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px; background: linear-gradient(180deg, transparent, rgba(20, 6, 10, .75)); color: #fff; font: italic 400 1.05rem/1.3 var(--serif); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.gallery-grid a:hover .g-cap, .gallery-grid a:focus-visible .g-cap { opacity: 1; transform: none; }
@media (hover: none) { .g-cap { opacity: 1; transform: none; padding-top: 28px; font-size: .95rem; } }

/* Visor de fotos */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(18, 8, 11, .96); }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(92vw, 1400px); text-align: center; }
.lightbox img { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; margin: 0 auto; border: 10px solid #FBF8F3; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 16px; color: var(--band-ink); }
.lb-cap { font: italic 400 1.2rem/1.3 var(--serif); }
.lb-cap:empty { display: none; }
.lb-tools { display: inline-flex; gap: 8px; }
.lightbox .lb-tool { position: static; display: inline-flex; align-items: center; gap: 8px; width: auto; height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font: 500 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; opacity: 1; cursor: pointer; }
.lightbox .lb-tool:hover { background: #fff; color: #2A0E16; }
.lightbox .lb-tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lightbox > button { position: absolute; width: 56px; height: 56px; border: 0; background: none; color: #fff; font: 300 2.6rem/1 var(--sans); opacity: .75; cursor: pointer; }
.lightbox > button:hover { opacity: 1; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-msg { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 18px; background: #fff; color: #2A0E16; font-size: .92rem; }
@media (max-width: 640px) { .lightbox img { border-width: 6px; } .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }

/* 07 · Reservas y grupos */
.booking-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.booking-info .sec-head { margin-bottom: 0; }
.groups { margin-top: clamp(40px, 5vw, 60px); padding-top: 36px; border-top: 1px solid var(--line); }
.groups h3 { font-size: 1.7rem; margin-bottom: 14px; }
.groups .prose { color: var(--ink-soft); }
.groups-facts { display: grid; gap: 12px; margin: 24px 0; }
.groups-facts li { display: flex; align-items: center; gap: 14px; }
.groups-facts .ic { width: 22px; height: 22px; color: var(--brass-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line-strong); font-size: .85rem; letter-spacing: .03em; color: var(--ink-soft); }
.book-form { position: relative; padding: clamp(26px, 4vw, 48px); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.book-form::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.book-form h3 { font-size: 1.9rem; margin-bottom: 24px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.f-wide { grid-column: 1 / -1; }
.f-grid label { display: flex; flex-direction: column; gap: 8px; font: 500 .7rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.f-grid input, .f-grid select, .f-grid textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--sans); letter-spacing: normal; text-transform: none; transition: border-color .2s, box-shadow .2s; }
.f-grid select { appearance: none; padding-right: 42px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.f-grid textarea { resize: vertical; min-height: 96px; }
.f-grid input:focus, .f-grid select:focus, .f-grid textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ink) 18%, transparent); }
.f-grid .is-bad { border-color: var(--err); }
.f-err { color: var(--err); font-size: .82rem; letter-spacing: .02em; text-transform: none; }
.f-check { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 8px; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.f-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.f-check .f-err { display: block; margin-top: 4px; }
.f-hint { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.book-form .btn { width: 100%; }
.form-msg { padding: 14px 16px; margin-bottom: 20px; border-left: 3px solid var(--line-strong); background: var(--bg); font-size: .95rem; }
.form-msg.ok { border-color: var(--ok); }
.form-msg.err { border-color: var(--err); }
.form-msg[hidden] { display: none; }
.book-form.is-sent .f-grid, .book-form.is-sent .f-check, .book-form.is-sent .f-hint, .book-form.is-sent .btn { display: none; }
.book-form.flash { animation: flash-form 1.4s ease; }
@keyframes flash-form { 0%, 100% { box-shadow: 0 0 0 1px var(--line), var(--shadow); } 30% { box-shadow: 0 0 0 3px var(--brass), var(--shadow); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 980px) { .booking-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .f-grid { grid-template-columns: 1fr; } }

/* Restaurante de la casa */
.rest { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: 560px; background: var(--band-2); color: var(--band-ink); }
.rest-img { position: relative; min-height: 340px; }
.rest-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rest-img .img-empty { height: 100%; aspect-ratio: auto; }
.rest-panel { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(48px, 7vw, 100px) clamp(28px, 6vw, 90px); background: linear-gradient(160deg, #5A1828, #3A0F1A); }
.rest-kicker { font: 500 .74rem/1.3 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--band-brass); margin-bottom: 18px; }
.rest h2 { font-size: clamp(2rem, 4vw, 3.1rem); color: #fff; margin-bottom: 20px; }
.rest .prose { color: rgba(243, 235, 225, .86); margin-bottom: 32px; max-width: 30em; }
.rest .prose a { color: #fff; }
@media (max-width: 860px) { .rest { grid-template-columns: 1fr; } .rest-img { min-height: 0; aspect-ratio: 16 / 10; } }

/* Preguntas frecuentes */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 400 1.3rem/1.3 var(--serif); cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-ink); }
.faq-list summary i { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--ink-soft); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .sec-head { margin-bottom: 0; } }

/* 08 · Horario y ubicación */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: stretch; }
.visit-info .sec-head { margin-bottom: 28px; }
.visit-info > .prose { color: var(--ink-soft); }
address { margin: 26px 0 16px; font-style: normal; font-size: 1.05rem; line-height: 1.6; }
address strong { font: 400 1.3rem/1.4 var(--serif); }
.contact-list { display: grid; gap: 8px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .ic { color: var(--brass-ink); }
.contact-list a { color: inherit; text-decoration-color: var(--line-strong); }
.hours-box { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.hours-box h3 { font-size: 1.7rem; margin-bottom: 12px; }
.hours-box > .open-status { margin-bottom: 18px; }
.season { position: relative; margin-top: 18px; padding: 18px 0 4px 20px; border-left: 1px solid var(--line-strong); }
.season.is-current { border-left: 2px solid var(--accent-ink); }
.season:not(.is-current) { color: var(--muted); }
.season-name { margin-bottom: 8px; font: 400 1.2rem/1.3 var(--serif); }
.season-name small { display: block; font: 400 .85rem/1.4 var(--sans); color: var(--muted); }
.season-name em { display: inline-block; margin-left: 8px; padding: 3px 9px; background: var(--accent); color: var(--on-accent); font: 600 .62rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; vertical-align: middle; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dotted var(--line-strong); }
.hours dt { font-weight: 400; }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours .today { font-weight: 600; color: var(--ink); }
.hours small { margin-left: 6px; padding: 2px 7px; border: 1px solid currentColor; font: 600 .62rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; vertical-align: middle; }
.hours-note { margin-top: 16px; font-size: .92rem; color: var(--muted); font-style: italic; }
.closures { display: grid; gap: 6px; margin-top: 16px; font-size: .92rem; }
.closures li { padding-left: 16px; position: relative; }
.closures li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 1px; background: var(--accent-ink); }
.map { position: relative; min-height: 460px; }
.map iframe, .map .leaflet-container, .map-osm > div { width: 100%; height: 100%; min-height: 420px; border: 0; }
.map.mat { display: flex; }
.map.mat > * { flex: 1; }
.map-fallback { display: grid; place-items: center; min-height: 420px; background: var(--bg-alt); }
.map .leaflet-container { background: var(--bg-alt); font-family: var(--sans); }
@media (max-width: 980px) { .visit-grid { grid-template-columns: 1fr; } .map { min-height: 380px; } }

/* ---------- Pie ---------- */
.site-footer { position: relative; background: var(--band); color: var(--band-ink); padding: clamp(64px, 8vw, 100px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.foot-logo svg { width: 190px; height: auto; color: var(--band-ink); }
.foot-logo.logo-img img { height: 76px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.foot-claim { margin-top: 22px; max-width: 26em; font: italic 400 1.15rem/1.5 var(--serif); color: var(--band-muted); }
.foot-col h2 { margin-bottom: 16px; font: 500 .72rem/1.3 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--band-brass); }
.foot-col p, .foot-links { font-size: .95rem; color: var(--band-muted); }
.foot-col a { color: var(--band-ink); text-decoration-color: rgba(243, 235, 225, .3); }
.foot-col a:hover { color: var(--band-brass); }
.foot-links { display: grid; gap: 6px; margin-bottom: 20px; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--band-line); border-radius: 50%; color: var(--band-ink); transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--band-ink); border-color: var(--band-ink); color: var(--band); }
.social svg { width: 18px; height: 18px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 12px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--band-line); font-size: .85rem; color: var(--band-muted); }
.foot-bottom p { margin: 0; }
.footer-credit { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 8px; margin-left: 10px; }
.footer-credit .sep { opacity: .4; }
.footer-credit .credit-logo { display: inline-flex; line-height: 0; transition: opacity .2s; }
.footer-credit .credit-logo:hover { opacity: .75; }
.footer-credit .credit-logo img { height: 22px; width: auto; display: block; }
.footer-credit .credit-mail { color: var(--band-muted); text-underline-offset: 3px; }
.footer-credit .credit-mail:hover { color: var(--band-ink); }
@media (max-width: 560px) {
  .foot-bottom p { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .footer-credit { margin-left: 0; }
  .footer-credit > .sep:first-child { display: none; }
  .site-footer { padding-bottom: 80px; } /* holgura para que el botón «volver arriba» no tape el pie */
}
.legal-links { display: grid; gap: 8px; margin-top: 22px; }
.legal-links a { color: var(--band-muted); text-decoration: none; }
.legal-links a:hover { color: var(--band-ink); text-decoration: underline; }
.legal-links .foot-install { color: var(--band-muted); }
.legal-links .foot-install:hover { color: var(--band-ink); }
.site-footer :focus-visible { outline-color: var(--band-brass); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Textos legales */
.legal-dialog { width: calc(100% - 32px); max-width: 720px; max-height: 85vh; padding: clamp(24px, 5vw, 48px); border: 0; background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, .4); }
.legal-dialog::backdrop { background: rgba(18, 8, 11, .6); }
.legal-dialog h3 { font-size: 1.8rem; margin-bottom: 18px; }
.legal-dialog form { margin-top: 28px; text-align: right; }

/* Volver arriba */
.to-top { position: fixed; z-index: 55; right: 18px; bottom: 18px; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--header-solid); color: var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s, color .2s; }
.to-top[hidden] { display: grid; }
.to-top.show { opacity: .9; transform: none; pointer-events: auto; }
.to-top:hover { opacity: 1; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body:has(.editbar) .to-top { bottom: 92px; }

/* Barra inferior del móvil */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { position: fixed; z-index: 60; inset: auto 0 0 0; display: flex; background: var(--band); box-shadow: 0 -10px 24px rgba(0, 0, 0, .2); padding-bottom: env(safe-area-inset-bottom); }
  .mbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; color: var(--band-ink); text-decoration: none; font: 500 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
  .mbar a + a { border-left: 1px solid var(--band-line); }
  .mbar a.mbar-main { background: var(--accent); color: #fff; }
  .mbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  body.has-mbar { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  body.has-mbar .to-top { bottom: calc(58px + 14px + env(safe-area-inset-bottom)); right: 14px; }
}

/* ---------- Modo edición ---------- */
.hero-media.editable-img { position: absolute; }
/* (solo con foto única: el pase de fotos se edita en Portada y debe quedar siempre detrás del texto) */
.is-editing .hero-media:not(.hero-slides) { z-index: auto; }
.is-editing .hero-media:not(.hero-slides) img { position: relative; z-index: -3; }
.is-editing .hero-shade { z-index: -2; }
.rest-img.editable-img { position: relative; }
.is-editing .hero-media .img-tools { top: calc(var(--hdr) + 20px); }
.is-editing .hero-in { padding-top: 30px; }
.is-editing .hero-title [data-edit] { display: inline-block; }
.notice-edit { border-style: dashed !important; }
.is-editing .rest-img .img-tools, .is-editing .about-img .img-tools { top: 20px; left: 20px; }
.band .edit-panel-link, .rest .edit-panel-link { align-self: flex-start; }

/* ---------- Efectos (Ajustes → Efectos) ----------
   - html.fx       : animaciones activadas
   - html.fx-ready : el JavaScript ha preparado los elementos (sin JS todo se ve normal) */
.fx-ready .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1.1s var(--ease); transition-delay: var(--rv-delay, 0s); }
.fx-ready .rv.is-in { opacity: 1; transform: none; }
.fx-ready .sec-num i { transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
.fx-ready .sec-head.is-in .sec-num i, .fx-ready .is-in > .sec-head .sec-num i { transform: scaleX(1); }
.fx-ready .mat.rv { transform: translateY(40px); }
.fx-ready .mat.rv.is-in { transform: translateY(var(--plx, 0)); transition: opacity 1s ease, transform .2s linear; }
.fx .hero-media img { animation: hero-zoom 18s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.fx .hero-in > * { animation: rise 1.2s var(--ease) both; }
.fx .hero-in > :nth-child(2) { animation-delay: .12s; } .fx .hero-in > :nth-child(3) { animation-delay: .24s; }
.fx .hero-in > :nth-child(4) { animation-delay: .36s; } .fx .hero-in > :nth-child(5) { animation-delay: .48s; }
.fx .hero-in > :nth-child(6) { animation-delay: .6s; } .fx .hero-in > :nth-child(7) { animation-delay: .72s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* Portada con varias fotos que pasan solas (Panel → Portada). Efecto elegido: .fx-fundido, .fx-zoom, .fx-deslizar, .fx-cortina, .fx-desenfoque */
.hero-slides { overflow: hidden; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease, transform 1.2s var(--ease), clip-path 1.4s var(--ease), filter 1.4s ease; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-slide.is-off { opacity: 1; z-index: 1; }
.hero-slide.is-on { opacity: 1; z-index: 2; }
.hero-slide.reset, .hero-slide.reset img { transition: none !important; }
.fx .hero-slides img { animation: none; }
.fx-zoom .hero-slide img { transform: scale(1.12); transition: transform var(--hero-dur, 8s) linear; }
.fx-zoom .hero-slide.is-on img, .fx-zoom .hero-slide.is-off img { transform: scale(1); }
.fx-zoom .hero-slide.is-off { opacity: 0; }
.fx-fundido .hero-slide.is-off, .fx-desenfoque .hero-slide.is-off { opacity: 0; }
.fx-deslizar .hero-slide { opacity: 1; transform: translateX(100%); }
.fx-deslizar .hero-slide.is-on { transform: none; }
.fx-deslizar .hero-slide.is-off { transform: translateX(-25%); }
.fx-cortina .hero-slide { opacity: 1; clip-path: inset(0 100% 0 0); }
.fx-cortina .hero-slide.is-on, .fx-cortina .hero-slide.is-off { clip-path: inset(0); }
.fx-desenfoque .hero-slide { filter: blur(16px); transform: scale(1.05); }
.fx-desenfoque .hero-slide.is-on { filter: none; transform: none; }
.hero-pause { position: absolute; right: var(--gutter); bottom: clamp(20px, 4vh, 40px); z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(20, 6, 10, .25); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.hero-pause:hover, .hero-pause:focus-visible { background: rgba(20, 6, 10, .55); border-color: #fff; }
.hero-pause i { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.hero-pause.is-paused i { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-block: 7px solid transparent; margin-left: 3px; }
@media (max-width: 760px) { .hero-pause { width: 36px; height: 36px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide img { transition: none !important; }
  .hero-pause { display: none; }
  .fx .hero-media img, .fx .hero-in > *, .hero-scroll i::after, .fx .menu li { animation: none !important; }
  .fx-ready .rv { opacity: 1 !important; transform: none !important; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .menu, .editbar, .hero-media, .hero-shade, .hero-actions, .hero-scroll, .rooms-nav, .gallery, .book-form, .map, .mbar, .to-top, .lightbox, .rest-img, .filters, html.grain body::after { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: 0; padding: 0 0 24px; background: none; color: #000; }
  .hero-kicker, .hero-lead, .hero-meta { color: #000; }
  .band, .rest, .rest-panel, .site-footer { background: none !important; color: #000 !important; }
  .band h2, .xp h3, .xp-price, .rates-title, .rest h2 { color: #000 !important; }
  .rooms { display: block; padding: 0; }
  .sec { padding: 28px 0; }
  .fx-ready .rv { opacity: 1 !important; transform: none !important; }
}

/* Logotipo subido en modo nocturno (Ajustes → Logotipo en modo nocturno) */
:root[data-theme="dark"] .site-header.scrolled .logo-invert img { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .site-header.scrolled .logo-light img { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header.scrolled .logo-invert img { filter: invert(1) hue-rotate(180deg); }
  :root:not([data-theme="light"]) .site-header.scrolled .logo-light img { filter: brightness(0) invert(1); }
}

/* Sección apagada (solo se ve así mientras se edita la página) */
.sec-off { opacity: .5; outline: 2px dashed rgba(47, 111, 222, .6); outline-offset: -10px; }
.sec-off:hover { opacity: .85; }
.sec-off-note { position: absolute; z-index: 6; left: 50%; top: 18px; transform: translateX(-50%); margin: 0; padding: 7px 16px; border-radius: 999px; background: #2F6FDE; color: #fff; font: 600 .85rem/1.3 var(--sans); white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.sec-off-note a { color: #fff; }
.rest.sec-off { position: relative; }

/* ---------- Idiomas ---------- */
.hdr-lang { display: inline-flex; align-items: center; margin-right: 4px; font: 500 .7rem/1 var(--sans); letter-spacing: .14em; }
.hdr-lang a { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; color: inherit; text-decoration: none; opacity: .62; }
.hdr-lang a + a { border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.hdr-lang a:hover { opacity: 1; color: inherit; }
.hdr-lang a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: .35em; }
@media (max-width: 640px) { .hdr-lang { display: none; } }
.foot-lang { margin-top: 18px; }
.foot-lang a { display: inline-flex; align-items: center; gap: 8px; }
.lang-bar { position: fixed; z-index: 70; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; width: max-content; max-width: calc(100% - 24px); padding: 12px 14px 12px 20px; background: var(--band); color: var(--band-ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); font-size: .95rem; }
.lang-bar p { margin: 0; }
.lang-bar .btn { min-height: 40px; }
.lang-bar-x { width: 40px; height: 40px; border: 0; background: none; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: .75; }
.lang-bar-x:hover { opacity: 1; }
@media (max-width: 760px) { body.has-mbar .lang-bar { bottom: calc(58px + 12px + env(safe-area-inset-bottom)); } }
/* Editando en inglés: lo que falta por traducir o ha cambiado en español */
.is-editing .tr-falta, .is-editing .tr-pendiente { position: relative; outline: 2px dashed #D9A440 !important; outline-offset: 6px; }
.is-editing .tr-falta { opacity: .75; font-style: italic; }
.is-editing .tr-falta::after, .is-editing .tr-pendiente::after { position: absolute; right: -6px; top: -26px; padding: 3px 9px; border-radius: 999px; background: #8A5800; color: #fff; font: 600 .72rem/1.2 var(--sans); font-style: normal; letter-spacing: .02em; text-transform: none; white-space: nowrap; pointer-events: none; z-index: 5; }
.is-editing .tr-falta::after { content: "Sin traducir · se ve en español"; }
.is-editing .tr-pendiente::after { content: "Pendiente: el español ha cambiado"; }
@media (max-width: 640px) and (min-width: 400px) {
  .hdr-lang { display: inline-flex; margin-right: 0; }
  .hdr-lang a[aria-current] { display: none; }
  .hdr-lang a + a { border-left: 0; }
}

/* Instalar como app: discreto, nunca sale solo. Pie en el ordenador; final del menú en móvil y tableta */
.foot-install, .menu-install { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.foot-install:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; color: var(--band-muted); }
.foot-install:hover { color: var(--band-ink); text-decoration: underline; }
.foot-install .ic { width: 15px; height: 15px; }
.menu-install:not([hidden]) { display: inline-flex; align-items: center; gap: 10px; flex-basis: 100%; color: var(--band-muted); font-size: .9rem; letter-spacing: .04em; }
.menu-install:hover { color: var(--band-ink); }
@media (max-width: 1365px) { .foot-install { display: none !important; } }
.install-dialog { max-width: 480px; }
.install-dialog h3 { font-size: 1.6rem; }
.install-dialog [data-for][hidden] { display: none; }

/* Aviso para el personal mientras la web está «en construcción» (el público no lo ve) */
.cons-flag { position: fixed; left: 12px; bottom: 78px; z-index: 90; max-width: min(92vw, 520px); margin: 0; padding: 10px 14px; border-radius: 10px; background: #FFF4DE; border: 1px solid #E8C97A; color: #5B4208; font: 400 .88rem/1.4 system-ui, sans-serif; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .45); }
.cons-flag a { color: inherit; font-weight: 600; }
@media (max-width: 700px) { .cons-flag { bottom: 132px; } }
@media print { .cons-flag { display: none; } }

/* museo_v030: se vuelve a publicar (mismo contenido que la museo_v019) con ?v=15 para que los navegadores dejen de usar una copia antigua */

/* =========================================================
   museo_v031 · Como en la web del mesón: agenda en ventana, «Nos han visitado», reseñas y galería corta
   ========================================================= */
/* Miniatura: siempre 4:3 y con la foto ENTERA (sea cartel vertical o foto apaisada); el hueco se rellena con la misma foto desenfocada */
.ev-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--bg-alt); box-shadow: var(--shadow); isolation: isolate; }
.ev-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev-img .ev-img-bg { inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(16px) saturate(1.1) brightness(.82); }
.ev-img .ev-img-fg { object-fit: contain; transition: transform .35s ease; }
.ev-img:hover .ev-img-fg { transform: scale(1.04); }
.ev-zoom { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(20, 18, 15, .55); color: #fff; opacity: .85; transition: opacity .2s; }
.ev-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ev-img:hover .ev-zoom, .ev-img:focus-visible .ev-zoom { opacity: 1; }
.ev-body h3 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.ev-body h3 a:hover, .ev-body h3 a:focus-visible { background-size: 100% 1px; color: var(--brass-ink); }
.ev-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-more { display: inline-block; margin-top: .5em; color: var(--brass-ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.ev-more:hover { text-decoration: underline; }

/* Ventana del evento: la foto en grande (con sus proporciones) y toda la información */
/* La ventana nunca pasa del alto de la pantalla: la foto se ajusta entera a ese alto y, si el texto es muy largo,
   se desplaza solo el texto (por dentro). Ordenador/tablet: foto a la izquierda y texto a la derecha. Móvil: foto arriba. */
.ev-dialog { position: fixed; width: fit-content; max-width: min(1100px, calc(100vw - 48px)); max-height: min(90dvh, 820px); padding: 0; border: 0; border-radius: 3px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .45); overflow: hidden; }
.ev-dialog::backdrop { background: rgba(18, 16, 13, .78); }
.ev-dlg-body { display: flex; max-height: min(90dvh, 820px); }
.ev-close { position: absolute; z-index: 3; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(20, 18, 15, .62); color: #fff; cursor: pointer; backdrop-filter: blur(4px); }
.ev-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ev-close:hover { background: var(--accent); }
.evd-img { flex: 0 1 auto; min-width: 0; margin: 0; display: flex; align-items: center; justify-content: center; background: #1E1B17; }
.evd-img img { display: block; width: auto; height: auto; max-width: min(58vw, 640px); max-height: min(90dvh, 820px); object-fit: contain; }
.evd-text { flex: 1 0 340px; width: 400px; max-width: 460px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: clamp(26px, 3vw, 40px) clamp(22px, 3vw, 36px); }
.ev-dlg-body > .evd-text:only-child { width: min(600px, calc(100vw - 48px)); max-width: none; padding-right: 64px; }
.evd-date { margin: 0 0 .4em; padding-right: 40px; color: var(--brass-ink); font: 600 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.evd-title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: .4em; }
.evd-desc { color: var(--ink-soft); font-size: 1.04rem; }
.evd-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 1.3em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.evd-foot .ev-price { font-size: 1.8rem; }
.evd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.evd-actions .btn { min-height: 44px; }
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .ev-dialog { width: calc(100vw - 24px); max-width: 560px; max-height: calc(100dvh - 24px); }
  .ev-dlg-body { flex-direction: column; max-height: calc(100dvh - 24px); }
  .evd-img { flex: 0 0 auto; }
  .evd-img img { max-width: 100%; max-height: 42dvh; }
  .evd-text { flex: 1 1 auto; width: auto; max-width: none; min-height: 0; padding: 20px 20px 22px; }
  .ev-dlg-body > .evd-text:only-child { width: auto; }
  .evd-actions, .evd-actions .btn { width: 100%; }
}
/* ---------- Vídeos «Nos han visitado» ---------- */
/* v047 · Cuadrícula sin desplazamiento lateral: 4 por fila en ordenador, 3 en tablet y 2 en el móvil */
.vid-row { list-style: none; margin: 0 auto; padding: 6px 0 4px; max-width: 988px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 232px)); justify-content: center; gap: 20px; }
.vid { min-width: 0; }
.vid-card { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 3px; overflow: hidden; background: #1E1B17; color: #fff; text-align: left; cursor: pointer; box-shadow: var(--shadow); isolation: isolate; transition: transform .25s, box-shadow .25s; }
.vid-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -12px rgba(48, 22, 12, .5); }
.vid-card:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.vid-cover, .vid-cover img, .vid-cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0, transparent 22%, transparent 52%, rgba(0, 0, 0, .78) 100%); }
/* Tarjeta sin portada: a juego con la web (papel, marco fino con los colores de la red y su logotipo) */
.vid-card.no-cover { background: var(--surface); color: var(--ink); border: 1px solid var(--line); text-shadow: none; }
.vid-card.no-cover::before { content: ""; position: absolute; inset: 7px; z-index: 1; pointer-events: none; border-radius: 3px; padding: 2px; background: var(--ring, linear-gradient(45deg, #F9CE34, #EE2A7B 50%, #6228D7)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .75; }
.vid-card.no-cover.is-tiktok { --ring: linear-gradient(45deg, #25F4EE, #2B2926 50%, #FE2C55); }
.vid-card.no-cover .vid-cover::after { display: none; }
.vid-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 18px 90px; background: var(--surface); }
.vid-ph-logo { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 22px; color: #fff; background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); box-shadow: 0 8px 20px -8px rgba(80, 30, 60, .5); }
.vid-card.is-tiktok .vid-ph-logo { background: #111; box-shadow: -3px -3px 0 #25F4EE inset, 3px 3px 0 #FE2C55 inset, 0 8px 20px -8px rgba(0, 0, 0, .5); }
.vid-ph-logo svg { width: 42px; height: 42px; }
.vid-ph-name { font: italic 400 1.15rem/1.2 var(--serif); color: var(--muted); text-align: center; }
.vid-ph-who { max-width: 100%; margin-top: 2px; font: 600 .98rem/1.25 var(--sans); letter-spacing: -.005em; color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.vid-ph-who + .vid-ph-name { margin-top: -8px; font-size: 1rem; }
.vid-card.no-cover .vid-play { top: auto; bottom: 74px; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px -6px rgba(48, 22, 12, .6); }
.vid-card.no-cover:hover .vid-play { background: var(--accent-hover); }
.vid-card.no-cover .vid-plat { display: none; }
.vid-card.no-cover .vid-info { color: var(--ink); text-align: center; align-items: center; }
.vid-card.no-cover .vid-info small { opacity: .8; }
.vid-play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 251, 242, .92); color: #2B2926; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: transform .25s, background .25s; }
.vid-play svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.vid-card:hover .vid-play { transform: scale(1.08); background: #fff; }
.vid-plat { position: absolute; z-index: 1; top: 12px; right: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .45); backdrop-filter: blur(4px); }
.vid-plat svg { width: 17px; height: 17px; }
.vid-info { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 3px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.vid-info strong { font: 600 .98rem/1.2 var(--sans); overflow-wrap: anywhere; }
.vid-info small { font: italic 400 1.02rem/1.25 var(--serif); opacity: .92; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Cuántos se ven de entrada (el resto, con «Ver más vídeos») */
.vid-grid:not(.show-all) .vid:nth-child(n+9) { display: none; }
.more-wrap { margin: clamp(20px, 3vw, 30px) 0 0; text-align: center; }
.more-wrap:has(> [hidden]) { display: none; }
@media (max-width: 1024px) { .vid-row { max-width: 716px; grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); } }
@media (max-width: 600px) {
  .vid-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; }
  .vid-row:has(> li:only-child) { grid-template-columns: minmax(0, 220px); }
  .vid-grid:not(.show-all) .vid:nth-child(n+5) { display: none; }
  .vid-card { border-radius: 3px; }
  .vid-play { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
  .vid-play svg { width: 21px; height: 21px; }
  .vid-info { left: 10px; right: 10px; bottom: 10px; }
  .vid-info strong { font-size: .88rem; }
  .vid-info small { font-size: .92rem; -webkit-line-clamp: 2; }
  .vid-ph { gap: 8px; padding: 12px 8px 92px; }
  .vid-ph-logo { width: 54px; height: 54px; border-radius: 16px; }
  .vid-ph-logo svg { width: 30px; height: 30px; }
  .vid-ph-who { font-size: .84rem; }
  .vid-ph-name { font-size: .92rem; }
  .vid-ph-who + .vid-ph-name { display: none; }   /* en el móvil sobra: el logotipo ya dice qué red es */
  .vid-card.no-cover .vid-play { bottom: 46px; }
  .vid-card.no-cover::before { inset: 5px; }
}

/* Ventana del vídeo */
.vid-dialog { width: fit-content; max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; color: #F3EBE1; overflow: visible; }
.vid-dialog::backdrop { background: rgba(18, 16, 13, .88); }
.vid-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vid-stage { position: relative; width: min(92vw, calc((100dvh - 150px) * 9 / 16), 420px); aspect-ratio: 9 / 16; border-radius: 3px; overflow: hidden; background: #000; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); }
.vid-stage.is-instagram { aspect-ratio: 400 / 710; width: min(92vw, calc((100dvh - 170px) * 400 / 710), 420px); background: #fff; }
.vid-stage.is-instagram iframe { background: #fff; }
.vid-stage iframe, .vid-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vid-stage video { object-fit: contain; }
.vid-stage .vid-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #bbb; font-size: .95rem; }
.vid-close { position: absolute; z-index: 3; top: -6px; right: -60px; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.vid-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.vid-close:hover { background: var(--accent); border-color: var(--accent); }
@media (max-width: 620px) { .vid-close { top: auto; bottom: calc(100% + 8px); right: 0; } .vid-box { margin-top: 56px; } .vid-stage, .vid-stage.is-instagram { width: min(92vw, calc((100dvh - 190px) * 9 / 16)); } }
.vid-foot { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: .95rem; text-align: center; max-width: 420px; }
.vid-who { font-weight: 600; }
.vid-profile { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.vid-profile:hover { color: var(--brass); text-decoration-color: currentColor; }
.vid-ext { color: var(--brass); }
.vid-ext:hover { color: #fff; }
.vid-help { margin: 0; max-width: 400px; font-size: .86rem; line-height: 1.45; text-align: center; color: rgba(239, 233, 222, .85); }
.vid-help a { color: var(--brass); }
.vid-cookies { margin: 0; max-width: 380px; font-size: .8rem; line-height: 1.4; text-align: center; color: rgba(239, 233, 222, .7); }

/* ---------- Reseñas de Google ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: -2px; }
.stars svg { width: 18px; height: 18px; }
.stars .s0 { fill: var(--line); }
.stars .s1 { fill: #B8893A; }
.rev-summary { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin: .4rem 0 0; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.rev-summary strong { font: 400 1.7rem/1 var(--serif); }
.rev-summary .stars svg { width: 20px; height: 20px; }
.rev-summary > span:last-child { color: var(--ink-soft); font-size: .95rem; }
.rev-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.rev-list:has(> li:only-child) { max-width: 520px; }
.rev-list:has(> li:nth-child(2):last-child) { max-width: 820px; }
.rev { min-width: 0; }
.rev-list.has-open { align-items: start; }   /* v051 · al desplegar una reseña, las demás no se estiran */
.rev figure { position: relative; height: 100%; display: flex; flex-direction: column; margin: 0; padding: 26px 24px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; }
.rev figure::before { content: "\201C"; position: absolute; top: 2px; right: 18px; font: 400 4.6rem/1 var(--serif); color: var(--brass); opacity: .35; }
.rev-text { margin: 12px 0 18px; font: 400 1.14rem/1.55 var(--serif); color: var(--ink); text-align: justify; hyphens: auto; -webkit-hyphens: auto; }   /* v050 · justificado, con guiones para que no queden huecos grandes */
.rev-text p { margin: 0; }
.rev-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.rev-more { align-self: flex-start; margin: -10px 0 16px; padding: 0; border: 0; background: none; color: var(--brass-ink); font: 600 .92rem/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rev figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.rev-avatar { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-alt); color: var(--brass-ink); font: 400 1.25rem/1 var(--serif); border: 1px solid var(--line); }
.rev figcaption strong { display: block; font-weight: 600; font-size: .98rem; line-height: 1.25; }
.rev figcaption small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.rev figcaption a { color: inherit; }
.rev-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(22px, 3vw, 34px); }
.rev-actions .btn-review { margin-top: 0; }
.rev-actions .ext { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Reseñas: de entrada 6 en ordenador y 3 en el móvil (una debajo de otra); el resto, con «Ver más reseñas» */
.rev-wrap:not(.show-all) .rev:nth-child(n+7) { display: none; }
@media (max-width: 700px) {
  .rev-list, .rev-list:has(> li:only-child), .rev-list:has(> li:nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 14px; }
  .rev-wrap:not(.show-all) .rev:nth-child(n+4) { display: none; }
}

/* ---------- museo_v031 · Agenda: miniatura que enseña siempre la foto entera y ficha de cada actividad en una ventana ---------- */
.ev-body h3 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.ev-body h3 a:hover, .ev-body h3 a:focus-visible { background-size: 100% 1px; color: var(--accent-ink); }
.ev-body .ev-desc { color: var(--ink-soft); max-width: 40em; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--accent-ink); font: 500 .76rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.ev-more .ic { width: 14px; height: 14px; }
.ev-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.evd-date { color: var(--accent-ink) !important; }
@media (max-width: 980px) {
  .ev-img { display: block; grid-column: 2; grid-row: 1; width: 100%; max-width: 420px; }
  .event.has-img .ev-body { grid-row: 2; }
  .event.has-img .ev-date { grid-row: 1 / 3; }
}

/* museo_v031 · Galería: de entrada solo unas cuantas (Panel → Galería), el resto con «Ver todas las fotos»; en el móvil, 2 columnas */
.gallery-grid li.is-over { display: none; }
@media (max-width: 600px) { .gallery-grid { columns: 2; column-gap: 10px; } .gallery-grid li { margin-bottom: 10px; } }
@media print { .vid-grid, .rev-actions, .rev-more, .more-wrap { display: none !important; } .rev-wrap .rev { display: block !important; } .rev-list { grid-template-columns: 1fr 1fr; } .rev-text.is-clamped { display: block; } }
/* En el museo las cabeceras de sección van a la izquierda: la cuadrícula de vídeos y reseñas, también */
.videos .vid-row, .reviews .rev-list { margin-inline: 0; justify-content: start; }
.reviews .rev-actions, .videos .more-wrap, .reviews .more-wrap { justify-content: flex-start; text-align: left; }
.reviews .sec-head .rev-summary { margin-top: 18px; }
/* Los iconos sin clase del museo van en línea (trazo): las estrellas y el ▶ de los vídeos son rellenos */
.stars svg path, .vid-play svg path { stroke: none; }
.vid-play svg path { fill: currentColor; }
.vid-card.no-cover .vid-info { text-shadow: none; }

/* =========================================================
   museo_v032 · Huecos de proporción fija («Comer en la bodega», «El museo», salas y visitas):
   cualquier imagen se ve bien, tenga la forma que tenga (ver fit_inner() en inc/front.php)
   ========================================================= */
.fit-box { position: relative; display: block; overflow: hidden; aspect-ratio: var(--fit-ar); }
.fit-box img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.fit-cover .fit-fg { object-fit: cover; }
.fit-blur .fit-bg { inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(18px) saturate(1.05) brightness(.82); transform: none !important; }
.fit-blur .fit-fg { object-fit: contain; }
.fit-logo .fit-box { background: #F4EDE3; }
.fit-logo .fit-fg { object-fit: contain; padding: 9%; }
.rest-img .fit-box { position: absolute; inset: 0; aspect-ratio: auto; }
.about-img .fit-box img, .room-img .fit-box img, .xp-img .fit-box img { aspect-ratio: auto; }
.room:hover .room-img .fit-bg { transform: none; }
/* El fondo desenfocado es más grande que el hueco (para que el desenfoque no deje bordes claros) */
.fit-blur .fit-bg, .ev-img .ev-img-bg { max-width: none; }
