/* Phase 02F flagship layer (02E masthead/footer/visit/about kept; 02E hero, table, shelf and mosaic removed). Loads after styles.css; the 02D stylesheet stays intact underneath. */
:root {
  --vino: #5c1b26;
  --vino-2: #3a1018;
  --vino-3: #1d0a0e;
  --pino: #123628;
  --pino-2: #0b241a;
  --papel: #d7cdc4;
  --papel-ink: #2a211c;
  --foil-1: #ecd6a4;
  --foil-2: #c8a165;
  --foil-3: #8c6631;
  --mast-h: 76px;
  /* gentle spring: one small overshoot, settles fast */
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.087 24.6%, 1.084 27%, 1.064 30.6%, 1.006 39.4%, .993 43.8%, .989 48.6%, 1.001 69.3%, 1);
  --mask-ink: #000;
  --ed-h: clamp(2.1rem, 1.3rem + 3vw, 4.4rem);
}

/* ---------- Masthead ---------- */
.mast { position: sticky; top: 0; z-index: 60; height: var(--mast-h); background: color-mix(in srgb, var(--noche) 94%, transparent); border-bottom: 1px solid var(--line-dark); transition: background-color 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease; }
@supports (backdrop-filter: blur(1px)) { .mast { background: color-mix(in srgb, var(--noche) 78%, transparent); backdrop-filter: blur(14px) saturate(1.2); } }
body.has-stage .mast:not([data-solid]) { background: linear-gradient(180deg, color-mix(in srgb, var(--shade) 55%, transparent), transparent) border-box; border-color: transparent; backdrop-filter: none; }
.mast[data-solid] { background: color-mix(in srgb, var(--noche) 96%, transparent); }
.mast__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; height: 100%; }
.mast__brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--cal); text-decoration: none; }
.mast__brand img { width: 48px; height: auto; }
.mast__word { font: 400 1.3rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.mast__nav { display: flex; justify-content: center; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.mast__link { position: relative; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0; border: 0; background: none; color: var(--cal); font: 500 .98rem/1 var(--f-body); text-decoration: none; cursor: pointer; }
.mast__link svg { width: 12px; height: 12px; transition: rotate 200ms var(--ease-out); }
.mast__link[aria-expanded="true"] svg { rotate: 180deg; }
.mast__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--oro); scale: 0 1; transform-origin: left; transition: scale 260ms var(--ease-out); }
.mast__link[aria-current="page"]::after, .mast__link.is-current::after, .mast__link[aria-expanded="true"]::after { scale: 1 1; }
@media (hover: hover) and (pointer: fine) { .mast__link:hover::after { scale: 1 1; } }
.mast .nav a[aria-current="page"] { box-shadow: none; }
.mast .dropdown { position: relative; }
.mast__panel { position: absolute; top: calc(100% + 10px); left: -1.1rem; z-index: 5; display: grid; min-width: 17rem; padding: .5rem; background: color-mix(in srgb, var(--noche-2) 97%, transparent); border: 1px solid var(--line-dark); border-radius: 8px; box-shadow: 0 24px 60px -20px var(--shade); transform-origin: 20% 0; }
.mast__panel:not([hidden]) { animation: panel-in 180ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.mast__panel a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border-radius: 5px; color: var(--cal); font: 400 1.2rem/1.1 var(--f-display); text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
.mast__panel a small { font: 400 .78rem/1 var(--f-body); color: var(--cal-soft); white-space: nowrap; }
.mast__panel a:hover, .mast__panel a:focus-visible { background: color-mix(in srgb, var(--cal) 7%, transparent); color: var(--oro-light); }
.mast__panel a[aria-current="page"] { color: var(--oro-light); }
.mast__panel .mast__panel-print { margin-top: .35rem; padding-top: .9rem; border-top: 1px solid var(--line-dark); border-radius: 0 0 5px 5px; font: 500 .95rem/1.1 var(--f-body); }
.mast__actions { display: flex; align-items: center; gap: .5rem; }
.mast__dir { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; color: var(--cal); font: 500 .95rem/1 var(--f-body); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .mast__dir:hover { color: var(--oro-light); } }
.mast__call { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; background: var(--jamaica); color: var(--blanco); font: 600 .95rem/1 var(--f-body); text-decoration: none; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.mast__call svg { width: 16px; height: 16px; }
.mast__call:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .mast__call:hover { background: var(--jamaica-deep); } }
.mast__menu { display: none; width: 48px; height: 48px; border: 1px solid var(--line-dark); border-radius: 999px; background: none; color: var(--cal); cursor: pointer; place-content: center; gap: 8px; }
.mast__menu span { display: block; width: 18px; height: 1.5px; background: currentColor; }
.mast__menu span:last-child { width: 12px; justify-self: end; }
@media (max-width: 1023px) {
  .mast__nav, .mast__dir { display: none; }
  .mast__menu { display: grid; }
  .mast__bar { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 420px) { :root { --mast-h: 68px; } .mast__brand { gap: .5rem; } .mast__brand img { width: 40px; } .mast__word { font-size: 1.05rem; letter-spacing: .09em; } }
@media (max-width: 350px) { .mast__brand img { width: 34px; } .mast__word { font-size: .95rem; letter-spacing: .07em; } }

/* Phone folio (the sheet dialog) */
dialog.folio { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--noche); color: var(--cal); }
dialog.folio::backdrop { background: var(--shade); }
.folio__inner { display: grid; grid-template-rows: auto 1fr auto; min-height: 100%; padding: 0 var(--gutter) max(1.25rem, env(safe-area-inset-bottom)); }
.folio__top { display: flex; align-items: center; justify-content: space-between; height: var(--mast-h); }
.folio__close { width: 48px; height: 48px; border: 1px solid var(--line-dark); border-radius: 999px; background: none; color: var(--cal); cursor: pointer; display: grid; place-items: center; }
.folio__close svg { width: 20px; height: 20px; }
.folio__nav { display: flex; flex-direction: column; align-items: flex-start; padding-block: 1.5rem; }
.folio__label { margin: 1.4rem 0 .4rem; font: 500 .82rem/1 var(--f-body); color: var(--oro); }
.folio__label:first-child { margin-top: 0; }
.folio__nav a { display: block; padding: .3rem 0; color: var(--cal); font: 400 clamp(1.9rem, 1.4rem + 2.5vw, 2.6rem)/1.15 var(--f-display); text-decoration: none; }
.folio__nav a.folio__small { margin-top: .2rem; font: 500 1rem/1.4 var(--f-body); color: var(--oro-light); }
.folio__nav a[aria-current="page"] { color: var(--oro-light); }
.folio[open] .folio__nav > * { animation: folio-in 420ms var(--ease-out) both; }
.folio[open] .folio__nav > :nth-child(2) { animation-delay: 30ms; } .folio[open] .folio__nav > :nth-child(3) { animation-delay: 60ms; } .folio[open] .folio__nav > :nth-child(4) { animation-delay: 90ms; } .folio[open] .folio__nav > :nth-child(5) { animation-delay: 120ms; } .folio[open] .folio__nav > :nth-child(n+6) { animation-delay: 160ms; }
@keyframes folio-in { from { opacity: 0; transform: translateY(14px); } }
.folio__foot { display: grid; gap: .9rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }
.folio__acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; }
.folio__acts .btn { justify-content: center; text-align: center; }

