/* ==========================================================
   MIMOSA · Rustic Bakery — San Agustín, Gran Canaria
   Estilo editorial: Instrument Serif + Geist, foto real.
   ========================================================== */
:root {
  --bg: #f4efe7;
  --bg-2: #ebe3d6;
  --paper: #fbf8f3;
  --ink: #1e1916;
  --ink-2: #3a312c;
  --muted: #776b62;
  --line: rgba(30, 25, 22, .14);
  --wine: #6e1d22;
  --mustard: #c99a3b;
  --espresso: #1a1411;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.22, .9, .25, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
::selection { background: var(--wine); color: var(--paper); }

.wrap { width: min(var(--max), 100% - var(--pad) * 2); margin-inline: auto; }
.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.serif { font-family: var(--serif); }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 8.6vw, 8.8rem);
  line-height: .92;
  letter-spacing: -.015em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: .98;
  letter-spacing: -.01em;
}
.h3 { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.05; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
em { font-style: italic; }
.muted { color: var(--muted); }

/* ---------- Botones / enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 26px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--wine); border-color: var(--wine); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.btn--line-light { background: transparent; color: var(--paper); border-color: rgba(251, 248, 243, .6); }
.btn--line-light:hover { background: var(--paper); color: var(--ink); }
.link {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 15px; font-weight: 500;
  background: linear-gradient(currentColor 0 0) left bottom / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .45s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: right bottom; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--ink);
}
.header__in {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
  height: 76px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: baseline; gap: 10px; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 30px; letter-spacing: -.01em; }
.brand__tag { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-size: 14.5px; position: relative; padding: 6px 0; opacity: .85; transition: opacity .25s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header .btn { height: 42px; padding: 0 20px; font-size: 13.5px; }
.menu-btn { display: none; }

.header.is-solid { background: rgba(244, 239, 231, .92); backdrop-filter: blur(14px); border-color: var(--line); }
.header.on-dark:not(.is-solid) { color: var(--paper); }
.header.on-dark:not(.is-solid) .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.header.on-dark:not(.is-solid) .btn:hover { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.header.is-hidden { transform: translateY(-100%); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--espresso); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px var(--pad) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu a.big { font-family: var(--serif); font-size: clamp(3rem, 13vw, 5rem); line-height: 1.05; display: block; }
.mobile-menu a.big em { color: var(--mustard); }
.mobile-menu .meta { margin-top: 40px; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; opacity: .7; }

/* ---------- HERO con vídeo (inicio) ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 620px;
  overflow: hidden;
  background: #2b2016 url("../media/cafe-inicio.jpg") center / cover;
  color: var(--paper);
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(18, 12, 8, .78) 0%, rgba(18, 12, 8, .35) 38%, rgba(18, 12, 8, 0) 62%),
    linear-gradient(to bottom, rgba(18, 12, 8, .35), rgba(18, 12, 8, 0) 22%);
  opacity: 0; transition: opacity 1.4s ease;
}
.hero__content {
  position: absolute; inset: auto 0 0 0;
  padding-bottom: clamp(28px, 6vh, 64px);
}
.hero__grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.hero .label { color: rgba(251, 248, 243, .8); margin-bottom: 18px; }
.hero h1 em { color: #f0cf86; }
.hero__side { display: grid; gap: 18px; justify-items: end; text-align: right; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .02em;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mustard); position: relative; }
.status.is-open .status__dot { background: #7fc48f; }
.status.is-open .status__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid #7fc48f; animation: ping 2s ease-out infinite;
}
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  width: 1px; height: 46px; background: rgba(251, 248, 243, .35); overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--paper); animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }
.skip-video {
  position: absolute; right: var(--pad); top: 96px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(18, 12, 8, .35); backdrop-filter: blur(6px);
  border: 1px solid rgba(251, 248, 243, .35); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; color: var(--paper);
  transition: opacity .5s;
}

/* Animación de entrada del texto sobre el vídeo */
.hero [data-hero] { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.hero.is-ready [data-hero] { opacity: 1; transform: none; filter: none; }
.hero.is-ready .hero__shade { opacity: 1; }
.hero.is-ready .skip-video { opacity: 0; pointer-events: none; }
.hero.is-ready [data-hero="2"] { transition-delay: .12s; }
.hero.is-ready [data-hero="3"] { transition-delay: .26s; }
.hero.is-ready [data-hero="4"] { transition-delay: .4s; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-head { padding: 170px 0 70px; }
.page-head__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.page-head .label { margin-bottom: 22px; }
.page-head .lead { margin: 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding: clamp(60px, 8vw, 110px) 0; }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--espresso); color: var(--paper); }
.section--dark .label { color: rgba(251, 248, 243, .6); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .label { margin-bottom: 18px; }

/* Intro editorial */
.statement { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; }
.statement p.big {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.9rem);
  line-height: 1.06; letter-spacing: -.01em;
  margin: 0 0 36px;
}
.statement p.big em { color: var(--wine); }
.trio { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(14px, 2vw, 28px); margin-top: clamp(60px, 8vw, 110px); align-items: start; }
.trio figure:nth-child(1) { margin-top: 18%; }
.trio figure:nth-child(3) { margin-top: 34%; }

/* Figuras con revelado */
figure { margin: 0; }
.ph { position: relative; overflow: hidden; background: var(--bg-2); border-radius: 4px; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ph--45 { aspect-ratio: 4 / 5; }
.ph--34 { aspect-ratio: 3 / 4; }
.ph--11 { aspect-ratio: 1; }
.ph--wide { aspect-ratio: 16 / 10; }
a:hover .ph img, .ph:hover img { transform: scale(1.045); }
figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 13.5px; color: var(--muted); }
figcaption b { font-weight: 500; color: var(--ink); }

/* Fila de productos (scroll horizontal) */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 360px);
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 12px;
  margin: 0 calc(var(--pad) * -1);
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.product h3 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; margin-top: 16px; }
.product p { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.rail-ctrl { display: flex; gap: 8px; }
.rail-ctrl button {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: background .3s, color .3s;
}
.rail-ctrl button:hover { background: var(--ink); color: var(--paper); }

/* Banda a sangre con imagen */
.band {
  position: relative; min-height: 88svh;
  display: grid; align-items: end;
  color: var(--paper); overflow: hidden;
}
.band__img { position: absolute; inset: -8% 0; }
.band__img img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 12, 8, .72), rgba(18, 12, 8, .1) 60%); }
.band__content { position: relative; z-index: 1; padding: 0 0 clamp(40px, 7vw, 90px); }
.band__content .label { color: rgba(251, 248, 243, .75); margin-bottom: 20px; }
.band__content .h2 { max-width: 14ch; margin-bottom: 28px; }

