/* ============================================================
   Multigraf
   Azul y celeste del logo. El cuadradito celeste que se separa
   de la "g" se repite en los botones; la plancha de corte y las
   marcas de corte de imprenta, en la portada.
   ============================================================ */

:root {
  --azul: #0c4294;          /* medido del logo */
  --azul-hondo: #072a66;
  --azul-noche: #05183c;
  --azul-vivo: #1c5ed6;
  --celeste: #93c6c5;       /* medido del logo */
  --celeste-luz: #c4f1ef;
  --blanco: #fff;
  --papel: #f2f5f9;
  --linea: #dce2ec;
  --acero: #56627a;
  --tinta: #0e1a30;
  --whatsapp: #178143;
  --cian: #00aeef; --magenta: #ec008c; --amarillo: #ffe500;

  --titulo: "Archivo", "Arial Narrow", Arial, sans-serif;
  --texto: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-cajon: cubic-bezier(0.32, 0.72, 0, 1);
  --margen: clamp(16px, 4vw, 40px);
  --cabecera: 68px;
  --radio: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cabecera) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--tinta);
  font: 400 1.0625rem/1.55 var(--texto);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--azul-vivo); outline-offset: 3px; }
.seccion--azul :focus-visible, .seccion--noche :focus-visible, .cabecera :focus-visible, .portada :focus-visible, .pie :focus-visible { outline-color: var(--celeste-luz); }

.saltar { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--blanco); padding: 10px 14px; }
.saltar:focus { top: 8px; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ancho { width: min(1240px, 100% - 2 * var(--margen)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; margin-right: .5em; vertical-align: -.2em; fill: currentColor; flex: none; }

h1, h2, h3 { font-family: var(--titulo); font-style: italic; font-weight: 850; text-transform: uppercase; line-height: .98; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-stretch: 108%; }

/* ---------- Botones: el cuadradito de la "g" se separa de la esquina ---------- */
.boton {
  --b-fondo: var(--azul); --b-texto: var(--blanco); --b-cuadro: var(--celeste);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px 0 26px; border: 0; background: none;
  color: var(--b-texto);
  font: italic 800 1rem/1 var(--titulo); font-stretch: 105%; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  transition: transform .16s var(--ease-out);
}
.boton::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--b-fondo);
  clip-path: polygon(0 0, calc(100% - 13px) 0, calc(100% - 13px) 13px, 100% 13px, 100% 100%, 0 100%);
  transition: background-color .15s ease;
}
.boton::after {
  content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 10px;
  background: var(--b-cuadro);
  transition: transform .22s var(--ease-out);
}
.boton > span { display: inline-flex; align-items: center; }
.boton:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .boton:hover::after { transform: translate(3px, -3px); }
}
.boton--azul:hover { --b-fondo: var(--azul-vivo); }
.boton--blanco { --b-fondo: var(--blanco); --b-texto: var(--azul); }
.boton--blanco:hover { --b-fondo: var(--celeste-luz); }
.boton--claro { --b-fondo: rgba(255, 255, 255, .13); --b-texto: var(--blanco); }
.boton--claro:hover { --b-fondo: rgba(255, 255, 255, .22); }
.boton--suave { --b-fondo: rgba(12, 66, 148, .09); --b-texto: var(--azul); --b-cuadro: var(--azul); }
.boton--suave:hover { --b-fondo: rgba(12, 66, 148, .16); }
.boton--wa { --b-fondo: var(--whatsapp); width: 100%; }
.boton--wa:hover { --b-fondo: #126836; }
.acciones { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 28px; }
.acciones--centro { justify-content: center; }
.enlace { justify-self: start; font-weight: 700; color: var(--azul); text-decoration: underline; text-decoration-color: var(--celeste); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.enlace:hover { color: var(--azul-vivo); }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 50; background: var(--azul-hondo); color: var(--blanco); }
.cabecera__fila {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  column-gap: clamp(14px, 2.2vw, 30px); min-height: var(--cabecera);
}
.cabecera__logo { grid-column: 1; grid-row: 1; }
.cabecera__logo img { height: 30px; width: auto; }
.cabecera__menu, .cabecera__carrito--movil { display: none; }
.nav { display: contents; }
.nav__grupo { grid-row: 1; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav__grupo--izq { grid-column: 3; }
.nav__grupo--der { grid-column: 4; }
.nav a { font-size: .97rem; font-weight: 500; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .15s ease; }
.nav a:hover { border-bottom-color: var(--celeste); }
.cabecera__carrito {
  display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 8px 0 14px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: none; color: var(--blanco);
  font-weight: 600; font-size: .95rem;
  transition: background-color .15s ease, border-color .15s ease;
}
.cabecera__carrito:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.cabecera__carrito.cabecera__carrito--movil { display: none; }
.cabecera__carrito .ico { margin-right: .35em; }
.cabecera__carrito b {
  display: grid; place-items: center; min-width: 24px; height: 24px; margin-left: 8px; padding: 0 6px; border-radius: 999px;
  background: var(--celeste); color: var(--azul-noche); font-size: .8rem; font-weight: 700;
}
.cabecera__carrito b:empty, .cabecera__carrito[data-vacio] b { background: rgba(255, 255, 255, .16); color: var(--blanco); }
.salto { animation: salto .45s var(--ease-out); }
@keyframes salto { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* Al llegar al catálogo, la cabecera se centra: logo al medio y el menú repartido a los lados.
   El deslizamiento lo anima js/app.js; la franja celeste se dibuja desde el centro. */
.cabecera::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--celeste); transform: scaleX(0); transition: transform .6s var(--ease-out);
}
.cabecera--centrada::after { transform: scaleX(1); }
.cabecera--centrada .cabecera__fila { grid-template-columns: 1fr auto 1fr; column-gap: clamp(20px, 3vw, 48px); }
.cabecera--centrada .cabecera__logo { grid-column: 2; }
.cabecera--centrada .nav__grupo--izq { grid-column: 1; justify-self: end; }
.cabecera--centrada .nav__grupo--der { grid-column: 3; justify-self: start; }

/* ---------- Portada ---------- */
.portada { position: relative; background: var(--azul-hondo); color: var(--blanco); }
.portada__fijo { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 112px) 72px; }
.portada__contenido { position: relative; }

