/* Plantilla: Marritas (Barritas y galletitas artesanales) */
@font-face { font-family: 'Fraunces'; src: url('/fuentes/fraunces.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('/fuentes/outfit.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Dancing Script'; src: url('/fuentes/dancing-script.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
:root:root:root {
  --fondo: #faf4ea; --fondo2: #f2e6d4; --panel: #fffaf2; --tinta: #2a150b; --tinta2: #4b3326; --suave: #8a7062; --linea: #ead9c0;
  --marca: #4a2414; --marca-tinta: #ffffff; --acento: #ee8a2a; --acento-tinta: #111111;
  --acento-fondo: color-mix(in srgb, #ee8a2a 16%, #faf4ea);
  --sans: "Outfit", ui-sans-serif, system-ui, "Segoe UI", sans-serif; --serif: "Fraunces", ui-serif, Georgia, serif; --r-s: 14px; --r: 22px; --r-l: 30px;
  color-scheme: light;
}
.titulo-sec h2, .slide h2, .cat-foto b, .editorial h2, .ficha h2, .menu-cel button, .logo { font-weight: 700; }
.eyebrow, .titulo-sec p { font-family: "Dancing Script", "Brush Script MT", "Segoe Script", cursive; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 24px; font-weight: 700; } .titulo-sec p { font-size: 21px; font-weight: 600; }
.prod .img { aspect-ratio: 1/1; }
/* Detalles premium */
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--tinta) 28%, transparent) transparent; }
body { text-rendering: optimizeLegibility; font-feature-settings: "kern", "liga"; }
::selection { background: color-mix(in srgb, var(--acento) 28%, transparent); color: var(--tinta); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; } .slide p, .editorial p, .titulo-sec p { text-wrap: pretty; }
.precios, .totales, .burbuja, .ficha .pr { font-variant-numeric: tabular-nums lining-nums; }
.precios .pr { letter-spacing: -.01em; }
/* Textura de papel casi imperceptible (bajo la cabecera, no recibe clics) */
body::after { content: ""; position: fixed; inset: 0; z-index: 29; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 180px; }
/* Anuncio fino en mayúsculas espaciadas */
.anuncio { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
/* Cabecera */
header.top.sombra { box-shadow: 0 1px 0 var(--linea), 0 12px 32px -14px rgba(0,0,0,.18); border-bottom-color: transparent; }
.menu button { letter-spacing: .02em; }
/* Títulos de sección con un filete del acento, y antetítulos con línea */
.titulo-sec > div:first-child::before { content: ""; display: block; width: 40px; height: 2px; border-radius: 2px; background: var(--acento); margin-bottom: 16px; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 1px; background: currentColor; vertical-align: middle; margin: -2px 12px 0 0; opacity: .85; }
/* Botones: un brillo cruza al pasar el mouse y la flecha avanza */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .2s, box-shadow .3s, background .3s, color .3s, border-color .3s, filter .3s; }
.btn:not(.sec)::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.btn:not(.sec):hover::after { transform: translateX(120%); }
.btn svg { transition: transform .3s cubic-bezier(.2,.8,.2,1); } .btn:hover svg { transform: translateX(3px); }
.slide .btn { box-shadow: 0 12px 32px -12px rgba(0,0,0,.4); }
/* Beneficios con el color de acento */
.beneficio .ico { background: var(--acento-fondo); color: var(--acento); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.beneficio:hover .ico { transform: translateY(-2px) rotate(-5deg); }
/* Tarjetas de producto */
.prod .carril img { transition: opacity .6s, transform 1.4s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { .prod:hover .nm { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
.etq { letter-spacing: .1em; font-size: 10.5px; }
.fav { backdrop-filter: blur(8px) saturate(1.4); -webkit-backdrop-filter: blur(8px) saturate(1.4); box-shadow: 0 2px 10px rgba(0,0,0,.1); }
@media (hover: hover) { .fav:hover { transform: scale(1.1); } }
/* Bloque editorial: la foto se acerca lento */
.editorial .foto { overflow: hidden; } .editorial .foto img { transition: transform 1.8s cubic-bezier(.2,.8,.2,1); } .editorial:hover .foto img { transform: scale(1.045); }
/* Pie con un filete en degradado */
footer { position: relative; } footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--acento), transparent); opacity: .7; }
footer a, footer button { transition: color .2s; }
/* Ficha, carrito y filtros: más profundidad detrás */
dialog.ficha::backdrop { background: rgba(0,0,0,.42); backdrop-filter: blur(10px) saturate(1.2); }
dialog.ficha { box-shadow: 0 40px 120px -20px rgba(0,0,0,.5); }
.velo { backdrop-filter: blur(6px) saturate(1.1); }
/* Aparición al bajar (index.html pone .revela en <html> y .visto en cada sección; sin JS se ve todo) */
.revela section.bloque > .ancho, .revela .franja > .ancho { transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.revela section.bloque:not(.visto) > .ancho, .revela .franja:not(.visto) > .ancho { opacity: 0; transform: translateY(28px); }
.revela .visto .prod, .revela .visto .cat-foto { animation: entrar .8s cubic-bezier(.2,.8,.2,1) backwards; }
.revela .visto :is(.prod, .cat-foto):nth-child(2) { animation-delay: .07s; } .revela .visto :is(.prod, .cat-foto):nth-child(3) { animation-delay: .14s; }
.revela .visto :is(.prod, .cat-foto):nth-child(4) { animation-delay: .21s; } .revela .visto :is(.prod, .cat-foto):nth-child(5) { animation-delay: .28s; }
.revela .visto :is(.prod, .cat-foto):nth-child(n+6) { animation-delay: .35s; }
@keyframes entrar { from { opacity: 0; transform: translateY(22px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn::after, .revela .visto .prod, .revela .visto .cat-foto { animation: none !important; transition: none !important; }
  .revela section.bloque > .ancho, .revela .franja > .ancho { opacity: 1 !important; transform: none !important; }
}
@media (min-width: 901px) { header.top > .ancho { transition: height .35s cubic-bezier(.2,.8,.2,1); } header.top.sombra > .ancho { height: 62px; }
  .logo img { transition: height .35s cubic-bezier(.2,.8,.2,1); } header.top.sombra .logo img { height: 40px; } }
@media (min-width: 901px) {
  header.top > .ancho { grid-template-columns: auto 1fr auto; gap: 40px; }
  header.top .logo { order: -1; }
  header.top > .ancho > div:first-child { justify-content: center; }
}
@media (min-width: 721px) {
  .portada { background: var(--fondo2); }
  .slide { align-items: center; }
  .slide img { left: 50%; width: 50%; }
  .slide::after { display: none; }
  .slide .txt { color: var(--tinta); max-width: calc(50% - 48px); padding: 0 0 40px; }
  .slide .eyebrow { color: var(--acento); }
  .slide .btn { background: var(--marca); color: var(--marca-tinta); border-color: var(--marca); }
  .puntos-p button { background: color-mix(in srgb, var(--tinta) 22%, transparent); }
  .puntos-p button.on::after { background: var(--tinta); }
}
.portada { height: min(60vh, 600px); min-height: 400px; } .slide h2 { font-size: clamp(34px, 5vw, 64px); }
.cats-foto { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 24px 20px; }
.cat-foto { aspect-ratio: auto; background: none; overflow: visible; color: var(--tinta); text-align: center; border-radius: 0; }
.cat-foto::after { display: none; }
.cat-foto img { position: relative; inset: auto; width: 100%; max-width: 150px; height: auto; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: var(--fondo2);
  box-shadow: 0 0 0 1px var(--linea); transition: transform .3s, box-shadow .3s; }
.cat-foto:hover img { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--acento); }
.cat-foto .t { position: static; justify-content: center; margin-top: 12px; }
.cat-foto b { font-family: var(--sans); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.cat-foto small { color: var(--suave); opacity: 1; }
.cat-foto .ir { display: none; }
@media (max-width: 900px) { .cats-foto { display: flex; overflow-x: auto; gap: 14px; margin: 0 -16px; padding: 4px 16px; scrollbar-width: none; }
  .cat-foto { flex: 0 0 92px; aspect-ratio: auto; } .cat-foto .t { margin-top: 8px; } .cat-foto b { font-size: 13px; } .cat-foto small { display: none; } }
.prod .img { background: var(--fondo2); border-radius: var(--r-s); }
.prod .carril img { object-fit: cover; }
.prod .info { text-align: center; padding-top: 14px; }
.prod .cat { display: none; }
.prod .nm { font-weight: 500; font-size: 14px; margin: 0 0 4px; }
.prod .precios, .prod .muestras, .prod .estrellas { justify-content: center; }
.prod .precios .pr { font-weight: 500; font-size: 14px; }
.titulo-sec { position: relative; justify-content: center; text-align: center; }
.titulo-sec > div:first-child { flex: 1; }
.titulo-sec > div:first-child::before { display: none; }
.titulo-sec .fila-flechas { position: absolute; right: 0; bottom: 0; }
@media (max-width: 720px) { .titulo-sec .fila-flechas { display: none; } }
.titulo-sec h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.01em; }
:root { --listado: grilla; --info: 1; }
body { display: flex; flex-direction: column; min-height: 100vh; } body > footer { order: 99; }
#secCats { display: none !important; }
#secNuevos { display: none !important; }
#secEditorial { order: 11; }
#secOfertas { display: none !important; }
#catalogo { order: 10; }
#secVistos { display: none !important; }
#secInfo { order: 12; }
