/* Tipografía self-host (sin CDN). Subset latino, font-display: swap.
   Ambas son fuentes VARIABLES: se declaran con un rango en font-weight y un
   solo @font-face por familia. Declararlas con un peso fijo (como estaban
   Inter/Space Grotesk) hace que el navegador finja las negritas en vez de usar
   el eje wght del archivo.
   Display: Fredoka (redonda y gruesa, la más cercana al lettering del logo).
   Cuerpo: Nunito (terminaciones redondeadas, legible en tamaño chico). */
@font-face {
  font-family: "Fredoka"; font-weight: 300 700; font-display: swap;
  src: url("/static/vendor/fonts/fredoka-var.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Nunito"; font-weight: 200 1000; font-display: swap;
  src: url("/static/vendor/fonts/nunito-var.woff2") format("woff2-variations");
}

/* Front público de bimbombao.cl — paleta del manual de marca (brand/).
   Mobile-first.

   El manual define MARCA, no interfaz: sus 5 colores son de tono medio y solo
   el gris #44484A pasa AA como texto (el petróleo da 3.7:1 sobre blanco, la
   mostaza 1.8:1 con texto blanco). Por eso cada color de marca tiene aquí dos
   variantes derivadas: `-txt` (oscurecida hasta 4.5:1 sobre crema, para texto y
   links) y `-suave` (aclarada a 7:1 con tinta, para chips y bloques). Los hex
   del manual quedan intactos para rellenos, ilustración y decoración.

   Regla de color: relleno y decoración = color del manual; texto y links =
   variante `-txt`. Nunca texto de color puro sobre crema. */
:root {
  /* --- Colores del manual (intactos: rellenos, decoración) --- */
  --marca: #4f8e9d;        /* azul petróleo: el principal */
  --acento: #e5bc57;       /* mostaza: CTA pop, badges */
  --salvia: #88b98b;       /* verde salvia: tercer color, bloques */
  --terracota: #e47b59;    /* terracota: acento cálido */
  --tinta: #44484a;        /* gris oscuro — el manual lo define COMO color de líneas */

  /* --- Variantes derivadas para texto/links --- */
  /* Oscurecidas hasta 4.5:1 contra su PROPIO tinte suave, no solo contra la
     crema: un pill `background: X-suave; color: X-txt` es el caso más común y
     el tinte es el fondo más oscuro donde caen. Pasar ahí implica pasar sobre
     crema y blanco. */
  --marca-txt: #3b6a76;
  --acento-txt: #7e5f13;
  --salvia-txt: #416e44;
  --terracota-txt: #ad3f1c;
  /* Relleno de botón que aguanta texto blanco (>=4.5:1) */
  --marca-btn: #467e8c;
  --marca-osc: #3b6c78;    /* hover del botón principal */

  /* --- Tintes suaves (chips, bloques; texto tinta encima a 7:1) --- */
  --marca-suave: #d1e4e8;
  --acento-suave: #f2dfae;
  --salvia-suave: #d3e5d4;
  --terracota-suave: #f7dad1;

  /* --- Neutros --- */
  --texto: #44484a;        /* = tinta; 8.7:1 sobre crema */
  --gris: #616467;         /* secundario/captions (AA sobre crema y tintes) */
  --fondo: #fbf8f3;        /* crema cálido */
  --superficie: #ffffff;
  --linea: #e7e2d9;        /* bordes suaves (los bordes "sticker" usan --tinta) */
  --ok: #416e44;           /* salvia oscura: coherente con la marca */
  --err: #b3261e;          /* rojo propio: NO terracota, para no confundir
                              un error con un CTA de marca */
  --err-suave: #f4dedd;    /* tinte de error (5.1:1 con --err encima) */
  /* Tipografía */
  --fuente-display: "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fuente-cuerpo: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem;
  --fs-lg: 1.5rem; --fs-xl: 2.1rem; --fs-2xl: 3.6rem;
  /* Espaciado (escala 4/8) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  /* Radios y sombras */
  --radio-sm: 10px; --radio: 16px; --radio-lg: 28px; --radio-pill: 999px;
  --sombra-sm: 0 1px 2px rgba(68, 72, 74, .06);
  --sombra: 0 8px 24px rgba(68, 72, 74, .10);
  --sombra-md: 0 14px 34px rgba(68, 72, 74, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fuente-cuerpo);
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.55;
}
h1, h2, h3, .logo, .precio-grande, .titulo-seccion {
  font-family: var(--fuente-display);
  line-height: 1.15;
  /* El lettering del logo es redondo, grueso y generoso: nada de apretar. */
  letter-spacing: -.005em;
  font-weight: 600;
}
.precio-grande { font-weight: 600; }
/* Eyebrow: mini-título en mayúscula espaciada. Se mantiene, pero con menos
   tracking: la marca es cálida, no editorial. */
.eyebrow {
  display: inline-block; font-family: var(--fuente-cuerpo);
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--marca-txt); margin-bottom: .4rem;
}
a { color: var(--marca-txt); text-decoration: none; }
/* Link dentro de un párrafo: subrayado siempre. Contra el texto vecino el
   color solo da 1.9:1 y WCAG pide 3:1 cuando es lo único que lo distingue. */
