/* =============================================================
   PASTELERÍA RUBY · Morelia
   Crema cálida con la lavanda de su propio logo y un durazno
   sacado de las fotos. Serif Prata para los títulos, Karla para
   leer. Claro, apetecible y con los precios siempre a la vista.
   ============================================================= */

/* ── 1. Tokens ─────────────────────────────────────────────── */
:root {
  --crema:      #FBF8F6;
  --crema-2:    #F4EEF3;
  --papel:      #FFFFFF;
  --tinta:      #2E2A3D;
  --tinta-suave:#5B5470;
  --tinta-tenue:#8C86A0;

  --lavanda:    #8582B4;   /* del logo */
  --lavanda-h:  #605C93;   /* versión legible sobre crema */
  --cielo:      #76AADB;   /* del logo */
  --durazno:    #D98B45;   /* de las fotos, para los precios */

  --linea:      rgba(46,42,61,.12);
  --linea-2:    rgba(46,42,61,.07);

  --serif: "Prata", Georgia, "Times New Roman", serif;
  --sans:  "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --borde: clamp(1.1rem, 4vw, 3rem);
  --hueco: clamp(3.4rem, 8vw, 6rem);
  --max:   1180px;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --sombra: 0 18px 40px -26px rgba(46,42,61,.5);
}

/* ── 2. Reset y base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: clamp(1rem, .97rem + .16vw, 1.06rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
p { text-wrap: pretty; }

::selection { background: var(--lavanda); color: #fff; }
:focus-visible { outline: 2px solid var(--lavanda-h); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.salto {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--lavanda); color: #fff;
  border-radius: var(--r-s); font-weight: 600;
}
.salto:focus { top: 1rem; }

.cont { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--borde); }

/* ── 3. Tipografía ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 1.7rem + 2.8vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem); }
h3 { font-size: 1.2rem; }
em { font-style: italic; color: var(--lavanda-h); }

.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cielo);
  margin-bottom: .8rem;
}
.lead { margin-top: 1rem; color: var(--tinta-suave); max-width: 56ch; }
.lead strong { color: var(--tinta); font-weight: 700; }
.nota { margin-top: 1rem; font-size: .9rem; color: var(--tinta-tenue); max-width: 54ch; }

.sec-cab { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }

/* ── 4. Botones ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 100px;
  font-weight: 700; font-size: .95rem;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-grande { padding: .95rem 1.8rem; }
.btn-lavanda { background: var(--lavanda); color: #fff; box-shadow: 0 12px 26px -16px rgba(133,130,180,.95); }
.btn-lavanda:hover { background: var(--lavanda-h); }
.btn-linea { border: 2px solid var(--linea); color: var(--tinta); }
.btn-linea:hover { border-color: var(--lavanda); color: var(--lavanda-h); }

/* ── 5. Tira y nav ─────────────────────────────────────────── */
.tira { background: var(--lavanda); color: #fff; }
.tira-in {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .7rem;
  max-width: var(--max); margin-inline: auto;
  padding: .45rem var(--borde);
  font-size: .82rem; text-align: center;
}
.tira-in a { text-decoration: underline; text-underline-offset: 3px; }
.tira-sep { opacity: .5; }

.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251,248,246,.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-pegado { border-color: var(--linea-2); box-shadow: 0 6px 20px -18px rgba(46,42,61,.7); }

.nav-in {
  display: flex; align-items: center; gap: 1rem;
  max-width: var(--max); margin-inline: auto;
  padding: .65rem var(--borde);
}
.marca { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.marca-iso { width: 44px; height: 44px; flex: none; }
.marca-txt { font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--lavanda-h); }
.marca-txt small { display: block; margin-bottom: .22rem; font-family: var(--sans); font-size: .6rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--tinta-tenue); }

.nav-links { display: none; margin-left: auto; gap: 1.7rem; }
.nav-links a { font-size: .93rem; font-weight: 600; color: var(--tinta-suave); transition: color .2s; }
.nav-links a:hover, .nav-links a.is-activo { color: var(--lavanda-h); }

