/* =====================================================================
   WANVÍ PET SHOP · Sistema visual
   1. Tokens        6. Hero          11. Nosotros / CTA
   2. Base          7. Trust         12. FAQ / Contacto
   3. Tipografía    8. Categorías    13. Footer
   4. Botones       9. Tienda        14. Carrito / Modal / Sheet
   5. Header       10. Pasos/Líneas  15. Flotantes / Motion
   ===================================================================== */

/* ============ 1. TOKENS ============ */
:root {
  /* marca */
  --azul:        oklch(0.68 0.132 234);
  --azul-hondo:  oklch(0.52 0.135 240);
  --magenta:     oklch(0.47 0.187 330);
  --violeta:     oklch(0.55 0.240 293);
  --violeta-2:   oklch(0.64 0.205 295);
  --violeta-luz: oklch(0.80 0.095 295);
  --rosa:        oklch(0.565 0.222 6);
  --rosa-luz:    oklch(0.86 0.075 5);
  --turquesa:    oklch(0.76 0.110 186);
  --amarillo:    oklch(0.87 0.135 92);
  --verde-wa:    oklch(0.50 0.140 155);
  --verde-wa-2:  oklch(0.58 0.150 155);

  /* superficies */
  --fondo:       oklch(0.975 0.012 300);
  --fondo-2:     oklch(0.945 0.028 300);
  --fondo-3:     oklch(0.905 0.045 300);
  --papel:       oklch(1 0 0);
  --tinta:       oklch(0.245 0.068 274);
  --tinta-2:     oklch(0.455 0.045 280);
  --tinta-3:     oklch(0.545 0.040 285);
  --borde:       oklch(0.895 0.028 295);
  --borde-2:     oklch(0.835 0.045 295);

  /* radios */
  --r-xs: 8px;  --r-sm: 12px; --r-md: 18px;
  --r-lg: 26px; --r-xl: 34px; --r-full: 999px;

  /* sombras */
  --s-1: 0 1px 2px oklch(0.35 0.09 290 / 0.06), 0 2px 6px oklch(0.35 0.09 290 / 0.05);
  --s-2: 0 2px 6px oklch(0.35 0.09 290 / 0.07), 0 10px 24px oklch(0.35 0.09 290 / 0.08);
  --s-3: 0 8px 20px oklch(0.35 0.09 290 / 0.10), 0 24px 56px oklch(0.35 0.09 290 / 0.13);
  --s-foco: 0 0 0 3px oklch(1 0 0), 0 0 0 6px var(--violeta);

  /* medidas */
  --ancho: 1240px;
  --pad-x: clamp(1rem, 4vw, 2.5rem);
  --header-h: 60px;

  /* motion */
  --t-rapido: 140ms;
  --t-medio: 220ms;
  --t-lento: 300ms;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* z semántico */
  --z-deco: 0;
  --z-contenido: 1;
  --z-sticky: 40;
  --z-header: 50;
  --z-flotante: 60;
  --z-overlay: 70;
  --z-panel: 80;
  --z-toast: 90;
  --z-loader: 100;
}

@media (min-width: 900px) { :root { --header-h: 74px; } }

/* ============ 2. BASE ============ */
*, *::before, *::after { box-sizing: border-box; }

/* gana sobre cualquier display de componente */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.sin-scroll { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--s-foco);
  border-radius: var(--r-sm);
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

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

.saltar {
  position: fixed; top: 8px; left: 8px;
  z-index: var(--z-toast);
  transform: translateY(-160%);
  background: var(--violeta); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: var(--r-sm);
  font-weight: 700;
  transition: transform var(--t-medio) var(--ease-out);
}
.saltar:focus { transform: translateY(0); }

section { position: relative; }

.seccion { padding-block: clamp(2.4rem, 6vw, 4.6rem); }
.seccion--ceñida { padding-block: clamp(1.9rem, 4.5vw, 3.4rem); }

/* ============ 3. TIPOGRAFÍA ============ */
h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(1.78rem, 1.15rem + 3.1vw, 4.05rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.028em;
}

.t-seccion { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.5rem); }
.t-card { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem); line-height: 1.22; }

.entradilla {
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
  color: var(--tinta-2);
  margin: 0.55rem 0 0;
  max-width: 46ch;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--magenta);
}

.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rosa);
}

.cabecera-seccion {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: clamp(1.1rem, 2.5vw, 1.9rem);
}
.cabecera-seccion > div { min-width: 0; }

/* ============ 4. BOTONES ============ */
.btn {
  --btn-bg: var(--violeta);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.72rem 1.35rem;
  border: 0; border-radius: var(--r-full);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: -0.01em;
  box-shadow: var(--s-1);
  transition: transform var(--t-rapido) var(--ease-out),
              box-shadow var(--t-medio) var(--ease-out),
              background-color var(--t-medio) var(--ease-out);
}
.btn:hover { box-shadow: var(--s-2); transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.btn--fantasma {
  --btn-bg: var(--papel);
  --btn-fg: var(--tinta);
  box-shadow: inset 0 0 0 1.5px var(--borde-2), var(--s-1);
}
.btn--wa { --btn-bg: var(--verde-wa); }
.btn--wa:hover { --btn-bg: var(--verde-wa-2); }
.btn--rosa { --btn-bg: var(--rosa); }
.btn--bloque { width: 100%; }
.btn--sm { min-height: 40px; padding: 0.45rem 0.95rem; font-size: 0.85rem; }
.btn--lg { min-height: 54px; padding: 0.9rem 1.7rem; font-size: 1rem; }

.icono-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--tinta);
  transition: transform var(--t-rapido) var(--ease-out),
              background-color var(--t-medio) var(--ease-out);
}
.icono-btn:hover { background: var(--fondo-2); }
.icono-btn:active { transform: scale(0.92); }

/* ============ 5. HEADER ============ */
.barra-superior {
  display: none;
  background: linear-gradient(90deg, var(--violeta), var(--magenta));
  color: #fff;
  font-size: 0.78rem; font-weight: 600;
}
.barra-superior .contenedor {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 34px;
}
.barra-superior ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.barra-superior li { display: flex; align-items: center; gap: 0.4rem; }
.barra-superior a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .barra-superior { display: block; } }

.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: oklch(1 0 0 / 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-medio) var(--ease-out),
              box-shadow var(--t-medio) var(--ease-out);
}
.header[data-scrolled='true'] { border-bottom-color: var(--borde); box-shadow: var(--s-1); }