/* ---------- Shared editorial ---------- */
.ed-h { margin: 0; font: 400 var(--ed-h)/1 var(--f-display); text-wrap: balance; }
.ed-kicker { margin: 0 0 .9rem; font: 600 .95rem/1 var(--f-body); color: var(--oro); }

/* ---------- Footer ---------- */
.folio-foot { background: var(--shade); }
.footer .folio-foot__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem; align-items: start; }
.folio-foot__brand img { width: clamp(120px, 12vw, 160px); height: auto; }
.folio-foot__est { margin: 1rem 0 0; font: 400 1.05rem/1.3 var(--f-display); color: var(--oro-light); }
.folio-foot .footer__h { margin: 0 0 1rem; font: 600 .9rem/1 var(--f-body); color: var(--oro); }
.folio-foot .footer__contact { display: grid; gap: .55rem; font-style: normal; }
.folio-foot .footer__contact a, .folio-foot .footer__links a, .folio-foot__social a { color: var(--cal); text-decoration: none; font-size: 1rem; line-height: 1.45; }
.folio-foot__social { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.folio-foot__social a { display: inline-block; padding-block: .3rem; color: var(--oro-light); }
.folio-foot .footer__links { display: grid; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.folio-foot .footer__hours { font-size: .98rem; }
.folio-foot__base { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.2rem 1.6rem; border-top: 1px solid var(--line-dark); color: var(--cal-soft); font-size: .92rem; }
.folio-foot__base p { margin: 0; }
@media (max-width: 899px) { .footer .folio-foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .footer .folio-foot__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* ---------- Visit page ---------- */
.vhero { padding-block: clamp(3rem, 7vw, 6rem); background: radial-gradient(90% 90% at 80% 10%, var(--selva) 0%, var(--noche) 70%); color: var(--cal); overflow: clip; }
.vhero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.vhero__title { margin: 0; font: 400 clamp(2.4rem, 1.3rem + 3.8vw, 5rem)/1 var(--f-display); text-wrap: balance; }
.vhero__city { margin: .6rem 0 1.2rem; font: 400 clamp(1.3rem, 1.1rem + .8vw, 1.8rem)/1.2 var(--f-display); color: var(--cal-soft); }
.vhero__status { font-size: 1.05rem; }
.vhero__media { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem; align-items: start; }
.vhero__media figure { margin: 0; }
.vhero__media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4.4; object-fit: cover; border-radius: 999px 999px 8px 8px; box-shadow: 0 40px 70px -30px var(--shade); }
.vhero__b { translate: 0 3rem; }
.vinfo { padding-block: clamp(3rem, 6vw, 5rem); background: var(--noche); color: var(--cal); }
.vinfo__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; }
.vinfo__card { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--noche-2); border: 1px solid var(--line-dark); border-radius: 8px; }
.vinfo__h { margin: 0 0 1.1rem; font: 400 1.8rem/1 var(--f-display); }
.vinfo__h--sp { margin-top: 2rem; }
.vinfo__note { margin: 1.2rem 0 0; color: var(--cal-soft); line-height: 1.55; }
.vinfo__note a, .vinfo__big a { color: var(--oro-light); }
.vinfo__big { margin: 0 0 .6rem; font: 400 clamp(1.3rem, 1.1rem + .8vw, 1.7rem)/1.3 var(--f-display); overflow-wrap: anywhere; }
.vinfo__social { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.vinfo__social a { display: inline-flex; gap: .5rem; min-height: 40px; align-items: center; color: var(--cal); font-weight: 600; }
.vinfo__social span { color: var(--cal-soft); font-weight: 400; }
.vmap { padding-block: clamp(3rem, 6vw, 5rem); background: var(--noche); color: var(--cal); }
.vmap__lede { margin: .8rem 0 1.5rem; color: var(--cal-soft); }
.vmap__frame { position: relative; aspect-ratio: 16 / 7; min-height: 340px; border-radius: 10px; overflow: hidden; background: var(--noche-2); border: 1px solid var(--line-dark); }
.vmap__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmap__alt { margin: 1rem 0 0; color: var(--cal-soft); }
.vmap__alt a { color: var(--oro-light); font-weight: 600; }
.vstrip { padding-bottom: clamp(3rem, 6vw, 5rem); background: var(--noche); }
.vstrip__row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 1rem; }
.vstrip__row figure { margin: 0; height: clamp(220px, 26vw, 380px); overflow: hidden; border-radius: 8px; }
.vstrip__row img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .vhero__grid, .vinfo__grid { grid-template-columns: minmax(0, 1fr); } .vhero__media { max-width: 460px; } .vmap__frame { aspect-ratio: 4 / 3; } .vstrip__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.giftcard__word { grid-column: 1 / -1; justify-self: start; }

