/* ==========================================================================
   Ploobs.Com — Estilos de las páginas hub (marcas, funciones y marca+función)
   Solo estilos propios: variables, reset, header, footer y botones vienen de
   shared.css, que se enlaza antes que esta hoja.
   ========================================================================== */

/* ===== PORTADA DEL HUB ===== */
.hub { padding: 0 0 60px; background: var(--bg-primary); transition: background var(--transition); }
.hub-hero { background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%); padding: 40px 0; }
.hub-hero__inner { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hub-hero__image { width: 100%; max-width: 420px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hub-hero__image img { width: 100%; height: auto; display: block; }
.hub-hero__info { flex: 1; }
.hub-hero__title { font-size: 1.9rem; font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.hub-hero__title span { color: var(--accent-orange); }
.hub-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hub-hero__pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; background: var(--accent-light); color: var(--accent-orange); font-size: 0.8rem; font-weight: 700; }

/* ===== TEXTO DE INTRODUCCIÓN ===== */
.hub-intro { padding: 32px 0 8px; }
.hub-intro p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 12px; }
.hub-intro strong { color: var(--text-primary); }

/* ===== SALTO RÁPIDO A SECCIONES ===== */
.hub-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; padding: 0; list-style: none; }
.hub-jump a { display: inline-block; padding: 7px 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-card); color: var(--text-secondary); font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: all var(--transition); }
.hub-jump a:hover { border-color: var(--accent-orange); color: var(--accent-orange); }

/* ===== SECCIONES Y LISTADO ===== */
.hub-section { margin-top: 40px; }
.hub-section__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.hub-section__title a { color: var(--text-primary); text-decoration: none; }
.hub-section__title a:hover { color: var(--accent-orange); }
.hub-section__count { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.hub-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }

.hub-item { display: block; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: all var(--transition); }
.hub-item:hover { border-color: var(--accent-orange); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.hub-item__title { display: block; font-size: 0.98rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.hub-item__meta { display: block; font-size: 0.82rem; color: var(--text-secondary); }
.hub-item__price { color: var(--accent-orange); font-weight: 700; }

/* ===== BLOQUE "FABRICAMOS A LA MEDIDA" ===== */
.hub-fabricamos { margin-top: 40px; padding: 24px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); }
.hub-fabricamos h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.hub-fabricamos p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
.hub-fabricamos ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0; margin: 0 0 18px; list-style: none; }
.hub-fabricamos li { font-size: 0.86rem; color: var(--text-secondary); }
.hub-fabricamos li::before { content: "✓ "; color: var(--accent-orange); font-weight: 700; }

/* ===== TARJETAS DE LOS ÍNDICES ===== */
.hub-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.hub-index__item { display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: all var(--transition); }
.hub-index__item:hover { border-color: var(--accent-orange); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.hub-index__name { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.hub-index__count { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

/* ===== ENLACES CRUZADOS ENTRE HUBS ===== */
.hub-relacionados { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.hub-relacionados h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .hub-hero__inner { flex-direction: row; align-items: center; }
  .hub-hero__title { font-size: 2.3rem; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-index { grid-template-columns: repeat(3, 1fr); }
  .hub-fabricamos ul { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .hub-index { grid-template-columns: repeat(4, 1fr); }
}
