/* ==========================================================================
   Casa José · Desayunos y comidas · De 7 a 7
   Hoja de estilos única para index.html y menu.html
   ========================================================================== */

/* ---------- Fuentes locales ---------- */
@font-face {
  font-family: "Alfa Slab One";
  src: url("../fuentes/alfa-slab-one-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fuentes/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fuentes/archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fuentes/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fuentes/archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --rojo: #DE021E;      /* RESERVADO: solo logo y nombre del restaurante */
  --cafe: #2B1E16;
  --cafe-osc: #1E1510;
  --crema: #FCF7EF;
  --papel: #FFFFFF;
  --oro: #C99137;
  --oro-osc: #B57F27;
  --humo: #7A6A60;
  --linea: #E8DCD2;
  --verde: #128C4A;

  --titular: "Alfa Slab One", "Georgia", serif;
  --cuerpo: "Archivo", "Segoe UI", sans-serif;

  --alto-nav: 72px;
  --radio: 18px;
  --sombra: 0 2px 8px rgba(43, 30, 22, .06), 0 12px 32px rgba(43, 30, 22, .07);
  --cenefa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M14 2.2 25.4 7 14 11.8 2.6 7Z' fill='none' stroke='%23C99137' stroke-width='1.5'/%3E%3C/svg%3E");
  --cenefa-cafe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M14 2.2 25.4 7 14 11.8 2.6 7Z' fill='none' stroke='%232B1E16' stroke-width='1.5'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--cuerpo);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cafe);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--titular);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--oro);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.contenedor {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4.5vw, 32px);
}

/* ---------- Cenefa geométrica ---------- */
.cenefa {
  height: 14px;
  background: var(--cenefa) repeat-x center / 28px 14px;
  border: 0;
  margin: 0 auto;
  max-width: 308px;
  opacity: .9;
}
.cenefa--ancha { max-width: none; opacity: .55; }
.cenefa--cafe { background-image: var(--cenefa-cafe); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--cuerpo);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--crema);
  background: var(--cafe);
  border: 2px solid var(--cafe);
  border-radius: 999px;
  padding: 14px 32px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover {
  background: var(--cafe-osc);
  border-color: var(--cafe-osc);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(43, 30, 22, .18);
}
.btn:active { transform: translateY(0); }

.btn--contorno {
  background: transparent;
  color: var(--cafe);
  border-color: var(--oro);
}
.btn--contorno:hover {
  background: rgba(201, 145, 55, .12);
  border-color: var(--oro-osc);
  box-shadow: none;
}

.btn--oro {
  background: var(--oro);
  border-color: var(--oro);
  color: var(--cafe-osc);
}
.btn--oro:hover {
  background: var(--oro-osc);
  border-color: var(--oro-osc);
}

.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn[disabled]:hover {
  background: transparent;
  border-color: var(--oro);
}

.btn--chico { padding: 10px 22px; font-size: .92rem; }

/* ---------- Barra de navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--alto-nav);
  background: rgba(43, 30, 22, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 145, 55, .3);
  transition: box-shadow .25s ease;
}
.nav.con-sombra { box-shadow: 0 4px 20px rgba(30, 21, 16, .35); }

.nav__interior {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 44px; width: auto; }

.nav__enlaces {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__enlaces a:not(.btn) {
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  color: var(--crema);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.nav__enlaces a:not(.btn):hover {
  color: var(--oro);
  border-bottom-color: var(--oro);
}

.nav__burger {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--crema);
  margin: 5px 0;
  transition: transform .22s ease, opacity .22s ease;
}

@media (max-width: 760px) {
  .nav__burger { display: block; }

  .nav__enlaces {
    position: absolute;
    top: var(--alto-nav);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cafe);
    border-bottom: 1px solid rgba(201, 145, 55, .3);
    box-shadow: 0 16px 32px rgba(30, 21, 16, .35);
    padding: 10px 22px 22px;
    display: none;
  }
  .nav__enlaces.abierto { display: flex; }
  .nav__enlaces li { border-bottom: 1px solid rgba(252, 247, 239, .12); }
  .nav__enlaces li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav__enlaces a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 0; }
  .nav__enlaces .btn { width: 100%; }

  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(60px, 9vw, 100px); }
.seccion--papel { background: var(--papel); }
.seccion--cafe { background: var(--cafe); color: var(--crema); }

.kicker {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oro-osc);
  margin-bottom: 14px;
}
.seccion--cafe .kicker { color: var(--oro); }

.titulo {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  margin-bottom: 18px;
}

.regla-oro {
  width: 64px;
  height: 3px;
  border: 0;
  border-radius: 2px;
  background: var(--oro);
  margin: 0 0 22px;
}

.centrado { text-align: center; }
.centrado .regla-oro { margin-inline: auto; }

.texto-seccion {
  max-width: 62ch;
  color: var(--humo);
  font-size: 1.06rem;
}
.centrado .texto-seccion { margin-inline: auto; }
.seccion--cafe .texto-seccion { color: rgba(252, 247, 239, .82); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(88svh - var(--alto-nav));
  padding-top: calc(var(--alto-nav) + clamp(40px, 7vw, 72px));
  padding-bottom: clamp(44px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__logo {
  width: clamp(240px, 44vw, 400px);
  height: auto;
  margin-inline: auto;
}

.hero__eslogan {
  margin-top: clamp(22px, 3.5vw, 32px);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 500;
  color: var(--cafe);
  letter-spacing: .02em;
}
.hero__eslogan .punto { color: var(--oro); font-weight: 700; padding-inline: 8px; }

.hero .regla-oro { margin: clamp(22px, 3.5vw, 30px) auto; }

.hero__cenefa {
  margin-top: clamp(40px, 7vw, 64px);
  width: 100%;
}

/* ---------- Historia ---------- */
.historia__botonera { margin-top: 26px; }

