/**
 * Tepuy Burger — CSS unificado (sitio PHP /site).
 * Tokens, layout, header, páginas local/home y utilidades.
 */

:root {
  --bg: #feeedf;
  --ink: #171717;
  --brand: #f08242;
  --brand-dark: #be1622;
  --yellow: #e6b837;
  --teal: #1d9793;
  --cream: #feeedf;
  --surface: #fff8ef;
  --surface-alt: #fffaf2;
  --muted: #534840;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
  overflow-y: visible;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 9999;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* --- Header --- */
header.topbar,
body > header.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 10px clamp(14px, 4vw, 42px);
  background: rgba(254, 238, 223, 0.98);
  border-bottom: 3px solid var(--ink);
}

header.topbar > .icon-button,
header.topbar > a.icon-button,
header.topbar > button.icon-button {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

header.topbar > a.logo,
header.topbar > .logo {
  grid-column: 2;
  justify-self: center;
  width: clamp(88px, 9vw, 110px);
  line-height: 0;
}

header.topbar > a.logo img,
header.topbar .logo img {
  width: 100%;
  max-height: 62px;
  object-fit: contain;
}

header.topbar > .top-reserve,
header.topbar > .header-reserve {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.burger-lines {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* Botón volver */
header.topbar > a.icon-button.header-home,
header.topbar > a.icon-button:first-child {
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

header.topbar > a.icon-button.header-home::after,
header.topbar > a.icon-button:first-child::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border-left: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) translateX(2px);
}

header.topbar > a.icon-button::before {
  content: none;
  display: none;
}

.drawer-language {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drawer-language a {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 900;
}

/* --- Tipografía / secciones --- */
.section {
  padding: 44px 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Space Mono", ui-monospace, monospace;
  text-transform: uppercase;
  line-height: 0.9;
}

h1 {
  font-size: clamp(3rem, 16vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 10vw, 3.4rem);
}

.button,
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.button-ghost {
  background: var(--yellow);
}

.card {
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--ink);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.phone-link {
  display: inline-flex;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Home --- */
.home-hero {
  color: #fff;
  background: linear-gradient(150deg, var(--teal), var(--ink) 58%);
  border-bottom: 6px solid var(--ink);
  min-height: 420px;
  display: grid;
  align-content: end;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.location-grid {
  display: grid;
  gap: 14px;
}

/* --- Local --- */
.local-hero {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(23, 23, 23, 0.08), rgba(23, 23, 23, 0.8)),
    var(--hero-image, url("/media/tepuy-bulevar-garbinet.webp")) center / cover;
  min-height: 520px;
  display: grid;
  align-content: end;
  border-bottom: 6px solid var(--ink);
}

.grid {
  display: grid;
  gap: 14px;
}

.hours-list {
  display: grid;
  gap: 10px;
}

.hours-list p {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 12px 0;
  border-top: 2px solid rgba(23, 23, 23, 0.12);
}

.hours-list p:first-child {
  border-top: 0;
  padding-top: 0;
}

.hours-list strong {
  font-family: "Space Mono", ui-monospace, monospace;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
}

.media-card div {
  padding: 18px;
}

.local-services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.local-services-grid span {
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.local-services-note {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.reserve-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
}

.reservation-frame {
  width: 100%;
  min-height: 620px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
}

/* ORCHA reservas: modal a pantalla completa (postMessage orcha-reservation-embed) */
html.orcha-reservation-overlay-open {
  overflow: hidden;
}

iframe.reservation-frame.orcha-reservation-frame--fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10050 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 20;
  padding: 44px 18px 92px;
  background: var(--ink);
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.footer-logo {
  width: min(190px, 56vw);
  max-width: 190px;
  margin-bottom: 18px;
}

.footer h3 {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: #ffd9a6;
}

.footer ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.82);
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.social svg {
  width: 19px;
  height: 19px;
  fill: #fff;
}

@media (min-width: 760px) {
  .section {
    padding: 72px clamp(36px, 7vw, 96px);
  }

  .location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1180px;
    margin-inline: auto;
  }

  .grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    max-width: 1180px;
    margin-inline: auto;
    align-items: start;
  }

  .reserve-box {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: sticky;
    top: 96px;
  }

  .hours-list p {
    grid-template-columns: minmax(160px, 0.9fr) 1fr 1fr;
    align-items: center;
    gap: 14px;
  }

  .media-card img {
    aspect-ratio: 16 / 10;
  }

  .footer-grid {
    grid-template-columns: minmax(280px, 1.2fr) repeat(2, minmax(180px, 0.6fr));
    gap: clamp(28px, 5vw, 72px);
    max-width: 1180px;
    margin-inline: auto;
  }
}