.header .contenedor {
  display: flex; align-items: center; gap: 0.6rem;
  min-height: var(--header-h);
}

.logo { display: flex; align-items: center; margin-right: auto; }
.logo img { height: 34px; width: auto; }
@media (min-width: 900px) { .logo img { height: 46px; } }

.nav { display: none; }
@media (min-width: 1000px) {
  .nav { display: flex; gap: 0.15rem; }
  .nav a {
    position: relative;
    padding: 0.5rem 0.85rem; border-radius: var(--r-full);
    font-weight: 600; font-size: 0.92rem; color: var(--tinta-2);
    transition: color var(--t-medio) var(--ease-out),
                background-color var(--t-medio) var(--ease-out);
  }
  .nav a:hover, .nav a[aria-current='true'] { color: var(--violeta); background: var(--fondo-2); }
}

.acciones-header { display: flex; align-items: center; gap: 0.2rem; }

.chip-carrito {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 44px; padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border: 0; border-radius: var(--r-full);
  background: var(--tinta); color: #fff;
  font-weight: 700; font-size: 0.88rem;
  transition: transform var(--t-rapido) var(--ease-out);
}
.chip-carrito:active { transform: scale(0.95); }
.chip-carrito .cuenta {
  display: grid; place-items: center;
  min-width: 22px; height: 22px; padding-inline: 6px;
  border-radius: var(--r-full);
  background: var(--rosa); color: #fff;
  font-size: 0.75rem; font-weight: 800;
}
.chip-carrito.late { animation: late 420ms var(--spring); }
@keyframes late { 40% { transform: scale(1.12); } }

.hamburguesa { display: inline-grid; }
@media (min-width: 1000px) { .hamburguesa { display: none; } }

/* menú móvil */
.menu-movil {
  position: fixed; inset: 0; z-index: var(--z-panel);
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--fondo);
  padding: 1rem var(--pad-x) calc(1.2rem + env(safe-area-inset-bottom));
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--t-lento) var(--ease), visibility 0s linear var(--t-lento);
}
.menu-movil[data-abierto='true'] {
  transform: translateY(0); visibility: visible;
  transition: transform var(--t-lento) var(--ease), visibility 0s;
}
.menu-movil__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.menu-movil nav { display: grid; gap: 0.15rem; align-content: start; margin-top: 1.2rem; }
.menu-movil nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.95rem 0.4rem;
  font-family: 'Fredoka', sans-serif; font-size: 1.45rem; font-weight: 500;
  border-bottom: 1px solid var(--borde);
  opacity: 0; transform: translateY(14px);
}
.menu-movil[data-abierto='true'] nav a {
  animation: entra-menu 380ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 45ms + 80ms);
}
@keyframes entra-menu { to { opacity: 1; transform: translateY(0); } }
.menu-movil nav a span { color: var(--violeta-luz); }
.menu-movil__atajos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; margin-top: 1.1rem; }
.menu-movil__atajos button {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--borde); border-radius: var(--r-sm);
  background: var(--papel); font-size: 0.8rem; font-weight: 700; text-align: left;
  transition: transform var(--t-rapido) var(--ease-out), border-color var(--t-medio) var(--ease-out);
}
.menu-movil__atajos button:active { transform: scale(0.97); }
.menu-movil__atajos img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.menu-movil nav { align-content: start; }
.menu-movil__pie { display: grid; gap: 0.6rem; }

/* ============ 6. HERO ============ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--fondo-2);
}

.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  z-index: var(--z-deco);
}

.hero__cuerpo {
  position: relative; z-index: var(--z-contenido);
  display: flex; align-items: flex-start;
  min-height: min(76svh, 600px);
  padding-block: clamp(1.1rem, 4vw, 3rem);
}

/* la composición del arte vertical deja libre la franja izquierda */
.hero__texto { width: min(58%, 16rem); }

.hero__marca {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.8rem 0.35rem 0.4rem;
  border-radius: var(--r-full);
  background: oklch(1 0 0 / 0.72);
  backdrop-filter: blur(8px);
  box-shadow: var(--s-1);
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--magenta);
}
.hero__marca img { width: 20px; height: 20px; }

.hero h1 { margin-top: 0.75rem; }
.hero h1 em { font-style: normal; color: var(--violeta); }

.hero__sub {
  margin: 0.6rem 0 0;
  font-size: clamp(0.86rem, 0.8rem + 0.3vw, 1.05rem);
  color: var(--tinta-2);
  font-weight: 500;
  line-height: 1.45;
}

.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: clamp(0.9rem, 2.5vw, 1.5rem);
}
.hero__ctas .btn { flex: 1 1 auto; }

.hero__datos {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin: clamp(0.85rem, 2.5vw, 1.4rem) 0 0; padding: 0;
  font-size: 0.74rem; font-weight: 700; color: var(--tinta-2);
}
.hero__datos li { display: flex; align-items: center; gap: 0.35rem; list-style: none; }
.hero__datos svg { width: 14px; height: 14px; color: var(--violeta); flex: none; }

@media (min-width: 480px) and (max-width: 759px) {
  .hero__texto { width: min(56%, 19rem); }
}

/* Desde 760px entra el arte horizontal. Entre 760 y 1180 el alto sigue su
   relación de aspecto (1672/941) para que el recorte nunca se coma la franja
   libre de la izquierda donde va el texto. */
@media (min-width: 760px) {
  .hero__img { object-position: center; }
  .hero__cuerpo {
    align-items: center;
    min-height: max(420px, calc(100vw / 1.777));
    padding-block: 1.4rem;
  }
  .hero__texto { width: min(46%, 33rem); }
  .hero__sub { max-width: 32ch; }
  .hero__ctas .btn { flex: 0 0 auto; }
  .hero__datos { flex-direction: row; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.8rem; }
  .hero__datos svg { width: 16px; height: 16px; }
}
@media (min-width: 1180px) {
  .hero__img { object-position: right center; }
  .hero__cuerpo { min-height: min(74svh, 600px); padding-block: clamp(1.6rem, 3vw, 3rem); }
  .hero__texto { width: min(43%, 35rem); }
}

/* en pantallas muy anchas el arte se enmarca en vez de estirarse */
@media (min-width: 1500px) {
  .hero {
    max-width: 1560px;
    margin: 1.2rem auto 0;
    border-radius: var(--r-xl);
    box-shadow: var(--s-2);
  }
  .hero__cuerpo { min-height: 630px; }
}

