/* Fauno – Bar de amigos
   Dirección visual C: "La noche en vivo". Celular primero (390px). */

:root {
  --fondo: #14100d;
  --superficie: #1f1814;
  --linea: #3b2f27;
  --crema: #f2e8d5;
  --crema-2: #b5a690;
  --naranja: #ff7a1f;
  --naranja-neon: #ffd2a8;
  --glow: 0 0 6px rgba(255, 122, 31, .65), 0 0 22px rgba(255, 122, 31, .4), 0 0 48px rgba(255, 122, 31, .2);
  --petroleo: #1e5450;
  --petroleo-claro: #7cbcb1;

  --titulos: "Saira Extra Condensed", "Arial Narrow", sans-serif;
  --texto: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --barra-alto: 64px;
  --abajo-seguro: env(safe-area-inset-bottom, 0px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.hoja-abierta { overflow: hidden; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--crema);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.55;
  padding-bottom: calc(var(--barra-alto) + var(--abajo-seguro));
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.oculto {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Tipografía base ---------- */

.titulo,
.historia__titulo,
.subtitulo,
.hoja__titulo {
  font-family: var(--titulos);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .005em;
  margin: 0;
}

.titulo { font-size: clamp(3rem, 15vw, 6.5rem); }
.subtitulo { font-size: 1.75rem; line-height: 1; margin-bottom: .35rem; }

.lead { font-size: 1.2rem; line-height: 1.45; color: var(--crema); margin: .5rem 0 1rem; max-width: 34ch; }
p { margin: 0 0 1rem; max-width: 62ch; }

.enlace { color: var(--naranja); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Botones ---------- */

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 56px; padding: 0 1.4rem;
  font-family: var(--titulos); font-weight: 800; font-size: 1.45rem;
  text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  border: 2px solid transparent;
  width: 100%;
}
.boton svg { width: 22px; height: 22px; }
.boton--naranja { background: var(--naranja); color: var(--fondo); }
.boton--petroleo { background: var(--petroleo); color: var(--crema); }
.boton--borde { border-color: var(--crema-2); color: var(--crema); }
.boton:active { transform: translateY(1px); }

/* ---------- Portada: una foto fija + estado en vivo ---------- */

.vivo {
  position: relative;
  min-height: calc(100svh - var(--barra-alto) - var(--abajo-seguro));
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
}
.vivo__foto, .vivo__foto img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vivo__foto { z-index: -2; }
.vivo__foto img { object-fit: cover; object-position: 50% 30%; }
.vivo::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 16, 13, .95) 0%, rgba(20, 16, 13, .75) 24%, rgba(20, 16, 13, 0) 48%);
}

.vivo__abajo { padding: 0 var(--gutter) 26px; }

.marca { margin: 0 0 .7rem; line-height: 0; }
.marca__logo { width: min(66vw, 300px); height: auto; }

.vivo__bajada { font-size: 1.05rem; margin: 0 0 1.2rem; }

.vivo__estado {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: 1.12rem; margin: 0;
}
.vivo__estado::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--crema-2);
}
.vivo[data-estado="happy"] .vivo__estado::before,
.vivo[data-estado="abierto"] .vivo__estado::before {
  background: var(--naranja);
  animation: latido 1.8s ease-out infinite;
}
@keyframes latido {
  0%   { box-shadow: 0 0 0 0 rgba(255, 122, 31, .7); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 122, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 31, 0); }
}

.vivo__promo { margin: .45rem 0 0 1.15rem; color: var(--crema-2); font-size: 1rem; line-height: 1.4; max-width: 38ch; }
.vivo__promo strong { color: var(--crema); font-weight: 600; }

/* En el celu la barra fija ya cumple esta función */
.vivo__acciones { display: none; }

/* ---------- Secciones ---------- */

/* Ritmo común: cada sección respira igual */
.semana-sec, .comer, .lugar, .ubicacion, .contacto { padding: 4.5rem 0 0; }
.seccion__cabeza, .seccion__pie, .ubicacion__texto, .contacto { padding-left: var(--gutter); padding-right: var(--gutter); }
.semana-sec__titulo { padding: 0 var(--gutter); margin-bottom: 1.2rem; }
.seccion__cabeza .lead, .ubicacion .horario__nota { color: var(--crema-2); }