/* ---------- Printed menus ---------- */
.printed { padding-block: clamp(4rem, 8vw, 6rem); background: var(--cal); color: var(--ink); scroll-margin-top: var(--mast-h); }
.printed .ed-kicker { color: var(--oro-ink); }
.printed__lede { max-width: 52ch; margin: 1rem 0 2rem; color: var(--ink-soft); }
.printed__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(1rem, 3vw, 2rem); margin: 0; padding: 0; list-style: none; }
.pmenu__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; perspective: 800px; }
.pmenu__open img { display: block; width: 100%; aspect-ratio: 3 / 4.3; object-fit: cover; object-position: 50% 0; border-radius: 4px; box-shadow: 0 20px 40px -24px var(--shade), 0 0 0 1px var(--line-light); transition: transform 500ms var(--ease-out); transform-origin: 50% 100%; }
@media (hover: hover) and (pointer: fine) { .pmenu__open:hover img { transform: rotateX(4deg) translateY(-6px); } }
.pmenu h3 { margin: 1rem 0 .2rem; font: 400 1.35rem/1.1 var(--f-display); }
.pmenu p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.pmenu__acts { display: flex; gap: 1.2rem; margin-top: .4rem; }
.pmenu__acts .stage__link { color: var(--ink); background: none; border-width: 0 0 1px; padding: 0; cursor: pointer; font: 600 .95rem/1 var(--f-body); }
dialog.pviewer { width: min(100%, 980px); max-height: 96dvh; padding: 0; border: 0; border-radius: 10px; background: var(--noche); color: var(--cal); overflow: hidden; }
dialog.pviewer::backdrop { background: color-mix(in srgb, var(--shade) 88%, transparent); }
.pviewer__bar { position: sticky; top: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .7rem 1rem; background: var(--noche-2); border-bottom: 1px solid var(--line-dark); }
.pviewer__title { margin: 0; font: 400 1.3rem/1 var(--f-display); }
.pviewer__acts { display: flex; align-items: center; gap: .5rem; }
.pviewer__acts .btn { min-height: 44px; }
.pviewer__page { max-height: calc(96dvh - 72px); overflow: auto; background: var(--shade); }
.pviewer__page img { display: block; width: 100%; height: auto; }