p a { text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: underline; text-decoration-color: var(--acento); text-underline-offset: 2px; }

/* Franja de color full-bleed (mostaza). Texto tinta: es lo único que se lee
   sobre la mostaza (5.1:1). */
/* Franja de confianza: tinte teal calmo (antes mostaza brillante full-bleed, que
   pesaba y se veía infantil). El texto/íconos van en petróleo (--marca-txt, 7:1). */
.bloque-acento { background: var(--marca-suave); color: var(--marca-txt);
  border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.bloque-acento .contenedor {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); justify-content: center;
  padding-top: var(--sp-4); padding-bottom: var(--sp-4); font-weight: 700; text-align: center;
}
.bloque-acento span { display: inline-flex; align-items: center; gap: .4rem; }
img { max-width: 100%; display: block; }
.contenedor { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-4); }

/* Header */
.encabezado {
  position: sticky; top: 0; z-index: 20;
  background: var(--superficie); border-bottom: 2px solid var(--texto);
}
.encabezado .contenedor {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4);
  padding-top: var(--sp-4); padding-bottom: var(--sp-4);
}
/* En móvil el wordmark no cabe junto al buscador: marca + carrito arriba,
   buscador full-width en su propia línea. */
@media (max-width: 559px) {
  .encabezado .marca { order: 1; }
  .encabezado .icono-carrito { order: 2; margin-left: auto; }
  .encabezado .buscador { order: 3; flex-basis: 100%; }
}
/* Ícono de línea genérico: hereda color con currentColor. */
.ico { width: 22px; height: 22px; flex: none; }
/* Wordmark del header: el lettering REAL recortado del logo (no la fuente, que
   es parecida pero no idéntica). Alto fijo, ancho automático. */
.marca { flex: none; display: inline-flex; align-items: center; }
.marca img { height: clamp(26px, 6.5vw, 34px); width: auto; }
.marca:hover { text-decoration: none; }
.buscador { flex: 1; display: flex; }
.buscador-campo { position: relative; flex: 1; display: flex; align-items: center; }
.buscador-campo .ico {
  position: absolute; left: .9rem; color: var(--gris); pointer-events: none;
}
.buscador input {
  flex: 1; padding: .6rem 1rem .6rem 2.7rem; border: 2px solid var(--texto);
  border-radius: var(--radio-pill); font-size: var(--fs-sm); background: var(--fondo);
}
.icono-carrito {
  position: relative; display: inline-flex; align-items: center;
  gap: .35rem; font-weight: 700; color: var(--marca-txt);
}
.icono-carrito:hover { text-decoration: none; color: var(--marca-txt); }
.badge {
  background: var(--marca-btn); color: #fff; border-radius: var(--radio-pill);
  min-width: 1.4em; height: 1.4em; padding: 0 .4em; font-size: var(--fs-xs);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.nav-cats {
  border-bottom: 1px solid var(--linea); background: var(--superficie);
  overflow-x: auto; white-space: nowrap;
}
.nav-cats .contenedor { display: flex; gap: var(--sp-2); padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.nav-cats a {
  color: var(--marca-txt); font-size: var(--fs-sm); font-weight: 600;
  padding: .35rem .8rem; border-radius: var(--radio-pill);
}
.nav-cats a:hover { text-decoration: none; background: var(--marca-suave); }

/* HERO FINAL APROBADO — composición, textos, botones e ilustración. */
/* Hero — bloque petróleo full-bleed. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--marca-btn);
  color: #fff;
  padding: clamp(2.75rem, 7vw, 5.25rem) 0;
}
.hero .contenedor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
}
.hero-texto {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 39rem;
}
.hero h1 {
  max-width: 15ch;
  margin: 0 0 var(--sp-3);
  color: #fff;
  font-size: var(--fs-xl);
  line-height: 1.02;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--acento); }
.hero p {
  max-width: 42ch;
  margin: 0 0 var(--sp-5);
  color: #fff;
  font-size: var(--fs-md);
  line-height: 1.55;
}
.hero .acciones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.hero .btn-ghost {
  color: #fff;
  box-shadow: none;
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .14); }

/* El PNG se incrusta ya recortado al contenido visible para que el personaje
   pueda crecer sin que el espacio transparente lo haga parecer pequeño. */
.hero-logo {
  display: block;
  width: min(94%, 430px);
  height: auto;
  align-self: center;
  margin: -.5rem auto -1.1rem;
  transform: translateY(0.9rem);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .18));
}