/* ============ 7. TRUST ============ */
.trust {
  background: var(--tinta);
  color: oklch(0.97 0.01 300);
  overflow: clip;
  padding-block: 0.7rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.trust__pista {
  display: flex; gap: 2.2rem; width: max-content;
  animation: desfile 34s linear infinite;
}
.trust__pista > * { flex: none; }
.trust:hover .trust__pista { animation-play-state: paused; }
@keyframes desfile { to { transform: translateX(-50%); } }

.trust li {
  display: flex; align-items: center; gap: 0.5rem;
  list-style: none;
  font-size: 0.82rem; font-weight: 700; white-space: nowrap;
}
.trust ul { display: flex; gap: 2.2rem; margin: 0; padding: 0; }
.trust svg { width: 17px; height: 17px; color: var(--violeta-luz); flex: none; }

/* ============ 8. CATEGORÍAS ============ */
.cats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
@media (min-width: 620px) { .cats__grid { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; } }
@media (min-width: 960px) { .cats__grid { grid-template-columns: repeat(5, 1fr); } }

.cat {
  position: relative; isolation: isolate;
  display: grid; gap: 0.15rem;
  padding: 0.85rem 0.85rem 0.95rem;
  border: 1px solid var(--borde);
  border-radius: var(--r-md);
  background: var(--papel);
  text-align: left;
  overflow: hidden;
  transition: transform var(--t-medio) var(--ease-out),
              box-shadow var(--t-medio) var(--ease-out),
              border-color var(--t-medio) var(--ease-out);
}
.cat::after {
  content: ''; position: absolute; inset: auto -20% -45% auto;
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--cat-tono, var(--fondo-3));
  opacity: 0.55;
  z-index: -1;
  transition: transform var(--t-lento) var(--ease-out);
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--s-2); border-color: var(--borde-2); }
.cat:hover::after { transform: scale(1.28); }
.cat:active { transform: scale(0.98); }

.cat img {
  width: clamp(60px, 20vw, 96px); height: clamp(60px, 20vw, 96px);
  object-fit: contain;
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 8px 14px oklch(0.4 0.1 290 / 0.18));
  transition: transform var(--t-lento) var(--spring);
}
.cat:hover img { transform: translateY(-3px) rotate(-4deg) scale(1.05); }
.cat b { font-family: 'Fredoka', sans-serif; font-size: 0.95rem; font-weight: 600; line-height: 1.15; }
.cat small { font-size: 0.73rem; color: var(--tinta-2); line-height: 1.3; }

/* la quinta tarjeta cierra la fila a lo ancho, en horizontal */
@media (max-width: 619px) {
  .cat:nth-child(5) {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.9rem;
    padding-block: 0.7rem;
  }
  .cat:nth-child(5) img { grid-row: 1 / 3; margin-bottom: 0; width: 62px; height: 62px; }
  .cat:nth-child(5) b { align-self: end; }
  .cat:nth-child(5) small { align-self: start; }
  .cat:nth-child(5)::after { inset: auto -12% -60% auto; }
}

/* ============ 9. TIENDA ============ */
.tienda { background: var(--papel); }

.buscador {
  position: relative;
  display: flex; align-items: center;
  background: var(--fondo);
  border: 1.5px solid var(--borde);
  border-radius: var(--r-full);
  transition: border-color var(--t-medio) var(--ease-out),
              box-shadow var(--t-medio) var(--ease-out);
}
.buscador:focus-within { border-color: var(--violeta); box-shadow: 0 0 0 4px oklch(0.55 0.24 293 / 0.14); }
.buscador > svg { width: 20px; height: 20px; margin-left: 1rem; color: var(--tinta-3); flex: none; }
.buscador input {
  flex: 1; min-width: 0;
  min-height: 50px;
  padding: 0.5rem 0.6rem 0.5rem 0.7rem;
  border: 0; background: none; outline: none;
  font-size: 0.95rem; font-weight: 500;
}
.buscador input::placeholder { color: var(--tinta-3); font-weight: 500; }
.buscador__limpiar { margin-right: 0.35rem; width: 38px; height: 38px; }

.sugerencias {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  z-index: var(--z-sticky);
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--r-md);
  box-shadow: var(--s-3);
  padding: 0.35rem;
  display: none;
}
.sugerencias[data-abierto='true'] { display: block; }
.sugerencias button {
  display: flex; align-items: center; gap: 0.65rem;
  width: 100%; padding: 0.5rem 0.6rem;
  border: 0; border-radius: var(--r-sm); background: none;
  text-align: left; font-size: 0.9rem; font-weight: 600;
}
.sugerencias button:hover, .sugerencias button[data-activo='true'] { background: var(--fondo-2); }
.sugerencias img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.sugerencias small { display: block; font-weight: 500; font-size: 0.75rem; color: var(--tinta-2); }

.filtros-fila {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.8rem;
}
.chips {
  display: flex; gap: 0.4rem;
  overflow-x: auto; scrollbar-width: none;
  padding-block: 2px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  flex: none; scroll-snap-align: start;
  min-height: 40px; padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--borde);
  border-radius: var(--r-full);
  background: var(--papel);
  font-size: 0.85rem; font-weight: 700; color: var(--tinta-2);
  white-space: nowrap;
  transition: transform var(--t-rapido) var(--ease-out),
              border-color var(--t-medio) var(--ease-out),
              background-color var(--t-medio) var(--ease-out),
              color var(--t-medio) var(--ease-out);
}
.chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.chip:hover { border-color: var(--violeta-luz); color: var(--tinta); }
.chip:active { transform: scale(0.95); }
.chip[aria-pressed='true'] {
  background: var(--violeta); border-color: var(--violeta); color: #fff;
}

.btn-filtros {
  position: relative; flex: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 40px; padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--tinta); border-radius: var(--r-full);
  background: var(--papel); font-size: 0.85rem; font-weight: 700;
  transition: transform var(--t-rapido) var(--ease-out);
}
.btn-filtros:active { transform: scale(0.95); }
.btn-filtros .punto {
  display: grid; place-items: center;
  min-width: 20px; height: 20px; padding-inline: 5px;
  border-radius: var(--r-full); background: var(--rosa); color: #fff;
  font-size: 0.7rem; font-weight: 800;
}

