/* Roma Deco & Home
   Paleta tomada del sticker del logo: hielo (fondo) y tinta (trazo). */

:root {
  --hielo: #C8D5E7;
  --tinta: #1D2634;
  --bruma: #EEF2F8;
  --porcelana: #FBFCFE;
  --pizarra: #465366;
  --linea: rgba(29, 38, 52, .18);
  --wa: #25D366;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;

  --sale: cubic-bezier(.16, 1, .3, 1);
  --entra: cubic-bezier(.7, 0, .84, 0);

  --borde: 20px;
  --barra: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 1rem/1.55 var(--sans);
  color: var(--tinta);
  background: var(--bruma);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }

::selection { background: var(--tinta); color: var(--hielo); }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }
main:focus { outline: none; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icono {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.saltar {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--tinta); color: var(--bruma);
}
.saltar:focus { top: 12px; }

/* ---------- Franja de muestra ---------- */

.muestra {
  padding: 5px 16px;
  background: var(--tinta); color: var(--hielo);
  font-size: .75rem; line-height: 1.4; text-align: center;
}

/* ---------- Barra superior ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 4px;
  height: var(--barra); padding: 0 12px 0 14px;
  background: var(--hielo);
  border-bottom: 1px solid var(--tinta);
}

.marca { flex: none; width: 48px; height: 48px; border-radius: 50%; }
.marca svg { width: 100%; height: 100%; }

.nav { display: flex; align-items: center; margin-left: auto; }

.nav-enlace {
  display: inline-flex; align-items: center; gap: 4px;
  height: 44px; padding: 0 12px;
  border: 0; border-radius: 999px; background: none;
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: background-color .2s;
}
.nav-enlace[aria-current="page"],
.nav-enlace[data-activo] {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px;
}
.menu-flecha { width: 18px; height: 18px; transition: transform .4s var(--sale); }
[aria-expanded="true"] > .menu-flecha { transform: rotate(180deg); }

.menu { position: relative; }
.menu-lista {
  position: absolute; right: 0; top: calc(100% + 9px); z-index: 5;
  min-width: 212px; padding: 6px;
  background: var(--porcelana);
  border: 1px solid var(--tinta); border-radius: 16px;
  box-shadow: 0 18px 32px -16px rgba(29, 38, 52, .45);
  animation: baja .35s var(--sale);
}
.menu-lista a {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px;
  border-radius: 11px; text-decoration: none; font-weight: 500;
}
.menu-lista a[aria-current="page"] { background: var(--hielo); }

.carrito-boton {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-left: 2px;
  border: 1.5px solid var(--tinta); border-radius: 50%;
  background: var(--porcelana);
  transition: transform .2s var(--sale);
}
.carrito-boton:active { transform: scale(.94); }
.carrito-cuenta {
  position: absolute; top: -6px; right: -6px;
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--tinta); color: var(--bruma);
  font-size: .75rem; font-weight: 600; line-height: 21px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.carrito-cuenta.salta { animation: salta .5s var(--sale); }

/* ---------- Botones ---------- */

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--tinta); color: var(--bruma);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  transition: transform .2s var(--sale), background-color .2s;
}
.boton:active { transform: scale(.97); }
.boton--claro { background: var(--hielo); color: var(--tinta); }
.boton--chico { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.boton--wa { background: var(--wa); color: var(--tinta); }
.boton--wa[aria-disabled="true"] { background: var(--linea); color: var(--pizarra); cursor: not-allowed; }

.enlace {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; text-decoration: none;
}

/* Subrayado dibujado: al pasar el mouse se retira hacia la derecha y se vuelve a trazar */
.enlace > span, .categoria-ver, .pie-enlaces a > span, .enlace-boton > span {
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@keyframes redibuja {
  0% { background-position: 100% 100%; background-size: 100% 1.5px; }
  40% { background-position: 100% 100%; background-size: 0 1.5px; }
  40.1% { background-position: 0 100%; background-size: 0 1.5px; }
  100% { background-position: 0 100%; background-size: 100% 1.5px; }
}

.titulo {
  font: 600 clamp(2.5rem, 11vw, 4rem)/.98 var(--serif);
  letter-spacing: -.015em;
  text-wrap: balance;
}

/* ---------- Portada ---------- */

.portada {
  display: grid; gap: 40px;
  padding: 30px var(--borde) 0;
  border-bottom: 1px solid var(--tinta);
  overflow: hidden;
}

.portada h1 {
  font: 600 clamp(3.6rem, 18vw, 5.75rem)/.86 var(--serif);
  letter-spacing: -.025em;
}
.linea { display: block; overflow: hidden; padding: .04em 0 .1em; margin-bottom: -.1em; }
.linea > span { display: block; }

.trazo { width: min(52vw, 230px); height: auto; margin: 12px 0 20px 3px; fill: var(--tinta); transform-origin: left center; }

.frase { font-size: 1.0625rem; font-weight: 500; line-height: 1.35; }
.bajada { max-width: 33em; margin-top: 10px; color: var(--pizarra); }

.acciones { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 24px; }

.casa { position: relative; margin-top: 8px; }
.casa-foto {
  aspect-ratio: 1 / 1.06;
  clip-path: polygon(50% 0, 100% 23%, 100% 100%, 0 100%, 0 23%);
  background: var(--hielo);
}
.casa-foto img { width: 100%; height: 100%; object-fit: cover; }
.casa-techo {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  fill: none; stroke: var(--tinta); stroke-width: 2.5px;
  pointer-events: none;
}
.casa-techo polyline { vector-effect: non-scaling-stroke; }

/* Una sola secuencia de entrada, solo en la primera carga */
.estreno .linea > span { animation: sube 1s var(--sale) both; }
.estreno .linea:nth-child(2) > span { animation-delay: .09s; }
.estreno .trazo { animation: traza .9s var(--sale) .5s both; }
.estreno .frase, .estreno .bajada, .estreno .acciones { animation: aparece .8s var(--sale) .55s both; }
.estreno .bajada { animation-delay: .63s; }
.estreno .acciones { animation-delay: .71s; }
.estreno .casa-foto { animation: levanta 1.3s var(--sale) .2s both; }
.estreno .casa-techo { animation: abre 1s var(--sale) .95s both; }

@keyframes sube { from { transform: translateY(108%); } }
@keyframes traza { from { transform: scaleX(0); } }
@keyframes aparece { from { opacity: 0; transform: translateY(14px); } }
@keyframes levanta { from { clip-path: polygon(50% 100%, 100% 100%, 100% 100%, 0 100%, 0 100%); } }
/* el techo se abre desde la cumbrera hacia los aleros */
@keyframes abre { from { clip-path: inset(-20% 50% 0 50%); } to { clip-path: inset(-20% -10% 0 -10%); } }
@keyframes baja { from { opacity: 0; transform: translateY(-8px); } }
@keyframes salta { 40% { transform: scale(1.35); } }
@keyframes entra { from { opacity: 0; } }

/* ---------- Datos de compra ---------- */

.datos { background: var(--hielo); border-bottom: 1px solid var(--tinta); }
.datos-lista { display: grid; padding: 8px var(--borde); }
.datos-lista li { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.datos-lista li + li { border-top: 1px solid var(--linea); }
.datos-lista img, .icono--dato { flex: none; width: 46px; height: 46px; }
.icono--dato { stroke-width: 1.4; }
.datos-lista h2 { font: 600 1.0625rem/1.25 var(--sans); }
.datos-lista p { color: var(--pizarra); font-size: .9375rem; line-height: 1.4; }

/* ---------- Categorías ---------- */

.categorias { padding: 56px var(--borde) 64px; }
.categorias-grilla { display: grid; gap: 44px; margin-top: 28px; }

.categoria { display: block; text-decoration: none; }
.categoria-foto { aspect-ratio: 4 / 3; overflow: hidden; background: var(--hielo); }
.categoria-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--sale); }
.categoria h3 { margin-top: 16px; font: 600 2rem/1 var(--serif); letter-spacing: -.01em; }
.categoria p { margin-top: 6px; color: var(--pizarra); }
.categoria-ver {
  display: inline-block; margin-top: 12px; font-weight: 600;
}

/* ---------- Por mayor ---------- */

.mayor { display: grid; gap: 36px; padding: 56px var(--borde); background: var(--tinta); color: var(--bruma); }
.mayor ::selection { background: var(--hielo); color: var(--tinta); }
.mayor :focus-visible { outline-color: var(--hielo); }
.mayor-texto p { max-width: 33em; margin-top: 18px; color: var(--hielo); }
.mayor-ejemplo { margin: 26px 0 28px; border-top: 1px solid rgba(200, 213, 231, .35); }
.mayor-ejemplo div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid rgba(200, 213, 231, .35);
}
.mayor-ejemplo dt { font-size: .9375rem; line-height: 1.35; color: var(--hielo); }
.mayor-ejemplo dd { font-weight: 600; font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mayor-ejemplo div:first-child dd { font-weight: 400; text-decoration: line-through; color: var(--hielo); }
.mayor-foto { aspect-ratio: 4 / 3; overflow: hidden; }
.mayor-foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pasos ---------- */

.pasos { padding: 56px var(--borde) 64px; }
.pasos-lista { counter-reset: paso; display: grid; margin: 24px 0 32px; border-top: 1px solid var(--tinta); }
.pasos-lista li {
  counter-increment: paso;
  display: grid; grid-template-columns: 52px 1fr; column-gap: 8px;
  padding: 20px 0; border-bottom: 1px solid var(--linea);
}
.pasos-lista li::before {
  content: counter(paso); grid-row: span 2;
  font: 500 3.25rem/.8 var(--serif);
}
.pasos-lista h3 { font: 600 1.125rem/1.3 var(--sans); }
.pasos-lista p { grid-column: 2; margin-top: 4px; color: var(--pizarra); }

/* ---------- Pie ---------- */

.pie {
  display: grid; gap: 24px; justify-items: start;
  padding: 44px var(--borde) 40px;
  background: var(--hielo); border-top: 1px solid var(--tinta);
}
.con-barra .pie { padding-bottom: 112px; }
.pie-logo { width: 112px; height: 112px; }
.pie-nombre { font: 600 1.75rem/1.1 var(--serif); margin-bottom: 4px; }
.pie-enlaces { display: grid; margin-top: 10px; }
.pie-enlaces a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; text-decoration: none; }
.pie-nota { font-size: .8125rem; color: var(--pizarra); }

