/* Hub & Catálogo de Manuales - Estilo Moderno y Diseño Folleto */
:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-dark: #090d16;
  --blue: #3b82f6;
  --blue-hover: #2563eb;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --line: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --gold: #f59e0b;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 30px -8px rgba(15, 23, 42, 0.12);
  --radius-lg: 16px;
  --radius-md: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.hub-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-wrap {
  background: white;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.brand-logo {
  height: 28px;
  width: auto;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 8px 16px;
  width: 340px;
  max-width: 100%;
  color: white;
  transition: all 0.2s ease;
}

.search-box:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 13.5px;
  width: 100%;
  font-family: inherit;
}

.search-box input::placeholder {
  color: #94a3b8;
}

/* Main */
.hub-main {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
}

.hub-hero {
  text-align: center;
  margin-bottom: 30px;
}

.hero-badge {
  display: inline-block;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hub-hero h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.hub-hero p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
}

/* Metrics Bar */
.hub-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: white;
  border: 1px solid var(--line);
  padding: 14px 30px;
  border-radius: 9999px;
  max-width: 600px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow-sm);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-num {
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

/* Grid */
.manuals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

/* Folleto Card */
.manual-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.manual-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-brochure-edge {
  width: 8px;
  flex-shrink: 0;
  background: var(--blue);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.card-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.card-topics {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.topics-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.topics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topics-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.topics-list li svg {
  color: var(--blue);
  flex-shrink: 0;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.card-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.manual-version {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.btn-open-brochure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-open-brochure:hover {
  background: var(--btn-color, var(--blue-hover));
  transform: translateX(2px);
  color: white;
}

/* Footer */
.hub-footer {
  background: white;
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: auto;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    width: 100%;
  }
  .manuals-grid {
    grid-template-columns: 1fr;
  }
}
