/* L’Abadía — propuesta de diseño (mobile first) */
:root {
  --bg: #17110f; --bg2: #1f1714; --cream: #f3e9d8; --tx: #ece2d0; --mu: #a89c8a;
  --saf: #e0a93b; --ter: #b5532f; --bur: #5e1621; --ink: #2a1d17; --line: #3a2a22;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
html, body { overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font: 300 15.5px/1.75 Inter, system-ui, sans-serif;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--saf); outline-offset: 3px; }
.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: 30; background: var(--saf); color: var(--ink); padding: 8px 14px; }
.skip:focus { top: 12px; }

/* Cabecera y menú */
.header {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 5vw 12px;
  background: rgba(23, 17, 15, .95); border-bottom: 1px solid var(--line);
}
.logo { font: italic 700 24px "Playfair Display", serif; color: var(--saf); text-decoration: none; }
.menu-btn { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; background: none; border: 0; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--cream); transition: .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column; padding: 8px 5vw 20px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s;
}
.nav.open { opacity: 1; visibility: visible; transform: none; }
.nav a { text-decoration: none; color: var(--mu); padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav a:hover { color: var(--saf); }
.nav a.cta { color: var(--cream); background: var(--ter); padding: 12px 18px; margin-top: 14px; border: 0; text-align: center; }
.no-js .nav { position: static; opacity: 1; visibility: visible; transform: none; }
.no-js .menu-btn { display: none; }

/* Botones */
.btn {
  display: inline-block; padding: 13px 28px; border: 1.5px solid var(--saf); color: var(--saf);
  text-decoration: none; font: 500 13px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase;
  background: none; cursor: pointer; transition: .2s; text-align: center;
}
.btn:hover { background: var(--saf); color: var(--ink); }
.btn.fill { background: var(--ter); border-color: var(--ter); color: var(--cream); }
.btn.fill:hover { background: var(--saf); border-color: var(--saf); color: var(--ink); }

/* Portada */
.hero { text-align: center; padding: 56px 6vw 60px; max-width: 900px; margin: auto; }
.eyebrow { font: 500 22px Caveat, cursive; color: var(--saf); letter-spacing: .02em; }
.hero h1 { font-size: clamp(60px, 13vw, 120px); line-height: 1; margin: 6px 0 18px; font-style: italic; }
.hero p { font: italic 500 clamp(22px, 4vw, 30px) "Playfair Display", serif; color: var(--cream); margin: 0 auto 38px; }
.hero__actions .btn { display: block; width: 100%; margin-bottom: 12px; }
.strip { height: 1px; max-width: 1080px; margin: auto; background: linear-gradient(90deg, transparent, var(--saf), transparent); opacity: .6; }

/* Secciones */
.section { padding: 56px 6vw; max-width: 1080px; margin: auto; }
.narrow { max-width: 680px; }
h2 { font-size: clamp(34px, 5.5vw, 52px); margin: 4px 0 26px; }
.lead { color: var(--mu); max-width: 640px; }
.band { background: var(--bg2); }
.three { display: grid; gap: 22px; margin-top: 40px; }
.card { border: 1px solid var(--line); padding: 22px 18px; position: relative; background: var(--bg); }
.card::before { content: ""; position: absolute; inset: 6px; border: 1px solid #2c201a; pointer-events: none; }
.card small { font: 500 20px Caveat, cursive; color: var(--saf); }
.card h3 { font-size: 26px; margin: 2px 0 8px; font-style: italic; }
.card p { margin: 0; color: var(--mu); font-size: 15px; }

/* Carta */
.carta { background: var(--cream); color: var(--ink); padding: 34px 20px; outline: 2px solid var(--saf); outline-offset: -10px; }
.carta h2 { color: var(--bur); text-align: center; }
.carta .eyebrow { display: block; text-align: center; color: var(--ter); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; }
.tabs button { background: none; border: 1.5px solid var(--bur); color: var(--bur); padding: 8px 14px; font: 500 11px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; border-radius: 30px; }
.tabs button[aria-selected="true"] { background: var(--bur); color: var(--cream); }
.item { padding: 14px 0; border-bottom: 1px dashed #c8b79b; }
.item h3 { font-size: 19px; color: var(--ink); }
.item small { display: block; color: #6b5a4c; font-size: 14px; }
.note { color: #6b5a4c; font-size: 13px; margin: 22px 0 0; text-align: center; }

/* Reservas */
.res { background: var(--bur); }
.res__inner { max-width: 1080px; margin: auto; padding: 56px 6vw; }
.res h2 { color: var(--cream); }
.res .lead { color: #e3c9c0; max-width: 520px; margin: 0 0 30px; }
form { display: grid; grid-template-columns: 1fr; gap: 16px; }
form > div { min-width: 0; }
label { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #e3c9c0; margin-bottom: 6px; }
input, select, textarea { width: 100%; background: var(--cream); color: var(--ink); border: 2px solid transparent; padding: 12px; font: 400 16px Inter, sans-serif; border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--saf); }
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; min-height: 48px; display: block; }
.res .btn { display: block; width: 100%; margin: 0 0 12px; }
.res .btn:not(.fill) { color: var(--cream); border-color: var(--cream); }
.res .btn:not(.fill):hover { background: var(--cream); color: var(--bur); }
.res .btn.fill { background: var(--saf); border-color: var(--saf); color: var(--ink); }
#ok { border: 1px solid var(--saf); padding: 22px; margin-top: 22px; font-size: 14px; color: #e3c9c0; }
#ok p { margin: 0 0 12px; color: var(--cream); }

/* Horario */
.status { display: inline-block; margin: -10px 0 18px; padding: 4px 12px; font-size: 13px; border: 1px solid var(--line); }
.status.is-open { color: #9bd49b; border-color: #4a7a4a; }
.status.is-closed { color: var(--mu); }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 300; }
.hours th { text-align: left; }
.hours td { text-align: right; }
.hours .today { color: var(--saf); }
.hours .today th, .hours .today td { font-weight: 500; }
.hours .closed { color: var(--mu); }

/* Ubicación y contacto */
.map { aspect-ratio: 4 / 3; max-width: 100%; border: 1px solid var(--line); margin: 0 0 22px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.3) contrast(1.05); }
.contact { display: grid; gap: 14px; }
.contact__item { display: block; padding: 18px 20px; border: 1px solid var(--line); text-decoration: none; transition: .2s; overflow-wrap: anywhere; }
.contact__item:hover { border-color: var(--saf); }
.contact__item strong { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--saf); font-weight: 500; }
.extras { color: var(--mu); font-size: 14px; margin-top: 22px; }

/* Pie */
.footer { text-align: center; padding: 34px 6vw; color: var(--mu); font-size: 13px; }
.footer b { display: block; font: italic 24px "Playfair Display", serif; color: var(--saf); margin-bottom: 4px; }
.footer p { margin: 4px 0; }
.footer__demo { display: inline-block; margin-top: 10px !important; padding: 3px 12px; border: 1px solid var(--line); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }

/* Barra fija móvil */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 5vw calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(23, 17, 15, .96); border-top: 1px solid var(--line);
}
.mobile-cta__btn { display: block; padding: 12px; text-align: center; text-decoration: none; font: 500 12px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; border: 1.5px solid var(--saf); color: var(--saf); }
.mobile-cta__btn--fill { background: var(--ter); border-color: var(--ter); color: var(--cream); }

/* Animaciones */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet y escritorio */
@media (min-width: 560px) {
  form { grid-template-columns: 1fr 1fr; }
  form .f { grid-column: 1 / -1; }
  .res .btn { display: inline-block; width: auto; margin: 0 10px 0 0; }
  .hero__actions .btn { display: inline-block; width: auto; margin: 0 5px 12px; }
}
@media (min-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 90px 6vw; }
  .res__inner { padding: 90px 6vw; }
  .hero { padding: 120px 6vw 110px; }
  .three { grid-template-columns: repeat(3, 1fr); }
  .carta { padding: 44px 5vw; outline-offset: -14px; }
  .item h3 { font-size: 22px; }
  .tabs button { padding: 8px 20px; font-size: 12px; }
  .contact { grid-template-columns: 1fr 1fr; }
  .map { aspect-ratio: 16 / 7; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
  .menu-btn { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 24px; padding: 0;
    background: none; border: 0; opacity: 1; visibility: visible; transform: none;
  }
  .nav a { padding: 0; border: 0; }
  .nav a.cta { margin: 0; padding: 8px 18px; }
}