.sin-js { padding: 24px var(--borde); }

/* ---------- Catálogo ---------- */

.vista { animation: entra .5s var(--sale); }

.cat-cabecera { padding: 30px var(--borde) 18px; }
.cat-cabecera h1 { font: 600 clamp(3rem, 14.5vw, 5.5rem)/.9 var(--serif); letter-spacing: -.022em; }
.cat-cabecera p { margin-top: 12px; color: var(--pizarra); }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cat-tab {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--tinta); border-radius: 999px;
  font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.cat-tab { transition: background-color .35s var(--sale), color .35s var(--sale); }
.cat-tab[aria-current="page"] { background: var(--tinta); color: var(--bruma); }

/* Cambio de categoría: el encabezado se renueva y los productos entran escalonados */
.cambia h1, .cambia > p { animation: aparece .6s var(--sale) both; }
.cambia > p { animation-delay: .05s; }
.producto { animation: aparece .7s var(--sale) both; }
.producto:nth-child(2) { animation-delay: .07s; }
.producto:nth-child(3) { animation-delay: .14s; }

.selector-barra {
  position: sticky; top: var(--barra); z-index: 20;
  padding: 10px var(--borde) 9px;
  background: var(--bruma);
  border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea);
}
.selector {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 3px; max-width: 360px;
  border: 1px solid var(--tinta); border-radius: 999px; background: var(--porcelana);
}
.selector::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--tinta);
  transition: transform .5s var(--sale);
}
.selector[data-modo="mayor"]::before { transform: translateX(100%); }
.selector button {
  position: relative; min-height: 44px; padding: 0 8px;
  border: 0; border-radius: 999px; background: none;
  font-weight: 500; font-size: .9375rem;
  transition: color .3s;
}
.selector button[aria-pressed="true"] { color: var(--bruma); font-weight: 600; }
.selector-nota { margin-top: 7px; font-size: .875rem; line-height: 1.4; color: var(--pizarra); min-height: 1.4em; }