/* Portada fija: queda en pantalla mientras bajás y las marcas entran desde los costados.
   El momento lo decide js/app.js según cuánto se bajó. */
.pin .portada { height: calc(100svh - var(--cabecera) + 65vh); }
.pin .portada__fijo {
  position: sticky; top: var(--cabecera);
  height: calc(100svh - var(--cabecera));
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 0 64px;
}
@media (min-width: 901px) { .pin .portada__lado { opacity: 0; } }
@media (max-width: 900px) { .pin .portada__marca { opacity: 0; } }
.pin .portada__pieza {
  transform: translate3d(var(--dx, 0), var(--dy, 0), 0); opacity: 0;
  will-change: transform, opacity;
  transition: transform .45s var(--ease-out), opacity .3s ease;
}
.pin .portada--marcas .portada__pieza {
  transform: none; opacity: 1;
  transition: transform 1s var(--ease-out) var(--retraso, 0s), opacity .6s ease var(--retraso, 0s);
}
.pin .portada__centro { transform: translateY(28px) scale(1.08); will-change: transform; transition: transform .45s var(--ease-out); }
.pin .portada--marcas .portada__centro { transform: none; transition: transform 1s var(--ease-out); }
.pin .portada__guia { transition: opacity .3s ease; }
.pin .portada--marcas .portada__guia { opacity: 0; }
.portada--midiendo .portada__pieza, .portada--midiendo .portada__centro { transition: none !important; }
.portada__guia { display: none; }
.pin .portada__guia {
  display: block; position: absolute; left: 50%; bottom: 22px;
  width: 2px; height: 44px; margin-left: -1px; overflow: hidden; background: rgba(255, 255, 255, .18);
}
.pin .portada__guia span {
  position: absolute; inset: 0 0 60% 0; background: var(--blanco);
  animation: guia 1.8s var(--ease-in-out) infinite;
}
@keyframes guia { from { transform: translateY(-100%); } to { transform: translateY(250%); } }

/* La plancha de corte: cuadrícula fina y gruesa, como la base verde del taller pero en azul */
.portada__plancha {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .085) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 42%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 65% at 50% 42%, #000 25%, transparent 80%);
}
.portada__brillo {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 50% 36%, rgba(28, 94, 214, .55), transparent 72%);
}
.portada__escena {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.4fr) minmax(0, 1fr);
  align-items: center; gap: clamp(20px, 3.5vw, 52px);
}
.portada__lado { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 100%; }
.portada__lado--izq { border-right: 1px solid rgba(255, 255, 255, .14); padding-right: clamp(12px, 2.5vw, 36px); }
.portada__lado--der { border-left: 1px solid rgba(255, 255, 255, .14); padding-left: clamp(12px, 2.5vw, 36px); }
.portada__marca { display: block; border-radius: 14px; transition: transform .2s var(--ease-out); }
.portada__marca img { width: clamp(62px, 6.4vw, 88px); height: auto; border-radius: 14px; box-shadow: 0 10px 26px rgba(2, 10, 30, .35); }
@media (hover: hover) and (pointer: fine) { .portada__marca:hover { transform: translateY(-3px); } }

/* El logo se imprime: un carro pasa de izquierda a derecha y deja las letras;
   al final cae el cuadradito celeste en su lugar, con marcas de corte alrededor. */