.resumen-resultados {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin: 1rem 0 0.9rem;
  font-size: 0.85rem; color: var(--tinta-2); font-weight: 600;
}
.resumen-resultados b { color: var(--tinta); }
.limpiar-todo {
  display: inline-flex; align-items: center;
  min-height: 40px;
  border: 0; background: none; padding: 0.3rem 0;
  font-size: 0.85rem; font-weight: 700; color: var(--violeta);
  text-decoration: underline; text-underline-offset: 3px;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
@media (min-width: 680px) { .grid-productos { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1040px) { .grid-productos { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex; flex-direction: column;
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t-medio) var(--ease-out),
              box-shadow var(--t-medio) var(--ease-out),
              border-color var(--t-medio) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--s-2); border-color: var(--borde-2); }
.card.entra { animation: entra-card 380ms var(--ease-out) backwards; }
@keyframes entra-card { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--papel);
  border: 0; padding: 0;
  display: block; width: 100%;
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 8%;
  transition: transform var(--t-lento) var(--ease-out), opacity var(--t-medio) var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__media.cambiando img { opacity: 0; }

.badge {
  position: absolute; top: 8px; left: 8px;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-full);
  background: var(--rosa); color: #fff;
  font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.badge--suave { background: var(--violeta); }

.lupa {
  position: absolute; right: 8px; bottom: 8px;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: var(--r-full);
  background: oklch(1 0 0 / 0.9);
  box-shadow: var(--s-1);
  color: var(--tinta);
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--t-medio) var(--ease-out), transform var(--t-medio) var(--ease-out);
}
.card:hover .lupa, .card:focus-within .lupa { opacity: 1; transform: translateY(0); }
@media (hover: none) { .lupa { opacity: 1; transform: none; } }

.card__cuerpo {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 0.7rem 0.75rem 0.8rem;
  flex: 1;
}
.card__cat {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--violeta);
}
.card h3 { font-size: 0.93rem; line-height: 1.2; }
@media (min-width: 680px) { .card h3 { font-size: 1rem; } }
.card__resumen {
  font-size: 0.78rem; color: var(--tinta-2); line-height: 1.4;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.swatches {
  display: flex; align-items: center; gap: 0.3rem;
  margin-top: auto; padding-top: 0.5rem;
  min-height: 34px; flex-wrap: nowrap; min-width: 0;
}
.swatch {
  position: relative;
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  border: 2px solid var(--papel);
  box-shadow: 0 0 0 1.5px var(--borde-2);
  background: var(--sw, #ccc);
  padding: 0;
  transition: transform var(--t-rapido) var(--spring), box-shadow var(--t-rapido) var(--ease-out);
}
.swatch::after {
  content: ''; position: absolute; inset: -5px;
}
.swatch:hover { transform: scale(1.15); }
.swatch[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--violeta); }
.swatches--unica i {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: var(--sw); box-shadow: 0 0 0 1.5px var(--borde-2);
}
.swatches--unica small { display: inline !important; color: var(--tinta-2); }
@media (max-width: 679px) { .swatches small { display: none; } }
.swatches small { font-size: 0.68rem; color: var(--tinta-2); font-weight: 700; margin-left: 0.15rem; white-space: nowrap; }

.card__acciones { display: flex; gap: 0.35rem; padding: 0 0.75rem 0.75rem; }
.card__acciones .btn { flex: 1; min-height: 42px; padding-inline: 0.7rem; font-size: 0.83rem; }

.vacio {
  display: grid; justify-items: center; gap: 0.4rem;
  padding: clamp(2rem, 6vw, 3.4rem) 1rem;
  text-align: center;
  border: 1.5px dashed var(--borde-2);
  border-radius: var(--r-lg);
  background: var(--fondo);
}
.vacio img { width: clamp(90px, 26vw, 130px); opacity: 0.95; }
.vacio p { margin: 0; color: var(--tinta-2); font-size: 0.9rem; }

/* ============ 10. PASOS / LÍNEAS ============ */
.pasos { background: linear-gradient(180deg, var(--fondo), var(--fondo-2)); }
.pasos__pista {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 0.7rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.4rem;
  margin-inline: calc(var(--pad-x) * -1);
  padding-inline: var(--pad-x);
}
.pasos__pista::-webkit-scrollbar { display: none; }
@media (min-width: 720px) {
  .pasos__pista {
    grid-auto-flow: row; grid-template-columns: repeat(4, 1fr);
    overflow: visible; margin-inline: 0; padding-inline: 0; gap: 0.9rem;
  }
}
.paso {
  scroll-snap-align: start;
  display: grid; gap: 0.3rem; align-content: start;
  padding: 1rem 1rem 1.1rem;
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--r-md);
}
.paso__n {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: var(--r-full);
  background: var(--violeta); color: #fff;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1rem;
  margin-bottom: 0.3rem;
}
.paso b { font-family: 'Fredoka', sans-serif; font-size: 1.02rem; font-weight: 600; }
.paso p { margin: 0; font-size: 0.83rem; color: var(--tinta-2); line-height: 1.45; }