.productos { display: grid; gap: 44px; padding: 28px var(--borde) 64px; }

.producto-foto { aspect-ratio: var(--formato, 4 / 3); overflow: hidden; background: var(--hielo); }
.producto-foto img { width: 100%; height: 100%; object-fit: cover; }

.sin-foto {
  display: grid; place-content: center; justify-items: center; gap: 10px;
  width: 100%; height: 100%;
  color: var(--pizarra); font-size: .875rem;
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(29, 38, 52, .06) 13px 14px),
    var(--hielo);
}
.sin-foto svg { width: 64px; height: auto; fill: none; stroke: currentColor; stroke-width: 2; }

.producto h2 { margin-top: 16px; font: 600 1.75rem/1.05 var(--serif); letter-spacing: -.01em; }
.producto-detalle { margin-top: 4px; color: var(--pizarra); font-size: .9375rem; }

.precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.precio-ahora { font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.precio s { color: var(--pizarra); }
.etiqueta {
  align-self: center; padding: 2px 10px;
  border: 1px solid var(--tinta); border-radius: 999px;
  font-size: .75rem; font-weight: 500; line-height: 1.5;
}

.producto-accion { margin-top: 16px; }
.producto-accion .boton { width: 100%; }
.producto-accion .contador { width: 100%; }
.en-carrito { margin-top: 6px; font-size: .875rem; color: var(--pizarra); }

.contador {
  display: inline-grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center;
  min-height: 46px;
  border: 1px solid var(--tinta); border-radius: 999px; background: var(--porcelana);
}
.contador button {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: none;
  transition: background-color .2s;
}
.contador button:active { background: var(--hielo); }
.contador input {
  width: 100%; min-width: 0; height: 44px; padding: 0;
  border: 0; border-radius: 6px; background: none;
  font-size: 1.0625rem; font-weight: 600; text-align: center;
  font-variant-numeric: tabular-nums;
}
.producto-accion .contador { min-height: 52px; }

/* ---------- Barra fija del pedido ---------- */

.barra-pedido {
  position: fixed; left: 12px; right: 12px; z-index: 30;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 7px 7px 20px;
  border-radius: 999px; background: var(--tinta); color: var(--bruma);
  box-shadow: 0 16px 30px -12px rgba(29, 38, 52, .6);
  font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums;
  animation: aparece .5s var(--sale);
}
.barra-pedido .boton { flex: none; white-space: nowrap; }
.barra-pedido :focus-visible { outline-color: var(--hielo); }

/* ---------- Carrito ---------- */

.velo {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(29, 38, 52, .55);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--entra), visibility 0s .3s;
}
.carrito {
  position: fixed; top: 0; right: 0; z-index: 60;
  display: flex; flex-direction: column;
  width: 66.667vw; min-width: 236px; max-width: 100vw; height: 100vh; height: 100dvh;
  background: var(--porcelana); border-left: 1px solid var(--tinta);
  transform: translateX(100%); visibility: hidden;
  transition: transform .32s var(--entra), visibility 0s .32s;
  --pad: 14px;
}
.carrito-abierto { overflow: hidden; }
.carrito-abierto .velo { opacity: 1; visibility: visible; transition: opacity .45s var(--sale); }
.carrito-abierto .carrito { transform: none; visibility: visible; transition: transform .6s var(--sale); }