.nav-cta { display: none; padding: .55rem 1.2rem; font-size: .88rem; }

.menu-btn {
  margin-left: auto; display: grid; gap: 5px; place-content: center;
  width: 42px; height: 42px; border-radius: var(--r-s); border: 1px solid var(--linea);
}
.menu-barra { display: block; width: 20px; height: 2px; background: var(--tinta); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-barra:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-barra:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu-movil { display: grid; border-top: 1px solid var(--linea); padding: .4rem var(--borde) 1rem; }
.menu-movil a { padding: .8rem 0; border-bottom: 1px solid var(--linea-2); font-weight: 600; }
.menu-movil a:last-child { border-bottom: 0; color: var(--lavanda-h); }

/* ── 6. Portada ────────────────────────────────────────────── */
.hero { padding: clamp(2.4rem, 6vw, 4.4rem) 0 clamp(2.6rem, 6vw, 4.4rem); }
.hero-in { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: center; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-foto {
  margin: 0; border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--sombra);
}
.hero-foto { position: relative; }
.hero-foto img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; pointer-events: none;
  background: var(--crema-2);
}

/* ── 7. Bloques ────────────────────────────────────────────── */
.bloque { padding-block: var(--hueco); }
.bloque-suave { background: var(--crema-2); }

/* ── 8. Tablas de precio ───────────────────────────────────── */
.precios { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); align-items: start; }