/* Carrusel (tarjetas de días y galería): se desliza con el dedo, la siguiente asoma */
.dias, .galeria {
  position: relative;
  list-style: none; margin: 0; padding: 0 var(--gutter);
  display: flex; gap: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.dias::-webkit-scrollbar, .galeria::-webkit-scrollbar { display: none; }
.dias > li, .galeria > li { flex: 0 0 78%; scroll-snap-align: start; }

/* Esta semana */
.dia { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--superficie); }
.dia picture { display: block; height: 100%; }
.dia img { width: 100%; height: 100%; object-fit: cover; }
.dia::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 13, .95) 0%, rgba(20, 16, 13, .6) 32%, rgba(20, 16, 13, 0) 58%);
}
.dia__texto {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1;
  margin: 0; display: flex; flex-direction: column; gap: .3rem;
}
.dia__nombre {
  font-family: var(--titulos); font-weight: 900; font-size: 2.9rem; line-height: .9;
  text-transform: uppercase;
}
.semana__que { font-size: 1.05rem; line-height: 1.35; }
.dia.hoy { outline: 2px solid var(--naranja); outline-offset: -2px; }
.dia.hoy .dia__nombre { color: var(--naranja-neon); text-shadow: var(--glow); }
.dia.hoy::before {
  content: "Hoy"; position: absolute; top: 14px; left: 14px; z-index: 1;
  padding: .2rem .6rem; background: var(--naranja); color: var(--fondo);
  font-weight: 600; font-size: .9rem;
}

.semana__tambien { color: var(--crema-2); font-size: .95rem; margin: 1.2rem var(--gutter) 0; }

/* Cumple */
.historia { padding-top: 4.5rem; }
.historia__foto { position: relative; }
.historia__foto img { width: 100%; height: 56svh; min-height: 320px; max-height: 600px; object-fit: cover; }
.historia__foto::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--fondo) 0%, rgba(20, 16, 13, .55) 30%, rgba(20, 16, 13, 0) 60%);
}
.historia__titulo {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6px; z-index: 1;
  font-size: clamp(3.2rem, 16vw, 7rem); font-weight: 900;
}
.historia__texto { padding: .8rem var(--gutter) 0; }
#eventos .boton { margin-top: .3rem; }

/* El lugar: una sola tira de fotos */
.seccion__cabeza { margin-bottom: 1.2rem; }
.seccion__cabeza .lead { margin-bottom: 0; }
.seccion__pie { margin-top: 1.4rem; }
.galeria > li { flex-basis: 64%; }
.galeria img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Ubicación ---------- */

.ubicacion__texto { padding-bottom: 1.4rem; }
.horario {
  font-family: var(--titulos); font-weight: 800; text-transform: uppercase;
  font-size: 1.9rem; line-height: 1; margin: .4rem 0 .4rem;
}
.horario__nota { margin: 0; }

.mapa { position: relative; height: 340px; background: var(--superficie); }
.mapa iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: invert(.92) hue-rotate(180deg) saturate(.6) brightness(.9);
}
.mapa__boton {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  width: auto; box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}

/* ---------- Instagram ---------- */

.contacto { padding-bottom: 4rem; }
.contacto__lista { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 10px; }
.contacto__item {
  display: flex; align-items: center; gap: 16px;
  min-height: 76px; padding: 14px 18px;
  border: 1.5px solid var(--linea); text-decoration: none; color: var(--crema);
}
.contacto__item:hover, .contacto__item:active { border-color: var(--naranja); }
.contacto__ico { flex: none; width: 34px; height: 34px; color: var(--naranja); }
.contacto__texto { display: flex; flex-direction: column; gap: 2px; }
.contacto__texto strong {
  font-family: var(--titulos); font-weight: 800; font-size: 1.7rem; line-height: 1; text-transform: uppercase;
}
.contacto__texto span { color: var(--crema-2); font-size: .98rem; }

/* ---------- Pie ---------- */

.pie { padding: 2.5rem var(--gutter) 2rem; border-top: 1px solid var(--linea); color: var(--crema-2); font-size: .95rem; }
.pie__f { display: block; width: 26px; height: auto; margin-bottom: 1rem; }

.sin-js { padding: 1rem var(--gutter); }

/* ---------- Barra fija ---------- */

.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 6px;
  padding: 6px 6px calc(6px + var(--abajo-seguro));
  background: rgba(20, 16, 13, .96);
  border-top: 1px solid var(--linea);
}
.barra__btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  height: calc(var(--barra-alto) - 12px);
  font-family: var(--titulos); font-weight: 800; font-size: 1.35rem;
  text-transform: uppercase; text-decoration: none; letter-spacing: .02em;
}
.barra__btn svg { width: 19px; height: 19px; }
.barra__btn--carta { background: var(--naranja); color: var(--fondo); }
.barra__btn--reservar { background: var(--petroleo); color: var(--crema); }
.barra__btn--wa { border: 1.5px solid var(--linea); color: var(--crema); }