/* ---------- Pila de especialidades (carrusel de tarjetas apiladas) ---------- */
.pila { position: relative; margin-top: 10px; }

.pila__contenedor {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 4 / 3;
  margin-inline: auto;
  margin-top: min(17%, 76px);   /* espacio para el asomo de las tarjetas traseras */
  perspective: 1000px;
}

.pila__tarjeta {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--linea);
  background: var(--papel);
  box-shadow: 0 18px 40px rgba(43, 30, 22, .16);
  transition: transform .55s cubic-bezier(.22, 1.1, .3, 1), filter .45s ease, opacity .3s ease;
  will-change: transform;
}
.pila__tarjeta.frente { cursor: grab; touch-action: none; }
.pila__tarjeta.arrastrando { transition: none; cursor: grabbing; }
.pila__tarjeta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.pila__leyenda {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 22px 16px;
  font-family: var(--titular);
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(to top, rgba(30, 21, 16, .78), rgba(30, 21, 16, 0));
  opacity: 0;
  transition: opacity .3s ease;
}
.pila__tarjeta.frente .pila__leyenda { opacity: 1; }

.pila__flecha {
  position: absolute;
  top: calc(50% - 23px);
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--linea);
  background: var(--papel);
  color: var(--cafe);
  cursor: pointer;
  box-shadow: var(--sombra);
  display: grid;
  place-items: center;
  transition: background .18s ease, transform .18s ease;
}
.pila__flecha:hover { background: var(--crema); transform: scale(1.06); }
.pila__flecha--ant { left: -12px; }
.pila__flecha--sig { right: -12px; }

.pila__progreso {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.pila__progreso button {
  height: 6px;
  width: 16px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--linea);
  cursor: pointer;
  transition: background .25s ease, width .25s ease;
}
.pila__progreso button.activo { background: var(--oro); width: 36px; }

.pila__ayuda {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--humo);
}

.botonera { margin-top: 30px; }

/* ---------- Eventos ---------- */
.eventos__reticula {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.evento-cat {
  border: 1px solid rgba(201, 145, 55, .45);
  border-radius: 14px;
  padding: 18px 20px;
  background: rgba(252, 247, 239, .04);
}
.evento-cat h3 {
  font-family: var(--cuerpo);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--oro);
  margin-bottom: 4px;
}
.evento-cat p { font-size: .92rem; color: rgba(252, 247, 239, .75); }

.eventos__nota {
  margin-top: 26px;
  font-size: .95rem;
  color: rgba(252, 247, 239, .65);
}
.eventos__botonera { margin-top: 30px; }

/* ---------- Contacto ---------- */
.contacto__reticula {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 48px);
  margin-top: 38px;
  align-items: start;
}
@media (min-width: 860px) {
  .contacto__reticula { grid-template-columns: 1fr 1.1fr; }
}

.dato {
  display: flex;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--linea);
}
.dato:first-child { padding-top: 0; }
.dato__icono {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(201, 145, 55, .14);
  color: var(--oro-osc);
  display: grid;
  place-items: center;
}
.dato__icono svg { width: 21px; height: 21px; }
.dato h3 {
  font-family: var(--cuerpo);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--humo);
  margin-bottom: 3px;
}
.dato p, .dato a { font-size: 1.04rem; text-decoration: none; }
.dato a:hover { color: var(--oro-osc); }

