/* =========================================================================
   CERVECERIA OMBU - Demo landing gastronomica
   ATLA | Diseno y Desarrollo Web

   PARA ADAPTAR A LA MARCA DEL CLIENTE:
   tocar solamente el bloque :root de abajo (colores y tipografias).
   El sitio esta comprometido al modo oscuro a proposito: es la identidad
   del local, no una preferencia del sistema.
   ========================================================================= */

:root {
  /* --- Paleta (lo unico que hay que cambiar por cliente) --- */
  --bg:         #100D0B;
  --bg-2:       #191411;
  --bg-3:       #221A16;
  --ink:        #F2EBE1;
  --ink-2:      #A69688;
  --line:       rgba(242, 235, 225, .12);
  --line-2:     rgba(242, 235, 225, .26);
  --accent:       #E0913C;
  --accent-hover: #F0A75B;
  --accent-soft: rgba(224, 145, 60, .12);
  --on-accent:  #17110C;
  --shadow:     0 2px 6px rgba(0, 0, 0, .4), 0 20px 50px -18px rgba(0, 0, 0, .8);

  /* --- Tipografia --- */
  --font-display: "Bricolage Grotesque", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-display: clamp(2.6rem, 1.4rem + 4.2vw, 5rem);
  --fs-h2:      clamp(1.9rem, 1.25rem + 2.4vw, 3.1rem);
  --fs-h3:      clamp(1.1rem, 1.02rem + .35vw, 1.3rem);
  --fs-lead:    clamp(1.05rem, 1rem + .35vw, 1.2rem);
  --fs-body:    1.0625rem;
  --fs-sm:      .9375rem;
  --fs-xs:      .8125rem;

  /* --- Escala de espaciado --- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --gutter: clamp(20px, 5vw, 60px);
  --maxw: 1280px;
  --nav-h: 70px;
  --edge: max(var(--gutter), calc(50vw - var(--maxw) / 2 + var(--gutter)));

  /* --- Forma --- */
  --r: 3px;

  /* --- Movimiento --- */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 280ms var(--ease);
  --t-slow: 640ms var(--ease);

  color-scheme: dark;
}

/* ====================== Base ====================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}

.skip-link {
  position: absolute; left: var(--s-4); top: var(--s-4);
  transform: translateY(-250%);
  background: var(--ink); color: var(--bg);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r); z-index: 100;
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  transition: transform var(--t-base);
}
.skip-link:focus-visible { transform: translateY(0); }

.wrap { width: 100%; padding-inline: var(--edge); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.section { padding-block: clamp(64px, 8vw, 120px); }

.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 56ch; line-height: 1.55; }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 60ch; }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: var(--s-4); }

/* ====================== Botones ====================== */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  --btn-bd: var(--accent);
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 14px 22px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: var(--fs-sm); font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast), box-shadow var(--t-base);
}
.btn:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); box-shadow: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink);
  box-shadow: none; transform: translateY(-1px);
}
.btn .ph { font-size: 1.1em; }

/* ====================== Nav ====================== */

.nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: var(--s-5);
}

.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; flex-shrink: 0; }
.brand__mark {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em;
}
.brand__kind {
  font-size: var(--fs-xs); color: var(--ink-2);
  letter-spacing: .16em; text-transform: uppercase;
}
@media (max-width: 430px) { .brand__kind { display: none; } }

.nav__links { display: flex; align-items: center; gap: var(--s-6); }
.nav__links a {
  position: relative; font-size: var(--fs-sm);
  text-decoration: none; color: var(--ink-2);
  transition: color var(--t-fast);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: var(--s-3); }

.nav__toggle {
  display: none; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line);
  border-radius: var(--r); color: var(--ink);
  font-size: 1.35rem; cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.nav__toggle:hover { border-color: var(--line-2); }
.nav__toggle:active { transform: translateY(1px); }

@media (max-width: 900px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
}

.menu {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) var(--edge) var(--s-6);
  display: grid; gap: var(--s-1);
  transform: translateY(-10px); opacity: 0; visibility: hidden;
  transition: transform var(--t-base), opacity var(--t-base), visibility var(--t-base);
  z-index: 49;
}
.menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.menu a {
  padding: var(--s-3) 0; text-decoration: none;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  letter-spacing: -.025em; border-bottom: 1px solid var(--line);
}
.menu .btn { margin-top: var(--s-4); justify-content: center; }