.tabla {
  display: grid; gap: 1px;
  background: var(--linea-2);
  border: 1px solid var(--linea-2);
  border-radius: var(--r-m); overflow: hidden;
}
.tabla li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.3rem; background: var(--papel);
}
.t-txt { display: grid; gap: .15rem; min-width: 0; }
.t-nom { font-weight: 700; }
.t-desc { font-size: .87rem; color: var(--tinta-tenue); }
.t-precio {
  font-family: var(--serif); font-size: 1.45rem;
  color: var(--durazno); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rellenos h3 { margin-bottom: .9rem; }
.fichas { display: flex; flex-wrap: wrap; gap: .5rem; }
.fichas li {
  padding: .45rem 1rem; border-radius: 100px;
  background: var(--papel); border: 1px solid var(--linea);
  font-size: .9rem;
}

/* ── 9. Sabores especiales ─────────────────────────────────── */
/* una foto que sí corresponde a lo que dice: un sabor de chocolate */
.sabores-foto {
  margin: 0 0 1.6rem; max-width: 320px;
  border-radius: var(--r-l); overflow: hidden;
  background: var(--papel); border: 1px solid var(--linea-2);
  box-shadow: var(--sombra);
}
.sabores-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sabores-foto figcaption { padding: .7rem 1rem; font-size: .85rem; color: var(--tinta-tenue); }

.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.filtro {
  padding: .5rem 1.15rem; border-radius: 100px;
  border: 1px solid var(--linea); background: var(--papel);
  font-size: .9rem; font-weight: 600; color: var(--tinta-suave);
  transition: background .2s, color .2s, border-color .2s;
}
.filtro:hover { border-color: var(--lavanda); color: var(--lavanda-h); }
.filtro.is-on { background: var(--lavanda); border-color: var(--lavanda); color: #fff; }

.sabores-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; }
.sabor-grupo h3 { margin-bottom: .9rem; }
.sabor-grupo h3.sep { margin-top: 1.8rem; }
.sabor-grupo ul { display: grid; gap: 1px; background: var(--linea-2); border: 1px solid var(--linea-2); border-radius: var(--r-m); overflow: hidden; }
.sabor {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .75rem 1.1rem; background: var(--papel);
  font-size: .97rem;
}
.desde { font-style: italic; font-size: .8rem; color: var(--tinta-tenue); margin-left: .35rem; }
.base {
  flex: 0 0 auto;
  padding: .12rem .6rem; border-radius: 100px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.base-c { background: rgba(217,139,69,.14); color: #9A5A1E; }
.base-v { background: rgba(118,170,219,.16); color: #2F6C9E; }
.sabores-vacio { margin-top: 1.2rem; color: var(--tinta-tenue); }

/* ── 10. Postres ───────────────────────────────────────────── */
.postres { display: grid; gap: 1.2rem; max-width: 760px; }
.postre {
  background: var(--papel); border: 1px solid var(--linea-2);
  border-radius: var(--r-l); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.postre:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.postre figure { margin: 0; overflow: hidden; }
.postre img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.postre:hover img { transform: scale(1.05); }
.postre h3 { padding: 1.1rem 1.3rem .2rem; }
.tallas { padding: .4rem 1.3rem 1.3rem; display: grid; gap: .3rem; margin-top: auto; }
.tallas li { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; }
.tallas li span:last-child { font-weight: 700; color: var(--durazno); font-variant-numeric: tabular-nums; }

.sueltas { margin-top: clamp(1.6rem, 4vw, 2.4rem); }

/* banderita de temporada junto al logo: cuelga del borde de arriba del menú */
.nav-flag { align-self: flex-start; margin-top: -.65rem; margin-left: .5rem; line-height: 0; }
.nav-flag .pp-card { position: static; filter: drop-shadow(0 3px 5px rgba(0,0,0,.18)); }
.nav-flag:hover .pp-card { animation-play-state: paused; }

/* ── Temporada de Día de Muertos (papel picado + precio tachado) ── */
.muertos { margin-top: clamp(2.8rem, 6vw, 4.2rem); }
.papel-picado {
  position: relative; display: flex; justify-content: space-between; align-items: flex-start;
  padding-top: 3px; margin-bottom: 1.6rem; overflow: hidden;
}
.papel-picado::before {                      /* el hilo */
  content: ""; position: absolute; left: 0; right: 0; top: 2px;
  height: 2px; background: var(--tinta-tenue); opacity: .45;
}
.pp { display: block; flex: none; transform-origin: 50% 0; animation: ppMece 3.6s ease-in-out infinite; }
.pp-calado { fill: var(--crema); }
.papel-picado .pp:nth-child(2n)  { animation-delay: -1.2s; }
.papel-picado .pp:nth-child(3n)  { animation-delay: -2.1s; }
.pp-grande { animation-duration: 4.4s; }
@keyframes ppMece { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.muertos-cab { text-align: center; max-width: 720px; margin: 0 auto 1.8rem; }
.muertos-cab h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin: .3rem 0 .4rem; }
.muertos-cab h3 em { color: var(--durazno); }
.muertos-cab p:last-child { color: var(--tinta-suave); }
.postres-muertos { margin-inline: auto; }
/* tarjeta de temporada: banderita colgando y precio anterior tachado */
.postre-muertos { position: relative; overflow: visible; }
.postre-muertos figure { border-radius: var(--r-l) var(--r-l) 0 0; }
.pp-card { position: absolute; top: -4px; left: 18px; z-index: 2; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.postre-desc { padding: 0 1.3rem; margin: 0; font-size: .9rem; color: var(--tinta-suave); }
.tallas li .antes { font-weight: 400; color: var(--tinta-tenue); text-decoration-thickness: 1.5px; margin-right: .1rem; }
.tallas li .ahora { color: var(--durazno); }
@media (max-width: 559px) {
  .papel-picado .pp:not(.pp-grande):nth-child(n+8), .papel-picado .pp:nth-child(-n+3) { display: none; }
}
@media (min-width: 960px) {
  .postres:has(> :nth-child(3)) { grid-template-columns: repeat(3, 1fr); max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .pp { animation: none; } }

/* ── 11. Fiestas (bloque con foto) ─────────────────────────── */
.bloque-foto { position: relative; isolation: isolate; padding-block: var(--hueco); overflow: hidden; }
.foto-fondo { position: absolute; inset: 0; z-index: -2; }
.foto-fondo img { width: 100%; height: 100%; object-fit: cover; }
.bloque-foto::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* foto visible: 10 % junto al texto, 20 % al centro y 100 % a la derecha (antes .97 / .93 / .62) */
  background: linear-gradient(100deg, rgba(251,248,246,.9) 0%, rgba(251,248,246,.8) 48%, rgba(251,248,246,0) 100%);
}
@media (max-width: 760px) {
  /* en celular el texto ocupa todo el ancho: capa pareja para que se lea */
  .bloque-foto::after { background: linear-gradient(180deg, rgba(251,248,246,.86) 0%, rgba(251,248,246,.74) 100%); }
}
.fiestas-txt { max-width: 34rem; }
.lista { display: grid; gap: .6rem; margin-top: 1.4rem; }
.lista li { position: relative; padding-left: 1.5rem; }
.lista li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--lavanda);
}
.fiestas-txt .btn { margin-top: 1.6rem; }
/* la foto ya se ve fuerte: un halo claro detrás de las letras las mantiene legibles sobre el pastel oscuro */
.fiestas-txt p, .fiestas-txt li { text-shadow: 0 0 2px rgba(251,248,246,.95), 0 0 10px rgba(251,248,246,.95), 0 0 22px rgba(251,248,246,.8); }
.fiestas-txt .nota { color: var(--tinta-suave); }

/* ── 12. Sucursales ────────────────────────────────────────── */
.sucursales { display: grid; gap: 1.1rem; }
.sucursal {
  background: var(--papel); border: 1px solid var(--linea-2);
  border-radius: var(--r-l); padding: 1.5rem 1.4rem;
  display: grid; gap: .55rem; align-content: start;
}
.sucursal h3 { color: var(--lavanda-h); }
.suc-dir { color: var(--tinta-suave); font-size: .95rem; }
.suc-horario { display: grid; gap: .1rem; font-size: .88rem; color: var(--tinta-tenue); }
.suc-acciones { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.suc-acciones .btn { padding: .55rem 1.1rem; font-size: .87rem; }

/* ── 13. Pie ───────────────────────────────────────────────── */
.pie { background: var(--tinta); color: rgba(255,255,255,.72); padding-top: clamp(2.6rem, 6vw, 3.8rem); }
.pie-in { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.marca-pie { margin-bottom: .9rem; }
.marca-pie .marca-iso { width: 54px; height: 54px; }
.marca-pie .marca-txt { font-size: 2.1rem; color: #FFFFFF; }
.marca-pie .marca-txt small { color: rgba(255,255,255,.6); }
.pie-marca p { font-size: .92rem; max-width: 30ch; }
.pie-nav { display: grid; gap: .6rem; align-content: start; }
.pie-nav a, .pie-contacto a { font-size: .93rem; transition: color .2s; }
.pie-nav a:hover, .pie-contacto a:hover { color: #fff; }
.pie-contacto { display: grid; gap: .6rem; align-content: start; }
.pie-redes { display: flex; gap: 1rem; margin-top: .2rem; }
.pie-legal {
  max-width: var(--max); margin-inline: auto;
  padding: 1.2rem var(--borde) calc(1.4rem + 76px);
  padding-right: calc(var(--borde) + 72px);
  font-size: .8rem; line-height: 1.6; color: rgba(255,255,255,.45);
}

/* ── 14. Botón flotante ────────────────────────────────────── */
.tel-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--lavanda); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -12px rgba(46,42,61,.75);
  transition: transform .25s var(--ease), background .25s;
}
.tel-float:hover { transform: translateY(-3px) scale(1.05); background: var(--lavanda-h); }

/* ── 15. Reveals ───────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
html:not(.is-ready) [data-reveal] { opacity: 1; transform: none; }


/* ── 18. Pedido: botones +, carrito, hoja y barra ──────────── */
.mas-inline {
  display: inline-grid; place-items: center;
  width: 1.3em; height: 1.3em; border-radius: 50%;
  background: var(--lavanda); color: #fff;
  font-weight: 700; font-size: .82em; line-height: 1;
  vertical-align: -.2em;
}

/* el + de cada renglon de la carta */
.add {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--lavanda); color: #fff;
  transition: transform .2s var(--ease), background .2s;
}
.add:hover { transform: scale(1.12); background: var(--lavanda-h); }
.add:active { transform: scale(.94); }
.add.is-puesto { background: var(--durazno); }
.add-mas { font-size: 1.25rem; font-weight: 700; line-height: 1; margin-top: -2px; }

.t-fin { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
.talla-fin { display: inline-flex; align-items: center; gap: .6rem; }
.talla-fin .add { width: 26px; height: 26px; }
.talla-fin .add-mas { font-size: 1.05rem; }
.sabor .add { width: 26px; height: 26px; margin-left: .2rem; }
.sabor .add-mas { font-size: 1.05rem; }

/* carrito */
.pedido-grid { display: grid; gap: 1.2rem; align-items: start; }
.panel {
  background: var(--papel); border: 1px solid var(--linea-2);
  border-radius: var(--r-l); padding: clamp(1.2rem, 3.5vw, 1.9rem);
}
.panel-tit { margin-bottom: 1.1rem; }
.carrito-vacio { color: var(--tinta-tenue); font-size: .95rem; }

.carrito { display: grid; gap: .9rem; }
.linea-item { display: grid; gap: .5rem; padding-bottom: .9rem; border-bottom: 1px solid var(--linea-2); }
.linea-item:last-child { border-bottom: 0; padding-bottom: 0; }
.li-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.li-nom { font-weight: 700; }
.li-precio { font-family: var(--serif); font-size: 1.15rem; color: var(--durazno); white-space: nowrap; }
.li-detalle { display: flex; flex-wrap: wrap; gap: .3rem; }
.li-chip {
  padding: .1rem .55rem; border-radius: 100px;
  border: 1px solid var(--linea); font-size: .75rem; color: var(--tinta-suave);
}
.li-fila { display: flex; align-items: center; gap: .8rem; }
.li-cant { display: inline-flex; align-items: center; border: 1px solid var(--linea); border-radius: 100px; }
.li-cant button { width: 30px; height: 30px; display: grid; place-items: center; font-size: 1rem; font-weight: 700; color: var(--tinta-suave); }
.li-cant button:hover { color: var(--lavanda-h); }
.li-cant output { min-width: 24px; text-align: center; font-weight: 700; font-size: .9rem; }
.li-quitar { font-size: .8rem; color: var(--tinta-tenue); text-decoration: underline; text-underline-offset: 3px; }
.li-quitar:hover { color: var(--lavanda-h); }

.carrito-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-top: 1.2rem; padding-top: 1rem; border-top: 2px solid var(--linea);
}
.carrito-total strong { font-family: var(--serif); font-size: 1.9rem; color: var(--durazno); font-weight: 400; }

/* formulario */
.form { display: grid; gap: 1rem; }
.campo { display: grid; gap: .4rem; min-width: 0; }
.campo-tit { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-tenue); }
.opcional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.campo-fila { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.campo input, .campo textarea, .campo select {
  width: 100%; padding: .75rem .95rem;
  background: var(--crema); border: 1px solid var(--linea);
  border-radius: var(--r-s); color: var(--tinta); font-size: .95rem;
  transition: border-color .2s, background .2s;
}
.campo input::placeholder, .campo textarea::placeholder { color: var(--tinta-tenue); }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--lavanda); background: var(--papel); }
.campo input.is-mal, .campo textarea.is-mal { border-color: #C0392B; }
.campo textarea { resize: vertical; }

.btn-wa { background: #25D366; color: #06301a; }
.btn-wa:hover { background: #3ae57c; }
.btn-ancho { width: 100%; }
.form-nota { font-size: .8rem; color: var(--tinta-tenue); text-align: center; }
.form-error {
  padding: .7rem .9rem; border-radius: var(--r-s);
  background: rgba(192,57,43,.08); border: 1px solid rgba(192,57,43,.35);
  font-size: .87rem; color: #A5382C;
}

/* barra flotante */
.barra-pedido {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--lavanda);
  padding-bottom: env(safe-area-inset-bottom);
  animation: sube .35s var(--ease);
}
@keyframes sube { from { transform: translateY(100%); } to { transform: translateY(0); } }
.barra-in {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--max); margin-inline: auto;
  padding: .7rem var(--borde);
  padding-right: calc(var(--borde) + 68px);
}
.barra-info { display: grid; line-height: 1.25; }
.barra-info strong { font-weight: 700; font-size: .95rem; }
.barra-info span { font-family: var(--serif); font-size: 1.05rem; color: var(--durazno); }
body.tiene-pedido .wa-float { bottom: 82px; }

/* hoja de opciones */
.hoja { position: fixed; inset: 0; z-index: 120; display: grid; place-items: end center; }
.hoja-fondo { position: absolute; inset: 0; background: rgba(46,42,61,.5); animation: aparece .2s ease-out; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
.hoja-caja {
  position: relative; width: 100%; max-width: 30rem;
  max-height: 88vh; overflow-y: auto;
  background: var(--papel); border: 1px solid var(--linea);
  border-radius: var(--r-l) var(--r-l) 0 0;
  padding: 1.6rem var(--borde) calc(1.6rem + env(safe-area-inset-bottom));
  animation: sube .28s var(--ease);
}
.hoja-x {
  position: absolute; top: .7rem; right: .8rem;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--linea);
  font-size: 1.4rem; line-height: 1; color: var(--tinta-suave);
}
.hoja-x:hover { color: var(--lavanda-h); border-color: var(--lavanda); }
.hoja-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cielo); }
.hoja-tit { margin: .25rem 0 1.2rem; padding-right: 2.5rem; }
.hoja-bloque { margin-bottom: 1.3rem; }
.hoja-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-tenue); margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: 100px;
  border: 1px solid var(--linea); background: var(--crema);
  font-size: .88rem; font-weight: 600; color: var(--tinta-suave);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover:not([disabled]) { border-color: var(--lavanda); color: var(--lavanda-h); }
.chip.is-on { background: var(--lavanda); border-color: var(--lavanda); color: #fff; }
.chip[disabled] { opacity: .45; cursor: not-allowed; }
.chip-precio { font-family: var(--serif); font-size: .95rem; color: var(--durazno); }
.chip.is-on .chip-precio { color: #fff; }
.chip-no { font-size: .7rem; font-style: italic; }

/* whatsapp flotante */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #06301a;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -12px rgba(46,42,61,.75);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }

/* ── 16. Responsive ────────────────────────────────────────── */
@media (min-width: 540px) {
  .postres { grid-template-columns: repeat(2, 1fr); }
  .pedido-grid { grid-template-columns: 1.05fr 1fr; }
  .sucursales { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .precios { grid-template-columns: 1.1fr .9fr; }
  .sabores-grid { grid-template-columns: repeat(2, 1fr); }
  .tabla-2 { grid-template-columns: 1fr 1fr; }
  .pie-in { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; margin-left: 1.4rem; }
  .menu-btn { display: none; }
  .menu-movil { display: none !important; }

  .hero-in { grid-template-columns: 1fr 1.05fr; }
  .sucursales { grid-template-columns: repeat(4, 1fr); }
}

/* ── 17. Menos movimiento ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }   /* queda la foto quieta del pastel */
  html { scroll-behavior: auto; }
  .postre, .postre img, .btn, .tel-float { transition: none; }
}