@media (min-width: 760px) {
  .hero .contenedor {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    align-items: center;
    gap: 0;
  }
  .hero h1 {
    max-width: 14ch;
    font-size: var(--fs-2xl);
  }
  .hero-logo {
    justify-self: start;
    width: min(49vw, 540px);
    margin: -1rem -2rem -3.5rem -3.5rem;
    transform: translateY(-1.5rem);
  }
}

@media (min-width: 1120px) {
  .hero-logo {
    width: min(47vw, 590px);
    margin-left: -5rem;
    transform: translateY(-2.25rem);
  }
}

/* Grilla de productos */
.grilla {
  display: grid; gap: var(--sp-4); padding: var(--sp-5) 0;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .grilla { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grilla { grid-template-columns: repeat(4, 1fr); } }
.card {
  /* Sticker premium: borde tinta + sombra desplazada (dirección B). */
  background: var(--superficie); border: 2.5px solid var(--texto); border-radius: 20px;
  overflow: hidden; box-shadow: 6px 7px 0 var(--texto); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 9px 10px 0 var(--texto); }
.card:hover .nombre { text-decoration: underline; text-decoration-color: var(--acento); text-underline-offset: 2px; }
.card .foto { aspect-ratio: 1; background: var(--fondo); position: relative; }
.card .foto img { width: 100%; height: 100%; object-fit: cover; }
.card .foto .sin-foto { display: flex; align-items: center; justify-content: center; height: 100%; color: #b6b3ad; }
.card .cuerpo { padding: var(--sp-3) var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: .25rem; }
.card .nombre { font-weight: 600; font-size: var(--fs-sm); color: var(--texto); }
.card .precio { color: var(--marca-txt); font-weight: 700; font-size: var(--fs-md); font-family: var(--fuente-display); }
.card .desde { font-size: var(--fs-xs); color: var(--gris); font-weight: 600; }
.badge-agotado {
  position: absolute; top: var(--sp-2); left: var(--sp-2); background: var(--marca-btn); color: #fff;
  font-size: var(--fs-xs); padding: .2rem .5rem; border-radius: var(--radio-pill); font-weight: 700;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.4rem; border: 0; border-radius: var(--radio-pill);
  /* Relleno --marca-btn, no --marca: el petróleo del manual con texto blanco
     da 3.7:1 y reprueba AA. La variante oscurecida da 4.5:1. */
  background: var(--marca-btn); color: #fff; font-weight: 700; font-size: .95rem;
  font-family: var(--fuente-cuerpo); cursor: pointer; text-align: center; min-height: 44px;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--marca-osc); text-decoration: none; transform: translateY(-1px); box-shadow: var(--sombra); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { background: #b9bcbe; cursor: not-allowed; transform: none; box-shadow: none; }
/* CTA "pop": mostaza con texto tinta. Es el único color del manual que aguanta
   texto encima sin retocarlo (5.1:1), así que el CTA principal va con el hex
   real de la marca. Borde sticker. */
.btn-acento { background: var(--acento); color: var(--tinta); border: 2px solid var(--tinta); }
.btn-acento:hover { background: #d9ad42; }
.btn-sec { background: var(--superficie); color: var(--marca-txt); border: 1.5px solid var(--marca); }
.btn-sec:hover { background: var(--marca-suave); }
.btn-ghost { background: transparent; color: var(--marca-txt); box-shadow: none; }
.btn-ghost:hover { background: var(--marca-suave); box-shadow: none; }
.btn-bloque { width: 100%; }

/* Fila de confianza (producto) */
.confianza {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: var(--sp-4) 0;
  font-size: var(--fs-sm); color: var(--marca-txt); font-weight: 600;
}
.confianza span { display: inline-flex; align-items: center; gap: .35rem; }

/* Página de producto */
.producto { display: grid; gap: var(--sp-6); padding: var(--sp-5) 0; }
@media (min-width: 760px) { .producto { grid-template-columns: 1fr 1fr; } }
.galeria .principal {
  aspect-ratio: 1; border-radius: var(--radio); overflow: hidden;
  background: var(--superficie); border: 1px solid var(--linea);
}
.galeria .principal img { width: 100%; height: 100%; object-fit: cover; }
.miniaturas { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); flex-wrap: wrap; }
.miniatura { padding: 0; border: 1px solid var(--linea); border-radius: var(--radio-sm); background: none; cursor: pointer; line-height: 0; }
.miniatura[aria-pressed="true"] { border-color: var(--marca); border-width: 2px; }
.miniatura img { width: 60px; height: 60px; object-fit: cover; border-radius: 7px; }
.precio-grande { font-size: 2rem; font-weight: 600; color: var(--marca-txt); }
.iva { font-size: var(--fs-xs); color: var(--gris); font-weight: 600; }
.opcion { margin: var(--sp-4) 0; }
.opcion label { font-weight: 700; display: block; margin-bottom: var(--sp-2); }
.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.chip {
  padding: .55rem 1rem; border: 1.5px solid var(--linea); border-radius: var(--radio-pill);
  background: var(--superficie); cursor: pointer; font-size: var(--fs-sm); font-weight: 600;
  min-height: 44px; transition: border-color .12s ease, background .12s ease;
}
.chip.sel { border-color: var(--marca); border-width: 2px; background: var(--marca-suave); color: var(--marca-txt); }
.chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* Carrito y checkout */
.panel {
  background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: var(--sp-5); box-shadow: var(--sombra-sm);
}
.linea-carrito { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--linea); }
.linea-carrito img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radio-sm); }
.linea-carrito .info { flex: 1; }
.linea-carrito .cant input { width: 3.2rem; padding: .35rem; border: 1px solid var(--linea); border-radius: 8px; text-align: center; }
.montos { margin-top: var(--sp-4); }
.montos .fila { display: flex; justify-content: space-between; padding: .3rem 0; }
.montos .total { font-size: 1.25rem; font-weight: 700; font-family: var(--fuente-display); border-top: 2px solid var(--linea); margin-top: var(--sp-2); padding-top: var(--sp-3); }
.gratis { color: var(--ok); font-weight: 700; }