/* ====================== Hero (foto a sangre) ====================== */

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--bg-2); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(16, 13, 11, .82) 30%, rgba(16, 13, 11, .35) 62%, rgba(16, 13, 11, .55) 100%);
}

.hero__inner {
  width: 100%;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -.042em;
  max-width: 14ch;
  margin-bottom: var(--s-5);
}
.hero__lead { margin-bottom: var(--s-6); max-width: 44ch; color: var(--ink); opacity: .82; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }

@media (max-width: 480px) { .hero__cta .btn { flex: 1 1 100%; justify-content: center; } }

/* ====================== Marquesina de promo ====================== */

.promo {
  background: var(--accent);
  color: var(--on-accent);
  border-block: 1px solid var(--accent);
  overflow: hidden;
  padding-block: 11px;
}
.promo__track {
  display: flex; width: max-content;
  animation: slide 34s linear infinite;
}
.promo:hover .promo__track { animation-play-state: paused; }
.promo__group {
  display: flex; align-items: center; gap: var(--s-6);
  padding-right: var(--s-6); flex-shrink: 0;
}
.promo span {
  font-family: var(--font-display);
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.promo .ph { font-size: 1rem; opacity: .65; }

@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .promo__track { animation: none; width: 100%; }
  .promo__group:nth-child(2) { display: none; }
}

/* ====================== Destacados (scroll snap) ====================== */

.destacados__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-5); margin-bottom: clamp(28px, 4vw, 48px);
}
.destacados__head h2 { font-size: var(--fs-h2); }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  padding-bottom: var(--s-4);
  /* el carrusel sale a sangre pero la primera tarjeta arranca sobre la
     misma linea que el titulo; scroll-padding evita que el snap la corra */
  margin-inline: calc(var(--edge) * -1);
  padding-inline: var(--edge);
  scroll-padding-inline: var(--edge);
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

.plato { scroll-snap-align: start; }
.plato__img {
  position: relative; aspect-ratio: 1 / 1;
  overflow: hidden; border-radius: var(--r);
  background: var(--bg-2); margin-bottom: var(--s-4);
}
.plato__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.plato:hover .plato__img img { transform: scale(1.04); }
.plato__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.plato h3 { font-size: var(--fs-h3); }
.plato__precio {
  font-family: var(--font-mono); font-size: var(--fs-sm);
  color: var(--accent); white-space: nowrap;
}
.plato p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; margin-top: 4px; }

@media (min-width: 1024px) {
  .rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible; margin-inline: 0; padding-inline: 0;
  }
}

/* ====================== Carta agrupada ====================== */

.carta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.carta__grupo h3 {
  font-size: var(--fs-xs); font-family: var(--font-body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  margin-bottom: var(--s-5);
}
.carta__item { display: flex; align-items: baseline; gap: var(--s-3); padding-block: var(--s-3); }
.carta__item + .carta__item { border-top: 1px solid var(--line); }
.carta__item b { font-weight: 500; font-size: var(--fs-sm); }
.carta__item i {
  flex: 1; height: 1px; background: var(--line);
  align-self: center; font-style: normal;
}
.carta__item span { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink-2); }

@media (max-width: 860px) { .carta { grid-template-columns: 1fr; } }

/* ====================== Canillas ====================== */

.canillas { background: var(--bg-2); border-block: 1px solid var(--line); }
.canillas__split {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
/* la foto se estira a la altura de la lista de canillas */
.canillas__media { overflow: hidden; border-radius: var(--r); background: var(--bg-3); min-height: 380px; }
.canillas__media img { width: 100%; height: 100%; object-fit: cover; }

.cerveza {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.cerveza:first-of-type { border-top: 1px solid var(--line); }
.cerveza__color {
  width: 10px; height: 30px; border-radius: 1px;
  background: var(--c);
}
.cerveza h3 { font-size: var(--fs-body); font-weight: 600; letter-spacing: -.015em; }
.cerveza p { font-size: var(--fs-xs); color: var(--ink-2); margin-top: 2px; }
.cerveza__datos {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--ink-2); white-space: nowrap; text-align: right;
}
.cerveza__datos b { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .canillas__split { grid-template-columns: 1fr; }
  .canillas__media { aspect-ratio: 16 / 10; min-height: 0; }
}

/* ====================== El lugar ====================== */

.lugar__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
  margin-top: clamp(32px, 4vw, 56px);
}
.lugar__foto { overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.lugar__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.lugar__foto:hover img { transform: scale(1.03); }
/* Foto ancha arriba a la izquierda, foto vertical a la derecha ocupando las
   dos filas, y el texto en dos columnas debajo de la foto ancha. */
.lugar__foto--a { grid-column: span 8; aspect-ratio: 16 / 10; }
.lugar__foto--b { grid-column: span 4; grid-row: span 2; min-height: 320px; }

.lugar__texto {
  grid-column: span 8;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-6); align-content: center;
  padding-top: var(--s-3);
}
.lugar__texto p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.65; }