.dato--tel a {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.horarios { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.horarios td { padding: 3px 0; font-size: 1.02rem; }
.horarios td:last-child { text-align: right; font-weight: 600; }
.horarios .cerrado { color: var(--humo); }

.insignias {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.insignia {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--oro);
  color: var(--cafe);
  background: rgba(201, 145, 55, .08);
  text-decoration: none;
}
.insignia svg { width: 17px; height: 17px; color: var(--oro-osc); }
a.insignia:hover { background: rgba(201, 145, 55, .18); }

.contacto__mapa {
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  background: var(--papel);
}
.contacto__mapa iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  border: 0;
}

/* ---------- Reseñas ---------- */
.resenas__reticula {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 38px;
}
@media (min-width: 720px) {
  .resenas__reticula { grid-template-columns: 1fr 1fr; }
}

.resena {
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 26px 28px;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.resena__estrellas { display: flex; gap: 3px; color: var(--oro); }
.resena__estrellas svg { width: 19px; height: 19px; }
.resena blockquote {
  margin: 0;
  font-size: 1.02rem;
  color: var(--cafe);
}
.resena footer { margin-top: auto; }
.resena cite {
  font-style: normal;
  font-weight: 700;
  display: block;
}
.resena .antiguedad { font-size: .88rem; color: var(--humo); }

/* ---------- Pie de página ---------- */
.pie {
  background: var(--cafe);
  color: rgba(252, 247, 239, .82);
  padding-top: 8px;
}
.pie__cenefa { margin-bottom: clamp(40px, 6vw, 56px); }

.pie__reticula {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: clamp(40px, 6vw, 56px);
}
@media (min-width: 760px) {
  .pie__reticula { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
}

.pie__logo img { width: 150px; height: auto; }
.pie__eslogan { margin-top: 14px; font-size: .95rem; }

.pie h3 {
  font-family: var(--cuerpo);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 14px;
}
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin-bottom: 10px; font-size: .98rem; }
.pie a { color: inherit; text-decoration: none; }
.pie a:hover { color: var(--oro); }
.pie .tel { font-weight: 700; font-variant-numeric: tabular-nums; }

.pie__legal {
  border-top: 1px solid rgba(252, 247, 239, .14);
  padding-block: 20px;
  font-size: .86rem;
  color: rgba(252, 247, 239, .55);
  text-align: center;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.flotante-wsp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(18, 140, 74, .4);
  transition: transform .18s ease, box-shadow .18s ease;
}
.flotante-wsp svg { width: 32px; height: 32px; }
.flotante-wsp:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(18, 140, 74, .5);
}

/* ==========================================================================
   menu.html
   ========================================================================== */

.cabecera-menu {
  padding-top: calc(var(--alto-nav) + clamp(44px, 7vw, 72px));
  padding-bottom: clamp(28px, 4vw, 40px);
  text-align: center;
}
.cabecera-menu h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); }
.cabecera-menu .hero__eslogan { margin-top: 12px; font-size: 1.05rem; }
.cabecera-menu .regla-oro { margin: 22px auto 0; }

.barra-categorias {
  position: sticky;
  top: var(--alto-nav);
  z-index: 40;
  background: rgba(252, 247, 239, .95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-block: 1px solid var(--linea);
}
.barra-categorias nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-block: 12px;
  scrollbar-width: none;
}
.barra-categorias nav::-webkit-scrollbar { display: none; }

.pildora {
  flex: 0 0 auto;
  font-size: .92rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--linea);
  background: var(--papel);
  color: var(--cafe);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.pildora:hover { border-color: var(--oro); }
.pildora.activa {
  background: var(--cafe);
  border-color: var(--cafe);
  color: var(--crema);
}

.carta { max-width: 800px; padding-bottom: clamp(60px, 9vw, 100px); }

.categoria {
  padding-top: clamp(48px, 7vw, 72px);
  scroll-margin-top: calc(var(--alto-nav) + 64px);
}
.categoria__cabeza { text-align: center; margin-bottom: 10px; }
.categoria__cabeza .titulo { margin-bottom: 8px; }
.categoria__nota {
  color: var(--humo);
  font-size: .95rem;
  text-align: center;
  margin-bottom: 8px;
}

.platillo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-block: 16px;
  border-bottom: 1px dashed var(--linea);
}
.platillo__info { min-width: 0; }
.platillo__nombre { font-weight: 600; font-size: 1.05rem; }
.platillo__desc {
  font-size: .9rem;
  color: var(--humo);
  margin-top: 3px;
  max-width: 46ch;
}
.platillo__puntos {
  flex: 1 1 auto;
  min-width: 24px;
  border-bottom: 2px dotted var(--linea);
  transform: translateY(-5px);
}
.platillo__precio {
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.volver { text-align: center; padding-bottom: clamp(50px, 7vw, 80px); }