/* Formularios */
label { font-weight: 600; display: block; margin: var(--sp-3) 0 .25rem; font-size: var(--fs-sm); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--linea);
  border-radius: var(--radio-sm); font-size: var(--fs-base); background: var(--superficie);
}
fieldset { border: 1px solid var(--linea); border-radius: var(--radio); padding: var(--sp-4); margin: var(--sp-4) 0; }
legend { font-weight: 700; padding: 0 .4rem; font-family: var(--fuente-display); }
.radios { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.radios label { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-weight: 600; }

.checkout-grid { display: grid; gap: var(--sp-5); padding: var(--sp-5) 0; }
@media (min-width: 820px) { .checkout-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.alerta { background: var(--err-suave); color: var(--err); border-radius: var(--radio-sm); padding: .7rem .9rem; margin: var(--sp-2) 0; font-size: var(--fs-sm); }
.aviso-ok { background: var(--marca-suave); color: var(--marca-txt); border-radius: var(--radio-sm); padding: .7rem .9rem; margin: var(--sp-2) 0; }
.aviso { background: var(--acento-suave); border-radius: var(--radio-sm); padding: .7rem .9rem; margin: var(--sp-2) 0; }

.estado-pill { display: inline-block; padding: .25rem .7rem; border-radius: var(--radio-pill); font-weight: 700; font-size: var(--fs-sm); background: var(--marca-suave); color: var(--marca-txt); }

/* Footer */
.pie { border-top: 1px solid var(--linea); margin-top: var(--sp-7); background: var(--superficie); }
.pie .contenedor { padding: var(--sp-5) var(--sp-4); display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .pie .cols { display: flex; gap: var(--sp-6); flex-wrap: wrap; } }
.pie strong { font-family: var(--fuente-display); color: var(--marca-txt); }
.pie a { color: var(--gris); font-size: var(--fs-sm); display: block; padding: .15rem 0; }
.pie a:hover { color: var(--marca-txt); }
/* Sellos de confianza en el footer: medio de pago + courier. */
.pie .sellos {
  display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6);
  align-items: center; margin: var(--sp-5) 0 0;
}
.sello-grupo { display: inline-flex; align-items: center; gap: var(--sp-3); }
.sello-label { font-size: var(--fs-xs); color: var(--gris); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; }
.sello-mp { height: 26px; width: auto; }
.sello-cx { height: 22px; width: auto; }
.pie .lema {
  font-family: var(--fuente-display); color: var(--marca-txt);
  font-size: var(--fs-md); font-weight: 600; margin: var(--sp-5) 0 0;
}
.pie .vendedor {
  font-size: var(--fs-xs); color: var(--gris); margin: var(--sp-3) 0 0;
  padding-top: var(--sp-4); border-top: 1px solid var(--linea); line-height: 1.7;
}

.titulo-seccion { font-size: var(--fs-lg); margin: var(--sp-5) 0 var(--sp-2); color: var(--texto); }
.centro { text-align: center; }
.pobre { color: var(--gris); }
.mt1 { margin-top: var(--sp-4); }

/* Accesibilidad (fase 9) */
.skip-link {
  position: absolute; left: .5rem; top: -3rem; z-index: 100;
  background: var(--marca-btn); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--radio) var(--radio); font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }
:focus-visible { outline: 3px solid var(--marca); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Botón de pago con la identidad estándar de Mercado Pago */
.btn-mp {
  background: #009ee3;               /* azul oficial MP */
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
}
.btn-mp:hover { background: #0084bd; }
.btn-mp .mp-logo { height: 26px; width: auto; background: #fff; border-radius: 6px; padding: 2px 5px; }

/* Velocidades de envío en el checkout */
.velocidades { border: 1px solid var(--linea); border-radius: var(--radio-sm); padding: var(--sp-3); margin: 0 0 var(--sp-3); }
.velocidades legend { font-weight: 700; font-size: var(--fs-sm); padding: 0 .3rem; }
.velocidad {
  display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem;
  border-radius: var(--radio-sm); cursor: pointer; font-weight: 600; margin: .2rem 0;
}
.velocidad:hover { background: var(--marca-suave); }
.velocidad.sel { background: var(--marca-suave); }
.velocidad .vel-fecha { color: var(--gris); font-size: var(--fs-xs); font-weight: 600; flex: 1; }
.velocidad .vel-precio { font-weight: 700; }
.tenue-envio span { color: var(--gris); font-size: var(--fs-sm); }

/* --- Pase de diseño (secciones alternadas, firma y jerarquía) --- */

/* Secciones full-bleed con aire real; el color alterna por bloque. */
.seccion { padding: var(--sp-7) 0; }
.seccion-blanca { background: var(--superficie); }
.seccion-salvia { background: var(--salvia-suave); }
.seccion .titulo-seccion { margin-top: 0; }
@media (min-width: 760px) { .seccion { padding: 80px 0; } }

/* Firma: subrayado garabato en mostaza bajo la palabra clave del hero. */
.garabato { position: relative; display: inline-block; white-space: nowrap; }
.garabato svg {
  position: absolute; left: 0; right: 0; bottom: -.18em;
  width: 100%; height: .28em; color: var(--acento);
}

/* Categorías del home: chips grandes y lúdicos (leve tilt al hover). */
.cats-home { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.chip-cat {
  font-size: var(--fs-base); padding: .7rem 1.2rem; font-weight: 700;
  border: 2px solid var(--texto); color: var(--texto); background: var(--salvia-suave);
  transition: background .15s ease;
}
/* Uniformes y derechos (antes: tintes distintos + rotación = look infantil).
   Un solo tinte salvia con el borde tinta se ve limpio y sigue on-brand. */
.chip-cat:hover { background: var(--marca-suave); text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  .chip-cat:hover { transform: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* Destacados: grilla pareja de 3, más grandes que el catálogo (4). Con 3
   productos llena la fila; con más, envuelve en filas parejas sin huecos. */
@media (min-width: 900px) {
  .grilla-destacados { grid-template-columns: repeat(3, 1fr); }
}

/* Bloque editorial (menta): texto + CTA lado a lado en desktop. */
.bloque-editorial { display: flex; gap: var(--sp-6); align-items: center; flex-wrap: wrap; }
.bloque-editorial > div { flex: 1; min-width: 260px; max-width: 62ch; }
.bloque-editorial h2 { margin: .2rem 0 var(--sp-3); font-size: var(--fs-lg); }
.bloque-editorial p { color: var(--tinta); margin: 0; }
/* Dentro de un bloque tintado el texto va en tinta: las variantes -txt están
   derivadas contra la crema y sobre el tinte se quedan en ~3.6:1. */
.seccion-salvia .eyebrow { color: var(--tinta); }
/* Acotado a `p a`: sin el `p` este selector le gana en especificidad a .btn y
   le pinta el texto de tinta sobre su propio relleno. */
.seccion-salvia p a { color: var(--tinta); }

/* Badges en mayúscula espaciada (coherente con eyebrows/botones). */
.badge-agotado, .estado-pill { text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; }

/* Producto: barra de compra fija abajo en móvil (el botón siempre a mano). */
@media (max-width: 759px) {
  .compra-sticky {
    position: sticky; bottom: 0; z-index: 15;
    background: var(--superficie); margin: 0 calc(-1 * var(--sp-4));
    padding: var(--sp-3) var(--sp-4);
    border-top: 1px solid var(--linea); box-shadow: 0 -6px 18px rgba(68, 72, 74, .08);
  }
}

/* --------------------------------------------------------------------------
   Artículos (historias y materiales)
   -------------------------------------------------------------------------- */
/* Las tarjetas reusan .card; la foto editorial va en 3:2 en vez de 1:1. */
.card-articulo .foto { aspect-ratio: 3 / 2; }
.card-articulo .cuerpo { gap: .4rem; }
.card-articulo .chip-cat {
  align-self: flex-start; font-size: var(--fs-xs); padding: .2rem .6rem;
  border-width: 1px; background: var(--salvia-suave);
}
.bajada-card { margin: 0; font-size: var(--fs-sm); color: var(--gris); }

/* Chip activo del filtro de artículos (mismo patrón que .chip.sel). */
.chip-cat.activo { background: var(--marca-suave); border-color: var(--marca); color: var(--marca-txt); }

/* Detalle del artículo: columna de lectura angosta y tipografía cómoda. */
.articulo { max-width: 72ch; }
.articulo-bajada { font-size: var(--fs-md); color: var(--gris); margin: 0 0 var(--sp-5); }
.articulo-portada {
  width: 100%; border-radius: var(--radio); border: 2px solid var(--texto);
  margin-bottom: var(--sp-5);
}
.articulo-cuerpo { color: var(--texto); line-height: 1.7; }
.articulo-cuerpo h1 {
  font-family: var(--fuente-display); font-size: var(--fs-lg);
  margin: var(--sp-6) 0 var(--sp-3);
}
.articulo-cuerpo p { margin: 0 0 var(--sp-4); }
.articulo-cuerpo ul, .articulo-cuerpo ol { margin: 0 0 var(--sp-4) 1.4rem; }
.articulo-cuerpo li { margin-bottom: .3rem; }
.articulo-cuerpo a { text-decoration: underline; text-underline-offset: 2px; }
.articulo-cuerpo blockquote {
  margin: var(--sp-5) 0; padding: var(--sp-2) var(--sp-4);
  border-left: 4px solid var(--acento); color: var(--gris); font-style: italic;
}
.articulo-cuerpo pre {
  background: var(--superficie); border: 1px solid var(--linea);
  border-radius: var(--radio-sm); padding: var(--sp-3); overflow-x: auto;
}
/* Imágenes incrustadas en el cuerpo (adjuntos de Trix: <figure><img>). */
.articulo-cuerpo figure { margin: var(--sp-5) 0; }
.articulo-cuerpo img {
  max-width: 100%; height: auto; display: block; margin: 0 auto;
  border-radius: var(--radio-sm); border: 2px solid var(--texto);
}
.articulo-cuerpo figcaption {
  font-size: var(--fs-sm); color: var(--gris); text-align: center; margin-top: .5rem;
}


/* ==========================================================================
   Restyle del home (maqueta de la diseñadora): tarjetas de producto cálidas,
   blog más orgánico y fila de Novedades. Overrides de mayor especificidad,
   por eso van al final del archivo.
   ========================================================================== */

/* TARJETAS DE PRODUCTO — versión más amable y cálida.
   Bordes suaves con colores de marca, fotografía respirando dentro de la tarjeta
   y hover ligero, sin la sombra negra tipo sticker. */
.grilla .card:not(.card-articulo) {
  --card-accent: var(--marca);
  --card-glow: rgba(79, 142, 157, .16);
  background: #fffdf9;
  border: 1.5px solid var(--card-accent);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 8px 22px var(--card-glow);
  transform: none;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

/* Alternancia cromática suave para que la grilla se vea viva sin recargarse. */
.grilla .card:not(.card-articulo):nth-child(4n + 1) {
  --card-accent: var(--acento);
  --card-glow: rgba(229, 188, 87, .18);
}
.grilla .card:not(.card-articulo):nth-child(4n + 2) {
  --card-accent: var(--salvia);
  --card-glow: rgba(136, 185, 139, .18);
}
.grilla .card:not(.card-articulo):nth-child(4n + 3) {
  --card-accent: var(--marca);
  --card-glow: rgba(79, 142, 157, .17);
}
.grilla .card:not(.card-articulo):nth-child(4n) {
  --card-accent: var(--terracota);
  --card-glow: rgba(228, 123, 89, .16);
}

.grilla .card:not(.card-articulo):hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 13px 28px var(--card-glow);
}

.grilla .card:not(.card-articulo) .foto {
  margin: 12px 12px 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--fondo);
}

.grilla .card:not(.card-articulo) .cuerpo {
  padding: 14px 18px 20px;
  gap: .3rem;
}

.grilla .card:not(.card-articulo):hover .nombre {
  text-decoration: none;
  color: var(--marca-txt);
}

@media (prefers-reduced-motion: reduce) {
  .grilla .card:not(.card-articulo) {
    transition: none;
  }
  .grilla .card:not(.card-articulo):hover {
    transform: none;
  }
}

/* TARJETAS DEL BLOG — más orgánicas y diferenciadas de los productos.
   Borde más grueso y levemente entrecortado, radios suaves y un hover sutil
   que recuerda una ficha ilustrada de papel. */
.card-articulo {
  --blog-accent: var(--marca);
  --blog-glow: rgba(79, 142, 157, .15);
  position: relative;
  background: #fffaf3;
  border: 3px dashed var(--blog-accent);
  border-radius: 24px 30px 22px 28px;
  overflow: hidden;
  box-shadow: 0 9px 22px var(--blog-glow);
  transform: rotate(-0.15deg);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.card-articulo:nth-child(4n + 1) {
  --blog-accent: var(--acento);
  --blog-glow: rgba(229, 188, 87, .18);
}
.card-articulo:nth-child(4n + 2) {
  --blog-accent: var(--salvia);
  --blog-glow: rgba(136, 185, 139, .18);
}
.card-articulo:nth-child(4n + 3) {
  --blog-accent: var(--marca);
  --blog-glow: rgba(79, 142, 157, .17);
}
.card-articulo:nth-child(4n) {
  --blog-accent: var(--terracota);
  --blog-glow: rgba(228, 123, 89, .17);
}

.card-articulo:nth-child(even) {
  transform: rotate(.15deg);
}

.card-articulo::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 10px;
  border-radius: 999px;
  background: var(--blog-accent);
  opacity: .32;
  transform: rotate(-7deg);
  pointer-events: none;
}

.card-articulo:hover {
  text-decoration: none;
  transform: translateY(-3px) rotate(.25deg);
  box-shadow: 0 14px 29px var(--blog-glow);
}

.card-articulo:nth-child(even):hover {
  transform: translateY(-3px) rotate(-.25deg);
}

.card-articulo .foto {
  margin: 13px 13px 0;
  border-radius: 17px 21px 15px 19px;
  overflow: hidden;
  background: var(--fondo);
}

.card-articulo .cuerpo {
  padding: 15px 18px 21px;
}

.card-articulo:hover .nombre {
  text-decoration: none;
  color: var(--marca-txt);
}

@media (prefers-reduced-motion: reduce) {
  .card-articulo,
  .card-articulo:nth-child(even),
  .card-articulo:hover,
  .card-articulo:nth-child(even):hover {
    transition: none;
    transform: none;
  }
}

/* NOVEDADES — tarjetas suaves, livianas y diferenciadas.
   Casi sin borde, con fondo marfil, sombra difusa y cápsulas de estado. */
#novedades .novedad-card,
#novedades .carousel-card,
#novedades .slide,
#novedades .card {
  --news-accent: var(--marca);
  --news-tint: rgba(79, 142, 157, .08);
  position: relative;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,250,243,.96));
  border: 1px solid rgba(45, 76, 82, .08);
  border-radius: 30px;
  box-shadow:
    0 14px 34px rgba(45, 76, 82, .08),
    0 2px 8px rgba(45, 76, 82, .04);
  overflow: hidden;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background .22s ease;
}

#novedades .novedad-card:nth-child(3n + 1),
#novedades .carousel-card:nth-child(3n + 1),
#novedades .slide:nth-child(3n + 1),
#novedades .card:nth-child(3n + 1) {
  --news-accent: var(--acento);
  --news-tint: rgba(229, 188, 87, .10);
}

#novedades .novedad-card:nth-child(3n + 2),
#novedades .carousel-card:nth-child(3n + 2),
#novedades .slide:nth-child(3n + 2),
#novedades .card:nth-child(3n + 2) {
  --news-accent: var(--salvia);
  --news-tint: rgba(136, 185, 139, .10);
}

