/* ============================================================
   Jimena Style — paginas.css
   Estilos propios de Home (banners), Catálogo, Producto, Blog,
   páginas institucionales administrables, Contacto y 404.
   Usa los tokens de site.css (no redefine el design system).
   ============================================================ */

/* ---------- Home: banners administrables (.hb-) ---------- */

.hb-sec { margin-top: 2.2rem; }
.hb-viewport {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
}
.hb-track {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hb-track::-webkit-scrollbar { display: none; }
.hb-slide {
  position: relative; flex: 0 0 100%; min-width: 0;
  scroll-snap-align: start; scroll-snap-stop: always;
  aspect-ratio: 16 / 5; min-height: 300px;
  display: flex; align-items: center; overflow: hidden;
}
.hb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-sin-img { background: var(--grad-hero); }
.hb-panel {
  position: relative; z-index: 1;
  margin-left: clamp(1.2rem, 5vw, 3.8rem); max-width: min(31rem, 60%);
  padding: 1.5rem 1.7rem 1.6rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow);
  animation: subir 600ms var(--ease-out) both;
}
.hb-tit { font-size: clamp(1.35rem, 2.6vw, 2.05rem); margin: 0 0 .35em; overflow-wrap: anywhere; }
.hb-sub { color: var(--ink-soft); margin: 0 0 1.05rem; overflow-wrap: anywhere; }
.hb-sub:last-child { margin-bottom: 0; }
.hb-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .9); color: var(--primary-dark);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: var(--shadow); cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans), transform var(--trans);
}
.hb-nav svg { width: 20px; height: 20px; }
.hb-nav:hover { background: var(--grad-rose); color: #fff; border-color: transparent; transform: translateY(-50%) scale(1.06); }
.hb-prev { left: .9rem; }
.hb-next { right: .9rem; }
.hb-dots { display: flex; justify-content: center; gap: .15rem; margin-top: .6rem; }
.hb-dots button {
  width: 34px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.hb-dots button::before {
  content: ''; width: 9px; height: 9px; border-radius: 99px; background: #E3CFD6;
  transition: width var(--trans), background var(--trans);
}
.hb-dots button[aria-current="true"]::before { width: 26px; background: var(--grad-rose); }
.hb-dots button:hover::before { background: var(--primary); }
@media (max-width: 640px) {
  .hb-sec { margin-top: 1.4rem; }
  .hb-slide { aspect-ratio: auto; min-height: 330px; align-items: flex-end; }
  .hb-panel { margin: .75rem; max-width: none; width: calc(100% - 1.5rem); padding: 1.05rem 1.15rem 1.15rem; }
  .hb-nav { display: none; }
  .hb-btn { width: 100%; }
}

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

.filtros .cat-moneda { text-transform: none; letter-spacing: .04em; font-weight: 500; color: var(--muted); }
.filtros .cat-check {
  display: flex; align-items: center; gap: .55rem; margin: 0; cursor: pointer;
  text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 500; color: var(--ink);
}
.filtros .cat-check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--primary-dark); cursor: pointer; }
.rango-precio input { min-width: 0; }

/* ---------- Producto ---------- */

.precio-grande .prod-desde {
  font-family: var(--sans); font-size: .9rem; font-weight: 400; color: var(--muted);
  margin-right: .45rem; vertical-align: middle; letter-spacing: .02em;
}
.prod-desde-hint { margin: .3rem 0 0; }
.prod-no-disp {
  margin: 0; padding: .8rem 1rem; border-radius: 12px; font-size: .92rem;
  color: var(--ink-soft); background: var(--bg-soft); border: 1px dashed var(--line);
}

/* ---------- Páginas institucionales y cuerpo HTML administrable (.pag-) ---------- */

.pag-fecha { color: var(--muted); font-size: .8rem; letter-spacing: .04em; margin: -.35rem 0 0; }
/* break-word (no anywhere): corta URLs largas sin achicar las columnas de una tabla letra por letra. */
.pag-html { font-size: 1.03rem; line-height: 1.75; overflow-wrap: break-word; }
.pag-html h2 { font-size: 1.45rem; margin-top: 1.8em; }
.pag-html .legal-sec h2, .pag-html .sn-sec h2 { margin-top: 0; }
.pag-html h3 { margin-top: 1.5em; }
.pag-html ul, .pag-html ol { padding-left: 1.35rem; margin: 0 0 1em; }
.pag-html li { margin-bottom: .35em; }
.pag-html li::marker { color: var(--primary); }
.pag-html a:not(.btn) { text-decoration: underline; text-decoration-color: rgba(180, 99, 122, .4); text-underline-offset: 3px; }
.pag-html img { height: auto; border-radius: var(--radius); margin: 1.2rem 0; }
.pag-html blockquote:not(.sn-cita) {
  margin: 1.6rem 0; padding: .95rem 1.35rem;
  border-left: 3px solid var(--gold); background: var(--rose-mist);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-style: italic; color: var(--primary-deep);
}
.pag-html table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.pag-html th, .pag-html td { border: 1px solid var(--line); padding: .5rem .8rem; text-align: left; vertical-align: top; }
.pag-html th { background: #FDFAF7; font-weight: 600; }
.pag-html pre { overflow-x: auto; background: var(--bg-soft); border: 1px solid var(--line); padding: .9rem 1rem; border-radius: 12px; }
.pag-html code, .pag-html kbd { font-family: Consolas, monospace; font-size: .9em; }
.pag-html hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---------- Contacto ---------- */

.campo-error { color: var(--err); font-size: .8rem; margin-top: .3rem; }
.cont-panel [aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px rgba(192, 57, 43, .1); }
.cont-cuenta { text-align: right; margin-top: .3rem; }
.cont-error {
  background: #FBEFEC; border: 1px solid #F0C6BF; color: #8E2B20;
  border-radius: 12px; padding: .75rem 1rem; font-size: .88rem; margin-bottom: 1rem;
  overflow-wrap: anywhere; animation: subir 320ms var(--ease-out) both;
}
.cont-error a { color: inherit; text-decoration: underline; }
.cont-ok:focus { outline: none; }
.cont-ok:focus-visible { outline: 3px solid rgba(62, 142, 90, .35); outline-offset: 2px; }
/* Honeypot: fuera de la vista y del orden de tabulación, pero presente para los bots. */
.cont-hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.cont-spin {
  display: inline-block; width: 17px; height: 17px; flex: none;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  border-radius: 50%; animation: girar .7s linear infinite;
}

/* ---------- 404 (.nf-) ---------- */

.nf-numero {
  font-family: var(--serif); font-weight: 600; line-height: 1;
  font-size: clamp(4.4rem, 15vw, 7.4rem); letter-spacing: .03em;
  color: var(--primary-deep); margin-bottom: .6rem;
  animation: acercar 600ms var(--ease-out) both;
}
.nf-numero span {
  display: inline-block; color: var(--gold); font-size: .62em; vertical-align: .18em; margin: 0 .06em;
  animation: girar 16s linear infinite;
}
.nf-page h1 { margin-top: .2em; }
.nf-ruta { overflow-wrap: anywhere; }
.nf-buscar { display: flex; gap: .6rem; max-width: 30rem; margin: 1.5rem auto 0; }
.nf-buscar input { flex: 1; min-width: 0; }
.nf-buscar .btn { flex: none; }
