/* Friandise — sitio web 2026. Tokens tomados de brand/tokens/brand.css y del brandbook. */

:root {
  /* Paleta brandbook 2026 */
  --crema: #FFFFED;      /* Turrón */
  --salvia: #E0E7BC;     /* Toledo */
  --oliva: #897100;      /* Ranita */
  --chocolate: #211300;  /* Chocolate */
  --bordo: #A23D43;      /* Frambuesa */
  --rosa: #F6AAB5;       /* Leeds */
  --linea: rgba(33, 19, 0, .18);

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;

  --t-display: clamp(52px, 9vw, 128px);
  --t-h1: clamp(32px, 4.4vw, 56px);
  --t-lead: clamp(18px, 1.6vw, 21px);
  --t-body: 16px;
  --t-label: 12px;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--chocolate);
  font: 400 var(--t-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Tipografía */
.display {
  font-weight: 500;
  font-size: var(--t-display);
  line-height: .9;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.h1 {
  font-weight: 500;
  font-size: var(--t-h1);
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: 34em; }
.label {
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* Ilustraciones de una tinta, recoloreables con currentColor */
.ink {
  display: block;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
}
.chef-mark { --src: url(svg/logosimbolo.svg); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--chocolate); color: var(--crema);
  border: 1px solid var(--chocolate); border-radius: 999px;
  font: 500 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--bordo); border-color: var(--bordo); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--chocolate); }
.btn-ghost:hover { background: var(--chocolate); border-color: var(--chocolate); color: var(--crema); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 12px; }
:focus-visible { outline: 2px solid var(--bordo); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--crema) 92%, transparent);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .chef-mark { width: 54px; height: 54px; }
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-name { font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.brand-since { font-size: 11px; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font: 400 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:not(.btn):hover { border-color: currentColor; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding-top: clamp(32px, 6vw, 80px); }
.hero-copy {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px clamp(32px, 5vw, 72px); align-items: end;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.hero-title, .hero-intro { display: flex; flex-direction: column; gap: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; max-height: 88vh; min-height: 320px;
  object-fit: cover; object-position: 45% 55%;
}

/* Patrón de cuadros (brandbook p. 8) */
.checker {
  height: 96px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='96'%3E%3Crect width='80' height='48' fill='%23211300'/%3E%3Crect x='80' width='20' height='48' fill='%23897100'/%3E%3Crect x='100' width='20' height='48' fill='%23E0E7BC'/%3E%3Crect y='48' width='80' height='48' fill='%23FFFFED'/%3E%3Crect x='80' y='48' width='20' height='48' fill='%23F6AAB5'/%3E%3Crect x='100' y='48' width='20' height='48' fill='%23211300'/%3E%3C/svg%3E");
  background-size: 120px 96px;
}

/* Marquee */
.marquee { background: var(--chocolate); color: var(--salvia); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span {
  font-weight: 500; font-size: clamp(22px, 3vw, 34px); text-transform: uppercase; letter-spacing: -.02em;
  padding: 0 40px; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Secciones */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: grid; gap: 20px; max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }

/* Productos */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.product img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.product { overflow: hidden; }
.product:hover img { transform: scale(1.03); }
.product-info {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 16px; margin-top: 4px;
}
.product h3 { font-weight: 500; font-size: 22px; text-transform: uppercase; letter-spacing: -.015em; line-height: 1.1; }
.price { font: 500 14px/1 var(--mono); white-space: nowrap; }
.product-note { margin-top: 6px; font-size: 15px; line-height: 1.05; opacity: .75; }

/* Temporada */
.temporada { background: var(--crema); color: var(--chocolate); }
.temporada-head {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.temporada-head .section-head { margin-bottom: 0; }
.temporada-cover img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius); }
.carousel-track.seasonal { grid-auto-columns: clamp(280px, 40vw, 540px); }
.season-card { display: grid; gap: 14px; align-content: start; }
.season-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.season-body { display: grid; gap: 8px; }
.season-card h3 { font-weight: 500; font-size: 24px; text-transform: uppercase; letter-spacing: -.015em; line-height: 1.1; }
.season-card p { font-size: 15px; max-width: 34em; }

/* Menú */
.menu-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.menu-intro { position: sticky; top: 108px; display: grid; gap: 24px; }
.menu-title { font-size: clamp(72px, 12vw, 168px); }
.menu-photo img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.menu-lists { display: grid; gap: 48px; }
.menu-block h3 { padding-bottom: 8px; }
.menu-list li {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 8px 0; font-size: 17px;
}
.menu-list li span:last-child { font: 500 14px/1 var(--mono); }
.menu-list li span:last-child::before { content: "Q"; }
.menu-note { opacity: .7; }

/* Brunch */
.brunch { background: var(--salvia); }
.brunch-head { display: grid; justify-items: center; text-align: center; gap: 12px; margin-bottom: clamp(40px, 6vw, 72px); }
.brunch-head .display { font-size: clamp(72px, 14vw, 200px); color: var(--oliva); text-transform: none; letter-spacing: -.05em; }
.brunch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.dish { padding: 16px 0 32px; }
.dish header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.dish h3 { font: 500 13px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.dish header span { font: 500 14px/1 var(--mono); }
.dish header span::before { content: "Q"; }
.dish p { font-size: 15px; }

/* Historia */
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-bottom: clamp(56px, 8vw, 112px); }
.story-polaroid img { transform: rotate(-4deg); filter: drop-shadow(0 18px 30px rgba(33,19,0,.18)); max-width: 420px; width: 100%; margin: 0 auto; }
.story-text { display: grid; gap: 20px; max-width: 560px; }
/* Carruseles (historia y temporada) */
.carousel-head { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-bottom: 20px; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 999px; cursor: pointer;
  background: var(--chocolate); color: var(--crema); border: 0;
  font: 400 18px/1 var(--sans); transition: background .2s, opacity .2s;
}
.carousel-btn:hover:not(:disabled) { background: var(--bordo); }
.carousel-btn:disabled { opacity: .25; cursor: default; }
.carousel-track {
  --inset: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 26vw, 360px);
  list-style: none;
  gap: clamp(16px, 2vw, 28px);
  margin: 0 calc(50% - 50vw); padding: 0 var(--inset) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--inset);
  overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.carousel-track > li { scroll-snap-align: start; }
.carousel-track img { pointer-events: none; }
.timeline img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); width: 100%; filter: saturate(.85); }


