/* =============================================================
   Cocoa & Vainilla — hoja de estilos
   Concepto: el sitio cambia de "vainilla" (claro) a "cocoa" (oscuro)
   según la sección que estés viendo.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --bg        { syntax: "<color>"; inherits: true; initial-value: #FBF6EE; }
@property --ink       { syntax: "<color>"; inherits: true; initial-value: #3A2620; }
@property --ink-2     { syntax: "<color>"; inherits: true; initial-value: #6B5046; }
@property --accent    { syntax: "<color>"; inherits: true; initial-value: #A64727; }
@property --on-accent { syntax: "<color>"; inherits: true; initial-value: #FFFFFF; }
@property --line      { syntax: "<color>"; inherits: true; initial-value: rgba(58, 38, 32, .14); }
@property --card      { syntax: "<color>"; inherits: true; initial-value: #FFFDF9; }
@property --soft      { syntax: "<color>"; inherits: true; initial-value: #F4EADB; }

:root {
  /* marca */
  --vainilla: #FBF6EE;
  --rosa: #F9DFEA;
  --marca: #DC8D92;        /* rosa del logotipo */
  --frambuesa: #A64727;    /* rosa profundo para texto y botones sobre claro */
  --cocoa: #2B1D18;
  --crema: #F6EBDD;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Belleza", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --script: "Euphoria Script", "Brush Script MT", cursive;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .46, .45, .94);

  --gutter: clamp(1.1rem, 4.5vw, 3rem);
  --maxw: 78rem;
  --nav-h: 4.25rem;
  --radius: 1.5rem;
  --section-y: clamp(4rem, 8vw, 7rem);
}

/* Temas. Con JS activo (html.morph) solo <html> define los colores y el
   cambio entre secciones se anima. Sin JS, cada sección pinta su propio fondo. */
html[data-tema="vainilla"],
html:not(.morph) [data-tema="vainilla"] {
  --bg: #FBF6EE; --ink: #3A2620; --ink-2: #6B5046; --accent: #A64727; --on-accent: #FFFFFF;
  --line: rgba(58, 38, 32, .14); --card: #FFFDF9; --soft: #F4EADB;
}
html[data-tema="rosa"],
html:not(.morph) [data-tema="rosa"] {
  --bg: #F9DFEA; --ink: #3A2620; --ink-2: #6B5046; --accent: #A64727; --on-accent: #FFFFFF;
  --line: rgba(58, 38, 32, .15); --card: #FFF7FA; --soft: #F4CADB;
}
html[data-tema="cocoa"],
html:not(.morph) [data-tema="cocoa"],
.footer {
  --bg: #2B1D18; --ink: #F6EBDD; --ink-2: #D9C7B6; --accent: #DC8D92; --on-accent: #2B1D18;
  --line: rgba(246, 235, 221, .16); --card: #3A2721; --soft: #3A2721;
}

html {
  background: var(--bg);
  color: var(--ink);
  transition: --bg .8s var(--ease-soft), --ink .8s var(--ease-soft), --ink-2 .8s var(--ease-soft),
              --accent .8s var(--ease-soft), --on-accent .8s var(--ease-soft), --line .8s var(--ease-soft),
              --card .8s var(--ease-soft), --soft .8s var(--ease-soft);
}
html:not(.morph) [data-tema] { background: var(--bg); color: var(--ink); }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
address { font-style: normal; }
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "SOFT" 100;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); font-weight: 350; }
h2 em, h1 em { font-style: italic; color: var(--accent); font-weight: 350; }
::selection { background: var(--marca); color: var(--cocoa); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; border-radius: 999px;
  background: var(--cocoa); color: var(--crema); font-size: .95rem;
}
.skip-link:focus { top: 1rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); }

/* =============================================================
   3. Tipografía de apoyo
   ============================================================= */
.kicker {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 1.1rem; }
.section-lede { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 38rem; }
.section-head--split { max-width: none; display: grid; gap: 1.5rem; align-items: end; }
.section-head--split h2 { margin-bottom: 0; }
.tag {
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .6rem;
}
.link {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--accent); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: .2rem;
}
.link .ico { transition: transform .4s var(--ease-out); }
.link:hover .ico { transform: translateX(4px); }

/* =============================================================
   4. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--sans); font-size: .84rem; letter-spacing: .16em; text-transform: uppercase;
  line-height: 1.1; white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s, color .3s;
}
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn .ico { transition: transform .4s var(--ease-out); }
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -14px color-mix(in srgb, var(--accent) 80%, transparent); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .btn-ghost:hover .ico { transform: translateX(4px); }
}
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

/* =============================================================
   5. Navegación
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav-inner {
  height: 100%; width: min(100% - 2 * var(--gutter), 90rem); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-logo {
  display: block; overflow: hidden; max-width: 22rem;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), max-width .55s var(--ease-out);
}
/* Mientras el logotipo grande se ve en el inicio, el de la barra se guarda y el menú
   se centra; al bajar, el logotipo entra y el menú se recorre a su lugar sin brincos. */