.portada__centro { display: grid; place-items: center; padding-block: 18px; }
.impreso { position: relative; width: 100%; max-width: 720px; }
.impreso__letras { width: 100%; height: auto; }
.impreso__cuadro { position: absolute; left: 65.18%; top: 18.7%; width: 5.21%; height: auto; }
.impreso__carro { position: absolute; inset: -16% 0; pointer-events: none; }
.impreso__carro span {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px; margin-left: -1px;
  background: var(--celeste-luz);
  box-shadow: 0 0 14px 3px rgba(196, 241, 239, .75), 0 0 46px 10px rgba(28, 94, 214, .7);
  opacity: 0;
}
.impreso__carro span::before {
  content: ""; position: absolute; left: 50%; top: -6px; width: 26px; height: 14px; margin-left: -13px;
  border-radius: 3px; background: var(--blanco); box-shadow: 0 0 0 3px rgba(196, 241, 239, .35);
}
.impreso__marcas i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255, 255, 255, .55); }
.impreso__marcas i:nth-child(1) { left: -30px; top: -26px; border-width: 1.5px 0 0 1.5px; }
.impreso__marcas i:nth-child(2) { right: -30px; top: -26px; border-width: 1.5px 1.5px 0 0; }
.impreso__marcas i:nth-child(3) { left: -30px; bottom: -26px; border-width: 0 0 1.5px 1.5px; }
.impreso__marcas i:nth-child(4) { right: -30px; bottom: -26px; border-width: 0 1.5px 1.5px 0; }

