/* Maison Ámbar — estilos base (todas las páginas). Cambia los colores en :root. */
:root {
  --bg: #0f0d0b; --bg-2: #15110e; --surface: #1a1612; --line: rgba(214, 178, 106, .18);
  --text: #f4ede2; --muted: #a99d8b;
  --gold: #d6b26a; --gold-2: #ecd09a; --wine: #7a1f2b;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--text); font: 300 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; margin-top: 40px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #1a1208; padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: .01em; }
h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.55rem; }
.eyebrow { font: 500 .74rem var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lead { font-size: 1.12rem; color: #d9cfbf; max-width: 560px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; border: 1px solid var(--gold); background: none; color: var(--gold-2); font: 500 .8rem var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: .3s; border-radius: 2px; }
.btn:hover { background: var(--gold); color: #1a1208; }
.btn.solid { background: var(--gold); color: #1a1208; }
.btn.solid:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--gold); background: transparent; color: var(--gold-2); }
.btn.small { padding: 10px 20px; font-size: .72rem; }
.btn.full { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.link { display: inline-block; color: var(--gold-2); font-weight: 500; font-size: .92rem; letter-spacing: .04em; border-bottom: 1px solid transparent; transition: .2s; }
.link:hover { border-color: var(--gold-2); }

/* Cabecera */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled, body:not([data-page="inicio"]) .site-header { background: rgba(15, 13, 11, .9); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%; font: 600 1.35rem var(--serif); color: var(--gold-2); }
.logo-img { height: 40px; width: auto; }
.brand-text { font: 600 1.45rem var(--serif); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.brand-short { display: none; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.main-nav a { color: #d9cfbf; transition: .2s; padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-2); border-bottom-color: var(--gold); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--gold-2); transition: .3s; }
.nav-toggle span:first-child { top: 18px; } .nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .brand-full { display: none; } .brand-short { display: inline; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 24px; background: rgba(15, 13, 11, .98); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s; }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 18px; }
}

/* Contenedor de foto con respaldo elegante */
.ph { position: relative; overflow: hidden; background:
  radial-gradient(ellipse at 30% 20%, rgba(214,178,106,.34), transparent 60%),
  linear-gradient(135deg, #3a2a1d, #221810 60%, #2e1b22); }
.ph::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(214,178,106,.18); pointer-events: none; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg::after { display: none; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,13,11,.92) 0%, rgba(15,13,11,.62) 55%, rgba(15,13,11,.35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 28%); }
.hero-inner h1 { margin: 6px 0 22px; max-width: 12ch; text-wrap: balance; }
.hero-inner h1::after { content: ""; display: block; width: 72px; height: 1px; background: var(--gold); margin-top: 26px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; color: var(--gold); font-size: 1.3rem; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { translate: -50% 8px; } }

/* Secciones */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section.wrap { padding-inline: 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { text-align: center; margin: 0 auto 48px; max-width: 640px; }
.section-head h2 { margin-bottom: 12px; }

/* Horarios y mapa */
.info-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; }
.info-card { padding: 38px 36px; background: var(--surface); border: 1px solid var(--line); }
.info-card h2 { margin-bottom: 22px; font-size: 2.2rem; }
.hours { list-style: none; padding: 0; display: grid; gap: 12px; margin-bottom: 20px; }
.hours li, .item-top { display: flex; align-items: baseline; gap: 10px; }
.hours li.closed { color: var(--muted); }
.dots { flex: 1; border-bottom: 1px dotted rgba(214,178,106,.4); translate: 0 -4px; min-width: 16px; }
.hours strong { font-weight: 500; white-space: nowrap; }
.address { margin-bottom: 16px; color: #d9cfbf; }
.map { aspect-ratio: 16 / 9; margin-bottom: 16px; border: 1px solid var(--line); background: #120f0c; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) invert(.92) contrast(.9) hue-rotate(180deg); }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } .info-card { padding: 28px 22px; } }

/* Platos */
.dishes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.dish { background: var(--surface); border: 1px solid var(--line); transition: transform .35s, border-color .35s; }
.dish:hover { transform: translateY(-6px); border-color: rgba(214,178,106,.5); }
.dish .ph { aspect-ratio: 4 / 5; }
.dish .tag { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 4px 12px; background: rgba(15,13,11,.8); border: 1px solid var(--line); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.dish .tag:empty { display: none; }
.dish-body { padding: 22px 22px 26px; display: grid; gap: 8px; }
.dish-body p { color: var(--muted); font-size: .95rem; }
.price { font: 600 1.35rem var(--serif); color: var(--gold-2); white-space: nowrap; }

/* Promociones */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.promo { position: relative; padding: 34px 30px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(122,31,43,.22), transparent 60%), var(--surface); display: grid; gap: 10px; align-content: start; }
.promo p { color: #cfc4b3; }
.promo small { color: var(--muted); letter-spacing: .06em; margin-top: 6px; }
.promo-price { font: 600 1.6rem var(--serif); color: var(--gold-2); }
.badge { justify-self: start; padding: 4px 14px; border: 1px solid var(--gold); color: var(--gold-2); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }

/* Opiniones */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review { padding: 34px 30px; border-top: 2px solid var(--gold); background: var(--surface); display: grid; gap: 16px; }
.stars { color: var(--gold); letter-spacing: .2em; }
.review blockquote { font: italic 500 1.35rem/1.45 var(--serif); }
.review figcaption { color: var(--muted); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 14px; }
.shot { padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.shot .ph { width: 100%; height: 100%; }
.shot img { transition: transform .6s; }
.shot:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; } }

.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(8,6,5,.94); padding: 20px; }
.lightbox figure { width: min(960px, 100%); }
.lb-img { aspect-ratio: 3 / 2; width: 100%; }
.lightbox figcaption { text-align: center; margin-top: 14px; color: var(--muted); letter-spacing: .12em; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; background: none; border: 1px solid var(--line); color: var(--gold-2); font-size: 2rem; cursor: pointer; }
.lb-nav:hover { border-color: var(--gold); }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
.icon-btn { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; background: none; border: 1px solid var(--line); color: var(--text); cursor: pointer; z-index: 3; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-2); }

/* Eventos */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.event { padding: 34px 30px; border: 1px solid var(--line); background: var(--bg); display: grid; gap: 12px; align-content: start; transition: border-color .3s; }
.event:hover { border-color: rgba(214,178,106,.55); }
.when { color: var(--gold); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; }
.event p { color: var(--muted); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; padding: clamp(30px, 6vw, 60px); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(214,178,106,.08), transparent 55%), var(--surface); }
.contact h2 { margin-bottom: 14px; }
.contact-list { list-style: none; padding: 0; display: grid; }
.contact-list li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.contact-list a:hover { color: var(--gold-2); }
.contact-list em { font-style: normal; text-align: right; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { padding: 8px 18px; border: 1px solid var(--line); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; transition: .2s; }
.chip:hover { border-color: var(--gold); color: var(--gold-2); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 30px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: #0b0908; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid h4 { font: 500 .74rem var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot-grid div > a:not(.brand) { display: block; padding: 4px 0; color: #cfc4b3; font-size: .95rem; }
.foot-grid div > a:not(.brand):hover { color: var(--gold-2); }
.foot-grid .brand { margin-bottom: 12px; }
.foot-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: .85rem; color: #cfc4b3; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #08210f; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }

/* Reservas (modal) */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,6,5,.8); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(560px, 100%); max-height: 100%; overflow-y: auto; padding: 38px 34px 30px; background: var(--surface); border: 1px solid var(--gold); }
.modal-card h2 { font-size: 2.2rem; margin-bottom: 6px; }
.modal-card form { display: grid; gap: 14px; margin-top: 22px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; border-radius: 0; color-scheme: dark; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form-msg { min-height: 1.3em; font-size: .88rem; }
.form-msg[data-state="error"] { color: #ff8a8a; } .form-msg[data-state="ok"] { color: #9be39b; }
@media (max-width: 520px) { .row2, .row3 { grid-template-columns: 1fr; } .modal-card { padding: 30px 20px 24px; } }

/* Animación de aparición */
.reveal { opacity: 0; translate: 0 22px; transition: opacity .8s ease, translate .8s ease; }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .scroll-hint { animation: none; }
}