.lineas__pista {
  display: flex; gap: 0.5rem;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
  margin-inline: calc(var(--pad-x) * -1);
  padding: 0.2rem var(--pad-x) 0.5rem;
}
.lineas__pista::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .lineas__pista { justify-content: center; flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.linea {
  flex: none; scroll-snap-align: start;
  display: grid; justify-items: center; gap: 0.3rem;
  width: 88px; padding: 0.6rem 0.3rem;
  border: 1px solid var(--borde); border-radius: var(--r-md);
  background: var(--papel);
  font-size: 0.75rem; font-weight: 700;
  transition: transform var(--t-medio) var(--ease-out), box-shadow var(--t-medio) var(--ease-out);
}
.linea:hover { transform: translateY(-3px); box-shadow: var(--s-2); }
.linea img { width: 46px; height: 46px; border-radius: 50%; }

/* muestrario: lo que WANVÍ maneja además del catálogo publicado */
.muestrario { margin-top: clamp(1.1rem, 3vw, 1.7rem); }
.muestrario .campo-label { display: block; color: var(--tinta-2); }
.muestrario__pista {
  display: flex; gap: 0.45rem;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
  margin-inline: calc(var(--pad-x) * -1);
  padding: 0.2rem var(--pad-x) 0.4rem;
}
.muestrario__pista::-webkit-scrollbar { display: none; }
@media (min-width: 1040px) {
  .muestrario__pista { justify-content: center; flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.muestra {
  flex: none; scroll-snap-align: start;
  display: grid; justify-items: center; gap: 0.15rem;
  width: 80px; padding: 0.5rem 0.25rem 0.55rem;
  border-radius: var(--r-sm);
  background: oklch(1 0 0 / 0.6);
  border: 1px solid transparent;
  font-size: 0.7rem; font-weight: 700; color: var(--tinta-2);
  transition: transform var(--t-medio) var(--ease-out),
              border-color var(--t-medio) var(--ease-out),
              background-color var(--t-medio) var(--ease-out);
}
.muestra:hover { transform: translateY(-3px); background: var(--papel); border-color: var(--borde); }
.muestra:active { transform: scale(0.97); }
.muestra img { width: 48px; height: 48px; object-fit: contain; }

/* decoración: ilustraciones sueltas del material de marca.
   Las secciones que la contienen recortan para que nunca genere scroll lateral. */
#categorias, #como-comprar, #faq, #cta, #lineas { overflow: clip; }
section:has(> .deco), section:has(.deco) { overflow: clip; }

.deco--blob-a, .deco--blob-b, .deco--blob-c, .deco--blob-d {
  width: clamp(140px, 22vw, 260px);
  opacity: 0.34;
  filter: blur(0.4px);
}
.deco--blob-a { top: -3%; left: -7%; }
.deco--blob-b { bottom: -8%; right: -6%; }
.deco--blob-c { top: -6%; right: 2%; opacity: 0.3; }
.deco--blob-d { bottom: -4%; left: -8%; }

/* Las mascotas solo aparecen cuando el margen fuera del contenedor (1240px)
   da espacio real: (1460 - 1240) / 2 = 110px por lado. */
.deco--golden, .deco--corgi, .deco--beagle, .deco--ave,
.deco--nosotros, .deco--contacto { display: none; }
@media (min-width: 1460px) {
  .deco--golden, .deco--corgi, .deco--beagle, .deco--ave,
  .deco--nosotros, .deco--contacto { display: block; }
  .deco--sticker {
    width: 84px; height: 84px;
    border-radius: 50%;
    background: var(--papel);
    box-shadow: 0 10px 22px oklch(0.4 0.1 290 / 0.22), 0 0 0 5px var(--papel);
    object-fit: cover;
  }
  .deco--golden { top: 16%; right: 18px; }
  .deco--corgi { bottom: 16%; left: 18px; animation-delay: -1.8s; }
  .deco--beagle { top: 20%; left: 18px; animation-delay: -3.2s; }
  .deco--nosotros { top: 15%; right: 18px; animation-delay: -2.4s; }
  .deco--contacto { bottom: 18%; left: 18px; animation-delay: -4.1s; }
  .deco--ave { width: auto; height: 132px; top: 14%; right: 20px;
    filter: drop-shadow(0 14px 22px oklch(0.4 0.1 290 / 0.2)); animation-delay: -0.9s; }
}

/* ============ 11. NOSOTROS / CTA ============ */
.nosotros__grid { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; }
@media (min-width: 900px) { .nosotros__grid { grid-template-columns: 1.05fr 0.95fr; } }

.nosotros__figura {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--s-3);
  background: var(--fondo-2);
}
.nosotros__figura img { width: 100%; }
@media (max-width: 899px) {
  /* en móvil se acerca el encuadre para que los productos se lean */
  .nosotros__figura img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 42% center; }
}

.beneficios { display: grid; gap: 0.55rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
@media (min-width: 380px) { .beneficios { grid-template-columns: 1fr 1fr; } }
.beneficios li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.6rem 0.65rem;
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--r-sm);
  font-size: 0.83rem; font-weight: 600; line-height: 1.35;
}
.beneficios svg { width: 20px; height: 20px; color: var(--violeta); flex: none; margin-top: 1px; }

.cta-final {
  position: relative; isolation: isolate; overflow: clip;
  background: linear-gradient(135deg, var(--violeta) 0%, var(--magenta) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 4.5vw, 3rem);
}
.cta-final::before {
  content: ''; position: absolute; inset: -40% -10% auto auto;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: oklch(1 0 0 / 0.09); z-index: -1;
}
.cta-final__huella {
  position: absolute; z-index: -1;
  width: clamp(120px, 20vw, 210px);
  top: 4%; right: 3%;
  opacity: 0.16;
  transform: rotate(-16deg);
  filter: grayscale(1) brightness(3);
  pointer-events: none;
}
.cta-final__grid { display: grid; gap: 0.9rem; align-items: center; }
@media (min-width: 780px) { .cta-final__grid { grid-template-columns: 1.15fr 0.85fr; } }
.cta-final h2 { color: #fff; }
.cta-final p { color: oklch(0.95 0.02 300); margin: 0.5rem 0 0; font-size: 0.95rem; max-width: 42ch; }
.cta-final .btn--fantasma { --btn-fg: var(--violeta); box-shadow: var(--s-2); }
.cta-final__img { justify-self: center; }
.cta-final__img img { width: min(62%, 300px); filter: drop-shadow(0 20px 34px oklch(0.2 0.1 290 / 0.4)); }

/* ============ 12. FAQ / CONTACTO ============ */
.faq__lista { display: grid; gap: 0.4rem; }
.faq__item {
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--violeta-luz); box-shadow: var(--s-1); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 0.9rem;
  font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 0.97rem;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; flex: none;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--violeta); border-bottom: 2.5px solid var(--violeta);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t-medio) var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq__item .faq__cuerpo { padding: 0 0.9rem 0.9rem; font-size: 0.88rem; color: var(--tinta-2); line-height: 1.55; }
.faq__item[open] .faq__cuerpo { animation: abre-faq 260ms var(--ease-out); }
@keyframes abre-faq { from { opacity: 0; transform: translateY(-6px); } }

.contacto__grid { display: grid; gap: 0.55rem; }
@media (min-width: 720px) { .contacto__grid { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; } }
.contacto__card {
  display: grid; gap: 0.15rem;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--borde); border-radius: var(--r-md);
  background: var(--papel);
}
.contacto__card svg { width: 24px; height: 24px; color: var(--violeta); grid-row: 1 / 2; }
.contacto__card b, .contacto__card span, .contacto__card a { grid-column: 2; }
@media (min-width: 720px) {
  .contacto__card { grid-template-columns: 1fr; padding: 1.1rem 1.1rem 1.2rem; gap: 0.25rem; }
  .contacto__card svg { width: 26px; height: 26px; margin-bottom: 0.3rem; }
  .contacto__card b, .contacto__card span, .contacto__card a { grid-column: auto; }
}
.contacto__card b { font-family: 'Fredoka', sans-serif; font-size: 1.05rem; font-weight: 600; }
.contacto__card span { font-size: 0.85rem; color: var(--tinta-2); }
.contacto__card a { font-weight: 700; color: var(--violeta); }