.portada__texto { position: relative; text-align: center; padding-top: clamp(28px, 4.5vw, 52px); }
.portada h1 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 900; font-stretch: 110%; }
.portada h1 em { font-style: inherit; color: var(--celeste); }
.portada__texto p { max-width: 54ch; margin: 14px auto 0; color: rgba(255, 255, 255, .8); font-size: 1.1rem; text-wrap: balance; }
.portada__pie {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.portada__pie span { display: inline-flex; align-items: center; gap: 10px; }
.portada__pie span + span::before { content: ""; width: 6px; height: 6px; background: var(--celeste); }
.pin .portada__pie { display: none; }

/* Entrada de la portada: una sola secuencia al cargar */
@media (prefers-reduced-motion: no-preference) {
  .portada__plancha { animation: aparece 1.2s ease .05s both; }
  .portada__brillo { animation: aparece 1.6s var(--ease-out) .3s both; }
  .impreso__marcas i { animation: marca-corte .6s var(--ease-out) both; }
  .impreso__marcas i:nth-child(2) { animation-delay: .06s; }
  .impreso__marcas i:nth-child(3) { animation-delay: .12s; }
  .impreso__marcas i:nth-child(4) { animation-delay: .18s; }
  .impreso__letras { animation: imprime 1.25s var(--ease-in-out) .45s both; }
  .impreso__carro { animation: carro 1.25s var(--ease-in-out) .45s both; }
  .impreso__carro span { animation: destello 1.25s linear .45s both; }
  .impreso__cuadro { animation: cuadro-cae .6s var(--ease-out) 1.6s both; }
  html:not(.pin) .portada__lado--izq .portada__marca { animation: desde-izq .8s var(--ease-out) both; animation-delay: calc(1.9s + var(--n, 0) * 70ms); }
  html:not(.pin) .portada__lado--der .portada__marca { animation: desde-der .8s var(--ease-out) both; animation-delay: calc(1.9s + var(--n, 0) * 70ms); }
  .portada__linea { animation: sube .7s var(--ease-out) both; animation-delay: calc(1.75s + var(--d) * 90ms); }
  .portada__pie { animation: aparece .8s ease 2.2s both; }
}
@media (prefers-reduced-motion: reduce) {
  .impreso, .portada__marca, .portada__linea { animation: aparece .4s ease both; }
  .impreso__carro { display: none; }
}
@keyframes aparece { from { opacity: 0; } }
@keyframes marca-corte { from { opacity: 0; transform: scale(.4); } }
@keyframes imprime { from { clip-path: inset(-12% 100% -12% 0); } to { clip-path: inset(-12% 0 -12% 0); } }
@keyframes carro { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes destello { 0% { opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cuadro-cae { from { opacity: 0; transform: translate(60%, -150%) rotate(35deg) scale(1.3); } 40% { opacity: 1; } }
@keyframes desde-izq { from { opacity: 0; transform: translateX(-32px); } }
@keyframes desde-der { from { opacity: 0; transform: translateX(32px); } }
@keyframes sube { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Aparecer al hacer scroll ---------- */
.js [data-revelar] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-revelar].visto { opacity: 1; transform: none; }
/* Los títulos se imprimen de izquierda a derecha, como el logo */
.js .seccion__titulo[data-revelar] h2, .js .dos > [data-revelar] h2 { clip-path: inset(-20% 100% -20% 0); transition: clip-path .9s var(--ease-out) .1s; }
.js .seccion__titulo[data-revelar].visto h2, .js .dos > [data-revelar].visto h2 { clip-path: inset(-20% -8% -20% 0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-revelar] { transform: none; transition: opacity .4s ease; }
  .js .seccion__titulo[data-revelar] h2, .js .dos > [data-revelar] h2 { clip-path: none; transition: none; }
}

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(56px, 8vw, 104px); }
.seccion--papel { background: var(--papel); }
.seccion--azul { background: var(--azul); color: var(--blanco); }
.seccion--noche { background: var(--azul-noche); color: var(--blanco); }
.seccion__titulo { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
/* Debajo de cada título, la tira de control de color de la imprenta */
.seccion__titulo h2::after, .dos h2::after {
  content: ""; display: block; width: 72px; height: 6px; margin-top: 16px;
  background: linear-gradient(90deg, var(--cian) 0 25%, var(--magenta) 25% 50%, var(--amarillo) 50% 75%, var(--k, var(--tinta)) 75%);
}
.seccion--azul, .seccion--noche { --k: var(--blanco); }
.seccion__titulo p { max-width: 60ch; color: var(--acero); }
.seccion--azul .seccion__titulo p, .seccion--noche .seccion__titulo p { color: rgba(255, 255, 255, .78); }
.seccion__titulo--fila { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.seccion__titulo--fila > div { display: grid; gap: 14px; }

/* ---------- Buscador y categorías ---------- */
.buscador { position: relative; display: block; width: min(100%, 360px); }
.buscador svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--acero); pointer-events: none; }
.buscador input {
  width: 100%; min-height: 50px; padding: 0 16px 0 46px;
  border: 2px solid var(--linea); border-radius: 999px; background: var(--blanco);
  font-size: 1rem; transition: border-color .15s ease;
}
.buscador input:focus { outline: none; border-color: var(--azul); }
.buscador input::-webkit-search-cancel-button { cursor: pointer; }

.pestanas { display: flex; gap: 8px; padding: 2px 2px 4px; margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.pestana {
  flex: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--linea); border-radius: 999px;
  background: var(--blanco); color: var(--tinta); font-weight: 600; font-size: .97rem;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .16s var(--ease-out);
}
.pestana small { font-weight: 500; font-size: .82rem; opacity: .6; margin-left: 4px; }
.pestana:hover { border-color: var(--azul); }
.pestana:active { transform: scale(.97); }
.pestana[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: var(--blanco); }

/* ---------- Grilla de productos ---------- */
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.tarjeta { display: flex; flex-direction: column; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--blanco); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.tarjeta__abrir { display: grid; gap: 6px; padding: 0 0 14px; border: 0; background: none; text-align: left; flex: 1; align-content: start; }
.tarjeta__abrir > :not(.tarjeta__foto) { padding-inline: 16px; }
.tarjeta__foto { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--papel); margin-bottom: 8px; overflow: hidden; }
.tarjeta__foto img, .ficha__foto img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta__foto img { transition: transform .35s var(--ease-out); }
/* Rótulo sobre la foto cuando varios productos comparten la misma */
.etiqueta {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px 6px 10px;
  background: var(--azul); color: var(--blanco); font: italic 850 1.05rem/1 var(--titulo); text-transform: uppercase; letter-spacing: .01em;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  box-shadow: 0 6px 16px rgba(14, 26, 48, .25);
}
.tarjeta__marca { font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--azul); }
.tarjeta__nombre { font: 800 1.22rem/1.12 var(--titulo); font-stretch: 100%; letter-spacing: -.01em; }
.tarjeta__datos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tarjeta__datos span { padding: 2px 9px; border-radius: 999px; background: var(--papel); color: var(--acero); font-size: .82rem; font-weight: 500; }
.tarjeta__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-top: 1px solid var(--linea); }
.tarjeta__precio { font-size: .95rem; font-weight: 600; color: var(--acero); }
.tarjeta__precio b { color: var(--tinta); font-size: 1.05rem; }
.tarjeta__precio small { font-weight: 500; }
.tarjeta__sumar {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px 0 12px;
  border: 0; border-radius: 999px; background: var(--azul); color: var(--blanco); font-weight: 700; font-size: .92rem;
  transition: background-color .15s ease, transform .16s var(--ease-out);
}
.tarjeta__sumar svg { width: 18px; height: 18px; }
.tarjeta__sumar:hover { background: var(--azul-vivo); }
.tarjeta__sumar:active { transform: scale(.96); }
.tarjeta__sumar.hecho { background: var(--whatsapp); }
@media (hover: hover) and (pointer: fine) {
  .tarjeta:hover { border-color: #b9c5da; box-shadow: 0 14px 34px rgba(14, 26, 48, .09); }
  .tarjeta__abrir:hover .tarjeta__foto img { transform: scale(1.04); }
  .tarjeta__abrir:hover .abanico { --abre: 1.4; }
}
.vacio { padding: 28px; border: 1px dashed var(--linea); border-radius: var(--radio); text-align: center; color: var(--acero); }
.vacio a, .pedido a { color: var(--tinta); font-weight: 600; text-decoration-color: var(--celeste); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.pedido { margin-top: 30px; color: var(--acero); }

/* Abanico de muestras de vinilo, dibujado con CSS */
.abanico { --abre: 1; position: absolute; inset: 0; display: block; background: radial-gradient(circle at 50% 115%, #e3e9f3, var(--papel) 70%); }
.abanico i {
  position: absolute; left: 41%; bottom: -8%; width: 18%; height: 90%;
  border-radius: 7px 7px 3px 3px; background: var(--c);
  transform-origin: 50% 90%; transform: rotate(calc(var(--a) * var(--abre)));
  box-shadow: 0 3px 8px rgba(14, 26, 48, .18), inset 0 0 0 1px rgba(14, 26, 48, .08);
  transition: transform .5s var(--ease-out);
}
.abanico i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 16%; height: 13%; background: rgba(255, 255, 255, .94); box-shadow: 0 -1px 0 rgba(14, 26, 48, .06); }
.abanico--brillo i::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, .55) 44%, transparent 56%);
}
.abanico--mate i { filter: saturate(.85); }
.abanico--metal i {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--c) 62%, #000) 0%, color-mix(in srgb, var(--c) 35%, #fff) 42%,
    var(--c) 58%, color-mix(in srgb, var(--c) 70%, #000) 100%);
}
.abanico--fluor i { box-shadow: 0 0 16px color-mix(in srgb, var(--c) 65%, transparent), inset 0 0 0 1px rgba(14, 26, 48, .06); }
.abanico i.impreso-cmy { background: linear-gradient(180deg, var(--cian), var(--magenta) 48%, var(--amarillo) 82%); }
.ficha__foto .abanico { position: relative; aspect-ratio: 4 / 3; }