#novedades .novedad-card:nth-child(3n),
#novedades .carousel-card:nth-child(3n),
#novedades .slide:nth-child(3n),
#novedades .card:nth-child(3n) {
  --news-accent: var(--terracota);
  --news-tint: rgba(228, 123, 89, .09);
}

#novedades .novedad-card::before,
#novedades .carousel-card::before,
#novedades .slide::before,
#novedades .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 8%, var(--news-tint), transparent 34%);
  pointer-events: none;
}

#novedades .novedad-card::after,
#novedades .carousel-card::after,
#novedades .slide::after,
#novedades .card::after {
  content: "Novedad";
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  padding: .38rem .72rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--news-accent) 18%, white);
  color: var(--marca-txt);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 3px 10px rgba(45, 76, 82, .06);
}

#novedades .novedad-card:hover,
#novedades .carousel-card:hover,
#novedades .slide:hover,
#novedades .card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 42px rgba(45, 76, 82, .11),
    0 4px 12px rgba(45, 76, 82, .05);
}

#novedades .novedad-card .foto,
#novedades .carousel-card .foto,
#novedades .slide .foto,
#novedades .card .foto {
  margin: 14px 14px 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--fondo);
}

#novedades .novedad-card .cuerpo,
#novedades .carousel-card .cuerpo,
#novedades .slide .cuerpo,
#novedades .card .cuerpo {
  position: relative;
  z-index: 1;
  padding: 18px 20px 22px;
}