@media (max-width: 900px) {
  .lugar__foto--a { grid-column: span 12; }
  .lugar__foto--b { grid-column: span 12; grid-row: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .lugar__texto { grid-column: span 12; padding-top: var(--s-2); }
}
@media (max-width: 620px) {
  .lugar__texto { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* ====================== Reseñas ====================== */

.resenas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.resena {
  margin: 0; padding: clamp(24px, 3vw, 32px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color var(--t-base), transform var(--t-base);
}
.resena:hover { border-color: var(--line-2); transform: translateY(-3px); }
.resena__estrellas { color: var(--accent); font-size: .95rem; letter-spacing: 2px; margin-bottom: var(--s-4); }
.resena blockquote {
  margin: 0 0 var(--s-5); font-size: var(--fs-body); line-height: 1.55;
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.015em;
}
.resena figcaption { font-size: var(--fs-sm); color: var(--ink-2); }
.resena figcaption strong { display: block; color: var(--ink); font-weight: 600; }

@media (max-width: 860px) { .resenas__grid { grid-template-columns: 1fr; } }

/* ====================== Visitanos ====================== */

.visita { background: var(--bg-2); border-top: 1px solid var(--line); }
.visita__split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
}

.horarios { width: 100%; border-collapse: collapse; margin-bottom: var(--s-6); }
.horarios th, .horarios td {
  text-align: left; padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm); font-weight: 400;
}
.horarios th { color: var(--ink-2); font-weight: 400; }
.horarios td { font-family: var(--font-mono); text-align: right; color: var(--ink); }
.horarios tr:last-child th, .horarios tr:last-child td { border-bottom: 0; }
.horarios .is-hoy th, .horarios .is-hoy td { color: var(--accent); }

.datos { display: grid; gap: var(--s-5); margin-bottom: var(--s-6); }
.dato { display: flex; gap: var(--s-3); align-items: flex-start; }
.dato .ph { font-size: 1.2rem; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.dato h3 { font-size: var(--fs-sm); font-weight: 600; margin-bottom: 2px; }
.dato p, .dato a { font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; line-height: 1.5; }
.dato a:hover { color: var(--accent); }

.mapa {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line); border-radius: var(--r);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 38px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 38px 100%,
    var(--bg-3);
  display: grid; place-items: center; text-align: center;
  color: var(--ink-2); font-size: var(--fs-xs); padding: var(--s-4); line-height: 1.5;
}

@media (max-width: 900px) { .visita__split { grid-template-columns: 1fr; } }

/* ====================== Cierre ====================== */

.cierre { border-top: 1px solid var(--line); text-align: center; }
.cierre h2 { font-size: var(--fs-h2); margin-bottom: var(--s-4); }
.cierre .lead { margin-inline: auto; margin-bottom: var(--s-6); }
.cierre .btn { margin-inline: auto; }

/* ====================== Footer ====================== */

.footer { border-top: 1px solid var(--line); padding-block: var(--s-7) var(--s-6); }
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--s-6); flex-wrap: wrap;
  padding-bottom: var(--s-6); border-bottom: 1px solid var(--line);
}
.footer__brand p { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s-2); max-width: 32ch; }
.footer__cols { display: flex; gap: clamp(32px, 6vw, 88px); flex-wrap: wrap; }
.footer__col h3 {
  font-size: var(--fs-xs); font-family: var(--font-body); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: var(--s-3);
}
.footer__col a {
  display: block; font-size: var(--fs-sm); color: var(--ink-2);
  text-decoration: none; padding-block: 3px;
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: var(--s-4);
  flex-wrap: wrap; padding-top: var(--s-5);
  font-size: var(--fs-xs); color: var(--ink-2);
}
.footer__bottom a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--accent); }

/* ====================== Reveal ====================== */

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