/* ---------- About ---------- */
.story { padding-block: clamp(4rem, 8vw, 7rem); background: var(--cal); color: var(--ink); }
.story__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.story__body { max-width: 60ch; }
.story__body p { margin: 0 0 1.1rem; font-size: 1.12rem; line-height: 1.65; color: var(--ink-soft); }
.story__body .story__lead { font: 400 clamp(1.4rem, 1.2rem + .9vw, 2rem)/1.35 var(--f-display); color: var(--ink); }
.spotlight { padding-block: clamp(4rem, 8vw, 6rem); background: var(--cal); color: var(--ink); }
.spotlight .ed-kicker { color: var(--oro-ink); }
.spotlight__list { margin-top: 2rem; }
@media (max-width: 760px) { .story__grid { grid-template-columns: minmax(0, 1fr); } }
.mast .mast__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; padding-block: 0; min-height: 0; height: 100%; }
@media (max-width: 1023px) { .mast .mast__bar { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 1000px) { .u-mail { display: none; } }

/* Shared system pieces (moved from home-02f.css in 02G so every page has them) */
:root {
  --t-fast: 180ms; --t-mid: 420ms; --t-slow: 900ms;
  --orna-1: #7d1f2e; --orna-2: #3a0b14; --orna-hi: #c4566a; --orna-gloss: color-mix(in srgb, var(--blanco) 26%, transparent);
  --util-h: 40px;
}
@media (max-width: 760px) { :root { --util-h: 36px; } }

/* Shared pieces */
.orn { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 8.5rem; margin: 0 auto 1.1rem; color: var(--oro); }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .7; }
.orn i { width: 7px; height: 7px; rotate: 45deg; background: currentColor; }
.orn--ink { color: var(--oro-ink); }
.sec-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.2rem, 5vw, 3.8rem); }
.sec-title { margin: 0; font: 400 clamp(2rem, 1.2rem + 3vw, 3.7rem)/1.04 var(--f-display); text-transform: uppercase; letter-spacing: .02em; text-wrap: balance; }
.sec-sub { margin: .9rem 0 0; font-size: 1.05rem; color: var(--ink-soft); }
.sec-head--light .sec-sub { color: var(--cal-soft); }
.kicker { margin: 0 0 .5rem; font: 600 .92rem/1.2 var(--f-body); color: var(--oro); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: inherit; font: 600 1rem/1 var(--f-body); text-decoration: none; }
.link-arrow::after { content: ""; width: 1.4rem; height: 1px; background: currentColor; transition: width var(--t-mid) var(--ease-out); }
.btn-gold, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.6rem; border-radius: 2px; font: 600 1rem/1 var(--f-body); text-decoration: none; transition: background-color var(--t-fast) ease, transform 160ms var(--ease-out); }
.btn-gold { background: var(--oro); color: var(--shade); }
.btn-ghost { border: 1px solid color-mix(in srgb, currentColor 55%, transparent); color: inherit; }
.btn-gold:active, .btn-ghost:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn-gold:hover { background: var(--oro-light); } .btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); } }
.rise { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform var(--t-slow) var(--ease-out); }
.rise.is-in { opacity: 1; transform: none; }
.utility { position: relative; z-index: 56; }