.carrito-cabecera {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 6px 8px var(--pad);
  background: var(--hielo); border-bottom: 1px solid var(--tinta);
}
.carrito-cabecera h2 { font: 600 1.75rem/1 var(--serif); }
.carrito-cabecera h2:focus { outline: none; }
.carrito-cerrar { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; }

.carrito-cuerpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--pad) 24px; }

.carrito-vacio { display: grid; gap: 10px; justify-items: start; padding-top: 12px; color: var(--pizarra); }
.carrito-vacio-titulo { font: 600 1.5rem/1.1 var(--serif); color: var(--tinta); }
.carrito-vacio .boton { margin-top: 8px; }

.selector--chico { max-width: none; }
.selector--chico button { font-size: .875rem; padding: 0 4px; }

.carrito-aviso { margin-top: 10px; font-size: .875rem; line-height: 1.4; color: var(--pizarra); }
.carrito-aviso strong { color: var(--tinta); font-weight: 600; }
.carrito-aviso .enlace-boton {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--tinta); font-weight: 600;
}
.progreso { height: 6px; margin-top: 8px; border-radius: 999px; background: var(--hielo); overflow: hidden; }
.progreso span { display: block; height: 100%; border-radius: inherit; background: var(--tinta); transform-origin: left; transition: transform .6s var(--sale); }

