:root {
  --bonami-maxw: 1180px;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------- HERO ---------- */
/* Titulo de una sola frase, grande y apretado. Sin etiqueta arriba.
   max-width en ch + margin-right auto: ancho controlado SIN centrar. */
.ba-hero-titulo {
  max-width: 17ch;
  margin-right: auto;
  margin-left: 0;
  text-align: left;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

/* La bajada es casi un titulo: pesa en la jerarquia, no es letra chica. */
.ba-hero-bajada {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 42ch;
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

/* ---------- CLAIM EN NEGRO ---------- */
.ba-claim {
  max-width: 20ch;
  margin-right: auto;
  margin-left: 0;
  text-align: left;
  letter-spacing: -0.035em;
  line-height: 1;
}

.has-ink-background-color p {
  max-width: 58ch;
  margin-right: auto;
  margin-left: 0;
}

/* ---------- TARJETAS DE CATEGORIA ---------- */
.ba-card {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
  padding: var(--wp--preset--spacing--30);
  transition: border-color 0.18s ease;
}

.ba-card:hover {
  border-color: var(--wp--preset--color--ink);
}

.ba-card h3 a {
  text-decoration: none;
}

/* ---------- TABLA DE ESPECIFICACIONES ---------- */
.ba-specs table {
  border-collapse: collapse;
  width: 100%;
}

.ba-specs td {
  border: 0;
  border-bottom: 1px solid var(--wp--preset--color--line);
  padding: 0.85rem 0;
  vertical-align: top;
}

.ba-specs tr td:first-child {
  width: 34%;
  font-weight: 600;
  padding-right: 1.5rem;
}

.ba-specs tr td:last-child {
  color: var(--wp--preset--color--slate);
  font-variant-numeric: tabular-nums;
}

.ba-specs figcaption {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--slate);
  margin-top: 0.9rem;
}

/* El texto comun no se estira a lo ancho de la pantalla */
.wp-block-group > p,
.wp-block-group > .wp-block-heading {
  max-width: 70ch;
}

/* ---------- PLACEHOLDER DE FOTO (se saca al tener fotos reales) ---------- */
.ba-hero-foto {
  border: 1px dashed var(--wp--preset--color--line);
  border-radius: 16px;
  background: var(--wp--preset--color--canvas);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--wp--preset--spacing--40);
}

.ba-placeholder {
  color: var(--wp--preset--color--slate);
  font-size: var(--wp--preset--font-size--sm);
  max-width: 44ch;
  margin: 0;
}

/* ---------- WOOCOMMERCE ---------- */
.wp-block-post-featured-image img,
.woocommerce-product-gallery img {
  object-fit: cover;
}

.woocommerce-Price-amount {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Separador del footer */
.ba-rule {
  border: 0;
  border-top: 1px solid var(--wp--preset--color--line);
  margin-top: var(--wp--preset--spacing--40);
  margin-bottom: var(--wp--preset--spacing--30);
}

/* ---------- ACCESIBILIDAD ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--wp--preset--color--moss);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 781px) {
  .ba-hero-titulo { max-width: 100%; }
  .ba-hero-foto { min-height: 220px; }
  .ba-specs tr td:first-child { width: 42%; }
}