/* Bloque dividido */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split .h2 { margin: 18px 0 26px; }
.split p { color: var(--ink-2); max-width: 50ch; }

/* Mantel real de fondo */
.mantel {
  position: relative;
  background: #c89a49 url("../img/mantel.jpg") center / cover;
  padding: clamp(80px, 12vw, 150px) 0;
}
.mantel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 20, 10, .1), rgba(30, 20, 10, .0)); }
.card {
  position: relative;
  background: var(--paper);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(40, 25, 10, .55), 0 2px 6px rgba(40, 25, 10, .08);
}
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); }
.visit-card { max-width: 620px; }
.mantel { background-position: 20% center; }
.mantel .visit-card { margin-left: auto; }
@media (max-width: 700px) { .mantel { background-position: 12% center; padding-top: 52vw; } }
.visit-card .h2 { margin: 16px 0 30px; }

/* Horario */
.hours { list-style: none; margin: 0 0 28px; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.hours li span:last-child { font-variant-numeric: tabular-nums; }
.hours li.is-closed span:last-child { color: var(--muted); }
.hours li.is-today { font-weight: 500; }
.hours li.is-today span:first-child::after { content: "Hoy"; margin-left: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
address { font-style: normal; }

/* Carta */
.menu-nav {
  position: sticky; top: 76px; z-index: 20;
  background: rgba(244, 239, 231, .92); backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.menu-nav .wrap { display: flex; gap: 28px; overflow-x: auto; height: 58px; align-items: center; scrollbar-width: none; }
.menu-nav a { white-space: nowrap; font-size: 14px; color: var(--muted); transition: color .25s; }
.menu-nav a:hover, .menu-nav a.is-active { color: var(--ink); }
.menu-cat { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 100px); padding: clamp(70px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.menu-cat__media { position: sticky; top: 160px; align-self: start; }
.menu-cat__head { margin-bottom: 34px; }
.menu-cat__head .h2 { margin: 14px 0 14px; }
.items { list-style: none; padding: 0; margin: 0; }
.items li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; }
.items li:last-child { border-bottom: 1px solid var(--line); }
.items h3 { font-family: var(--serif); font-size: 1.65rem; line-height: 1.1; }
.items p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 15px; }
.tag { align-self: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); border: 1px solid rgba(110, 29, 34, .35); border-radius: 999px; padding: 4px 10px; }
.note { font-size: 14px; color: var(--muted); }

/* Galería nosotros / eventos */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.gallery > :nth-child(1) { grid-column: 1 / 6; }
.gallery > :nth-child(2) { grid-column: 6 / 10; margin-top: 22%; }
.gallery > :nth-child(3) { grid-column: 10 / 13; margin-top: 8%; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); }
.values .num { font-family: var(--serif); font-size: 1.1rem; color: var(--wine); }
.values h3 { font-family: var(--serif); font-size: 2rem; margin: 10px 0 12px; line-height: 1.05; }
.values p { color: var(--muted); font-size: 15.5px; }

