/* Plantilla de catálogo con 3 estilos. El estilo se elige en contenido.js (estilo: "artesanal" | "elegante" | "moderno").
   Por cliente no se toca este archivo: los colores del negocio entran por contenido.js (colores.acento, colores.fondo, colores.tinta). */

/* ---------- Tokens comunes (los redefine cada estilo) ---------- */
:root {
  --fondo: #ffffff;
  --superficie: #f2f2f2;
  --tinta: #111111;
  --suave: #555555;
  --acento: #111111;
  --acento-tinta: #ffffff;
  --letra-titulo: system-ui, sans-serif;
  --letra-texto: system-ui, sans-serif;
  --radio-foto: 0;
  --radio-boton: 999px;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --margen: clamp(16px, 4vw, 32px);
  --seccion: clamp(72px, 12vw, 168px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Artesanal: pastelerías, comida casera, flores, regalos. Motivo: el arco de una vitrina. */
[data-estilo="artesanal"] {
  --fondo: #cbe4f2;
  --superficie: #bcdcee;
  --tinta: #0a0a0a;
  --suave: #44606e;
  --acento: #b0298f;
  --letra-titulo: "Libre Franklin", system-ui, sans-serif;
  --letra-texto: "Source Serif 4", Georgia, serif;
  --radio-foto: 999px 999px 0 0;
  --radio-boton: 999px;
}
/* Elegante: ropa, accesorios, joyería, cosmética. El nombre como monumento sobre fondo oscuro. */
[data-estilo="elegante"] {
  --fondo: #0a0a0a;
  --superficie: #161616;
  --tinta: #efefef;
  --suave: #9a9a9a;
  --acento: #b11226;
  --letra-titulo: "TikTok Sans", system-ui, sans-serif;
  --letra-texto: "TikTok Sans", system-ui, sans-serif;
  --radio-foto: 0;
  --radio-boton: 0;
}
/* Moderno: hamburguesas, pollos, jugos, snacks, mascotas, tecnología. Motivo: el círculo. */
[data-estilo="moderno"] {
  --fondo: #ecebe7;
  --superficie: #e1dfd9;
  --tinta: #38450f;
  --suave: #5d683a;
  --acento: #38450f;
  --acento-tinta: #ecebe7;
  --letra-titulo: "Hanken Grotesk", system-ui, sans-serif;
  --letra-texto: "Hanken Grotesk", system-ui, sans-serif;
  --radio-foto: 50%;
  --radio-boton: 999px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font: 400 var(--step-body)/1.55 var(--letra-texto);
  -webkit-font-smoothing: antialiased; overflow-x: clip; -webkit-tap-highlight-color: transparent;
}
body.sin-scroll { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--letra-titulo); margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.035em; font-weight: 700; }
.contenedor { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--margen); }

.aviso-demo { margin: 0; padding: 10px var(--margen); background: var(--tinta); color: var(--fondo); text-align: center; font: 600 var(--step-small)/1.4 var(--letra-texto); }

/* Botones */
.boton, .btn-pedido, .btn-agregar, .btn-enviar, .barra-carrito {
  border: 0; border-radius: var(--radio-boton); font-family: var(--letra-titulo); font-weight: 700;
  transition: transform 160ms var(--ease), background-color 200ms ease;
  user-select: none; -webkit-user-select: none;
}
.boton:active, .btn-pedido:active, .btn-agregar:active, .btn-enviar:active, .barra-carrito:active { transform: scale(0.97); }
.boton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  background: var(--acento); color: var(--acento-tinta); text-decoration: none; font-size: var(--step-body);
}

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 10; background: var(--fondo); }
.cabecera__fila { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.marca { font: 700 var(--step-body)/1 var(--letra-titulo); letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.cabecera__nav { display: flex; gap: 24px; }
.cabecera__nav a { text-decoration: none; color: var(--suave); }
.cabecera__nav a:hover { color: var(--tinta); }
.btn-pedido { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 18px; background: var(--tinta); color: var(--fondo); font-size: var(--step-small); }
.contador { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--radio-boton); background: var(--acento); color: var(--acento-tinta); font-size: var(--step-small); }

/* ---------- Portada ---------- */
.portada { position: relative; overflow: hidden; isolation: isolate; }
.portada__forma { position: absolute; z-index: -1; background: var(--acento); }
.portada__rejilla { display: grid; align-items: end; gap: 32px; min-height: min(78svh, 760px); padding-top: 48px; padding-bottom: 56px; }
.portada__nombre { font-size: clamp(3rem, 11vw, 9.5rem); line-height: 0.92; letter-spacing: -0.045em; font-weight: 700; overflow-wrap: anywhere; }
.portada__eslogan { margin: 20px 0 0; max-width: 22ch; font: 700 var(--step-lead)/1.2 var(--letra-titulo); letter-spacing: -0.02em; }
.portada__descripcion { margin: 16px 0 28px; max-width: 46ch; }
.portada__foto { margin: 0; overflow: hidden; border-radius: var(--radio-foto); background: var(--superficie); }
.portada__foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Catálogo ---------- */
.catalogo { padding-top: var(--seccion); }
.catalogo__cabeza { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 32px; }
.filtros { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; margin: -2px; overscroll-behavior-x: contain; }
.filtros::-webkit-scrollbar { display: none; }
.filtro {
  flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radio-boton);
  background: var(--superficie); font-family: var(--letra-titulo); font-weight: 700; font-size: var(--step-small);
  transition: background-color 200ms ease, color 200ms ease;
}
.filtro[aria-pressed="true"] { background: var(--tinta); color: var(--fondo); }