#novedades .carousel-btn,
#novedades .carrusel-btn,
#novedades .prev,
#novedades .next {
  border: 1px solid rgba(45, 76, 82, .08);
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 6px 18px rgba(45, 76, 82, .08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#novedades .carousel-btn:hover,
#novedades .carrusel-btn:hover,
#novedades .prev:hover,
#novedades .next:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 9px 22px rgba(45, 76, 82, .11);
}

@media (prefers-reduced-motion: reduce) {
  #novedades .novedad-card,
  #novedades .carousel-card,
  #novedades .slide,
  #novedades .card,
  #novedades .carousel-btn,
  #novedades .carrusel-btn,
  #novedades .prev,
  #novedades .next {
    transition: none;
  }

  #novedades .novedad-card:hover,
  #novedades .carousel-card:hover,
  #novedades .slide:hover,
  #novedades .card:hover,
  #novedades .carousel-btn:hover,
  #novedades .carrusel-btn:hover,
  #novedades .prev:hover,
  #novedades .next:hover {
    transform: none;
  }
}


/* Carrusel de Novedades: carril horizontal con scroll-snap + botones prev/next
   accionados por Alpine (el bloque de arriba solo pinta las cards y el color
   del botón; aquí va el layout y la forma). En móvil se navega con swipe. */
