/* Las páginas de rubro (/rubros/ y /rubros/<rubro>/): lo que es sólo de ellas (auditoría del 02/12/2026). Se carga
   después de site.css y rubros-demo.css. Las piezas están en src/componentes/RubroPiezas.jsx. */

/* ---------- Hero: título de beneficio (el público va en la etiqueta), menos aire abajo ---------- */
.rubro-pag .hero { padding-bottom: 24px; }
.rubro-pag .hero .h1 { max-width: 17ch; }
.rubro-pag .hero__texto { gap: 24px; }
.rubro-pag .hero__visual { padding-bottom: 8px; }
.rb-hero__pie { display: block; margin: 16px auto 0; text-align: center; }
@media (min-width: 900px) {
  /* el texto en dos columnas: título a la izquierda, bajada y «Agendar demo» a la derecha (la escena sube) */
  .rubro-pag .hero__texto { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 72px; row-gap: 24px; align-items: start; }
  .rubro-pag .hero .h1 { font-size: clamp(42px, 3.6vw, 54px) !important; }
  .rubro-pag .hero__texto > .h1__cat { grid-column: 1 / -1; margin-bottom: -6px; }
  .rubro-pag .hero__texto > .h1 { grid-column: 1; grid-row: 2 / span 3; max-width: none; margin-top: -6px; }
  .rubro-pag .hero__texto > .hero__sub { grid-column: 2; grid-row: 2; margin: 0; }
  .rubro-pag .hero__texto > .hero__cta { grid-column: 2; grid-row: 3; }
}
@media (max-width: 699px) {
  .rubro-pag .hero__visual:has(> .hc) .rb-hero__pie { display: none; }
  .rubro-pag .hero__visual { padding-top: 8px; }
}

/* ---------- Módulos: nombre del módulo adaptado al rubro, con el nombre del producto chico ---------- */
.rubro-pag .modulo__num small { font: inherit; opacity: .75; }
.rb-puntos { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 46ch; }
.rb-puntos li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; color: var(--tinta); }
.rb-puntos li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 50%; background: var(--m-tinte, var(--acento-tinte)); box-shadow: inset 0 0 0 4px var(--m, var(--acento)); }
.rb-puntos b { font-weight: 650; }

/* ---------- Antes del cierre: los otros rubros, una tarjeta a todo el ancho (el texto a la izquierda, los chips a la
   derecha; en tablet y celular, uno debajo del otro) ---------- */
.rb-conf { padding-top: 72px; padding-bottom: 24px; }
.rb-tarjeta { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 32px; border-radius: 24px; background: var(--superficie); border: 1px solid var(--linea); box-shadow: 0 24px 50px -40px rgba(11, 11, 12, .35); }
.rb-tarjeta .eyebrow { margin: 0; }
.rb-tarjeta__t { margin: 0; font-family: var(--titulo); font-weight: 700; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.08; letter-spacing: -0.02em; color: var(--tinta); text-wrap: balance; }
.rb-tarjeta__p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--texto-secundario); max-width: 52ch; }
/* Even rows that reach the edge of the card at every width: the other rubros are always six (two or three columns) and
   «Todos los rubros» takes the whole last row. */
.rb-chips { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rb-chips > li { display: flex; }
.rb-chips > li:last-child { grid-column: 1 / -1; }
.rb-chips .rb-chip { width: 100%; min-height: 48px; line-height: 1.2; }
.rb-chips .mega__ico--chico { flex: none; }
.rb-chips .rb-chip--todos { justify-content: center; }
.rb-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--superficie-suave); border: 1px solid var(--linea); font-size: 15px; font-weight: 600; color: var(--tinta); text-decoration: none; transition: border-color .15s, background .15s; }
.rb-chip .mega__ico--chico { width: 32px; height: 32px; border-radius: 50%; }
.rb-chip:hover { border-color: var(--acento); background: var(--acento-suave); }
.rb-chip--todos { padding-left: 16px; color: var(--acento); background: var(--acento-suave); border-color: var(--acento-tinte); }
@media (min-width: 680px) {
  .rb-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  /* the text in the middle of its column, together: what the chips are taller goes above and below it, never between */
  .rb-otros { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 48px; row-gap: 0; }
  .rb-otros > .eyebrow { grid-area: 2 / 1; }
  .rb-otros > .rb-tarjeta__t { grid-area: 3 / 1; margin: 12px 0; }
  .rb-otros > .rb-tarjeta__p { grid-area: 4 / 1; }
  .rb-otros > .rb-chips { grid-area: 1 / 2 / -1 / 3; align-self: center; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .rb-otros > .rb-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .rb-conf { padding-top: 48px; }
  .rb-tarjeta { padding: 24px 20px; }
  .rb-chip { font-size: 14px; }
  /* two columns in a phone: the icon without its circle, so the longest name keeps its air at both edges */
  .rb-chips .rb-chip:not(.rb-chip--todos) { gap: 6px; padding: 6px 11px 6px 12px; }
  .rb-chips .mega__ico--chico { width: 18px; height: 18px; background: none; }
}

/* ---------- Índice de rubros ---------- */
.rb-selector { list-style: none; margin: 8px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; }
.rb-selector { max-width: none; }
.rb-selector .rb-chip--sel { min-height: 44px; padding: 6px 18px; background: var(--superficie); font-size: 15px; }
.rb-indice .d-rubros { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-indice .d-rubros-sec { padding-bottom: 40px; }
.rb-indice .d-rubro { scroll-margin-top: 96px; gap: 12px; padding: 24px 22px 22px; }
.rb-indice .d-rubro__cab { flex-direction: column; align-items: flex-start; gap: 14px; }
.rb-indice .d-rubro__ej .burbuja { min-height: 54px; box-sizing: border-box; display: flex; align-items: center; }
.rb-indice .d-rubro__ej .ok { white-space: nowrap; }
.rb-indice .d-rubro__t { font-size: 23px; line-height: 1.1; white-space: nowrap; }
.rb-indice .d-rubro__prom { margin: 0; font-size: 17px !important; line-height: 1.35 !important; font-weight: 600; color: var(--tinta) !important; }
.rb-indice .d-rubro p.d-rubro__txt { font-size: 15px; }
.rb-indice .d-rubro .modulo__link { white-space: nowrap; }
.rb-indice .d-rubro--otro { justify-content: flex-start; background: var(--acento-suave); border-color: var(--acento-tinte); }
.rb-indice .d-rubro--otro .rb-ejemplos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rb-indice .d-rubro--otro .rb-ejemplos li { padding: 5px 10px; border-radius: 999px; background: var(--superficie); border: 1px solid var(--acento-tinte); font-size: 13px; color: var(--tinta); }
.rb-indice .d-rubro--otro .rb-otro__acc { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
.rb-indice .d-rubro--otro .btn { margin: 0; justify-content: center; }
.rb-indice .d-rubro--otro .btn svg { width: 18px; height: 18px; }
@media (min-width: 641px) { .rb-indice .d-rubro--otro { grid-column: auto; } }
@media (max-width: 1180px) { .rb-indice .d-rubros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .rb-indice .d-rubros { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rb-indice .d-rubro__ej { display: none; }
  .rb-indice .d-rubro { padding: 20px; }
  .rb-selector { align-self: stretch; width: auto; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 4px -20px 0; padding: 4px 20px 8px; scrollbar-width: none; max-width: none; }
  .rb-selector::-webkit-scrollbar { display: none; }
  .rb-selector li { flex: none; }
}