/* ---------- Servicios ---------- */
.servicios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.servicio { display: flex; flex-direction: column; border-radius: var(--radio); background: var(--blanco); overflow: hidden; }
.servicio > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.servicio__cuerpo { display: grid; gap: 12px; align-content: start; padding: 20px 20px 24px; flex: 1; }
.servicio h3 { font-size: 1.45rem; font-stretch: 105%; }
.servicio p { color: var(--acero); }
.servicio--ancho { grid-column: 1 / -1; flex-direction: row; }
.servicio--ancho > img { width: 40%; height: auto; aspect-ratio: auto; align-self: stretch; }
.servicio--ancho .servicio__cuerpo { padding: clamp(22px, 3vw, 40px); gap: 16px; }
.servicio--ancho h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.servicio--ancho .boton { justify-self: start; }
.medidas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.medidas dl { padding: 14px 16px; border-radius: 10px; background: var(--papel); }
.medidas dt { font: italic 850 1.15rem var(--titulo); text-transform: uppercase; color: var(--azul); margin-bottom: 6px; }
.medidas dd { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-weight: 600; font-size: .97rem; }
.medidas dd span { font-weight: 400; color: var(--acero); }
.servicio__nota { font-size: .92rem; }
.tambien { margin-top: 26px; color: var(--acero); font-weight: 500; }
.tambien span { font-weight: 700; color: var(--tinta); margin-right: 6px; }

/* ---------- Bloques de dos columnas ---------- */
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.dos h2 { margin-bottom: 20px; }
.dos__bajada { max-width: 46ch; font-size: 1.12rem; color: rgba(255, 255, 255, .85); }

/* Cartelería */
.pasos { counter-reset: paso; display: grid; gap: 14px; margin-top: 30px; }
.pasos li { counter-increment: paso; position: relative; padding: 16px 18px 16px 62px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); }
.pasos li::before {
  content: counter(paso); position: absolute; left: 16px; top: 14px;
  display: grid; place-items: center; width: 32px; height: 32px; background: var(--celeste); color: var(--azul-noche);
  font: italic 900 1.1rem var(--titulo);
  clip-path: polygon(0 0, calc(100% - 7px) 0, calc(100% - 7px) 7px, 100% 7px, 100% 100%, 0 100%);
}
.pasos b { color: var(--blanco); }
.letra-chica { margin-top: 18px; font-size: .88rem; color: rgba(255, 255, 255, .62); max-width: 52ch; }