.items { margin-top: 14px; border-top: 1px solid var(--linea); }
.item { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.item-foto { width: 46px; height: 46px; overflow: hidden; background: var(--hielo); }
.item-foto img { width: 100%; height: 100%; object-fit: cover; }
.item-foto .sin-foto svg { width: 26px; }
.item-nombre { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.item-unidad { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 400; color: var(--pizarra); font-variant-numeric: tabular-nums; }
.item-fila { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.item-fila .contador { grid-template-columns: 44px 38px 44px; }
.item-total { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

.entrega { margin-top: 22px; display: grid; gap: 8px; }
.entrega legend { margin-bottom: 10px; font-weight: 600; }
.opcion {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center;
  padding: 12px 34px 12px 10px;
  border: 1px solid var(--linea); border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion img { width: 40px; height: 40px; }
.opcion-texto { display: grid; font-size: .875rem; line-height: 1.35; color: var(--pizarra); }
.opcion-texto strong { font-size: .9375rem; color: var(--tinta); font-weight: 600; }
.opcion-precio { margin-top: 2px; color: var(--tinta); font-weight: 500; }
.opcion::after {
  content: ""; position: absolute; top: 12px; right: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--tinta); background: var(--porcelana);
  transition: box-shadow .25s var(--sale);
}
.opcion:has(input:checked) { border-color: var(--tinta); background: var(--bruma); }
.opcion:has(input:checked)::after { box-shadow: inset 0 0 0 4px var(--porcelana), inset 0 0 0 12px var(--tinta); }
.opcion:has(input:focus-visible) { outline: 2px solid var(--tinta); outline-offset: 2px; }

.carrito-pie { padding: 12px var(--pad) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--tinta); background: var(--porcelana); }
.totales { display: grid; gap: 2px; margin-bottom: 12px; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.totales div { display: flex; justify-content: space-between; gap: 12px; }
.totales dt { color: var(--pizarra); }
.totales .total { margin-top: 4px; font-size: 1.1875rem; font-weight: 600; }
.totales .total dt { color: var(--tinta); }
.totales .ahorro { font-size: .8125rem; color: var(--pizarra); }
.carrito-pie .boton { width: 100%; padding: 0 12px; }

/* ---------- Puntero fino: estados hover ---------- */

@media (hover: hover) {
  .nav-enlace:hover, .menu-lista a:hover { background: rgba(251, 252, 254, .6); }
  .menu-lista a:hover { background: var(--bruma); }
  .boton:hover { background: #2C394D; }
  .boton--claro:hover { background: var(--porcelana); }
  .boton--wa:hover { background: #3BE07A; }
  .boton--wa[aria-disabled="true"]:hover { background: var(--linea); }
  .categoria:hover .categoria-foto img { transform: scale(1.04); }
  .enlace:hover > span, .categoria:hover .categoria-ver,
  .pie-enlaces a:hover > span, .enlace-boton:hover > span { animation: redibuja .8s var(--sale); }
  .contador button:hover, .carrito-cerrar:hover { background: var(--hielo); }
  .carrito-cabecera .carrito-cerrar:hover { background: var(--porcelana); }
}

/* ---------- Tablet ---------- */

@media (min-width: 700px) {
  :root { --borde: 36px; }
  .carrito { width: 430px; --pad: 22px; }
  .datos-lista { grid-template-columns: repeat(3, 1fr); gap: 28px; padding-block: 12px; }
  .datos-lista li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0; }
  .datos-lista li + li { border-top: 0; }
  .categorias-grilla { grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
  .productos { grid-template-columns: repeat(2, 1fr); gap: 52px 32px; }
  .selector-barra { display: flex; align-items: center; gap: 20px; }
  .selector { flex: none; width: 320px; }
  .selector-nota { margin-top: 0; }
  .pasos-lista { grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 0; }
  .pasos-lista li { grid-template-columns: 1fr; border-top: 1px solid var(--tinta); border-bottom: 0; }
  .pasos-lista li::before { margin-bottom: 14px; }
  .pasos-lista p { grid-column: 1; }
  .pie { grid-template-columns: auto 1fr; align-items: center; gap: 28px 36px; }
  .pie-nota { grid-column: 1 / -1; }
  .acciones { flex-direction: row; align-items: center; gap: 24px; }
}

/* ---------- Escritorio ---------- */

@media (min-width: 1000px) {
  :root { --borde: max(56px, calc((100vw - 1240px) / 2)); --barra: 68px; }
  .topbar { padding-inline: var(--borde); }
  .marca { width: 54px; height: 54px; }
  .nav-enlace { padding: 0 18px; font-size: 1rem; }
  .carrito-boton { margin-left: 10px; }

  .portada { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 40px; padding-top: 48px; }
  .portada-texto { padding-bottom: 72px; }
  .portada h1 { font-size: clamp(6rem, 9.4vw, 9.25rem); }
  .trazo { width: 300px; margin: 18px 0 28px 6px; }
  .frase { font-size: 1.25rem; }
  .bajada { font-size: 1.0625rem; }
  /* Lo más grande posible sin que el techo quede cortado en pantallas bajas */
  .casa { justify-self: end; width: min(100%, 600px, max(460px, calc((100svh - 170px) / 1.06))); }

  .categorias, .pasos { padding-block: 96px; }
  .mayor { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 72px; padding-block: 96px; }
  .productos { grid-template-columns: repeat(3, 1fr); padding-top: 40px; padding-bottom: 96px; }
  /* Con 2 productos, 2 columnas: sin hueco vacío */
  .productos:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
  .cat-cabecera { padding-top: 56px; }
  .barra-pedido { display: none; }
  .con-barra .pie { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}