/* ============ 13. FOOTER ============ */
.footer {
  background: var(--tinta); color: oklch(0.93 0.015 300);
  padding-block: clamp(2rem, 5vw, 3.2rem) 0;
}
.footer__grid { display: grid; gap: 1.1rem 1.4rem; grid-template-columns: 1fr 1fr; }
.footer__grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 820px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 1.6rem; }
  .footer__grid > :first-child { grid-column: auto; }
}
.footer h4 {
  font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--violeta-luz); margin-bottom: 0.7rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer li { min-height: 26px; display: flex; align-items: center; font-size: 0.88rem; color: oklch(0.84 0.02 300); }
.footer a { display: inline-flex; align-items: center; min-height: 26px; font-size: 0.88rem; color: oklch(0.88 0.02 300); }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* el contorno morado del logo se pierde sobre el azul del pie: va en pastilla clara */
.footer__logo {
  display: inline-flex; align-items: center;
  padding: 0.7rem 1rem 0.62rem;
  margin-bottom: 0.9rem;
  border-radius: var(--r-md);
  background: oklch(1 0 0 / 0.94);
  box-shadow: 0 6px 18px oklch(0.12 0.05 274 / 0.35);
}
.footer__logo img { height: 40px; width: auto; margin: 0; }
.footer__desc { font-size: 0.86rem; color: oklch(0.82 0.02 300); max-width: 34ch; line-height: 1.55; }
.footer__redes { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.footer__redes a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-full); background: oklch(1 0 0 / 0.1);
  transition: background-color var(--t-medio) var(--ease-out), transform var(--t-rapido) var(--ease-out);
}
.footer__redes a:hover { background: var(--violeta); transform: translateY(-2px); }
.footer__redes svg { width: 19px; height: 19px; }
.footer__base {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  padding-block: 1.1rem calc(1.1rem + env(safe-area-inset-bottom));
  border-top: 1px solid oklch(1 0 0 / 0.12);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  justify-content: space-between;
  font-size: 0.78rem; color: oklch(0.78 0.02 300);
}

/* ============ 14. CARRITO / MODAL / SHEET ============ */
.velo {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: oklch(0.2 0.05 290 / 0.55);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-lento) var(--ease), visibility 0s linear var(--t-lento);
}
.velo[data-abierto='true'] { opacity: 1; visibility: visible; transition: opacity var(--t-lento) var(--ease), visibility 0s; }

.panel {
  position: fixed; z-index: var(--z-panel);
  background: var(--papel);
  display: flex; flex-direction: column;
  visibility: hidden;
  transition: transform var(--t-lento) var(--ease), visibility 0s linear var(--t-lento);
}
.panel[data-abierto='true'] { visibility: visible; transition: transform var(--t-lento) var(--ease), visibility 0s; }

/* carrito: hoja inferior en móvil, lateral en escritorio */
.carrito {
  inset: auto 0 0 0;
  max-height: 92svh;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transform: translateY(101%);
}
.carrito[data-abierto='true'] { transform: translateY(0); }
@media (min-width: 720px) {
  .carrito {
    inset: 0 0 0 auto; width: min(440px, 100vw);
    max-height: none; border-radius: 0;
    transform: translateX(101%);
  }
  .carrito[data-abierto='true'] { transform: translateX(0); }
}

.panel__top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid var(--borde);
  flex: none;
}
.panel__top h2 { font-size: 1.2rem; }
.panel__top .cuenta-txt { font-size: 0.8rem; color: var(--tinta-2); font-weight: 600; }
.panel__cuerpo { flex: 1; overflow-y: auto; padding: 0.9rem 1rem; overscroll-behavior: contain; }
.panel__pie {
  flex: none; padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--borde);
  background: var(--papel);
  display: grid; gap: 0.5rem;
}
.tirador {
  width: 42px; height: 4px; border-radius: var(--r-full);
  background: var(--borde-2); margin: 8px auto 0;
}
@media (min-width: 720px) { .tirador { display: none; } }

.linea-carrito {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--borde);
  align-items: start;
}
.linea-carrito:last-child { border-bottom: 0; }
.linea-carrito__img {
  width: 72px; height: 72px; border-radius: var(--r-sm);
  background: var(--fondo-2); object-fit: contain; padding: 5px;
}
.linea-carrito b { font-size: 0.88rem; font-family: 'Fredoka', sans-serif; font-weight: 500; line-height: 1.2; display: block; }
.linea-carrito small { font-size: 0.75rem; color: var(--tinta-2); display: flex; align-items: center; gap: 0.35rem; margin-top: 2px; }
.linea-carrito small i { width: 11px; height: 11px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px var(--borde-2); }
.linea-carrito .quitar {
  display: inline-flex; align-items: center; min-height: 32px;
  border: 0; background: none; padding: 0.2rem 0;
  font-size: 0.75rem; font-weight: 700; color: var(--tinta-3);
  text-decoration: underline; text-underline-offset: 2px; margin-top: 0.35rem;
}
.linea-carrito .quitar:hover { color: var(--rosa); }

.contador {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--borde); border-radius: var(--r-full);
  background: var(--papel); overflow: hidden;
}
.contador button {
  width: 34px; height: 34px; border: 0; background: none;
  font-size: 1.15rem; line-height: 1; color: var(--violeta); font-weight: 700;
  display: grid; place-items: center;
  transition: background-color var(--t-rapido) var(--ease-out);
}
.contador button:hover { background: var(--fondo-2); }
.contador button:disabled { color: var(--borde-2); pointer-events: none; }
.contador span { min-width: 26px; text-align: center; font-weight: 800; font-size: 0.9rem; }
.contador--lg button { width: 44px; height: 44px; font-size: 1.35rem; }
.contador--lg span { min-width: 40px; font-size: 1.05rem; }

/* modal de producto */
.modal-prod {
  inset: auto 0 0 0; max-height: 94svh;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transform: translateY(101%);
}
.modal-prod[data-abierto='true'] { transform: translateY(0); }
@media (min-width: 860px) {
  .modal-prod {
    inset: 50% auto auto 50%;
    width: min(920px, 94vw); max-height: 88svh;
    border-radius: var(--r-lg);
    transform: translate(-50%, -46%) scale(0.97);
    opacity: 0;
    transition: transform var(--t-lento) var(--ease-out), opacity var(--t-medio) var(--ease-out), visibility 0s linear var(--t-lento);
  }
  .modal-prod[data-abierto='true'] {
    transform: translate(-50%, -50%) scale(1); opacity: 1;
    transition: transform var(--t-lento) var(--ease-out), opacity var(--t-medio) var(--ease-out), visibility 0s;
  }
}

