/* Base compartida: reset, fuentes, utilidades y piezas comunes (menú, lightbox, hero, botones).
   Cada variante define sus tokens (colores) en su propio css; acá solo se consumen variables. */
:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
em { font-style: italic; }

/* Foco visible: --focus se redefine en fondos oscuros con .on-dark */
:focus-visible { outline: 3px solid var(--focus, currentColor); outline-offset: 3px; border-radius: 4px; }
.on-dark { --focus: #F2EDE3; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.is-locked { overflow: hidden; }

/* Iconos inline (los inyecta shared.js desde data-icon) */
.ico { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 26px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--accent-text); }
.btn--lg { min-height: 56px; padding: 10px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.eyebrow { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }

/* Hero genérico: imagen/video a sangre + scrim */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__media, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__video { z-index: -2; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Menú (pantalla completa por defecto; D lo pisa como panel lateral). Solo existe en mobile */
.menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; padding: 20px 20px 28px; background: var(--menu-bg); color: var(--menu-text); --focus: var(--menu-text); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; overflow-y: auto; }
.menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.menu__logo { font-family: var(--font-display); font-weight: 600; font-size: 26px; }
.menu__nav { display: flex; flex-direction: column; gap: 6px; margin: 40px 0; }
.menu__nav a { font-family: var(--font-display); font-size: 40px; line-height: 1.15; text-decoration: none; padding: 6px 0; }
.menu__cta { margin-top: auto; }
.menu-backdrop { position: fixed; inset: 0; z-index: 59; background: rgba(12, 18, 17, .55); opacity: 0; visibility: hidden; transition: opacity .38s, visibility 0s .38s; }
.menu-backdrop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

/* WhatsApp flotante (solo mobile) */
.wa-float { position: fixed; right: 16px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-text); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); font-size: 26px; text-decoration: none; }

/* Lightbox (lo arma shared.js) */
.lb { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: rgba(12, 18, 17, .92); color: #F2EDE3; }
.lb__img { max-width: min(960px, 92vw); max-height: min(620px, 68vh); width: auto; height: auto; border-radius: 6px; object-fit: contain; }
.lb__cap { font-size: 16px; text-align: center; }
.lb__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(242, 237, 227, .5); background: rgba(12, 18, 17, .5); color: #F2EDE3; --focus: #F2EDE3; }
.lb__btn:hover { background: rgba(242, 237, 227, .15); }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (min-width: 768px) { .menu, .menu-backdrop, .menu-btn, .wa-float { display: none !important; } }
@media (max-width: 767.98px) { .only-d { display: none !important; } .lb__prev { left: 8px; } .lb__next { right: 8px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; font-size: 26px; border-radius: 50%; }