/* Eventos: bloques numerados */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); padding: clamp(60px, 9vw, 120px) 0; border-top: 1px solid var(--line); align-items: center; }
.offer:nth-of-type(even) > :first-child { order: 2; }
.offer__pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: end; }
.offer .num { font-family: var(--serif); font-size: 1.3rem; color: var(--wine); }
.offer .h2 { margin: 14px 0 24px; }
.offer ul { padding: 0; margin: 0 0 30px; list-style: none; }
.offer ul li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }

/* Mapa */
.map { border-radius: 4px; overflow: hidden; min-height: 460px; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; filter: grayscale(.35) sepia(.15) contrast(1.02); }
.contact-list { display: grid; gap: 4px; margin: 0 0 30px; }
.contact-list a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact-list a span:last-child { transition: transform .3s var(--ease); }
.contact-list a:hover span:last-child { transform: translateX(5px); }

/* CTA final */
.cta-final { text-align: center; }
.cta-final .display { margin: 20px 0 36px; }
.cta-final .display em { color: var(--wine); }

/* ---------- Pie ---------- */
.footer { background: var(--espresso); color: rgba(251, 248, 243, .85); padding: clamp(70px, 9vw, 120px) 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 70px; border-bottom: 1px solid rgba(251, 248, 243, .14); }
.footer__brand .brand__name { font-size: clamp(3.4rem, 7vw, 6rem); color: var(--paper); line-height: .9; display: block; }
.footer__brand p { margin-top: 18px; max-width: 30ch; color: rgba(251, 248, 243, .6); }
.footer h4 { margin: 0 0 18px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: rgba(251, 248, 243, .5); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.footer a:hover { color: var(--paper); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; font-size: 13px; color: rgba(251, 248, 243, .45); }
.gingham-strip { height: 14px; background: url("../img/mantel.jpg") center / 900px auto; }

/* ---------- Revelados al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="img"] img { transform: scale(1.18); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="img"].is-in img { transform: scale(1); }
.js [data-reveal="img"].is-in:hover img, a:hover .js [data-reveal="img"].is-in img { transform: scale(1.045); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav, .header .btn { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    background: none; border: 0; cursor: pointer; font-size: 14px; position: relative; z-index: 70;
  }
  .menu-btn i { display: grid; gap: 5px; }
  .menu-btn i::before, .menu-btn i::after { content: ""; width: 22px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
  .menu-open .menu-btn i::before { transform: translateY(3.25px) rotate(45deg); }
  .menu-open .menu-btn i::after { transform: translateY(-3.25px) rotate(-45deg); }
  .menu-open .header { color: var(--paper) !important; background: transparent !important; border-color: transparent !important; backdrop-filter: none !important; }
  .statement, .page-head__grid, .split, .visit, .menu-cat, .offer { grid-template-columns: 1fr; }
  .split--rev > :first-child, .offer:nth-of-type(even) > :first-child { order: 0; }
  .menu-cat__media { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .header__in { height: 66px; }
  .brand__tag { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { justify-items: start; text-align: left; }
  .hero__ctas { justify-content: flex-start; }
  .hero__media { object-position: 38% 50%; }
  .scroll-cue { display: none; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio figure:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .trio figure:nth-child(1), .trio figure:nth-child(3) { margin-top: 0; }
  .section-head { flex-direction: column; align-items: start; }
  .rail-ctrl { display: none; }
  .gallery > * { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .page-head { padding-top: 130px; }
  .menu-nav { top: 66px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js [data-reveal="img"] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="img"] img { transform: none; }
  @view-transition { navigation: none; }
}

/* ==========================================================
   Galerías, lightbox, encargos por WhatsApp
   ========================================================== */
.masonry { columns: 4 260px; column-gap: clamp(10px, 1.4vw, 18px); }
.masonry > * { break-inside: avoid; margin-bottom: clamp(10px, 1.4vw, 18px); display: block; }
.masonry img { width: 100%; height: auto; border-radius: 4px; }
.zoom { cursor: zoom-in; overflow: hidden; border-radius: 4px; position: relative; }
.zoom img { transition: transform 1.2s var(--ease), filter .6s; }
.zoom:hover img { transform: scale(1.04); }
.zoom figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; padding: 0; color: var(--paper); font-size: 13px; opacity: 0; transform: translateY(6px); transition: .4s var(--ease); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.zoom:hover figcaption { opacity: 1; transform: none; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 20vw, 260px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-top: 28px; scrollbar-width: thin; }
.strip > * { scroll-snap-align: start; aspect-ratio: 4 / 5; }
.strip img { width: 100%; height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(18, 12, 8, .94); display: grid; place-items: center; padding: 60px 16px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 100%); max-height: 84vh; object-fit: contain; border-radius: 4px; transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(251,248,243,.75); font-size: 14px; margin: 0; }
.lb-btn { position: absolute; background: none; border: 1px solid rgba(251,248,243,.35); color: var(--paper); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 18px; transition: background .25s; }
.lb-btn:hover { background: rgba(251,248,243,.12); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); z-index: 50;
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 22px 0 16px; border-radius: 999px;
  background: #1f6b45; color: #fff; font-size: 14.5px; font-weight: 500;
  box-shadow: 0 14px 30px -10px rgba(20, 60, 40, .55);
  transform: translateY(120%); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s, background .3s;
}
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover { background: #17573a; }
.wa-float svg { width: 22px; height: 22px; flex: none; }
.btn--wa { background: #1f6b45; border-color: #1f6b45; color: #fff; }
.btn--wa:hover { background: #17573a; border-color: #17573a; }
.btn--wa svg { width: 18px; height: 18px; }

/* Configurador de encargo */
.order { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.order__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(30,25,22,.3);
  padding: 10px 0; border-radius: 0; outline: none; transition: border-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231e1916' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wine); }
.order__note { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); margin: 0; }
.order__img { position: sticky; top: 110px; }
.section--dark .field label { color: rgba(251,248,243,.6); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }

.offer-gallery { grid-column: 1 / -1; order: 3; margin-top: 10px; }
.masonry figure { margin-top: 0; }
.order__img .strip { margin-top: 12px; }

@media (max-width: 1020px) { .order { grid-template-columns: 1fr; } .order__img { position: static; } }
@media (max-width: 700px) {
  .order__form { grid-template-columns: 1fr; }
  .wa-float { padding: 0; width: 56px; justify-content: center; }
  .wa-float span { display: none; }
  .masonry { columns: 2; }
}

/* ==========================================================
   IDENTIDAD MIMOSA: logo + tipografía propia "Mimosa Script"
   (creada a partir del rotulado a mano del cartel de Mimosa)
   Solo se usa en los apartados del menú y el botón de la cabecera.
   ========================================================== */
@font-face {
  font-family: "Trazo Muestrario";
  src: url("../fonts/trazo-muestrario.woff2") format("woff2"), url("../fonts/trazo-muestrario.ttf") format("truetype");
  font-display: swap;
}
:root { --script: "Trazo Muestrario", var(--serif); --brand: #5e1f24; }

.logo-icon, .logo-word {
  display: inline-block; flex: none;
  background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.logo-icon { --m: url("../img/logo-icono.svg"); width: 32px; aspect-ratio: 647 / 737; color: var(--brand); }
.logo-word { --m: url("../img/logo-mimosa.svg"); aspect-ratio: 1154 / 1458; }
.header.on-dark:not(.is-solid) .logo-icon, .menu-open .header .logo-icon { color: var(--paper); }
.brand { align-items: center; gap: 12px; }
.hero__logo { width: clamp(120px, 14vw, 190px); color: var(--paper); margin-bottom: 18px; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }

/* Apartados del menú con la letra de Mimosa.
   Desactivado hasta tener la fuente: se activa añadiendo la clase
   "fuente-mimosa" al <html>. */
.fuente-mimosa .nav a, .fuente-mimosa .header .btn, .fuente-mimosa .mobile-menu a.big {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: lowercase;
}
.fuente-mimosa .nav { gap: 26px; }
.fuente-mimosa .nav a { font-size: 24px; line-height: 1; padding: 4px 0 8px; }
.fuente-mimosa .header .btn { font-size: 21px; padding: 0 22px; }

/* Pie con logo */
.footer__logos { display: flex; align-items: flex-end; gap: 26px; color: var(--paper); }
.footer__logos .logo-word { width: clamp(130px, 14vw, 180px); color: var(--paper); }
.logo-icon--lg { width: clamp(70px, 7vw, 96px); color: #e9c97a; }

/* ---------- "Lo que sale del horno": cinta automática en bucle ---------- */
.section--intro { padding-bottom: clamp(30px, 4vw, 60px); }
.oven { padding-top: clamp(30px, 4vw, 60px); overflow: hidden; }
.loop { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.loop__track {
  display: flex; gap: clamp(14px, 2vw, 26px); width: max-content;
  padding: 0 clamp(14px, 2vw, 26px);
  animation: oven-loop var(--loop-dur, 60s) linear infinite;
}
.loop:hover .loop__track, .loop:focus-within .loop__track { animation-play-state: paused; }
.loop .product { width: clamp(230px, 22vw, 320px); flex: none; }
@keyframes oven-loop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .loop { overflow-x: auto; -webkit-mask: none; mask: none; }
  .loop__track { animation: none; }
}

/* Tiras de fotos de carta / eventos / encargos como cinta en bucle */
.strip.loop { display: block; overflow: hidden; padding: 0; margin-top: 28px; scroll-snap-type: none; }
.strip.loop .loop__track { padding: 0; gap: 12px; }
.strip.loop .loop__track > * { width: clamp(170px, 17vw, 240px); aspect-ratio: 4 / 5; flex: none; margin: 0; }
.strip.loop img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.order__img .strip.loop .loop__track > * { width: clamp(140px, 12vw, 180px); }
@media (prefers-reduced-motion: reduce) { .strip.loop { overflow-x: auto; } }
.loop__track { align-items: flex-start; }
.strip.loop .loop__track > * { height: auto; }

/* Menú con la letra de Mimosa: sin partir palabras y con algo más de cuerpo */
.fuente-mimosa .nav a, .fuente-mimosa .header .btn, .fuente-mimosa .mobile-menu a.big { white-space: nowrap; -webkit-text-stroke: .45px currentColor; }
.fuente-mimosa .nav { gap: 22px; }
.fuente-mimosa .nav a { font-size: 22px; }
.fuente-mimosa .header .btn { font-size: 20px; }
.fuente-mimosa .mobile-menu a.big { -webkit-text-stroke: 1px currentColor; }
/* La cinta no hereda la proporción de foto de las tiras antiguas */
.strip.loop > .loop__track { aspect-ratio: auto; height: auto; }

/* Menú: tamaño pequeño como el original, con la letra nueva y un toque de negrita */
.fuente-mimosa .nav { gap: 26px; }
.fuente-mimosa .nav a { font-size: 17px; line-height: 1; padding: 6px 0; -webkit-text-stroke: .55px currentColor; }
.fuente-mimosa .header .btn { font-size: 16px; height: 42px; padding: 0 20px; -webkit-text-stroke: .5px currentColor; }

/* ==========================================================
   Ajustes: títulos más contenidos, Nosotros, botones flotantes, pie
   ========================================================== */
/* Títulos más pequeños para que se siga bajando */
.display { font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: .98; }
.hero h1.display { font-size: clamp(2.8rem, 5.6vw, 5.4rem); }
.h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.02; }
.page-head { padding: 140px 0 46px; }
.statement p.big { font-size: clamp(1.4rem, 2.3vw, 2.1rem); }
.cta-final .display { margin: 16px 0 30px; }
.band { min-height: 72svh; }
.section { padding: clamp(64px, 9vw, 120px) 0; }

/* Nosotros: foto de Julia bajo el saludo y vídeo de la obra */
.julia .split { align-items: start; }
.julia__photo { margin-top: 30px; max-width: 420px; }
.obra { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.obra__video { margin: 0; position: sticky; top: 100px; }
.obra__video video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: var(--bg-2); display: block; }
.obra__video figcaption { padding-top: 12px; font-size: 13.5px; color: var(--muted); }
.obra__fotos { columns: 3 200px; }
@media (max-width: 860px) { .obra { grid-template-columns: 1fr; } .obra__video { position: static; max-width: 420px; } }

/* Botón de WhatsApp con la letra de Mimosa */
.fuente-mimosa .wa-float span { font-family: var(--script); font-size: 18px; -webkit-text-stroke: .5px currentColor; letter-spacing: 0; text-transform: lowercase; }

/* Botón volver al inicio */
.to-top {
  position: fixed; z-index: 50;
  right: clamp(14px, 2.5vw, 28px); bottom: calc(clamp(14px, 2.5vw, 28px) + 66px);
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(40, 25, 10, .45);
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .35s, background .25s;
}
.to-top.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.to-top:hover { background: #fff; }
.to-top svg { width: 18px; height: 18px; }
.to-top span { font-family: var(--script); font-size: 17px; -webkit-text-stroke: .45px currentColor; }
@media (max-width: 700px) { .to-top { padding: 0; width: 46px; justify-content: center; bottom: calc(14px + 66px); } .to-top span { display: none; } }

/* Pie: sin franja de mantel y cubriendo todo hasta abajo */
.gingham-strip { display: none; }
.footer { margin-top: 0; }

/* Cabecera menos cargada: botón de encargo más pequeño */
.fuente-mimosa .header .btn { font-size: 14px; height: 34px; padding: 0 14px; -webkit-text-stroke: .4px currentColor; }
.fuente-mimosa .nav { gap: 22px; }
.header__in { gap: 26px; }
.to-top { display: none !important; }

/* ==========================================================
   Ronda: espacio, botones con la letra de Mimosa, cabeceras,
   desplegable de categorías de la carta
   ========================================================== */
/* Menos aire entre "La casa de Mimosa" y "De la vitrina" */
.section.section--intro { padding-bottom: clamp(10px, 1.5vw, 20px); }
.section.oven { padding-top: clamp(10px, 1.5vw, 20px); }

/* Todos los botones: letra de Mimosa, pequeña y con aire alrededor */
.fuente-mimosa .btn, .fuente-mimosa .chip, .fuente-mimosa .rail-ctrl button {
  font-family: var(--script); font-weight: 400; letter-spacing: 0;
  text-transform: lowercase; -webkit-text-stroke: .4px currentColor;
}
.fuente-mimosa .btn { font-size: 15px; height: 40px; padding: 0 24px; gap: 10px; line-height: 1; }
.fuente-mimosa .btn .arr { font-family: var(--sans); -webkit-text-stroke: 0; font-size: 13px; }
.fuente-mimosa .btn svg { width: 15px; height: 15px; }
.fuente-mimosa .header .btn { font-size: 14px; height: 34px; padding: 0 18px; }
.fuente-mimosa .chip { font-size: 14px; padding: 7px 16px; }
.fuente-mimosa .wa-float { height: 46px; padding: 0 20px 0 14px; }
.fuente-mimosa .wa-float span { font-size: 15px; }

/* Títulos de cabecera de página: mismo tamaño que los de la historia */
.page-head .display { font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.02; }
.page-head { padding: 130px 0 40px; }
.page-head .lead { font-size: 1.05rem; }

/* Carta: barra de categorías con la letra de Mimosa, pequeña */
.menu-nav { position: static; }
.fuente-mimosa .menu-nav a { font-family: var(--script); font-size: 16px; -webkit-text-stroke: .4px currentColor; text-transform: lowercase; color: var(--ink-2); }
.menu-nav .wrap { height: 52px; gap: 30px; }

/* Desplegable vertical a la izquierda que acompaña el scroll */
.cat-dock {
  position: fixed; z-index: 40; left: clamp(10px, 1.6vw, 24px); top: 50%;
  transform: translate(-16px, -50%); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .35s;
  max-width: 200px;
}
.cat-dock.is-on { transform: translate(0, -50%); opacity: 1; pointer-events: auto; }
.cat-dock__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(251, 248, 243, .94); backdrop-filter: blur(8px);
  border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(40, 25, 10, .5);
  font-family: var(--script); font-size: 15px; -webkit-text-stroke: .4px currentColor; text-transform: lowercase; color: var(--ink);
  white-space: nowrap;
}
.cat-dock__btn i { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.cat-dock.is-open .cat-dock__btn i { transform: rotate(-135deg) translateY(-2px); }
.cat-dock__list {
  display: grid; gap: 2px; margin-top: 8px; padding: 8px;
  background: rgba(251, 248, 243, .96); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 30px -18px rgba(40, 25, 10, .55);
  clip-path: inset(0 0 100% 0 round 16px); opacity: 0;
  transition: clip-path .45s var(--ease), opacity .3s;
}
.cat-dock.is-open .cat-dock__list { clip-path: inset(0 0 0 0 round 16px); opacity: 1; }
.cat-dock__list a {
  padding: 7px 12px; border-radius: 10px; white-space: nowrap;
  font-family: var(--script); font-size: 15px; -webkit-text-stroke: .35px currentColor; text-transform: lowercase; color: var(--muted);
  transition: background .2s, color .2s;
}
.cat-dock__list a:hover, .cat-dock__list a.is-active { background: var(--bg-2); color: var(--ink); }
@media (hover: hover) { .cat-dock:hover .cat-dock__list { clip-path: inset(0 0 0 0 round 16px); opacity: 1; } }
@media (max-width: 700px) { .cat-dock { top: auto; bottom: 18px; transform: translate(-16px, 0); } .cat-dock.is-on { transform: none; } .cat-dock__list { position: absolute; bottom: calc(100% + 8px); margin: 0; } }
.cat-dock { max-width: none; }
.cat-dock__list { width: max-content; min-width: 100%; background: var(--paper); }

/* Las cintas no pueden ensanchar las columnas de la cuadrícula */
.order > *, .offer > *, .menu-cat > *, .split > *, .visit > *, .obra > * { min-width: 0; }
.strip.loop { max-width: 100%; min-width: 0; }
.cat-dock.is-on.is-away { opacity: 0; pointer-events: none; transform: translate(-16px, -50%); }

/* Nosotros: primero la historia, luego "una pastelería con alma de casa" */
.page-head.julia { padding-bottom: clamp(30px, 4vw, 50px); }
.page-head.julia .display { margin: 14px 0 0; }
.section.nosotros-intro { padding: clamp(30px, 4vw, 56px) 0 clamp(50px, 6vw, 80px); }
.nosotros-intro .page-head__grid { align-items: end; }
.nosotros-intro .lead { margin: 0; }

/* Botón flotante: mismo estilo que "encargar una tarta" de la cabecera, sin logo */
.wa-float, .fuente-mimosa .wa-float {
  height: 40px; width: auto; padding: 0 22px; gap: 0; justify-content: center;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  font-family: var(--script); font-size: 15px; font-weight: 400; letter-spacing: 0;
  text-transform: lowercase; -webkit-text-stroke: .4px currentColor; white-space: nowrap;
  box-shadow: 0 12px 26px -12px rgba(30, 20, 15, .55);
}
.wa-float:hover { background: var(--wine); border-color: var(--wine); }
@media (max-width: 700px) {
  .wa-float, .fuente-mimosa .wa-float { width: auto; padding: 0 18px; height: 38px; font-size: 14px; }
}

/* Móvil: encuadre del vídeo centrado en la taza con el logo */
@media (max-width: 700px) {
  .hero__media { object-position: 17% 50%; }
  .hero { background-position: 17% 50%; }
}
@media (max-width: 700px) {
  .cat-dock { top: 78px; bottom: auto; left: 12px; transform: translate(-16px, 0); }
  .cat-dock.is-on { transform: none; }
  .cat-dock.is-on.is-away { transform: translate(-16px, 0); }
  .cat-dock__list { position: static; margin-top: 8px; }
}