.prod__grid { display: grid; gap: 1rem; }
@media (min-width: 860px) { .prod__grid { grid-template-columns: 0.95fr 1.05fr; gap: 1.6rem; } }

.prod__visor {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--papel);
  border-radius: var(--r-md);
  overflow: hidden;
}
.prod__visor img {
  width: 100%; height: 100%; object-fit: contain; padding: 7%;
  transition: transform var(--t-lento) var(--ease-out), opacity var(--t-medio) var(--ease-out);
}
@media (hover: hover) and (min-width: 860px) {
  .prod__visor:hover img { transform: scale(1.12); }
}
.prod__visor.cambiando img { opacity: 0; }

.prod__miniaturas { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.prod__miniaturas button {
  width: 58px; height: 58px; flex: none;
  border: 1.5px solid var(--borde); border-radius: var(--r-sm);
  background: var(--fondo-2); padding: 4px; overflow: hidden;
  transition: border-color var(--t-medio) var(--ease-out), transform var(--t-rapido) var(--ease-out);
}
.prod__miniaturas button[aria-pressed='true'] { border-color: var(--violeta); }
.prod__miniaturas button:active { transform: scale(0.94); }
.prod__miniaturas img { width: 100%; height: 100%; object-fit: contain; }

.prod__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem; border-radius: var(--r-full);
  background: var(--fondo-2); border: 1px solid var(--borde);
  font-size: 0.72rem; font-weight: 800; color: var(--tinta-2);
  letter-spacing: 0.02em;
}
.pill--violeta { background: oklch(0.55 0.24 293 / 0.1); border-color: transparent; color: var(--violeta); }

.prod__desc { font-size: 0.9rem; color: var(--tinta-2); line-height: 1.6; margin: 0.6rem 0 0; }
.prod__lista { display: grid; gap: 0.4rem; margin: 0.9rem 0 0; padding: 0; list-style: none; }
.prod__lista li { display: flex; gap: 0.5rem; font-size: 0.84rem; color: var(--tinta-2); }
.prod__lista svg { width: 16px; height: 16px; color: var(--turquesa); flex: none; margin-top: 3px; }

.campo-label { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tinta-3); margin-bottom: 0.45rem; }

.opciones-color { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.opcion-color {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border: 1.5px solid var(--borde); border-radius: var(--r-full);
  background: var(--papel); font-size: 0.8rem; font-weight: 700;
  transition: border-color var(--t-medio) var(--ease-out), transform var(--t-rapido) var(--ease-out);
}
.opcion-color { min-height: 40px; }
.opcion-color i { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.12); }
.opcion-color[aria-pressed='true'] { border-color: var(--violeta); box-shadow: 0 0 0 2px oklch(0.55 0.24 293 / 0.18); }
.opcion-color:active { transform: scale(0.96); }

.prod__cta { display: flex; gap: 0.6rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.prod__cta .btn { flex: 1; min-width: 180px; }

.relacionados { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--borde); }
.relacionados__pista { display: flex; gap: 0.6rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.3rem; }
.relacionados__pista::-webkit-scrollbar { display: none; }
.rel-card {
  flex: none; width: 116px;
  border: 1px solid var(--borde); border-radius: var(--r-sm);
  background: var(--papel); padding: 0; overflow: hidden; text-align: left;
  transition: transform var(--t-medio) var(--ease-out), box-shadow var(--t-medio) var(--ease-out);
}
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--s-2); }
.rel-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--fondo-2); padding: 7px; }
.rel-card b { display: block; font-size: 0.74rem; font-weight: 700; padding: 0.4rem 0.5rem 0.55rem; line-height: 1.25; }