/* Page-to-page navigation crossfades where supported (cross-document View Transitions); elsewhere a normal load.
   The header keeps its own name so it holds still while the page beneath changes. Off for reduced motion. */
@view-transition { navigation: auto; }
.mast { view-transition-name: mast; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Skip link (02L): fully clipped in normal browsing (it used to sit just above the page edge, where overscroll
   "bounce" could reveal it); shown only for keyboard focus, above every layer, linking to #main. */
.skip { position: fixed; left: max(12px, env(safe-area-inset-left)); top: 12px; z-index: 1000; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus-visible { width: auto; height: auto; padding: .75rem 1.1rem; clip-path: none; border-radius: 999px; background: var(--cal); color: var(--ink); font: 600 .95rem/1 var(--f-body); text-decoration: none; box-shadow: 0 10px 30px -10px var(--shade); outline: 2px solid var(--oro); outline-offset: 2px; }

/* Quick-action dock (02L): Call and Directions in one compact pill on phones and tablets, where the header can't
   carry both. It appears after the first screen, steps aside while scrolling down (so it never sits over what
   you're reading), returns on scroll up or a pause, and hides near the footer and while the site menu is open.
   Desktop keeps both actions in the header, so the dock stays off there. [data-dock-slot] is reserved for the
   future concierge so it can join the same pill instead of adding another floating control. */
.dock { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom) + 8px); z-index: 54; display: flex; gap: 4px; padding: 4px; border: 1px solid color-mix(in srgb, var(--oro) 35%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--noche) 92%, transparent); box-shadow: 0 14px 34px -12px var(--shade); translate: -50% 0; transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; transition: transform 420ms var(--ease-out), opacity 260ms ease; }
.dock.is-on { transform: none; opacity: 1; pointer-events: auto; }
.dock__a { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1.15rem; border-radius: 999px; color: var(--cal); font: 600 .95rem/1 var(--f-body); text-decoration: none; transition: background-color var(--t-fast) ease, transform 160ms var(--ease-out); }
.dock__a svg { width: 18px; height: 18px; }
.dock__a--call { background: var(--vino); }
.dock__a:active { transform: scale(.96); }
.dock__a:focus-visible { outline: 2px solid var(--oro-light); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dock__a:hover { background: color-mix(in srgb, var(--cal) 10%, transparent); } .dock__a--call:hover { background: color-mix(in srgb, var(--vino) 82%, var(--cal)); } }
@media (min-width: 1025px) { .dock { bottom: 22px; } }
@media (prefers-reduced-motion: reduce) { .dock { transition: opacity 120ms linear; transform: none; } }