.novedades-carril {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
}
.novedades-track {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 14px;
  scrollbar-width: none;
}
.novedades-track::-webkit-scrollbar { display: none; }
.novedades-track > .card {
  flex: 0 0 clamp(210px, 44vw, 248px);
  scroll-snap-align: start;
}
#novedades .carousel-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--marca-txt);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 640px) {
  /* En móvil se navega por swipe; hay que igualar la especificidad del
     `#novedades .carousel-btn { display: grid }` de arriba para ganarle. */
  #novedades .carousel-btn { display: none; }
}

/* HERO — ajustes finales de calidez e integración visual.
   Se mantiene la composición aprobada y solo se suavizan detalles. */

/* Más aire entre el texto descriptivo y las acciones. */
.hero p {
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

/* Botón secundario más amable: superficie translúcida y borde tenue. */
.hero .btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .34);
  box-shadow: 0 5px 15px rgba(30, 61, 67, .08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .52);
  box-shadow: 0 7px 18px rgba(30, 61, 67, .11);
}

/* Sombra más amplia, suave y teñida en petróleo en lugar de negro. */
.hero-logo {
  filter: drop-shadow(0 18px 26px rgba(24, 65, 72, .22));
}

/* Subrayado menos dominante. */
.hero .garabato svg {
  bottom: -.15em;
  height: .23em;
  opacity: .76;
}

.hero .garabato svg path {
  stroke-width: 3.2;
}

/* En escritorio, la ilustración se acerca levemente al texto para que ambos
   lados se perciban como una sola escena. */
@media (min-width: 760px) {
  .hero .contenedor {
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
    column-gap: clamp(.25rem, 1vw, .75rem);
  }

  .hero-logo {
    margin-left: -4.6rem;
    transform: translate(-.75rem, -1.5rem);
  }
}

@media (min-width: 1120px) {
  .hero-logo {
    margin-left: -6rem;
    transform: translate(-1rem, -2.25rem);
  }
}