/* hoja de filtros */
.sheet-filtros {
  inset: auto 0 0 0; max-height: 88svh;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transform: translateY(101%);
}
.sheet-filtros[data-abierto='true'] { transform: translateY(0); }
@media (min-width: 720px) {
  .sheet-filtros { inset: 0 auto 0 0; width: min(400px, 100vw); border-radius: 0; max-height: none; transform: translateX(-101%); }
  .sheet-filtros[data-abierto='true'] { transform: translateX(0); }
}
.grupo-filtro { padding-block: 0.9rem; border-bottom: 1px solid var(--borde); }
.grupo-filtro:last-child { border-bottom: 0; }
.grupo-filtro__opciones { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* checkout */
.form-grid { display: grid; gap: 0.7rem; }
@media (min-width: 520px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.campo { display: grid; gap: 0.3rem; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { font-size: 0.78rem; font-weight: 800; color: var(--tinta-2); }
.campo input, .campo textarea {
  width: 100%; min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--borde); border-radius: var(--r-sm);
  background: var(--papel);
  font-size: 0.92rem;
  transition: border-color var(--t-medio) var(--ease-out), box-shadow var(--t-medio) var(--ease-out);
}
.campo textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
.campo input:focus, .campo textarea:focus {
  outline: none; border-color: var(--violeta);
  box-shadow: 0 0 0 3px oklch(0.55 0.24 293 / 0.15);
}
.campo[data-error='true'] input, .campo[data-error='true'] textarea { border-color: var(--rosa); }
.campo .error { font-size: 0.75rem; font-weight: 700; color: var(--rosa); min-height: 0; }
.campo[data-error='true'] .error { animation: sacude 260ms var(--ease-out); }
@keyframes sacude { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.resumen-pedido {
  background: var(--fondo); border: 1px solid var(--borde);
  border-radius: var(--r-md); padding: 0.8rem 0.9rem;
  font-size: 0.84rem;
}
.resumen-pedido ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.resumen-pedido li { display: flex; justify-content: space-between; gap: 0.8rem; color: var(--tinta-2); }
.resumen-pedido li b { color: var(--tinta); font-weight: 700; }
.nota-precio {
  display: flex; gap: 0.5rem; align-items: flex-start;
  margin-top: 0.7rem; padding: 0.65rem 0.75rem;
  background: oklch(0.87 0.135 92 / 0.22); border-radius: var(--r-sm);
  font-size: 0.78rem; line-height: 1.45; color: var(--tinta);
}
.nota-precio svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--magenta); }

/* ============ 15. FLOTANTES / MOTION ============ */
.fab-wa {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: var(--z-flotante);
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: var(--r-full);
  background: var(--verde-wa); color: #fff;
  box-shadow: var(--s-3);
  transition: transform var(--t-medio) var(--spring), bottom var(--t-lento) var(--ease-out);
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa:active { transform: scale(0.94); }
.fab-wa svg { width: 27px; height: 27px; }
body[data-barra-carrito='true'] .fab-wa { bottom: calc(78px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) {
  body[data-barra-carrito='true'] .fab-wa { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

.barra-carrito {
  position: fixed; left: 0; right: 0;
  bottom: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem max(0.9rem, env(safe-area-inset-left)) calc(0.6rem + env(safe-area-inset-bottom));
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--borde);
  transform: translateY(120%);
  transition: transform var(--t-lento) var(--ease);
}
body[data-barra-carrito='true'] .barra-carrito { transform: translateY(0); }
@media (min-width: 720px) { .barra-carrito { display: none; } }
.barra-carrito__txt { flex: 1; min-width: 0; font-size: 0.82rem; font-weight: 700; line-height: 1.25; }
.barra-carrito__txt small { display: block; font-weight: 600; color: var(--tinta-2); font-size: 0.74rem; }
.barra-carrito .btn { flex: none; }

.toast {
  position: fixed; z-index: var(--z-toast);
  left: 50%; bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translate(-50%, 130%);
  display: flex; align-items: center; gap: 0.7rem;
  width: min(360px, calc(100vw - 24px));
  padding: 0.6rem 0.75rem;
  background: var(--tinta); color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--s-3);
  opacity: 0; visibility: hidden;
  transition: transform var(--t-lento) var(--spring),
              opacity var(--t-medio) var(--ease-out),
              visibility 0s linear var(--t-lento);
}
.toast[data-abierto='true'] {
  transform: translate(-50%, 0); opacity: 1; visibility: visible;
  transition: transform var(--t-lento) var(--spring),
              opacity var(--t-medio) var(--ease-out), visibility 0s;
}
@media (min-width: 720px) { .toast { left: auto; right: 20px; bottom: 20px; transform: translateX(130%); }
  .toast[data-abierto='true'] { transform: translateX(0); } }
.toast img { width: 40px; height: 40px; border-radius: var(--r-xs); background: oklch(1 0 0 / 0.12); object-fit: contain; padding: 3px; flex: none; }
.toast div { flex: 1; min-width: 0; }
.toast b { display: block; font-size: 0.84rem; font-weight: 700; }
.toast small { font-size: 0.74rem; color: oklch(0.85 0.02 300); }
.toast .btn { flex: none; min-height: 34px; padding: 0.3rem 0.8rem; font-size: 0.78rem; }

/* ---------- pantalla de carga ----------
   Dura lo que tarde la página y nunca más de 2.2 s: hay un respaldo en CSS
   por si el script no llega a ejecutarse, para que jamás se quede tapando. */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-items: center;
  background:
    radial-gradient(90% 70% at 50% 40%, oklch(0.965 0.032 300) 0%, var(--fondo) 70%);
  animation: respaldo-loader 0.4s var(--ease-out) 2.2s forwards;
}
.loader::before,
.loader::after {
  content: ''; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.55 0.24 293 / 0.12), transparent 68%);
}
.loader::before { width: 62vmin; height: 62vmin; top: -14vmin; left: -12vmin; }
.loader::after {
  width: 48vmin; height: 48vmin; bottom: -12vmin; right: -10vmin;
  background: radial-gradient(circle, oklch(0.60 0.235 6 / 0.12), transparent 68%);
}

.loader__caja {
  position: relative;
  display: grid; justify-items: center; gap: 0.62rem;
  animation: entra-loader 620ms var(--ease-out) both;
}

.loader__marca {
  width: min(216px, 52vw); height: auto;
  filter: drop-shadow(0 12px 26px oklch(0.45 0.15 300 / 0.18));
}

.loader__bajada {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.42em; text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--magenta);
  animation: entra-bajada 700ms var(--ease-out) 140ms both;
}
@keyframes entra-bajada { from { opacity: 0; transform: translateY(6px); } }
.loader__huellas { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.55rem; }
.loader__huellas svg {
  width: 23px; height: 23px;
  color: var(--violeta);
  opacity: 0.2;
  transform: rotate(-14deg) translateY(3px);
  animation: pisa 1.5s var(--ease) infinite;
  animation-delay: calc(var(--i) * 180ms);
}
.loader__huellas svg:nth-child(even) { transform: rotate(10deg) translateY(-3px); }

@keyframes pisa {
  0%, 62%, 100% { opacity: 0.2; }
  22%, 40% { opacity: 1; }
}
@keyframes entra-loader {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
}
@keyframes respaldo-loader {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.loader[data-listo='true'] {
  opacity: 0; visibility: hidden; pointer-events: none;
  animation: none;
  transition: opacity 420ms var(--ease-out), visibility 0s linear 420ms;
}
.loader[data-listo='true'] .loader__caja {
  transform: scale(1.04);
  transition: transform 420ms var(--ease-out);
}

/* revelado por scroll — solo si el script arrancó, para no ocultar contenido nunca */
.js .revela { opacity: 0; transform: translateY(18px); }
.js .revela[data-visible='true'] {
  opacity: 1; transform: none;
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
/* hijos que entran en cascada cuando su contenedor se revela (carruseles) */
.js .revela .escalonado > * { opacity: 0; transform: translateY(14px); }
.js .revela[data-visible='true'] .escalonado > * {
  opacity: 1; transform: none;
  transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out);
}
.js .revela[data-visible='true'] .escalonado > *:nth-child(1) { transition-delay: 40ms; }
.js .revela[data-visible='true'] .escalonado > *:nth-child(2) { transition-delay: 100ms; }
.js .revela[data-visible='true'] .escalonado > *:nth-child(3) { transition-delay: 160ms; }
.js .revela[data-visible='true'] .escalonado > *:nth-child(4) { transition-delay: 220ms; }
.js .revela[data-visible='true'] .escalonado > *:nth-child(n+5) { transition-delay: 280ms; }

/* deco */
.deco { position: absolute; z-index: var(--z-deco); pointer-events: none; user-select: none; }
.deco img { width: 100%; }
.flota { animation: flota 6s var(--ease) infinite; }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* accesibilidad de movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .revela, .js .revela .escalonado > * { opacity: 1; transform: none; }
  .trust__pista { animation: none; }
}