/* Visítanos */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.visit-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.visit-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); }
.visit-info { display: grid; gap: 28px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.facts div { display: grid; gap: 6px; }
.facts dd { font-size: 17px; }
.facts a { text-underline-offset: 3px; }
.facts a:hover { color: var(--bordo); }

/* Footer */
.site-footer { background: var(--chocolate); color: var(--crema); padding: clamp(48px, 6vw, 80px) 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; align-items: end; padding-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand .chef-mark { width: 96px; height: 96px; color: var(--crema); }
.footer-name { font-weight: 500; font-size: 36px; letter-spacing: -.02em; line-height: 1; }
.footer-since { font-size: 15px; text-align: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--rosa); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; opacity: .8; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: inherit;
  }
  .nav-toggle .bar { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--crema);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 14px; }
  .nav .btn { margin-top: 16px; }

  .hero-copy, .menu-grid, .story, .visit-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 3; }
    .products { grid-template-columns: repeat(2, 1fr); }
  .temporada-head { grid-template-columns: 1fr; }
  .menu-intro { position: static; }
  .menu-photo { display: none; }
  .brunch-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .brand .chef-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 19px; }
  .products { grid-template-columns: 1fr; }
  .product h3 { font-size: 20px; }
  .brunch-grid { grid-template-columns: 1fr; }
  .carousel-track, .carousel-track.seasonal { grid-auto-columns: 78%; }
  .facts { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .checker { height: 64px; background-size: 80px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