/* Footer: social glyphs, legal links, privacy choices */
.social { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: inherit; text-decoration: none; }
.social svg { flex: none; width: 20px; height: 20px; color: var(--oro-light); transition: color var(--t-fast) ease, transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .social:hover svg { color: var(--cal); transform: translateY(-1px); } }
.social:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 4px; }
.folio-foot__social { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.folio-foot__brand a { display: inline-block; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.footer__legal a, .footer__prefs { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--cal-soft); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Privacy choices dialog */
.prefs { width: min(100% - 2rem, 30rem); padding: clamp(1.4rem, 4vw, 2rem); border: 1px solid color-mix(in srgb, var(--oro) 35%, transparent); border-radius: 8px; background: var(--noche); color: var(--cal); }
.prefs::backdrop { background: color-mix(in srgb, var(--shade) 60%, transparent); }
.prefs h2 { margin: 0 0 .8rem; font: 400 1.6rem/1.1 var(--f-display); text-transform: uppercase; }
.prefs p { margin: 0 0 1rem; color: var(--cal-soft); font-size: .95rem; line-height: 1.55; }
.prefs label { display: flex; gap: .7rem; align-items: flex-start; margin: 1.2rem 0; line-height: 1.45; cursor: pointer; }
.prefs input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--oro); }
.prefs__acts { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Legal pages (privacy, accessibility) */
.legal { padding-block: clamp(3rem, 7vw, 6rem); background: var(--cal); color: var(--ink); }
.legal__wrap { max-width: 44rem; }
.legal .kicker { color: var(--oro-ink); }
.legal__lede { font-size: 1.15rem; line-height: 1.6; }
.legal h2 { margin: 2.2rem 0 .6rem; font: 400 1.5rem/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.7; }
.legal a { color: var(--ink); }
.legal__btn { padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.folio-foot__social { gap: .1rem 1rem; } .folio-foot__social .social { gap: .45rem; }

/* 02M: footer social marks in gold rings (Simple Icons, CC0), names beside them */
.social svg { box-sizing: border-box; width: 38px; height: 38px; padding: 9px; border: 1px solid color-mix(in srgb, var(--oro) 50%, transparent); border-radius: 50%; color: var(--oro-light); transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background-color var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) { .social:hover svg { transform: none; color: var(--noche); background: var(--oro-light); border-color: var(--oro-light); } }
.folio-foot__social { gap: .4rem 1.3rem; margin-top: .6rem; }
/* Privacy dialog close */
/* 02O: a modal <dialog> must stay position: fixed (the earlier position: relative pushed it into the page flow, so
   on iPhone it opened far from where the visitor was). Centred in the visible viewport, scrolls inside if short. */
.prefs { position: fixed; inset: 0; margin: auto; padding-top: clamp(2.6rem, 6vw, 3rem); max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
html.is-locked, html.is-locked body { overflow: hidden; }
.prefs__x { position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--cal) 45%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--cal) 8%, transparent); color: var(--cal); cursor: pointer; }
.prefs__x svg { width: 20px; height: 20px; }
.prefs__x:hover, .prefs__x:focus-visible { background: var(--cal); color: var(--noche); outline: none; }
.prefs .btn-ghost { border-color: color-mix(in srgb, var(--cal) 70%, transparent); color: var(--cal); }

/* 02M: Aztec-inspired greca (stepped-pyramid fret), drawn for this site. Use sparingly as a border or divider.
   .greca = full-width band; .greca--short = centred 9rem divider. Gold steps over a thin evergreen rule. */
:root {
  --verde: #2f6b4f;
  --greca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Cpath d='M0 10.5h3v-3h3v-3h3v-3h6v3h3v3h3v3h3' fill='none' stroke='%23c8a165' stroke-width='1.3'/%3E%3Cpath d='M0 13.2h24' stroke='%232f6b4f' stroke-width='1.4'/%3E%3C/svg%3E");
}
.greca { display: block; height: 14px; background: var(--greca) repeat-x left center / 24px 14px; opacity: .85; }
.greca--short { width: 9rem; margin-inline: auto; }
/* 02M fixes: ghost buttons that are <button>s must not take the browser's grey; social label centred on its ring */
.btn-ghost { background-color: transparent; }
.folio-foot__social .social, main .social { display: inline-flex; align-items: center; padding: 0; line-height: 1; }
.folio-foot__social .social span { line-height: 1.2; }
/* 02N shared video control: when autoplay is refused (or for reduced motion) it becomes a clear gold Play button */
.slot-pause.is-play { background: var(--oro); border-color: var(--oro); color: var(--noche); }
.vstrip figure, .vstrip li { position: relative; }
/* 02N QA: on the narrowest phones the centred dock reached the bottom-right video controls; tuck it left there */
@media (max-width: 380px) { .dock { left: max(12px, env(safe-area-inset-left)); translate: 0 0; } .dock__a { padding: 0 .95rem; gap: .4rem; } }