.cotizador {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: clamp(20px, 3vw, 32px); border-radius: 18px; background: var(--blanco); color: var(--tinta);
  box-shadow: 0 30px 60px rgba(2, 10, 30, .3);
}
.cotizador .boton { grid-column: 1 / -1; width: 100%; --b-fondo: var(--whatsapp); --b-texto: var(--blanco); }
.cotizador .boton:hover { --b-fondo: #126836; }
.cotizador__aviso { grid-column: 1 / -1; display: flex; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--papel); color: var(--acero); font-size: .92rem; }
.cotizador__aviso .ico { color: var(--azul); margin-top: .15em; }
.cotizador__error, .carrito__error { grid-column: 1 / -1; color: #b3261e; font-weight: 600; font-size: .95rem; }

/* Campos de formulario */
.campo { grid-column: 1 / -1; display: grid; gap: 6px; }
.campo--mitad { grid-column: span 1; }
.campo label, .campo legend { font-weight: 600; font-size: .95rem; }
.campo legend { padding: 0; margin-bottom: 6px; }
.campo small { color: var(--acero); font-weight: 400; }
.campo input, .campo textarea, .campo select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--linea); border-radius: 10px; background: var(--blanco);
  font-size: 1rem; transition: border-color .15s ease;
}
.campo textarea { resize: vertical; min-height: 84px; }
.campo select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%230c4294' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--azul); }
.campo input[aria-invalid="true"] { border-color: #b3261e; }
.medida { display: flex; align-items: center; gap: 10px; }
.medida span { color: var(--acero); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 2px solid var(--linea); border-radius: 999px;
  font-weight: 600; font-size: .95rem; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chips input:checked + span { background: var(--azul); border-color: var(--azul); color: var(--blanco); }
.chips input:focus-visible + span { outline: 3px solid var(--azul-vivo); outline-offset: 2px; }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.videos__texto { margin-bottom: 0; }
.videos__texto .acciones { margin-top: 8px; }
.reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.reel__marco { position: relative; aspect-ratio: 9 / 16; background: #0a1430; overflow: hidden; cursor: pointer; border-radius: var(--radio); }
.reel__marco video { width: 100%; height: 100%; object-fit: cover; }
.reel__pausa {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, .45));
  opacity: 0; transition: opacity .2s ease;
}
.reel__pausa svg { width: 56px; height: 56px; fill: var(--blanco); filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5)); }
.reel--pausado .reel__pausa { opacity: 1; }
.reel__sonido {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: var(--blanco);
  transition: background-color .15s ease;
}
.reel__sonido svg { width: 22px; height: 22px; }
.reel__sonido[aria-pressed="true"] { background: var(--azul-vivo); }
.reel h3 { margin-top: 16px; font-size: 1.25rem; font-stretch: 105%; }
.reel p { margin-top: 6px; color: rgba(255, 255, 255, .72); font-size: .97rem; }

/* ---------- Marcas ---------- */
.marcas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.marcas a { display: grid; gap: 4px; text-decoration: none; }
.marcas img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radio); border: 1px solid var(--linea); margin-bottom: 10px; transition: transform .25s var(--ease-out), box-shadow .25s ease; }
.marcas b { font: italic 850 1.05rem var(--titulo); text-transform: uppercase; }
.marcas span { color: var(--acero); font-size: .92rem; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) {
  .marcas a:hover img { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(14, 26, 48, .12); }
}

/* ---------- Ventajas ---------- */
.ventajas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.ventajas li { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--radio); background: var(--blanco); }
.ventajas svg { width: 34px; height: 34px; color: var(--azul); margin-bottom: 6px; }
.ventajas b { font: italic 850 1.2rem/1.1 var(--titulo); text-transform: uppercase; }
.ventajas span { color: var(--acero); }