.js .nav:not(.show-logo) .nav-logo { opacity: 0; transform: translateY(-6px); pointer-events: none; max-width: 0; }
.nav-spacer { flex: 1 0 0; transition: flex-grow .55s var(--ease-out); }
.nav-spacer--fin { flex-grow: 0; }
.js .nav:not(.show-logo) .nav-spacer--fin { flex-grow: 1; }
.nav-logo img { height: 1.75rem; width: auto; }
.nav-links { display: none; gap: 1.9rem; }
.nav-link {
  position: relative; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; padding-block: .3rem;
  white-space: nowrap;
}
/* Laptops angostas: los enlaces se aprietan tantito para que nada se parta en dos renglones */
@media (min-width: 960px) and (max-width: 1160px) {
  .nav-links { gap: 1.15rem; }
  .nav-link { font-size: .74rem; letter-spacing: .15em; }
  .nav-cta { padding: .6rem 1rem; font-size: .72rem; }
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-soft);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; min-height: 2.7rem; padding: .65rem 1.2rem; font-size: .76rem; }

.nav-burger {
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  display: grid; place-content: center; gap: .38rem;
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-burger { transition: background-color .35s var(--ease-soft), box-shadow .35s var(--ease-soft); }
.burger-line {
  display: block; width: 1.2rem; height: 1.6px; border-radius: 2px; background: var(--ink);
  transition: transform .45s var(--ease-out), background-color .35s var(--ease-soft);
}
.nav-burger[aria-expanded="true"] { background: #A64727; box-shadow: none; }
.nav-burger[aria-expanded="true"] .burger-line { background: #FFFFFF; }
.nav-burger[aria-expanded="true"] .burger-line--a { transform: translateY(3.8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-line--b { transform: translateY(-3.8px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90; overflow: hidden auto; overscroll-behavior: contain;
  /* adentro siempre vainilla, aunque atrás esté una sección oscura */
  --bg: #FBF6EE; --ink: #3A2620; --ink-2: #6B5046; --accent: #A64727; --on-accent: #FFFFFF;
  --line: rgba(58, 38, 32, .14); --card: #FFFDF9; --soft: #F4EADB;
  background: radial-gradient(115% 55% at 105% 100%, #F9DFEA 0%, rgba(249, 223, 234, 0) 62%), #FBF6EE;
  color: var(--ink);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease-out), visibility 0s linear .6s;
}
.nav-mobile.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .6s var(--ease-out); }
.nav-mobile-inner {
  position: relative; min-height: 100%;
  display: flex; flex-direction: column; gap: 1rem;
  padding: calc(var(--nav-h) + 1rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
}
/* "&" de la marca, apenas insinuado */
.nav-mobile-inner::before {
  content: "&"; position: absolute; right: -1.5rem; bottom: -3.5rem; pointer-events: none;
  font-family: var(--script); font-size: 22rem; line-height: .7; color: rgba(240, 130, 180, .11);
}
.nav-mobile-logo { width: 10.5rem; height: auto; }
.nav-mobile .open-pill { align-self: flex-start; margin-top: 0; background: #FFFCF8; box-shadow: inset 0 0 0 1px rgba(58, 38, 32, .08); }
.nav-mobile-links { display: grid; margin-top: .2rem; }
.nav-mobile-links a {
  display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; column-gap: 1rem;
  padding: .9rem 0; border-top: 1px solid rgba(58, 38, 32, .1);
  transition: padding-left .35s var(--ease-out);
}
.nav-mobile-links a:last-child { border-bottom: 1px solid rgba(58, 38, 32, .1); }
.mm-foto { width: 3.5rem; height: 3.5rem; border-radius: 50%; overflow: hidden; background: var(--soft); }
.mm-foto img { width: 100%; height: 100%; object-fit: cover; }
.mm-texto b {
  display: block; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 400;
  font-size: 1.5rem; line-height: 1.1; letter-spacing: -.01em;
}
.mm-texto span { display: block; font-size: .84rem; line-height: 1.35; color: var(--ink-2); margin-top: .2rem; }
.nav-mobile-links .ico { width: 1.05rem; height: 1.05rem; color: var(--accent); transition: transform .35s var(--ease-out); }
.nav-mobile-links a:active { padding-left: .35rem; }
.nav-mobile-links a:active .ico { transform: translateX(3px); }
/* Atajos a las categorías del menú */
.mm-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 0 .95rem; }
.mm-chips a {
  padding: .32rem .75rem; border-radius: 999px; font-size: .8rem; color: var(--ink-2); white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, color .3s, box-shadow .3s;
}
.mm-chips a:active { background: var(--accent); color: var(--on-accent); box-shadow: none; }
/* Acceso al pedido cuando ya hay algo en el carrito */
.mm-pedido {
  display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; column-gap: 1rem; width: 100%;
  padding: .7rem .9rem .7rem .7rem; border-radius: 1.3rem; text-align: left;
  background: #FFFCF8; box-shadow: 0 14px 30px -22px rgba(58, 38, 32, .6), inset 0 0 0 1px rgba(169, 46, 100, .18);
}
.mm-foto--bolsa { display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.mm-foto--bolsa .ico { width: 1.4rem; height: 1.4rem; }
.mm-pedido .mm-texto b { font-size: 1.25rem; }
.mm-pedido > .ico { width: 1.05rem; height: 1.05rem; color: var(--accent); }
.nav-mobile-cta { width: 100%; margin-top: auto; }
.nav-mobile-foot {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .6rem 1rem;
  color: var(--ink-2); font-size: .95rem;
}
.nav-mobile-horario {
  grid-column: 1 / -1; display: flex; align-items: center; gap: .55rem; font-size: .88rem;
  padding-bottom: .6rem; border-bottom: 1px solid rgba(58, 38, 32, .1);
}
.nav-mobile-horario .ico { width: 1.05rem; height: 1.05rem; color: var(--accent); flex: none; }
.nav-mobile-tel { display: inline-flex; align-items: center; gap: .55rem; }
.nav-mobile-tel .ico { width: 1.05rem; height: 1.05rem; color: var(--accent); }
.nav-mobile-social { display: flex; gap: .5rem; }
.nav-mobile-social a {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  color: var(--accent); box-shadow: inset 0 0 0 1px var(--line);
}
/* Entrada escalonada al abrir */
.nav-mobile.is-open .nav-mobile-logo,
.nav-mobile.is-open .open-pill,
.nav-mobile.is-open .nav-mobile-links a,
.nav-mobile.is-open .nav-mobile-cta,
.nav-mobile.is-open .nav-mobile-foot { animation: menuEntra .55s var(--ease-out) both; }
.nav-mobile.is-open .nav-mobile-logo { animation-delay: .12s; }
.nav-mobile.is-open .open-pill { animation-delay: .18s; }
.nav-mobile.is-open .nav-mobile-links a:nth-child(1) { animation-delay: .24s; }
.nav-mobile.is-open .nav-mobile-links a:nth-child(2) { animation-delay: .3s; }
.nav-mobile.is-open .nav-mobile-links a:nth-child(3) { animation-delay: .36s; }
.nav-mobile.is-open .nav-mobile-links a:nth-child(4) { animation-delay: .42s; }
.nav-mobile.is-open .nav-mobile-links a:nth-child(5) { animation-delay: .48s; }
.nav-mobile.is-open .nav-mobile-cta { animation-delay: .54s; }
.nav-mobile.is-open .nav-mobile-foot { animation-delay: .6s; }
@keyframes menuEntra { from { opacity: 0; transform: translateY(14px); } }
.no-js .nav-mobile { display: none; }
/* Con el menú abierto, la barra se vuelve transparente: el panel ya trae su logotipo */
.menu-abierto .nav, .menu-abierto .nav.is-scrolled { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-abierto .nav-logo { opacity: 0; pointer-events: none; }
/* Pantallas bajas: todo un poco más junto para que el botón quede a la vista */
@media (max-height: 720px) {
  .nav-mobile-inner { gap: .7rem; padding-top: calc(var(--nav-h) + .5rem); }
  .nav-mobile-logo { width: 9rem; }
  .nav-mobile-links a { padding: .7rem 0; column-gap: .85rem; grid-template-columns: 3rem 1fr auto; }
  .mm-foto { width: 3rem; height: 3rem; }
  .mm-texto b { font-size: 1.3rem; }
  .mm-texto span { font-size: .8rem; }
  .mm-chips { padding: 0 0 .75rem; }
  .mm-chips a { padding: .32rem .7rem; font-size: .8rem; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(1.5rem, 5vh, 3.5rem)) var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: clamp(2rem, 5vh, 3.5rem);
  text-align: center;
  overflow: clip;
}
.hero-head { display: flex; flex-direction: column; align-items: center; max-width: 60rem; }
.hero-logo { width: min(88vw, 44rem); height: auto; margin-bottom: clamp(1.5rem, 3.5vh, 2.4rem); }
.hero-title {
  font-size: clamp(1.55rem, 3.1vw, 2.55rem);
  font-weight: 350; line-height: 1.15; letter-spacing: -.015em;
  max-width: 24ch; margin-bottom: 1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero-status {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.4rem;
  font-size: .92rem; color: var(--ink-2);
}
.hero-status .dot { width: .55rem; height: .55rem; border-radius: 50%; background: #4E9A6A; box-shadow: 0 0 0 4px rgba(78, 154, 106, .18); }
.hero-status.is-closed .dot { background: var(--ink-2); box-shadow: none; }

/* Arcos: tres ventanas de vitrina (pastelería, cafetería, panadería) */
.arches {
  width: min(100%, 68rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 2.2vw, 1.8rem);
  align-items: end;
}
.arch a { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.arch-frame {
  display: block; width: 100%; aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
  overflow: hidden; background: var(--soft);
  position: relative;
}
.arch--2 .arch-frame { aspect-ratio: 3 / 4.5; }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.arch--1 .arch-frame img { object-position: 50% 70%; }
.arch--2 .arch-frame img { object-position: 50% 45%; }
.arch--3 .arch-frame img { object-position: 45% 70%; }
.arch-label {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--serif); font-style: italic; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.02rem, 1.8vw, 1.45rem);
  order: -1;
}
.arch-label .ico { width: .9em; height: .9em; transition: transform .4s var(--ease-out); color: var(--accent); }
@media (hover: hover) {
  .arch a:hover .arch-frame img { transform: scale(1.06); }
  .arch a:hover .arch-label .ico { transform: translateX(4px); }
}

/* Entrada del hero: el logo "se escribe" y los arcos suben */
.js .hero-logo {
  -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
          mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: escribir 2.4s cubic-bezier(.45, .05, .25, 1) .2s both;
}
@keyframes escribir {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0 0;    mask-position: 0 0; }
}
.js .hero-title, .js .hero-actions, .js .hero-status { animation: aparecer 1s var(--ease-out) both; }
.js .hero-title { animation-delay: .9s; }
.js .hero-actions { animation-delay: 1.2s; }
.js .hero-status { animation-delay: 1.35s; }
.js .arch a { animation: subir 1.3s var(--ease-out) both; }
.js .arch--1 a { animation-delay: .7s; }
.js .arch--2 a { animation-delay: .85s; }
.js .arch--3 a { animation-delay: 1s; }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes subir { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }

/* =============================================================
   7. Marquesina
   ============================================================= */
.marquee {
  overflow: hidden; position: relative;
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
}
.marquee-track {
  display: flex; width: max-content; align-items: center; gap: 1.6rem;
  font-family: var(--serif); font-style: italic; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); white-space: nowrap; line-height: 1.2;
}
.marquee-track i { font-family: var(--script); font-style: normal; color: var(--marca); font-size: 1.25em; line-height: 1; }
.marquee-group { display: flex; flex: none; align-items: center; gap: 1.6rem; padding-right: 1.6rem; }
.marquee.is-running .marquee-track { gap: 0; animation: marquesina 55s linear infinite; }
@keyframes marquesina { to { transform: translateX(-50%); } }

/* =============================================================
   8. Favoritas
   ============================================================= */
.favs-grid { display: grid; gap: clamp(3.5rem, 8vw, 6rem); }
.fav { display: grid; gap: clamp(1.8rem, 4vw, 4.5rem); align-items: center; }
.fav-media { position: relative; }
.fav-img {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -35px rgba(58, 38, 32, .45);
}
.fav:first-child .fav-img { object-position: 56% 78%; }
.fav--pan .fav-img { object-position: 50% 40%; }
.fav-note {
  position: absolute; left: clamp(.8rem, 3vw, 1.6rem); bottom: clamp(-1.2rem, -2vw, -.8rem);
  padding: .35rem 1.2rem .55rem;
  background: var(--card); color: var(--accent);
  font-family: var(--script); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1;
  border-radius: 999px; transform: rotate(-5deg);
  box-shadow: 0 12px 30px -16px rgba(58, 38, 32, .5);
}
.fav-body h3 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 350; margin-bottom: 1rem; }
.fav-body > p:not(.tag) { color: var(--ink-2); max-width: 32rem; margin-bottom: 1.4rem; }
.sizes {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem;
}
.sizes li {
  display: flex; flex-direction: column; min-width: 6.4rem;
  padding: .75rem 1rem .8rem; border-radius: 1rem;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.sizes span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.sizes b { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; font-variant-numeric: lining-nums; }
.flavors { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.flavors li {
  font-size: .9rem; padding: .35rem .85rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
}

/* =============================================================
   9. Historia
   ============================================================= */
.story-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.story-media { position: relative; padding-bottom: 3rem; }
.story-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.story-inset {
  position: absolute; right: -4%; bottom: 0; width: 38%;
  border-radius: 1.1rem; overflow: hidden;
  box-shadow: 0 0 0 .45rem var(--bg), 0 30px 50px -20px rgba(0, 0, 0, .5);
}
.story-inset img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story-text h2 { margin-bottom: 1.6rem; }
.prose { display: grid; gap: 1rem; color: var(--ink-2); max-width: 36rem; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.stats dt {
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 350;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}
.stats dd { font-size: .9rem; color: var(--ink-2); margin-top: .4rem; line-height: 1.4; }

.story-quote { margin-top: clamp(4.5rem, 10vw, 8rem); text-align: center; }
.story-quote blockquote p {
  font-family: var(--serif); font-style: italic; font-variation-settings: "SOFT" 100; font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.25; letter-spacing: -.01em;
  max-width: 34ch; margin-inline: auto; text-wrap: balance;
}
.story-wide { margin-top: clamp(3rem, 7vw, 5.5rem); }
.story-wide-img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; object-position: 50% 16%; border-radius: var(--radius); }

/* =============================================================
   10. Masa madre
   ============================================================= */
.sourdough { padding-top: calc(var(--section-y) * .6); }
.bread-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 22rem); gap: 1.1rem;
  overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: none;
}
.bread-row::-webkit-scrollbar { display: none; }
.bread { scroll-snap-align: start; display: flex; flex-direction: column; gap: 1.1rem; }
.bread img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1.2rem; }
.bread-cap h3 { font-size: 1.7rem; font-weight: 400; margin-bottom: .4rem; }
.bread-cap p { color: var(--ink-2); margin-bottom: .6rem; }
.bread-cap b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }

/* =============================================================
   11. Menú
   ============================================================= */
.tabs {
  display: flex; gap: .5rem; flex-wrap: nowrap; overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1) clamp(1.8rem, 3vw, 2.6rem); padding: .3rem var(--gutter);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none; padding: .75rem 1.25rem; border-radius: 999px;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.tabs [role="tab"]:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }

.panel + .panel { margin-top: 3rem; }
.js-tabs .panel + .panel { margin-top: 0; }
.js-tabs .panel[hidden] { display: none; }
.js-tabs .panel:not([hidden]) { animation: aparecer .6s var(--ease-out) both; }
.panel-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.js-tabs .panel-title {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.panel-intro { color: var(--ink-2); margin-bottom: 1.2rem; max-width: 40rem; }

.items { display: grid; column-gap: 3.5rem; }
.item {
  display: grid; grid-template-columns: 4.75rem 1fr auto; gap: .2rem 1.1rem; align-items: start;
  padding-block: 1.3rem; border-top: 1px solid var(--line);
}
.item-thumb { width: 4.75rem; height: 4.75rem; border-radius: 50%; object-fit: cover; }
.item-thumb--empty {
  display: grid; place-items: center; background: var(--soft); color: var(--marca);
  font-family: var(--script); font-size: 2.3rem; line-height: 1; padding-top: .2rem;
}
.item h4 {
  font-size: 1.28rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; margin-bottom: .3rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem;
}
.item-body p { color: var(--ink-2); font-size: .98rem; line-height: 1.55; }
.price .pp { white-space: nowrap; }
.item .price {
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 500;
  color: var(--ink); font-size: 1.02rem; margin-top: .45rem; font-variant-numeric: lining-nums;
}
.badge {
  font-family: var(--sans); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
  padding: .25rem .6rem; border-radius: 999px; background: var(--accent); color: var(--on-accent);
}
.badge--mm { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.item-order {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .3s, color .3s, box-shadow .3s, transform .4s var(--ease-soft);
}
.item-order .ico { width: 1.2rem; height: 1.2rem; }
@media (hover: hover) {
  .item-order:hover { background: var(--accent); color: var(--on-accent); box-shadow: none; transform: translateY(-2px); }
}
.items--compact .item { grid-template-columns: 1fr auto auto; align-items: center; column-gap: 1.1rem; }
.items--compact .price { margin-top: 0; font-size: 1.15rem; }
.extras {
  margin-top: 1.4rem; padding: 1.2rem 1.4rem; border-radius: 1.1rem; background: var(--soft);
  display: grid; gap: .4rem; font-size: .98rem;
}
.extras b { font-weight: 400; color: var(--ink); }
.extras span { font-family: var(--serif); font-weight: 500; color: var(--ink); }
.menu-note { margin-top: 2.4rem; color: var(--ink-2); font-size: .95rem; text-align: center; }

/* =============================================================
   12. Encargos
   ============================================================= */
.order-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.order-media { position: relative; }
.order-img {
  width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover; object-position: 50% 62%;
  border-radius: 999px 999px var(--radius) var(--radius);
}
.order-note {
  position: absolute; right: 6%; top: 12%;
  font-family: var(--script); color: var(--accent); font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  background: var(--card); padding: .3rem 1.1rem .5rem; border-radius: 999px; transform: rotate(6deg);
  box-shadow: 0 12px 30px -16px rgba(58, 38, 32, .5);
}
.order-text h2 { margin-bottom: 1.2rem; }
.order-text .section-lede { margin-bottom: 2rem; }
.steps { counter-reset: paso; display: grid; gap: 1.1rem; margin-bottom: 2.2rem; }
.steps li {
  counter-increment: paso; display: grid; grid-template-columns: 2.8rem 1fr; column-gap: 1rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(paso); grid-row: span 2;
  width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.2rem; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}
.steps b { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.steps span { color: var(--ink-2); }

/* =============================================================
   13. Galería
   ============================================================= */
.social-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.social {
  display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  transition: box-shadow .3s, color .3s;
}
.social .ico { color: var(--accent); }
.social:hover { box-shadow: inset 0 0 0 1px var(--ink); }
/* Cuadrícula pareja: todas las fotos del mismo tamaño y filas completas (sin huecos) */
.masonry { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.6rem, 1.6vw, 1.2rem); }
.masonry figure { aspect-ratio: 4 / 5; border-radius: 1.1rem; overflow: hidden; background: var(--soft); }
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.masonry .foco-65 img { object-position: 50% 65%; }
.masonry .foco-70 img { object-position: 50% 70%; }
.masonry .foco-75 img { object-position: 50% 75%; }
.masonry figure:nth-child(n+9) { display: none; }   /* a 2 columnas: 8 fotos, 4 filas parejas */
@media (hover: hover) { .masonry figure:hover img { transform: scale(1.05); } }

/* =============================================================
   14. Visítanos
   ============================================================= */
.visit-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: stretch; }
.visit-info h2 { margin-bottom: 2rem; }
.visit-list { display: grid; gap: 1.2rem; margin-bottom: 2rem; }
.visit-row { display: grid; grid-template-columns: 1.5rem 1fr; gap: .9rem; align-items: start; font-size: 1.05rem; }
.visit-row .ico { color: var(--accent); margin-top: .2rem; }
.visit-row a { border-bottom: 1px solid var(--line); transition: border-color .3s; }
.visit-row a:hover { border-color: var(--ink); }
.hours { border-collapse: collapse; }
.hours th { font-weight: 400; text-align: left; padding: 0 1.4rem .15rem 0; }
.hours td { font-family: var(--serif); font-weight: 500; padding-bottom: .15rem; font-variant-numeric: lining-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent); }
.open-pill {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .7rem;
  font-size: .9rem; padding: .3rem .8rem; border-radius: 999px; background: var(--card);
}
.open-pill .dot { width: .5rem; height: .5rem; border-radius: 50%; background: #3F8A5B; }
.open-pill.is-closed .dot { background: var(--ink-2); }
.visit-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.visit-map {
  min-height: 22rem; border-radius: var(--radius); overflow: hidden; background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
.visit-map iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; }

/* Hojas (ventanitas de "Cómo llegar" y del carrito): tarjeta al centro en compu, hoja desde abajo en celular.
   Adentro siempre se usan los colores vainilla, sin importar la sección que esté detrás. */
.sheet {
  --bg: #FFFCF8; --ink: #3A2620; --ink-2: #6B5046; --accent: #A64727; --on-accent: #FFFFFF;
  --line: rgba(58, 38, 32, .14); --card: #FFFCF8; --soft: #F4EADB;
  width: min(100% - 2rem, 27rem); max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0; background: transparent; color: #3A2620; overflow: visible;
}
.sheet::backdrop { background: rgba(43, 29, 24, .45); }
.sheet-body {
  position: relative; overflow-y: auto; overscroll-behavior: contain;
  max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem);
  background: #FFFCF8; border-radius: 1.6rem; padding: 1.7rem 1.4rem 1.3rem;
  box-shadow: 0 40px 90px -30px rgba(43, 29, 24, .6);
}
.sheet-grab { display: none; width: 2.6rem; height: .28rem; border-radius: 999px; background: rgba(58, 38, 32, .16); margin: 0 auto 1.1rem; }
.sheet-close {
  position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; background: #F9DFEA; color: #A64727; transition: background-color .3s, color .3s;
}
.sheet-close .ico { width: 1.1rem; height: 1.1rem; }
@media (hover: hover) { .sheet-close:hover { background: #A64727; color: #FFFFFF; } }
.sheet-kicker { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: #A64727; margin-bottom: .55rem; }
.sheet-title { font-size: clamp(1.45rem, 4.6vw, 1.7rem); line-height: 1.12; margin: 0 3rem .5rem 0; color: #3A2620; }
.sheet-sub { color: #6B5046; font-size: .95rem; line-height: 1.45; margin-bottom: 1.2rem; }
.sheet-list { display: grid; gap: .55rem; }
.sheet-row {
  display: grid; grid-template-columns: 2.7rem 1fr auto; align-items: center; column-gap: .9rem;
  width: 100%; min-height: 4rem; padding: .6rem 1rem .6rem .6rem; border-radius: 1.2rem; text-align: left;
  background: #FBF6EE; color: #3A2620; box-shadow: inset 0 0 0 1px rgba(58, 38, 32, .07);
  transition: background-color .3s, box-shadow .3s, transform .35s var(--ease-out);
}
.sheet-row-ico {
  width: 2.7rem; height: 2.7rem; border-radius: 50%; display: grid; place-items: center;
  background: #F9DFEA; color: #A64727; transition: background-color .3s, color .3s;
}
.sheet-row-ico .ico { width: 1.25rem; height: 1.25rem; }
.sheet-row-name { display: block; font-size: 1.04rem; line-height: 1.25; }
.sheet-row-note { display: block; font-size: .82rem; line-height: 1.35; color: #6B5046; margin-top: .1rem; }
.sheet-row-go { width: 1.1rem; height: 1.1rem; color: #A64727; transition: transform .35s var(--ease-out); }
@media (hover: hover) {
  .sheet-row:hover { background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(169, 46, 100, .35); }
  .sheet-row:hover .sheet-row-ico { background: #A64727; color: #FFFFFF; }
  .sheet-row:hover .sheet-row-go { transform: translateX(3px); }
}
.sheet-row:active { transform: scale(.985); }
.sheet-row:focus-visible { border-radius: 1.2rem; }
.sheet-row.is-copied .sheet-row-ico { background: #3F8A5B; color: #FFFFFF; }
.sheet-note { margin-top: 1rem; text-align: center; font-size: .8rem; color: #6B5046; }
.sheet[open] .sheet-body { animation: hojaEntra .45s var(--ease-out); }
.sheet[open]::backdrop { animation: veloEntra .35s var(--ease-soft); }
.sheet.is-closing .sheet-body { animation: hojaSale .22s var(--ease-soft) forwards; }
.sheet.is-closing::backdrop { animation: veloSale .22s var(--ease-soft) forwards; }
@keyframes hojaEntra { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes hojaSale { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes hojaSubeMovil { from { transform: translateY(100%); } }
@keyframes hojaBajaMovil { to { transform: translateY(100%); } }
@keyframes veloEntra { from { opacity: 0; } }
@keyframes veloSale { to { opacity: 0; } }
@media (max-width: 539px) {
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; }
  .sheet-body {
    border-radius: 1.6rem 1.6rem 0 0; padding: .8rem 1.15rem 1.3rem;
    max-height: calc(100vh - 3rem); max-height: calc(100dvh - 3rem);
  }
  .sheet-grab { display: block; }
  .sheet-close { top: 1.5rem; }
  .sheet[open] .sheet-body { animation-name: hojaSubeMovil; }
  .sheet.is-closing .sheet-body { animation-name: hojaBajaMovil; }
}

/* =============================================================
   15. Pie de página
   ============================================================= */
.footer { background: var(--bg); color: var(--ink); padding-block: clamp(4rem, 8vw, 6rem) 2.2rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.8rem; }
.footer-logo { width: min(80vw, 26rem); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.footer-nav a { color: var(--ink-2); transition: color .3s; }
.footer-nav a:hover { color: var(--ink); }
.footer-social { display: flex; gap: .7rem; }
.footer-social a {
  width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--accent); transition: background-color .3s, color .3s;
}
.footer-social a:hover { background: var(--accent); color: var(--on-accent); }
.footer-meta { color: var(--ink-2); font-size: .95rem; }
.footer-legal { color: var(--ink-2); font-size: .82rem; opacity: .8; padding-top: 1.6rem; border-top: 1px solid var(--line); width: 100%; }

/* =============================================================
   16. Botón flotante de WhatsApp
   ============================================================= */
.wa-float {
  position: fixed; right: clamp(.9rem, 2.5vw, 1.6rem); bottom: clamp(.9rem, 2.5vw, 1.6rem); z-index: 80;
  display: flex; align-items: center; gap: .6rem;
  height: 3.6rem; min-width: 3.6rem; padding: 0 1.05rem;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  box-shadow: 0 16px 36px -14px rgba(43, 29, 24, .55);
  transition: transform .5s var(--ease-out), opacity .4s, box-shadow .4s;
}
.wa-float .ico { width: 1.55rem; height: 1.55rem; }
.wa-float-label { display: none; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.js .wa-float { opacity: 0; transform: translateY(1.5rem) scale(.9); pointer-events: none; }
.js .wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* =============================================================
   16b. Carrito para cotizar por WhatsApp
   ============================================================= */
/* Aviso en el menú (aparece con JS, que es cuando el carrito funciona) */
.menu-hint {
  display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; max-width: 40rem;
  padding: .7rem 1.1rem .7rem .7rem; border-radius: 1.2rem; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: .95rem; line-height: 1.45;
}
.menu-hint-ico {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
}
.menu-hint-ico .ico { width: 1.2rem; height: 1.2rem; }

/* Botón de cada producto: con el carrito activo agrega en lugar de abrir WhatsApp */
.item-order.is-added, .btn.is-added { background: var(--accent); color: var(--on-accent); box-shadow: none; }

/* Botón flotante "Tu pedido": toma el lugar del de WhatsApp cuando ya hay productos */
.cart-float {
  position: fixed; right: clamp(.9rem, 2.5vw, 1.6rem); bottom: clamp(.9rem, 2.5vw, 1.6rem); z-index: 80;
  display: flex; align-items: center; gap: .65rem; height: 3.6rem; padding: 0 .55rem 0 1.15rem;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 16px 36px -14px rgba(43, 29, 24, .55);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-soft);
  animation: pedidoEntra .5s var(--ease-out);
}
.cart-float .ico { width: 1.45rem; height: 1.45rem; }
.cart-float-count {
  min-width: 2.5rem; height: 2.5rem; padding: 0 .55rem; border-radius: 999px; display: grid; place-items: center;
  background: #FFFCF8; color: #A64727; font-family: var(--serif); font-weight: 500; font-size: 1.05rem;
  letter-spacing: 0; font-variant-numeric: lining-nums;
}
.cart-float.is-bump .cart-float-count { animation: pedidoBrinca .5s var(--ease-out); }
@media (hover: hover) { .cart-float:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(43, 29, 24, .6); } }
.tiene-pedido .wa-float { display: none; }
@keyframes pedidoEntra { from { opacity: 0; transform: translateY(1.2rem) scale(.9); } }
@keyframes pedidoBrinca { 40% { transform: scale(1.28); } }

/* Aviso "se agregó" */
.toast {
  position: fixed; z-index: 85; left: 0; right: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 2rem);
  bottom: calc(clamp(.9rem, 2.5vw, 1.6rem) + 4.3rem);
  display: flex; align-items: center; gap: .75rem; padding: .45rem .5rem .45rem .45rem; border-radius: 999px;
  background: #2B1D18; color: #F6EBDD; font-size: .92rem; line-height: 1.3;
  box-shadow: 0 18px 40px -16px rgba(43, 29, 24, .7);
  animation: avisoEntra .45s var(--ease-out);
}
.toast-img {
  flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: #3A2721; color: #DC8D92; font-family: var(--script); font-size: 1.3rem;
}
.toast-img img { width: 100%; height: 100%; object-fit: cover; }
.toast-text { min-width: 0; }
.toast-btn {
  flex: none; padding: .6rem .95rem; border-radius: 999px; background: #DC8D92; color: #2B1D18;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
}
@keyframes avisoEntra { from { opacity: 0; transform: translateY(.8rem); } }

/* Hoja para elegir tamaño */
.sheet-head { display: flex; align-items: center; gap: .9rem; margin: 0 3rem .6rem 0; }
.sheet-head .sheet-title { margin: 0; }
.sheet-head-img {
  flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: #F4EADB; color: #DC8D92; font-family: var(--script); font-size: 1.8rem;
}
.sheet-head-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet-row-price { font-family: var(--serif); font-weight: 500; font-size: 1.08rem; font-variant-numeric: lining-nums; color: #3A2620; }

/* Hoja "Tu pedido" */
.sheet--pedido { width: min(100% - 2rem, 31rem); }
.sheet--pedido [data-pedido-vacio] .btn { width: 100%; }
.cart-list { display: grid; margin: .2rem 0 .4rem; }
.cart-line {
  display: grid; grid-template-columns: 3.1rem 1fr auto; grid-template-areas: "img name total" "img unit qty";
  column-gap: .85rem; row-gap: .35rem; align-items: center; padding: .85rem 0;
}
.cart-line + .cart-line { border-top: 1px solid rgba(58, 38, 32, .08); }
.cart-line-img {
  grid-area: img; width: 3.1rem; height: 3.1rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: #F4EADB; color: #DC8D92; font-family: var(--script); font-size: 1.6rem;
}
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-name { grid-area: name; font-size: 1rem; line-height: 1.25; }
.cart-line-name small { display: block; font-size: .82rem; color: #6B5046; margin-top: .1rem; }
.cart-line-unit { grid-area: unit; font-size: .82rem; color: #6B5046; }
.cart-line-total { grid-area: total; text-align: right; font-family: var(--serif); font-weight: 500; font-variant-numeric: lining-nums; }
.cart-line-total.is-cotizar { font-family: var(--sans); font-weight: 400; font-size: .82rem; color: #6B5046; }
.cart-qty {
  grid-area: qty; justify-self: end; display: inline-flex; align-items: center; gap: .15rem; padding: .2rem;
  border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(58, 38, 32, .12);
}
.cart-qty button {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  background: #FBF6EE; color: #A64727; transition: background-color .25s;
}
.cart-qty button .ico { width: 1rem; height: 1rem; }
@media (hover: hover) { .cart-qty button:hover { background: #F9DFEA; } }
.cart-qty span { min-width: 1.7rem; text-align: center; font-family: var(--serif); font-weight: 500; font-variant-numeric: lining-nums; }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-top: 1rem; border-top: 1px solid rgba(58, 38, 32, .14); color: #6B5046;
}
.cart-total b { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; font-variant-numeric: lining-nums; color: #3A2620; }
.cart-total-note { font-size: .82rem; color: #6B5046; margin-top: .25rem; }
.cart-extra { margin: 1.1rem 0 1.2rem; border-radius: 1.1rem; box-shadow: inset 0 0 0 1px rgba(58, 38, 32, .12); }
.cart-extra summary {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; cursor: pointer;
  padding: .9rem 1rem; font-size: .95rem; color: #6B5046; list-style: none;
}
.cart-extra summary::-webkit-details-marker { display: none; }
.cart-extra summary .ico { width: 1.1rem; height: 1.1rem; color: #A64727; transition: transform .35s var(--ease-out); }
.cart-extra[open] summary { color: #3A2620; }
.cart-extra[open] summary .ico { transform: rotate(45deg); }
.cart-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: 0 1rem 1rem; }
.field { display: grid; gap: .3rem; align-content: start; font-size: .8rem; color: #6B5046; }
.field--wide { grid-column: 1 / -1; }
.field i { font-style: normal; opacity: .75; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: #3A2620; background: #FBF6EE;
  padding: .72rem .85rem; border: 0; border-radius: .9rem;
  box-shadow: inset 0 0 0 1px rgba(58, 38, 32, .12); transition: box-shadow .25s;
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px #A64727; }
.field textarea { resize: vertical; min-height: 4.4rem; line-height: 1.45; }
.cart-send { width: 100%; }
.cart-clear {
  display: block; margin: .8rem auto 0; padding-bottom: .1rem; border-bottom: 1px solid currentColor;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #6B5046;
}
.cart-clear.is-confirm { color: #A64727; }
.cart-done { text-align: center; padding-top: .4rem; }
.cart-done-ico {
  width: 3.4rem; height: 3.4rem; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
  background: #3F8A5B; color: #FFFFFF;
}
.cart-done-ico .ico { width: 1.6rem; height: 1.6rem; }
.cart-done-title { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.35rem; line-height: 1.2; color: #3A2620; margin-bottom: .5rem; }
.cart-done .sheet-sub a { color: #A64727; border-bottom: 1px solid currentColor; }
.cart-done-actions { display: grid; gap: .6rem; margin-top: 1.3rem; }
.cart-done-actions .btn { width: 100%; }
@media (min-width: 540px) {
  .toast { left: auto; right: clamp(.9rem, 2.5vw, 1.6rem); margin: 0; }
}
@media (max-width: 400px) {
  .cart-fields { grid-template-columns: 1fr; }
  .cart-float-label { display: none; }
  .cart-float { padding-left: .95rem; }
}

/* =============================================================
   17. Revelado al hacer scroll
   ============================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-out); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   18. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .masonry { grid-template-columns: repeat(3, 1fr); }
  .masonry figure:nth-child(n+9) { display: block; }   /* a 3 columnas: las 9, 3 filas parejas */
}
@media (min-width: 720px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .fav { grid-template-columns: 1fr 1fr; }
  .fav--pan .fav-media { order: 2; }
  .bread-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .stats dd { font-size: .95rem; }
}
@media (min-width: 960px) {
  :root { --nav-h: 4.9rem; }
  .nav-logo img { height: 2.05rem; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .items { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: .9fr 1fr; }
  .order-grid { grid-template-columns: .85fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1.1fr; }
  .visit-map, .visit-map iframe { min-height: 100%; }
  .wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { display: inline; }
}
@media (min-width: 1280px) {
  .hero-logo { width: min(46vw, 48rem); }
}
@media (max-width: 539px) {
  .hero-actions .btn { width: 100%; }
  .hero-actions { width: 100%; max-width: 22rem; }
  .arch-label { font-size: .98rem; }
  .arch-label .ico { display: none; }
  .item { grid-template-columns: 3.9rem 1fr auto; column-gap: .9rem; }
  .item-thumb { width: 3.9rem; height: 3.9rem; }
  .item-thumb--empty { font-size: 1.9rem; }
  .stats { gap: .6rem; }
  .sizes li { min-width: calc(50% - .3rem); }
}
/* Pantallas bajas: que los arcos no empujen el contenido */
@media (min-width: 960px) and (max-height: 820px) {
  .arches { width: min(100%, 56rem); }
  .hero-logo { width: min(40vw, 38rem); }
}

/* Sin JS: barra de navegación sólida y enlaces visibles en móvil */
.no-js .nav { background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: 0 1px 0 var(--line); }
.no-js .nav-burger { display: none; }
@media (max-width: 959px) {
  .no-js .nav-links { display: flex; gap: 1.1rem; overflow-x: auto; }
}

/* =============================================================
   19. Movimiento reducido: solo se apaga lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-logo { animation-duration: 1.2s; }
  .marquee.is-running .marquee-track { animation-duration: 110s; }
}
