/* ============================================================================
 * BASE 2026 — piezas comunes del diseño nuevo                       RUFI 19/10/26
 * ----------------------------------------------------------------------------
 * Colores (gris piedra y crema), tipografía, contenedor, secciones, etiqueta pequeña
 * de los títulos, botones, enlaces y tarjeta de producto. Se SEPARÓ de
 * css/home-2026.css tal cual (sin cambiar ni un valor) para que las demás páginas
 * del diseño nuevo (categorías, ficha…) usen lo mismo y no lo copien.
 *
 * TODO va dentro de .h26: una página usa este diseño envolviendo su contenido en
 * <main class="h26"> (o un bloque con esa clase). Fuera de .h26 no afecta a nada,
 * por eso se puede cargar en todas las páginas (lo carga includes/head.php).
 * Lo propio de cada página va en su hoja: home-2026.css, categoria-2026.css…
 * ========================================================================== */

.h26 {
  --h26-ink:   #0f0f0f;
  --h26-body:  #6e6e6e;
  --h26-soft:  #9a9a9a;
  --h26-line:  #ececec;
  --h26-card:  #f4f4f4;   /* fondo neutro de fichas y categorías */
  --h26-max:   1240px;

  /* Acento principal: gris piedra (sustituye al verde menta de la propuesta). */
  --h26-tint:     #efeeeb;   /* bloques destacados: ROMO, fábrica, proyectos */
  --h26-tint-2:   #f6f5f3;   /* variante más clara */
  --h26-tint-ink: #5a5852;   /* etiquetas pequeñas: "Novedad", numeración */

  /* Toque cálido, SOLO en dos sitios para que se note sin cansar:
     la ficha destacada del catálogo (paso 3) — con gris no se distinguía de las
     fichas neutras, #efeeeb frente a #f4f4f4 — y el bloque final "Visita la
     fábrica" (paso 7). No usarlo en más sitios sin decidirlo. */
  --h26-cream:     #f4eee3;
  --h26-cream-2:   #faf7f1;
  --h26-cream-ink: #80683f;

  font-family: Poppins, system-ui, sans-serif;
  font-weight: 300;
  color: var(--h26-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}

/* ---- base, solo dentro de la portada ------------------------------------- */
.h26 h1, .h26 h2, .h26 h3, .h26 h4 {
  margin: 0;
  font-family: inherit;
  color: var(--h26-ink);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.h26 h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.h26 h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
/* Con :where() estos resets pesan CERO: cualquier clase de componente los gana.
   Escritos como ".h26 p" pesaban más que ".h26-hero-sub" y se comían sus márgenes
   (pasó en el paso 2: titular, texto y botones quedaban pegados). Siguen ganando
   al "p { margin-bottom: 1rem }" de Bootstrap porque esta hoja se carga después. */
:where(.h26) p   { margin: 0; }
:where(.h26) img { display: block; max-width: 100%; }
.h26 a, .h26 a:hover { color: inherit; text-decoration: none; }

.h26-wrap { max-width: var(--h26-max); margin: 0 auto; padding: 0 32px; }
.h26-sec  { padding: 130px 0; }

.h26-kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--h26-ink);
}
.h26-kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1.5px;
  margin-right: 10px;
  vertical-align: middle;
  background: currentColor;
}

.h26-lead { font-size: 1.08rem; max-width: 620px; }

/* Etiqueta pequeña que hace de título del bloque (H2 con aspecto de etiqueta). */
.h26 h2.h26-kicker { font-size: .78rem; font-weight: 500; line-height: 1.5; letter-spacing: .04em; }


/* ---- botones (NO .btn: esa es la de Bootstrap) --------------------------- */
.h26-btn {
  display: inline-flex;
  font-family: inherit;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
  cursor: pointer;
}
.h26 .h26-btn--dark,
.h26 .h26-btn--dark:hover { color: #fff; }
.h26-btn--dark       { background: var(--h26-ink); }
.h26-btn--dark:hover { background: #333; }
.h26 .h26-btn--line  { border-color: currentColor; color: var(--h26-ink); }
.h26-btn--line:hover { background: rgba(0, 0, 0, .04); }
.h26-btn:focus-visible { outline: 2px solid var(--h26-ink); outline-offset: 3px; }

/* fila de botones (portada: hero; categorías: cabecera) */
.h26-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.h26-arrow::after { content: "→"; display: inline-block; transition: transform .2s; }
.h26-btn:hover .h26-arrow::after,
.h26-arrow:hover::after { transform: translateX(3px); }


/* ---- piezas comunes de los bloques ---------------------------------------- */
.h26-sec--top0 { padding-top: 0; }
.h26-center { text-align: center; }
.h26-center .h26-lead { margin-left: auto; margin-right: auto; }
.h26 .h26-link {
  font-weight: 500;
  color: var(--h26-ink);
  border-bottom: 1px solid var(--h26-ink);
  padding-bottom: 2px;
}
.h26-dic {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
}
.h26-head-row {             /* cabecera de bloque: título a la izq., enlace a la dcha. */
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

/* ---- buscador por filtros (portada y categorías) ---------------------------- */
/* El buscador es el de siempre (includes/buscador.php, con su JS y su diseño
   responsive): aquí solo se le quita el contenedor de Bootstrap que traía y se
   igualan esquinas y borde con el resto de la portada. */
.h26-buscador { margin-top: 56px; }
.h26-buscador-label { display: block; margin-bottom: 14px; font-size: .78rem; font-weight: 500; letter-spacing: .04em; color: var(--h26-ink); }
.h26 #buscador-romero .container { max-width: none; padding: 0; margin: 0 !important; }
.h26 #buscador-romero .buscador-box {
  border: 1px solid var(--h26-line);
  border-radius: 18px;
  box-shadow: none;
  padding: 18px 22px;
}
.h26 #buscador-romero .buscador-label { font-family: inherit; font-weight: 600; font-size: .9rem; }
.h26 #buscador-romero .buscador-icon { border-radius: 999px; }

/* ---- tarjeta de producto (portada: Novedades; categorías: la parrilla) ---- */
.h26-prod { display: block; }
.h26-prod .h26-ph { aspect-ratio: 1; margin-bottom: 12px; border-radius: 14px; overflow: hidden; background: #f4f4f4; }
.h26-prod img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.h26-prod:hover img { transform: scale(1.04); }
.h26-prod small { font-size: .75rem; font-weight: 500; color: var(--h26-tint-ink); }
.h26 .h26-prod h3 { font-size: .95rem; font-weight: 500; letter-spacing: 0; }

@media (max-width: 900px) {
  .h26-sec { padding: 90px 0; }
  .h26-sec--top0 { padding-top: 0; }
}
@media (max-width: 560px) {
  .h26-wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .h26 *, .h26 *::before, .h26 *::after { transition: none !important; }
}