.productos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
@media (min-width: 760px) { .productos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; } }
@media (min-width: 1100px) { .productos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.producto { display: flex; flex-direction: column; min-width: 0; }
.foto { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radio-foto); background: var(--superficie); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto--vacia { display: grid; place-items: center; font: 700 clamp(2.4rem, 9vw, 4.5rem)/1 var(--letra-titulo); letter-spacing: -0.04em; color: var(--suave); }
.producto .cuerpo { display: flex; flex-direction: column; gap: 4px; flex: 1; padding-top: 14px; }
.producto h3 { font-size: var(--step-body); line-height: 1.2; letter-spacing: -0.01em; }
.producto p { margin: 0; color: var(--suave); font-size: var(--step-small); line-height: 1.4; }
.pie-producto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.pie-producto strong { font: 700 var(--step-body)/1 var(--letra-titulo); }
.btn-agregar { min-height: 44px; padding: 0 18px; background: var(--acento); color: var(--acento-tinta); font-size: var(--step-small); }
.cantidad { display: flex; align-items: center; gap: 2px; background: var(--superficie); border-radius: var(--radio-boton); padding: 2px; }
.cantidad button { width: 40px; height: 40px; border: 0; border-radius: var(--radio-boton); background: var(--fondo); font-size: 1.2rem; font-weight: 700; }
.cantidad span { min-width: 24px; text-align: center; font-weight: 700; font-family: var(--letra-titulo); }

/* ---------- Abierto ahora ---------- */
.estado { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: var(--step-small); font-weight: 600; }
.estado::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--suave); }
.estado--abierto::before { background: #1f9d55; }
[data-estilo="elegante"] .estado--abierto::before { background: #4ade80; }

/* ---------- Historia: una foto grande del lugar o del proceso y por qué es distinto ---------- */
.historia { display: grid; margin-top: var(--seccion); }
.historia__foto { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--superficie); }
.historia__foto img { width: 100%; height: 100%; object-fit: cover; }
.historia__texto { padding: 32px var(--margen) 0; }
.historia h2 { max-width: 14ch; }
.historia p { margin: 20px 0 0; max-width: 34ch; font-size: var(--step-lead); line-height: 1.4; }
@media (min-width: 900px) {
  .historia { grid-template-columns: 7fr 5fr; align-items: center; gap: clamp(32px, 5vw, 80px); padding-right: var(--margen); }
  .historia__foto { aspect-ratio: 4 / 3; }
  .historia__texto { padding: 0; }
  .historia h2 { font-size: var(--step-head); }
}

/* ---------- Cómo pedir ---------- */
.pedir { margin-top: var(--seccion); padding: var(--seccion) 0; background: var(--superficie); }
.pedir__rejilla { display: grid; gap: 48px; }
.pasos { margin: 28px 0 0; padding-left: 1.4em; font-size: var(--step-lead); line-height: 1.35; }
.pasos li { padding-left: 6px; margin-bottom: 14px; }
.pasos li::marker { font-family: var(--letra-titulo); font-weight: 700; color: var(--acento); }
.datos { margin: 0; display: grid; gap: 24px; align-content: start; }
.datos dt { font: 700 var(--step-small)/1.3 var(--letra-titulo); }
.datos dd { margin: 4px 0 0; }

/* ---------- Pie ---------- */
.pie { padding: var(--seccion) 0 120px; overflow: hidden; }
.pie__marca { margin: 0; font: 700 clamp(3.5rem, 16vw, 15rem)/0.85 var(--letra-titulo); letter-spacing: -0.05em; white-space: nowrap; }
.pie__fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 32px; color: var(--suave); font-size: var(--step-small); }
.pie__links { display: flex; gap: 20px; }
.pie__links a { color: var(--tinta); }