/* ---------- Contacto ---------- */
.dos--contacto h2::after { --k: var(--tinta); }
.estado { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 8px 14px; border-radius: 999px; background: var(--papel); font-weight: 600; font-size: .95rem; }
.estado::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa3b5; }
.estado--abierto { background: #e6f4ec; color: #0f5e31; }
.estado--abierto::before { background: var(--whatsapp); box-shadow: 0 0 0 4px rgba(23, 129, 67, .18); }
.datos { display: grid; border-top: 3px solid var(--azul); }
.datos > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.datos dt { color: var(--acero); }
.datos dd { font-weight: 600; font-size: 1.08rem; }
.datos a { text-decoration-color: var(--celeste); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.mapa { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radio); background: var(--papel); }

/* ---------- Pie ---------- */
.pie { background: var(--azul-noche); color: rgba(255, 255, 255, .72); padding-block: 44px 110px; font-size: .95rem; }
.pie__fila { display: grid; gap: 12px; justify-items: start; }
.pie img { height: 30px; width: auto; margin-bottom: 8px; }
.pie a { color: var(--blanco); text-underline-offset: 4px; }
.pie__legal { color: rgba(255, 255, 255, .5); font-size: .85rem; max-width: 80ch; }

/* ---------- WhatsApp flotante y barra del pedido ---------- */
.flotante {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 9px; min-height: 54px; padding: 0 22px 0 16px;
  background: var(--whatsapp); color: var(--blanco); border-radius: 999px; text-decoration: none; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  transition: background-color .15s ease, transform .3s var(--ease-out);
}
.flotante svg { width: 26px; height: 26px; fill: currentColor; }
.flotante:hover { background: #126836; }
.barra-pedido { display: none; }

/* ---------- Ficha de producto ---------- */
.ficha { width: min(980px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; background: var(--blanco); color: var(--tinta); overflow: auto; overscroll-behavior: contain; }
.ficha::backdrop { background: rgba(5, 24, 60, .7); }
.ficha[open] { animation: ficha-entra .25s var(--ease-out); }
.ficha[open]::backdrop { animation: aparece .25s var(--ease-out); }
@keyframes ficha-entra { from { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) { .ficha[open] { animation: aparece .2s ease; } }
.ficha__cerrar, .carrito__cerrar {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--papel); color: var(--tinta); transition: background-color .15s ease;
}
.ficha__cerrar { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .92); }
.ficha__cerrar svg, .carrito__cerrar svg { width: 22px; height: 22px; }
.ficha__cerrar:hover, .carrito__cerrar:hover { background: var(--linea); }
.ficha__cuerpo { display: grid; grid-template-columns: 1fr 1.05fr; }
.ficha__foto { position: relative; background: var(--papel); }
.ficha__foto > img { aspect-ratio: 4 / 3; height: auto; position: sticky; top: 0; }
.ficha__info { display: grid; gap: 14px; align-content: start; padding: 40px 28px 28px; }
.ficha__marca { font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--azul); }
.ficha__info h3 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-stretch: 104%; margin-right: 40px; }
.ficha__info > p { color: var(--acero); }
.ficha__tecnica { border-top: 3px solid var(--azul); }
.ficha__tecnica > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--linea); font-size: .95rem; }
.ficha__tecnica dt { color: var(--acero); }
.ficha__tecnica dd { font-weight: 600; text-align: right; }
.ficha__opciones { display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: var(--papel); }
.ficha__compra { display: flex; gap: 12px; align-items: stretch; }
.ficha__compra .boton { flex: 1; padding-inline: 18px 22px; white-space: nowrap; }
.ficha__nota { padding: 12px 14px; border-left: 4px solid var(--celeste); background: #f1f9f9; color: var(--acero); font-size: .92rem; }
.ficha__consulta { justify-self: start; font-size: .95rem; font-weight: 600; color: var(--whatsapp); text-underline-offset: 4px; display: inline-flex; align-items: center; }
.cantidad { display: inline-flex; align-items: center; border: 2px solid var(--linea); border-radius: 999px; background: var(--blanco); }
.cantidad button { display: grid; place-items: center; width: 44px; height: 46px; border: 0; background: none; color: var(--azul); }
.cantidad button svg { width: 18px; height: 18px; }
.cantidad button:disabled { color: #b8c0cf; cursor: default; }
.cantidad output { min-width: 28px; text-align: center; font-weight: 700; }
.cantidad--chica button { width: 34px; height: 34px; }
.cantidad--chica button svg { width: 15px; height: 15px; }

/* ---------- Cajón del pedido ---------- */
.carrito {
  margin: 0 0 0 auto; width: min(440px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100%;
  padding: 0; border: 0; background: var(--blanco); color: var(--tinta);
  overflow-y: auto; overscroll-behavior: contain;
}
.carrito[open] { display: flex; flex-direction: column; animation: cajon-entra .34s var(--ease-cajon); }
.carrito::backdrop { background: rgba(5, 24, 60, .55); }
.carrito[open]::backdrop { animation: aparece .3s ease; }
.carrito.saliendo { transform: translateX(100%); transition: transform .24s cubic-bezier(.4, 0, 1, 1); }
.carrito.saliendo::backdrop { opacity: 0; transition: opacity .24s ease; }
@keyframes cajon-entra { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .carrito[open] { animation: aparece .2s ease; }
  .carrito.saliendo { transform: none; opacity: 0; transition: opacity .15s ease; }
}
.carrito__cabeza { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--linea); background: var(--blanco); }
.carrito__cabeza h2 { font-size: 1.6rem; margin-right: auto; }
.carrito__vaciar { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--acero); font-size: .9rem; font-weight: 600; }
.carrito__vaciar:hover { background: var(--papel); color: #b3261e; }
.carrito__lista { flex: 1 0 auto; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.renglon { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--linea); border-radius: 12px; animation: renglon .3s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes renglon { from { opacity: 0; transform: translateY(8px); } }
.renglon__foto { position: relative; width: 60px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--papel); }
.renglon__foto img { width: 100%; height: 100%; object-fit: cover; }
.renglon__foto .abanico i { box-shadow: none; }
.renglon__nombre { font-weight: 700; line-height: 1.2; }
.renglon__opciones { font-size: .85rem; color: var(--acero); line-height: 1.35; margin-top: 2px; }
.renglon__acciones { display: grid; justify-items: end; gap: 6px; }
.renglon__quitar { border: 0; background: none; padding: 2px 4px; color: var(--acero); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
.renglon__quitar:hover { color: #b3261e; }
.carrito__vacio { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; text-align: center; color: var(--acero); }
.carrito__vacio svg { width: 44px; height: 44px; color: var(--linea); }
.carrito__vacio b { color: var(--tinta); font-size: 1.1rem; }
.carrito__pie { display: grid; gap: 12px; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--papel); }
.carrito__pie .boton--wa { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); filter: drop-shadow(0 8px 16px rgba(14, 26, 48, .22)); }
.carrito__pie .campo input, .carrito__pie .campo textarea { min-height: 44px; }
.carrito__pie .campo textarea { min-height: 64px; }
.carrito__total { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.carrito__total span { color: var(--acero); font-weight: 500; white-space: nowrap; }
.carrito__aviso { padding: 10px 12px; border-radius: 10px; background: #fff6e0; color: #7a5300; font-size: .9rem; }
.carrito[data-vacio] .carrito__pie { display: none; }

/* Aviso flotante y vuelo al pedido */
.aviso {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60;
  padding: 12px 18px; border-radius: 999px; background: var(--tinta); color: var(--blanco); font-weight: 600; font-size: .95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .2s ease;
}
.aviso--ver { transform: translate(-50%, 0); opacity: 1; }
.vuelo { position: fixed; z-index: 70; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; pointer-events: none; box-shadow: 0 12px 28px rgba(0, 0, 0, .3); background: var(--papel); }
.vuelo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pantallas medianas y chicas ---------- */
@media (max-width: 1080px) {
  .marcas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cabecera__menu {
    grid-column: 4; grid-row: 1;
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: none; color: var(--blanco); font-weight: 500;
  }
  .cabecera__carrito.cabecera__carrito--movil { display: inline-flex; grid-column: 3; grid-row: 1; padding: 0 6px 0 12px; }
  .cabecera__carrito--movil .ico { margin-right: 0; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--azul-hondo); padding: 4px var(--margen) 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .nav--abierto { display: flex; }
  .nav__grupo { display: contents; }
  .nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav .cabecera__carrito { display: none; }
  .cabecera__fila { grid-template-columns: auto 1fr auto auto; column-gap: 10px; }
  .cabecera--centrada .cabecera__fila { grid-template-columns: 1fr auto 1fr; column-gap: 10px; }
  .cabecera--centrada .cabecera__carrito--movil { grid-column: 1; justify-self: start; }
  .cabecera--centrada .cabecera__menu { grid-column: 3; justify-self: end; }

  .portada__escena { grid-template-columns: repeat(3, auto); justify-content: center; gap: 14px 22px; }
  .portada__centro { grid-column: 1 / -1; grid-row: 1; width: min(100%, 520px); justify-self: center; padding-inline: 34px; }
  .portada__lado { display: contents; }
  .portada__marca { align-self: center; }
  .portada__marca img { width: clamp(54px, 15vw, 72px); border-radius: 12px; }
  .impreso__marcas i { width: 16px; height: 16px; }
  .impreso__marcas i:nth-child(odd) { left: -22px; }
  .impreso__marcas i:nth-child(even) { right: -22px; }
  .impreso__marcas i:nth-child(-n+2) { top: -18px; }
  .impreso__marcas i:nth-child(n+3) { bottom: -18px; }

  .videos { grid-template-columns: 1fr; }
  .reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(70%, 300px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--margen)); padding-inline: var(--margen); scroll-padding-inline: var(--margen); }
  .reel { scroll-snap-align: start; }

  .dos, .ventajas { grid-template-columns: 1fr; }
  .servicio--ancho { flex-direction: column; }
  .servicio--ancho > img { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
  .mapa { min-height: 320px; }
  .ficha__cuerpo { grid-template-columns: 1fr; }
  .ficha__foto > img { position: static; }
  .ficha__info { padding: 22px 18px 24px; }

  /* Barra fija con el pedido, solo cuando hay productos */
  .barra-pedido:not([hidden]) {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45;
    display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 8px 8px 10px;
    border: 0; border-radius: 18px; background: var(--azul-noche); color: var(--blanco); text-align: left;
    box-shadow: 0 12px 32px rgba(2, 10, 30, .35);
    animation: barra-entra .4s var(--ease-out);
  }
  .barra-pedido__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--celeste); color: var(--azul-noche); font-weight: 800; font-size: 1.1rem; }
  .barra-pedido__txt { flex: 1; display: grid; line-height: 1.2; }
  .barra-pedido__txt small { color: rgba(255, 255, 255, .7); font-size: .85rem; }
  .barra-pedido__ir { padding: 12px 16px; border-radius: 12px; background: var(--whatsapp); font-weight: 700; font-size: .95rem; }
  .con-pedido .flotante { transform: translateY(-78px); }
  .con-pedido .aviso { bottom: calc(max(24px, env(safe-area-inset-bottom)) + 76px); }
  .con-pedido .pie { padding-bottom: 170px; }
}
@keyframes barra-entra { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 560px) {
  .flotante span { display: none; }
  .flotante { padding: 0; width: 56px; justify-content: center; }
  .cabecera__logo img { height: 24px; }
  .marcas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .servicios, .medidas { grid-template-columns: 1fr; }
  .datos > div { grid-template-columns: 96px 1fr; }
  .cotizador { grid-template-columns: 1fr; }
  .campo--mitad { grid-column: 1 / -1; }
  .buscador { width: 100%; }
  .ficha { width: 100%; max-height: calc(100dvh - 12px); margin-bottom: 0; border-radius: 18px 18px 0 0; }
  .ficha__compra .boton .ico { display: none; }
}
