/* ---------- Tipografías (alojadas en la propia web, sin llamar a Google) ---------- */
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Colores (sacados del logo) ---------- */
:root {
  --crema: #FAF6EE;
  --papel: #F2EADC;
  --tinta: #231F20;
  --tinta-suave: #5B5350;
  --linea: #E2D8C6;
  --naranja: #FBA918;
  --naranja-oscuro: #E39507;
  --marron: #3A291A;
  --ancho: 1040px;
  --radio: 6px;
  --serif: "Lora", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--crema); color: var(--tinta);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.seccion { padding: 64px 0; }
.seccion--papel { background: var(--papel); }
.titulo-seccion { font-size: clamp(28px, 4vw, 38px); margin-bottom: 22px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--radio);
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; transition: background .15s, border-color .15s;
}
.boton svg { width: 18px; height: 18px; flex: none; }
.boton--principal { background: var(--naranja); color: var(--tinta); }
.boton--principal:hover { background: var(--naranja-oscuro); }
.boton--secundario { border-color: var(--tinta); color: var(--tinta); }
.boton--secundario:hover { background: var(--tinta); color: var(--crema); }
.botones { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 238, .95); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linea);
}
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.cabecera__logo img { height: 36px; width: auto; }
.menu { display: flex; gap: 22px; }
.menu a { text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover { text-decoration: underline; text-decoration-color: var(--naranja); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Huecos de foto (esqueleto) ---------- */
.foto {
  position: relative; overflow: hidden; border-radius: var(--radio);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(35,31,32,.035) 14px 28px), #E9DFCC;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.foto img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.foto__hueco { padding: 14px; color: var(--marron); font-size: 14px; line-height: 1.35; }
.foto__hueco strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 2px; }
.foto__hueco span { display: block; opacity: .75; }

/* ---------- Portada ---------- */
.portada { padding: 48px 0 40px; }
.portada .contenedor { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.portada__foto .foto { aspect-ratio: 4 / 5; max-height: 560px; width: 100%; }
.portada h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 14px; }
.portada__sub { font-size: 18px; color: var(--tinta-suave); margin-bottom: 18px; }
.estado { display: flex; align-items: center; gap: 9px; font-weight: 700; margin-bottom: 2px; }
.estado::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9A9290; flex: none; }
.estado--abierto::before { background: #3E9B5B; }
.portada__horario { color: var(--tinta-suave); margin-bottom: 24px; font-size: 16px; }

/* ---------- Fotos en fila ---------- */
.tira { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 8px; }
.tira .foto { aspect-ratio: 1 / 1; }

/* ---------- Carta ---------- */
.pestanas { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 22px; padding: 0 20px 4px; scrollbar-width: none; }
.pestanas::-webkit-scrollbar { display: none; }
.pestana {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
  padding: 8px 16px; border-radius: 99px; border: 1px solid var(--linea); background: #fff; color: var(--tinta);
}
.pestana[aria-selected="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--crema); }
.carta { max-width: 640px; }
.producto { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--linea); }
.producto__nombre { font-weight: 700; flex: 1; }
.producto__desc { display: block; font-size: 15px; color: var(--tinta-suave); font-weight: 400; }
.producto__precio { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.producto--agotado .producto__nombre, .producto--agotado .producto__precio { color: #9A9290; }
.producto__agotado { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #9A5A12; margin-left: 6px; }
.carta__nota { margin-top: 20px; font-size: 14px; color: var(--tinta-suave); max-width: 640px; }
.aviso-borrador { background: #FFF3D6; border: 1px solid #F1D58C; border-radius: var(--radio); padding: 9px 14px; font-size: 14px; margin-bottom: 18px; max-width: 640px; }
.carta__cargando { color: var(--tinta-suave); }

/* ---------- Visítanos ---------- */
.visita { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: center; }
.visita__foto { aspect-ratio: 4 / 3; }
.visita__foto + div { min-width: 0; }
.visita__dato { font-family: var(--serif); font-size: 21px; margin-bottom: 4px; }
.visita__detalle { color: var(--tinta-suave); margin-bottom: 14px; }
.contacto-lista { list-style: none; padding: 0; margin: 0 0 22px; }
.contacto-lista li { padding: 4px 0; }
.contacto-lista a { font-weight: 600; }
.horario { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.horario td { padding: 6px 0; border-bottom: 1px solid var(--linea); }
.horario td:last-child { text-align: right; }

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: #CFC7C4; padding: 32px 0; font-size: 14px; }
.pie .contenedor { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.pie img { height: 38px; width: auto; }
.pie a { color: #CFC7C4; }
.pie a:hover { color: var(--naranja); }

/* ---------- Barra fija inferior (solo móvil) ---------- */
.barra-movil { display: none; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 760px; padding: 56px 20px 88px; margin: 0 auto; }
.legal h1 { font-size: 38px; margin-bottom: 26px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: #3D3735; }
.legal .ficha { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px 24px; }
.legal .ficha p { margin: 0 0 4px; }

/* ---------- Móvil ---------- */
@media (max-width: 800px) {
  body { font-size: 16px; }
  .seccion { padding: 44px 0; }
  .portada { padding: 16px 0 28px; }
  .portada .contenedor { grid-template-columns: 1fr; gap: 20px; }
  .portada__foto { order: -1; }
  .portada__foto .foto { aspect-ratio: 16 / 10; }
  .portada__sub { font-size: 17px; }
  .portada .botones { display: none; }          /* en móvil los botones van en la barra inferior */
  .portada__horario { margin-bottom: 0; }
  .tira { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
  .tira::-webkit-scrollbar { display: none; }
  .tira .foto { flex: 0 0 62%; scroll-snap-align: start; }
  .visita { grid-template-columns: 1fr; }
  .pie .contenedor { flex-direction: column; align-items: flex-start; }

  body.con-barra { padding-bottom: 76px; }
  .barra-movil {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 246, 238, .97); border-top: 1px solid var(--linea);
  }
  .barra-movil .boton { flex: 1; padding: 12px 10px; }
  .barra-movil--3 .boton { flex-direction: column; gap: 3px; padding: 8px 4px; font-size: 14px; }
}
