/* lattelatte.mx — Paleta Latte 2026. Minimal: poco texto, tamaños contenidos, mucho aire. */
:root {
  --cream: #E1DCD0;
  --deep-forest: #003009;
  --foam: #D4BB8F;
  --caramel: #B88748;
  --terracota: #B95240;
  --base-white: #FFFFFF;
  --tinta-suave: #4A554B;
  --linea: rgba(0, 48, 9, .2);
  --sans: "Instrument Sans", system-ui, sans-serif;
  --serif: "Gloock", Georgia, serif;
  --condensada: "Oswald", "Arial Narrow", sans-serif;
  --margen: clamp(20px, 4vw, 48px);
  --ancho: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--deep-forest);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--caramel); outline-offset: 3px; }

.saltar { position: absolute; left: -9999px; top: 8px; background: var(--deep-forest); color: var(--cream); padding: 8px 14px; z-index: 10; }
.saltar:focus { left: 16px; }

.logo { display: block; background-color: currentColor; -webkit-mask: var(--img) center / contain no-repeat; mask: var(--img) center / contain no-repeat; }
.logo-palabra    { --img: url(/img/logo-palabra.png);    aspect-ratio: 1000 / 159; }
.logo-horizontal { --img: url(/img/logo-horizontal.png); aspect-ratio: 1200 / 294; }
.logo-apilado    { --img: url(/img/logo-apilado.png);    aspect-ratio: 800 / 733; }

/* Borde de teclas del menú impreso, fino */
.teclas {
  height: 6px;
  background-image: linear-gradient(90deg, var(--deep-forest) 50%, transparent 50%);
  background-size: 22.8% 100%;
  background-position: 9.3% 0;
}

/* ── Cabecera ── */
.cabecera {
  max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px var(--margen); font-size: 14px;
}
.cabecera .marca { text-decoration: none; }
.cabecera .marca .logo-palabra { width: 104px; }
.cabecera nav { display: flex; gap: 22px; }
.cabecera nav a { text-decoration: none; color: var(--tinta-suave); }
.cabecera nav a:hover, .cabecera nav a[aria-current] { color: var(--deep-forest); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ── Portada: texto y dibujo en capas (parallax en parallax.js) ── */
.portada {
  min-height: calc(100svh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(32px, 6vh, 72px) var(--margen) 0; overflow: hidden;
}
.portada-texto { will-change: transform, opacity; }
.portada h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 16px; }
.menu-enlace { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--caramel); }
.menu-enlace:hover { text-decoration-color: currentColor; }
.barra-dibujo { width: min(100%, 860px); margin: clamp(40px, 8vh, 88px) auto 0; will-change: transform; }

/* ── Sucursales ── */
.sucursales {
  max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto; padding: clamp(80px, 14vh, 160px) var(--margen);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); text-align: center;
}
.foto { overflow: hidden; aspect-ratio: 4 / 5; }
.foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; }
.sucursal h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; margin: 22px 0 2px; }
.direccion { margin: 0 0 14px; font-size: 14px; }
.direccion { color: var(--tinta-suave); }
.mapa { margin: 16px 0 0; font-size: 14px; }
.mapa a, .instagram a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--caramel); }
.mapa a:hover, .instagram a:hover { text-decoration-color: currentColor; }
.horario { margin: 0; display: flex; justify-content: center; gap: 2px 28px; flex-wrap: wrap; font-size: 14px; }
.horario div { display: flex; flex-direction: column; }
.horario dt { color: var(--tinta-suave); font-size: 12.5px; }
.horario dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ── Eventos ── */
.eventos {
  max-width: calc(640px + 2 * var(--margen)); margin: 0 auto; padding: clamp(64px, 10vh, 120px) var(--margen) clamp(80px, 12vh, 140px);
  text-align: center;
}
.eventos h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 8px; }
.eventos-texto { margin: 0 auto 24px; max-width: 34ch; color: var(--tinta-suave); font-size: 14px; }
.formulario { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 40px; text-align: left; }
.formulario[hidden] { display: none; }
.formulario label { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--tinta-suave); }
.formulario em { font-style: normal; opacity: .7; }
.formulario .ancho { grid-column: 1 / -1; }
.formulario input, .formulario select, .formulario textarea {
  font: inherit; font-size: 15px; color: var(--deep-forest); background: transparent;
  border: 0; border-bottom: 1px solid var(--linea); border-radius: 0; padding: 6px 0; width: 100%;
}
.formulario textarea { resize: vertical; }
.formulario input:focus, .formulario select:focus, .formulario textarea:focus { outline: none; border-bottom-color: var(--deep-forest); }
.envio { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.boton {
  font: inherit; font-size: 14px; cursor: pointer; text-decoration: none;
  background: var(--deep-forest); color: var(--cream); border: 0; padding: 11px 22px; border-radius: 0;
}
.boton:hover { background: #0B4416; }
.boton:disabled { opacity: .6; cursor: wait; }
#abrir-eventos[aria-expanded="true"] { display: none; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.estado-form { margin: 0; font-size: 14px; }
.estado-form.ok { color: var(--deep-forest); }
.estado-form.error { color: var(--terracota); }

/* ── Instagram ── */
.instagram { text-align: center; padding: 0 var(--margen) clamp(64px, 10vh, 112px); }
.instagram p { margin: 0 0 6px; font-size: 14px; color: var(--tinta-suave); }
.instagram a { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); }

/* ── 404 ── */
.no-existe { text-align: center; padding: clamp(24px, 5vw, 56px) var(--margen) clamp(56px, 8vw, 96px); }
.no-existe img { width: min(70vw, 300px); margin: 0 auto 24px; }
.no-existe h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 8px; }
.no-existe p { margin: 0; font-size: 14px; color: var(--tinta-suave); }

/* ── Pie ── */
.pie {
  max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 48px var(--margen) 36px; font-size: 13px; color: var(--tinta-suave); border-top: 1px solid var(--linea);
}
.pie-mascota { width: 40px; margin-bottom: 10px; }
.pie .logo-apilado { width: 52px; color: var(--deep-forest); margin-bottom: 10px; }
.pie p { margin: 0; }
.pie a { text-decoration: none; }
.pie a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .cabecera nav { gap: 16px; font-size: 13px; }
  .cabecera .marca .logo-palabra { width: 92px; }
  .portada { min-height: calc(100svh - 72px); }
  .sucursales { grid-template-columns: 1fr; gap: 72px; }
  .formulario { grid-template-columns: 1fr; gap: 18px; }
}