/* ---------- Carta (hoja) ---------- */

.hoja {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--fondo); color: var(--crema);
  display: none; flex-direction: column;
}
.hoja[open] { display: flex; animation: subir .32s cubic-bezier(.2, .8, .2, 1); }
.hoja::backdrop { background: rgba(0, 0, 0, .6); }

@keyframes subir { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.hoja__cabecera {
  flex: none;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 0;
  border-bottom: 1px solid var(--linea);
  background: var(--fondo);
}
.hoja__fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hoja__titulo { font-size: 3.2rem; font-weight: 900; }
.hoja__cerrar {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: none; border: 1.5px solid var(--linea); cursor: pointer;
}
.hoja__cerrar svg { width: 20px; height: 20px; }

.modos { display: flex; flex: none; border: 1.5px solid var(--linea); }
.modo {
  background: none; border: 0; cursor: pointer;
  padding: 0 1.05rem; height: 46px;
  font-family: var(--titulos); font-weight: 800; font-size: 1.35rem; text-transform: uppercase;
  color: var(--crema-2);
}
.modo[aria-selected="true"] { background: var(--crema); color: var(--fondo); }

.buscar { flex: 1; min-width: 0; }
.buscar input {
  width: 100%; height: 49px; padding: 0 .9rem;
  background: var(--superficie); border: 1.5px solid var(--linea); border-radius: 0;
  color: var(--crema); font: inherit; font-size: 16px;
  -webkit-appearance: none; appearance: none;
}
.buscar input::placeholder { color: var(--crema-2); }

.categorias {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 12px;
}
.categorias::-webkit-scrollbar { display: none; }
.categorias[hidden] { display: none; }
.cat {
  flex: none; white-space: nowrap;
  padding: .45rem .8rem; background: none; cursor: pointer;
  border: 1px solid var(--linea); color: var(--crema-2); font-size: .95rem;
}
.cat[aria-current="true"] { border-color: var(--naranja); color: var(--crema); }

.hoja__cuerpo { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 2rem; }

.cat-bloque { padding: 0 var(--gutter); scroll-margin-top: 0; }
.cat-bloque__foto { margin: 0 calc(var(--gutter) * -1); }
.cat-bloque__foto img { width: 100%; height: 46vw; max-height: 300px; object-fit: cover; }
.cat-bloque h3 {
  font-family: var(--titulos); font-weight: 900; font-size: 2.6rem; line-height: 1;
  text-transform: uppercase; margin: 0; padding: 1.6rem 0 .4rem;
}
.cat-bloque__foto + h3 { padding-top: 1rem; }

.platos { list-style: none; margin: 0 0 1rem; padding: 0; }
.plato { padding: .85rem 0; border-bottom: 1px solid var(--linea); }
.plato:last-child { border-bottom: 0; }
.plato__fila { display: flex; align-items: baseline; gap: .5rem; }
.plato__nombre { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.plato__puntos { flex: 1; border-bottom: 2px dotted var(--linea); transform: translateY(-4px); min-width: 1rem; }
.plato__precio { font-weight: 600; color: var(--naranja); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plato__desc {
  margin: .3rem 0 0; color: var(--crema-2); font-size: .95rem; line-height: 1.45; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.plato.entero .plato__desc { display: block; -webkit-line-clamp: unset; }
.plato__mas {
  background: none; border: 0; padding: .3rem 0 0; cursor: pointer;
  color: var(--crema); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px;
}
.plato__tags { display: flex; gap: 6px; margin-top: .45rem; }

.sello {
  display: inline-block; padding: .1rem .45rem;
  font-size: .8rem; font-weight: 600; line-height: 1.5;
  border: 1px solid var(--petroleo-claro); color: var(--petroleo-claro);
}
.sello--prox { border-color: var(--crema-2); color: var(--crema-2); }

.carta__vacia { padding: 2rem var(--gutter); color: var(--crema-2); }
.carta__pie { padding: 1.5rem var(--gutter) 0; color: var(--crema-2); font-size: .9rem; }
.carta__pie .sello { margin-right: .4rem; }

/* ---------- Movimiento reducido ---------- */

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

/* ---------- Pantallas grandes ---------- */

@media (min-width: 700px) {
  :root { --gutter: 40px; }
  .vivo__abajo { padding-bottom: 48px; }
  .vivo__foto img { object-position: center 45%; }
}

@media (min-width: 900px) {
  /* Todo el contenido se alinea a una columna de 1280px; las fotos grandes siguen a sangre */
  :root { --gutter: max(48px, calc((100vw - 1280px) / 2)); }
  body { padding-bottom: 0; }

  .barra {
    top: 24px; bottom: auto; left: auto; right: var(--gutter);
    grid-template-columns: auto auto auto; padding: 0; background: none; border: 0;
  }
  .barra__btn { height: 48px; padding: 0 1.3rem; font-size: 1.25rem; }
  .barra__btn--wa { background: rgba(20, 16, 13, .6); }
  /* Portada: foto a pantalla completa, texto abajo a la izquierda */
  .vivo { min-height: 100svh; justify-content: flex-end; }
  .vivo__foto img { object-position: 50% 50%; }
  .vivo::after {
    background:
      linear-gradient(to right, rgba(20, 16, 13, .75) 0%, rgba(20, 16, 13, 0) 50%),
      linear-gradient(to top, rgba(20, 16, 13, .9) 0%, rgba(20, 16, 13, 0) 45%);
  }
  .vivo__abajo { padding-bottom: 80px; }
  .marca { margin-bottom: 1rem; }
  .marca__logo { width: 380px; }
  .vivo__bajada { font-size: 1.25rem; }
  .vivo__estado { font-size: 1.3rem; }
  .vivo__promo { font-size: 1.1rem; max-width: 46ch; }
  .vivo__acciones { display: flex; gap: 10px; margin-top: 2rem; }
  .vivo__acciones .boton { width: auto; padding: 0 1.8rem; }

  /* La barra de arriba aparece recién al bajar de la portada */
  .barra { transition: opacity .25s, transform .25s; }
  body:not(.paso-portada) .barra { opacity: 0; transform: translateY(-8px); pointer-events: none; }

  /* Secciones: mismo ritmo, alineadas a la columna */
  .semana-sec, .comer, .lugar, .ubicacion, .contacto { padding-top: 7rem; }
  .semana-sec__titulo, .seccion__cabeza { margin-bottom: 2rem; }
  .seccion__pie .boton { width: auto; }

  /* Esta semana: grilla de 3 x 2 en vez de carrusel */
  .dias {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    overflow: visible; scroll-snap-type: none;
  }
  .dias > li { flex: none; }
  .dia { aspect-ratio: 4 / 3; }
  .dia__texto { left: 24px; right: 24px; bottom: 22px; }
  .dia__nombre { font-size: 3.4rem; }

  .semana__tambien { margin-top: 1.6rem; }

  /* Cumple: foto y texto lado a lado */
  .historia {
    display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center;
    padding: 7rem var(--gutter) 0;
  }
  .historia__foto img { height: auto; max-height: none; min-height: 0; aspect-ratio: 4 / 3; }
  .historia__foto::after { background: linear-gradient(to top, rgba(20, 16, 13, .9) 0%, rgba(20, 16, 13, 0) 45%); }
  .historia .historia__titulo { left: 32px; right: 32px; bottom: 20px; }
  .historia__texto { padding: 0; }
  #eventos .boton { width: auto; }

  /* El lugar: 8 fotos en 4 x 2 */
  .galeria {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    overflow: visible; scroll-snap-type: none;
  }
  .galeria > li { flex: none; }
  .galeria img { aspect-ratio: 1 / 1; }
  .lugar .galeria { grid-template-columns: repeat(5, 1fr); }

  /* Ubicación: texto y mapa lado a lado */
  .ubicacion { display: grid; grid-template-columns: 5fr 7fr; column-gap: 64px; align-items: center; }
  .ubicacion__texto { padding: 0 0 0 var(--gutter); }
  .ubicacion .titulo { font-size: clamp(3.5rem, 5vw, 5rem); }
  .horario { font-size: 2.2rem; }
  .mapa { height: 420px; margin-right: var(--gutter); }
  .mapa__boton { left: auto; right: 24px; bottom: 24px; width: auto; padding: 0 2rem; }

  .contacto { padding-bottom: 6rem; }
  .contacto__lista { grid-template-columns: 1fr 1fr; max-width: 900px; }

  .pie { display: flex; align-items: flex-end; gap: 48px; }
  .pie p { margin: 0; }
  .pie__f { margin: 0; }

  .hoja { width: min(620px, 100%); margin-left: auto; border-left: 1px solid var(--linea); }
  .hoja[open] { animation-name: entrar-costado; }
  @keyframes entrar-costado { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .hoja__cabecera, .cat-bloque, .carta__pie, .carta__vacia { --gutter: 32px; }
}