/* ---------- Barra y panel del pedido ---------- */
.barra-carrito {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20; max-width: 520px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 24px; background: var(--acento); color: var(--acento-tinta); font-size: 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  animation: subir 260ms var(--ease);
}
@keyframes subir { from { transform: translateY(24px); opacity: 0; } }
.barra-carrito span { font-weight: 400; font-family: var(--letra-texto); }

.fondo-panel { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.5); }
.panel {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; max-height: 92svh;
  display: flex; flex-direction: column; background: var(--fondo); color: var(--tinta);
  border-radius: 20px 20px 0 0; animation: panel-sube 280ms var(--ease);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25); overscroll-behavior: contain;
}
@keyframes panel-sube { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 760px) {
  .panel { left: auto; top: 0; width: 440px; max-height: none; border-radius: 0; animation-name: panel-entra; }
  @keyframes panel-entra { from { transform: translateX(40px); opacity: 0; } }
}
.panel-cabecera { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--superficie); }
.panel-cabecera h2 { font-size: 1.5rem; }
.cerrar { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--fondo); font-size: 1.1rem; }
.panel-cuerpo { overflow-y: auto; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); }
.vacio { padding: 32px 0; text-align: center; color: var(--suave); }
.lineas { list-style: none; margin: 0; padding: 0; }
.lineas li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; }
.lineas li + li { border-top: 1px solid var(--superficie); }
.lineas li div:first-child { display: flex; flex-direction: column; min-width: 0; }
.lineas strong { font-family: var(--letra-titulo); }
.lineas li span { color: var(--suave); font-size: 0.95rem; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; font-size: 1.15rem; }
.total strong { font: 700 1.6rem/1 var(--letra-titulo); }
.minimo { margin: 0 0 8px; color: var(--acento); font-size: 0.95rem; }
.form-pedido { display: flex; flex-direction: column; gap: 8px; }
.form-pedido label, .form-pedido legend { font: 700 0.95rem/1.3 var(--letra-titulo); }
.form-pedido input:not([type="radio"]), .form-pedido textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--superficie); border-radius: 12px;
  background: var(--fondo); color: var(--tinta); font: 400 16px/1.4 var(--letra-texto);
}
.form-pedido input:focus, .form-pedido textarea:focus { outline: none; border-color: var(--acento); }
.form-pedido textarea { min-height: 76px; resize: vertical; }
.form-pedido fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; padding: 0; border: 0; }
.form-pedido legend { margin-bottom: 8px; }
.opcion { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: var(--radio-boton); background: var(--superficie); cursor: pointer; }
.opcion:has(input:checked) { box-shadow: inset 0 0 0 2px var(--acento); }
.opcion input { accent-color: var(--acento); }
.ayuda { margin: 0; color: var(--suave); font: 400 0.9rem/1.4 var(--letra-texto); }
.error { margin: 0; min-height: 1em; color: #c0262d; font-size: 0.95rem; }
[data-estilo="elegante"] .error { color: #ff6b6b; }
.btn-enviar { min-height: 54px; margin-top: 6px; background: #128c4a; color: #ffffff; font-size: 1.05rem; }
.btn-enviar:hover { background: #0d6e3a; }

/* =========================================================
   Composición de cada estilo
   ========================================================= */

/* Artesanal: un arco enorme del color del negocio entra por la derecha; las fotos llevan el mismo arco. */
[data-estilo="artesanal"] .portada__nombre { text-transform: uppercase; letter-spacing: -0.035em; }
[data-estilo="artesanal"] .portada__forma { right: -4vw; bottom: 0; width: 36vw; height: 92%; border-radius: 999px 999px 0 0; }
[data-estilo="artesanal"] .portada__texto { max-width: 62vw; }
[data-estilo="artesanal"] .portada__eslogan { max-width: 18ch; }
[data-estilo="artesanal"].con-portada .portada__forma { display: none; }
[data-estilo="artesanal"] .pie { background: var(--acento); color: var(--acento-tinta); }
[data-estilo="artesanal"] .pie__fila, [data-estilo="artesanal"] .pie__links a { color: inherit; }
[data-estilo="artesanal"] .pedir { border-radius: 48vw 48vw 0 0 / 14vw 14vw 0 0; }

/* Elegante: el nombre ancho como monumento, fotos rectas en 3:4. */
[data-estilo="elegante"] .portada__nombre { font-weight: 800; font-stretch: 150%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; font-size: clamp(2.6rem, 12vw, 11rem); white-space: nowrap; }
[data-estilo="elegante"] .portada__rejilla { min-height: min(70svh, 680px); }
[data-estilo="elegante"] .portada__eslogan { font-weight: 500; }
[data-estilo="elegante"] h2, [data-estilo="elegante"] .pie__marca { font-weight: 800; font-stretch: 150%; text-transform: uppercase; letter-spacing: -0.01em; }
[data-estilo="elegante"] h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); }
[data-estilo="elegante"] .portada__forma { display: none; }
[data-estilo="elegante"] .foto { aspect-ratio: 3 / 4; }
[data-estilo="elegante"] .producto h3 { font-weight: 500; }
[data-estilo="elegante"] .pie__marca { font-size: clamp(2.5rem, 11vw, 12rem); }
[data-estilo="elegante"] .pie { background: #efefef; color: #0a0a0a; }
[data-estilo="elegante"] .pie__fila, [data-estilo="elegante"] .pie__links a { color: #0a0a0a; }

/* Moderno: un círculo enorme cortado por la pantalla; las fotos son círculos sobre la superficie. */
[data-estilo="moderno"] h1, [data-estilo="moderno"] h2, [data-estilo="moderno"] .pie__marca { font-weight: 500; letter-spacing: -0.05em; }
[data-estilo="moderno"] .portada__nombre { line-height: 0.9; }
[data-estilo="moderno"] .portada__eslogan { font-weight: 500; }
[data-estilo="moderno"] .portada__forma { width: 64vh; aspect-ratio: 1; border-radius: 50%; right: -16vh; top: 50%; translate: 0 -50%; }
[data-estilo="moderno"] .portada__texto { max-width: calc(100vw - 64vh + 8vh); }
[data-estilo="moderno"].con-portada .portada__forma { display: none; }
[data-estilo="moderno"] .foto { border-radius: 0; background: var(--superficie); }
[data-estilo="moderno"] .foto { isolation: isolate; }
[data-estilo="moderno"] .foto img { position: absolute; inset: 9%; width: 82%; height: 82%; border-radius: 50%; }
[data-estilo="moderno"] .foto--vacia::before { content: ""; position: absolute; inset: 9%; z-index: -1; border-radius: 50%; background: var(--fondo); }
[data-estilo="moderno"] .portada__foto { aspect-ratio: 1; }
[data-estilo="moderno"] .pie { background: var(--tinta); color: var(--fondo); }
[data-estilo="moderno"] .pie__fila, [data-estilo="moderno"] .pie__links a { color: inherit; }

/* ---------- Con foto de portada: texto y foto lado a lado ---------- */
.con-portada .portada__foto { aspect-ratio: 4 / 5; max-height: 72svh; }
[data-estilo="artesanal"].con-portada .portada__foto { border-radius: 999px 999px 0 0; }

/* ---------- Tablet y escritorio ---------- */
@media (min-width: 900px) {
  .con-portada .portada__rejilla { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  [data-estilo="elegante"].con-portada .portada__rejilla { grid-template-columns: 1fr; }
  [data-estilo="elegante"].con-portada .portada__foto { aspect-ratio: 16 / 7; max-height: none; }
  .pedir__rejilla { grid-template-columns: 1.4fr 1fr; }
}

/* ---------- Celular ---------- */
@media (max-width: 699px) {
  .cabecera__nav { display: none; }
  .cabecera__fila { min-height: 60px; }
  .portada__rejilla { min-height: auto; padding-top: 40px; padding-bottom: 48px; }
  .con-portada .portada__foto { order: -1; aspect-ratio: 4 / 3; }
  [data-estilo="artesanal"].con-portada .portada__foto { aspect-ratio: 1; }
  /* En el celular la forma va debajo del texto, nunca detrás */
  .portada__rejilla { padding-bottom: 52vw; }
  .con-portada .portada__rejilla { padding-bottom: 48px; }
  [data-estilo="elegante"] .portada__rejilla { padding-bottom: 48px; }
  .portada__texto { max-width: none !important; }
  [data-estilo="artesanal"] .portada__forma { left: var(--margen); right: var(--margen); width: auto; height: 40vw; }
  [data-estilo="moderno"] .portada__forma { width: 100vw; left: 0; right: auto; top: auto; bottom: -58vw; translate: none; }
  .portada__texto .boton { width: 100%; }
  .pedir__rejilla { gap: 36px; }
  .btn-agregar { width: 100%; }
  .pie-producto { flex-direction: column; align-items: stretch; }
  .pie-producto .cantidad { justify-content: space-between; }
}

/* ---------- Portada de marca: la foto manda ---------- */
/* Elegante: la foto ocupa toda la primera pantalla y el nombre va encima, abajo (como una campaña) */
[data-estilo="elegante"].con-portada .portada { display: flex; align-items: flex-end; min-height: calc(100svh - 68px); color: #efefef; }
[data-estilo="elegante"].con-portada .portada__foto { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; max-height: none; border-radius: 0; }
[data-estilo="elegante"].con-portada .portada__foto img { object-position: 62% 12%; }
/* Velo neutro solo bajo el texto, para que se lea sobre cualquier foto */
[data-estilo="elegante"].con-portada .portada__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0) 62%); }
[data-estilo="elegante"].con-portada .portada__rejilla { width: 100%; min-height: 0; padding-top: 32svh; padding-bottom: clamp(28px, 5vw, 64px); }
[data-estilo="elegante"].con-portada .portada__descripcion { color: #d6d6d6; }

/* Moderno: la foto va dentro del círculo enorme, cortado por el borde de la pantalla */
[data-estilo="moderno"].con-portada .portada__foto { position: absolute; z-index: -1; right: -6vw; top: 50%; translate: 0 -50%; width: min(80vh, 60vw); aspect-ratio: 1; max-height: none; background: var(--acento); }
[data-estilo="moderno"].con-portada .portada__texto { max-width: min(54vw, 640px); }

/* Artesanal: la foto en arco crece hasta casi toda la altura */
@media (min-width: 900px) {
  [data-estilo="artesanal"].con-portada .portada__foto { max-height: 80svh; }
}

/* ---------- Producto estrella: el primero se muestra en grande ---------- */
.producto--estrella { grid-column: 1 / -1; }
.producto--estrella h3 { font-size: var(--step-lead); }
.producto--estrella p { font-size: var(--step-body); }
.producto--estrella .pie-producto strong { font-size: var(--step-lead); }
@media (min-width: 760px) {
  .productos { grid-auto-flow: dense; }
  .producto--estrella { grid-column: span 2; grid-row: span 2; }
  .producto--estrella .foto { flex: 1 1 auto; aspect-ratio: auto; min-height: 360px; }
  .producto--estrella .cuerpo { flex: none; }
  [data-estilo="moderno"] .producto--estrella .foto img { inset: 9% auto auto 50%; translate: -50% 0; width: auto; height: 82%; aspect-ratio: 1; }
}
.pie-producto strong, .total strong, .barra-carrito strong { font-variant-numeric: tabular-nums; }

/* ---------- Entrada suave (nivel básico; el premium usa efectos.js) ---------- */
.entra { opacity: 0; transform: translateY(20px); transition: opacity 280ms var(--ease), transform 280ms var(--ease); }
.entra.a-la-vista { opacity: 1; transform: none; }

/* ---------- Celular: portada de marca y filtros que no se cortan ---------- */
@media (max-width: 699px) {
  .filtros { flex-wrap: wrap; overflow: visible; }
  [data-estilo="elegante"].con-portada .portada { min-height: calc(100svh - 60px); }
  [data-estilo="elegante"].con-portada .portada__foto img { object-position: 64% 12%; }
  [data-estilo="elegante"].con-portada .portada__rejilla { padding-top: 40svh; }
  [data-estilo="moderno"].con-portada .portada__foto { position: relative; z-index: 0; order: -1; right: auto; top: auto; translate: none; width: 100%; }
  [data-estilo="moderno"].con-portada .portada__texto { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .barra-carrito, .panel { animation: none; }
  .entra { opacity: 1; transform: none; transition: none; }
}

/* ---------- Premium (efectos.js) ---------- */
.premium .portada__nombre { perspective: 600px; }
.premium .palabra { display: inline-block; white-space: nowrap; }
.premium .letra { display: inline-block; will-change: transform; }
.premium .foto { will-change: transform; }
