/* Casa Brasa — demo de restaurante (YCOS) */
:root {
  --night: #1c1612;
  --night-2: #2a211b;
  --cream: #f8f2e9;
  --ink: #2a1f17;
  --muted: #6d5f53;
  --line: rgb(42 31 23 / 0.14);
  --ember: #c2410c;
  --ember-dark: #9a3412;
  --radius: 10px;
  --header-h: 64px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ember); color: #fff; text-decoration: none; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember); margin-bottom: 0.6rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; background: var(--ember); color: #fff; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; transition: background-color .2s; }
.btn:hover { background: var(--ember-dark); }
.btn--ghost { background: transparent; border-color: rgb(255 255 255 / 0.6); }
.btn--ghost:hover { background: rgb(255 255 255 / 0.1); }
.btn--small { min-height: 40px; padding: 0 1.1rem; font-size: 0.9rem; }

/* Aviso de sitio de ejemplo */
.demo-note { margin: 0; padding: 0.45rem 20px; background: var(--ember-dark); color: #fff; font-size: 0.8rem; text-align: center; }
.demo-note a { color: inherit; font-weight: 600; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: var(--night); color: var(--cream); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1; text-decoration: none; margin: 0; }
.brand span { color: #f59e6b; }
.brand--small { font-size: 1.25rem; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.95rem; opacity: 0.85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* Hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(28 22 18 / 0.25), rgb(28 22 18 / 0.85)); }
.hero__content { position: relative; z-index: 1; padding-block: 3.5rem 4rem; }
.hero .eyebrow { color: #f9b48c; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 8vw, 5.2rem); line-height: 1; letter-spacing: -0.02em; }
.hero__lead { max-width: 46ch; font-size: 1.1rem; margin-top: 1.1rem; color: rgb(255 255 255 / 0.88); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

/* Carta */
.carta-section { padding-block: clamp(3rem, 7vw, 5rem) 6rem; }
.section__head { margin-bottom: 1.5rem; }
.section__head h2, .lugar h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }

/* Colores de la carta de YCOS para esta marca. La barra de secciones queda debajo del header fijo. */
body .ycos-carta {
  --yc-accent: var(--ember);
  --yc-accent-text: #fff;
  --yc-bg: var(--cream);
  --yc-text: var(--ink);
  --yc-muted: var(--muted);
  --yc-border: var(--line);
  --yc-soft: rgb(194 65 12 / 0.07);
  --yc-sticky-top: var(--header-h);
}
body .ycos-carta h2, body .ycos-carta h3 { font-family: var(--display); }

/* El lugar */
.lugar { background: var(--night); color: var(--cream); padding-block: clamp(3rem, 7vw, 5rem); }
.lugar__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.lugar h2 { margin-bottom: 1rem; }
.lugar p { color: rgb(248 242 233 / 0.8); max-width: 44ch; }
.lugar__hours { background: var(--night-2); border-radius: var(--radius); padding: 1.5rem; }
.lugar__hours h3 { font-family: var(--display); font-size: 1.4rem; margin-bottom: 0.75rem; }
.lugar__hours .ycos-hours { width: 100%; color: var(--cream); }

/* Pie */
.footer { background: var(--night); color: rgb(248 242 233 / 0.7); border-top: 1px solid rgb(255 255 255 / 0.08); padding-block: 1.75rem 7rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; }
.footer .brand { color: var(--cream); }
.footer__note, .footer__ycos { font-size: 0.85rem; margin: 0; }

@media (max-width: 760px) {
  .nav { display: none; }
  .header .btn--small { margin-left: auto; }
  .lugar__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
