/* ============================================================
   Envíos Pronto — Centro de Ayuda
   base.css — v3
   Fuente: Inter (Google Fonts)
   Iconos: Phosphor Icons (https://unpkg.com/@phosphor-icons/web)
   Acento: #F5924A
   ============================================================ */

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

/* ── VARIABLES ── */
:root {
  --bg:             #ffffff;
  --bg-sidebar:     #f7f7f5;
  --bg-hover:       #efefed;
  --bg-active:      #e8e8e5;
  --border:         #e8e8e4;
  --border-light:   #f0f0ec;
  --text:           #1c1c1a;
  --text-2:         #5c5c58;
  --text-3:         #9c9c96;
  --accent:         #F5924A;
  --accent-bg:      #fff7f2;
  --accent-border:  #fddcc4;
  --sidebar-w:      282px;
  --header-h:       48px;
  --font:           'Inter', -apple-system, sans-serif;
  --radius:         6px;
}

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

/* ── LAYOUT ── */
.layout { 
  display: flex; 
  min-height: 100vh;  /* ← era height: 100vh */
}
/* ── OVERLAY (mobile) ── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.2s;
}
.overlay.show { opacity: 1; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
  z-index: 100;
  position: sticky;
  top: 0;
  height: 100vh;
}

/* Sidebar header */
.sb-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sb-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.sb-logomark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.sb-brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.sb-brand-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-brand-sub {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
}

.sb-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  padding: 4px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.sb-close:hover { background: var(--bg-hover); color: var(--text); }

/* Sidebar scroll */
.sb-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sb-scroll::-webkit-scrollbar { width: 4px; }
.sb-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── NAV SECTIONS ── */
.nav-section { margin-bottom: 2px; }

.nav-section-label {
  display: flex;
  align-items: center;
  gap: 7px;
      padding: 12px 8px 10px;
    font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--radius);
  user-select: none;
  transition: background 0.1s;
}
.nav-section-label:hover { background: var(--bg-hover); color: var(--text-2); }

.nav-section-label .ph {
  font-size: 15px;
  flex-shrink: 0;
  color: var(--text-3);
}

.nav-section-label .chevron {
  margin-left: auto;
  font-size: 13px;
  transition: transform 0.15s;
  color: var(--text-3);
}
.nav-section-label.open .chevron { transform: rotate(90deg); }

.nav-items { margin-bottom: 4px; }
.nav-items.collapsed { display: none; }

/* Nav items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 26px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
  line-height: 1.45;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 500;
}

.nav-item .item-icon {
  font-size: 14px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: color 0.1s;
}
.nav-item:hover .item-icon { color: var(--text-2); }
.nav-item.active .item-icon { color: var(--accent); }

/* ── MAIN ── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;  /* ← era overflow: hidden */
  min-width: 0;
}

/* ── TOPBAR ── */
.topbar {
  height: var(--header-h);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 10px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  padding: 5px;
  border-radius: var(--radius);
  margin-left: -5px;
}
.hamburger:hover { background: var(--bg-hover); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-3);
  min-width: 0;
}
.breadcrumb a { color: var(--text-3); text-decoration: none; transition: color 0.1s; white-space: nowrap; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--border); font-size: 12px; }
.breadcrumb .current { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tb-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-2);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.1s;
}
.tb-btn:hover { background: var(--bg-hover); border-color: var(--border); color: var(--text); }
.tb-btn .ph { font-size: 14px; }

/* ── CONTENT AREA ── */
/* ── CONTENT AREA ── */
.content-area {
  flex: 1;
  overflow-y: visible;  /* ← era overflow-y: auto */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.content-area::-webkit-scrollbar { width: 5px; }
.content-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.content {
  max-width: 740px;
  margin: 0 auto;
  padding: 52px 40px 96px;
}

/* ── ARTICLE ── */
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 3px 9px;
  border-radius: 100px;
}

.article-date {
  font-size: 12px;
  color: var(--text-3);
}

h1.article-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 14px;
}

.article-lead {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 400;
}

.article-divider {
  height: 1px;
  background: var(--border-light);
  margin: 32px 0;
}

/* ── TYPOGRAPHY ── */
h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 36px 0 10px;
  line-height: 1.3;
}

h3 {
  font-size: 19.5px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 7px;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 6px;
}

p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}

ul, ol {
  margin: 4px 0 14px 20px;
  color: var(--text-2);
}

li {
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 4px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }

strong { font-weight: 600; color: var(--text); }
em { font-style: italic; }

hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 28px 0;
}

/* ── CALLOUT ── */
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  margin: 20px 0;
}
.callout-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.callout-body { font-size: 13.5px; color: var(--text); line-height: 1.6; }
.callout-body strong { color: var(--text); }

/* ── CODE ── */
code {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 12.5px;
  background: var(--bg-active);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

pre {
  background: var(--text);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin: 16px 0;
}
pre code {
  background: none;
  border: none;
  color: #e8e8e4;
  font-size: 13px;
  padding: 0;
}

/* ── TABLE ── */
.table-wrap { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; min-width: 380px; font-size: 13.5px; }

th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 10px 12px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-sidebar); }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-green  { background: #f0fdf4; color: #16a34a; }
.badge-yellow { background: #fefce8; color: #ca8a04; }
.badge-orange { background: var(--accent-bg); color: var(--accent); }
.badge-red    { background: #fff2f0; color: #dc2626; }
.badge-gray   { background: var(--bg-active); color: var(--text-3); }

/* ── STEPS ── */
.steps { counter-reset: step; margin: 18px 0; }

.step { display: flex; gap: 14px; margin-bottom: 20px; }

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 24px;
  height: 24px;
  background: var(--text);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: var(--font);
}

.step-body { flex: 1; min-width: 0; }
.step-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.step-desc { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ── BLOCKQUOTE ── */
blockquote {
  border-left: 3px solid var(--accent);
  padding: 10px 16px;
  background: var(--accent-bg);
  border-radius: 0 6px 6px 0;
  margin: 18px 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── IMAGES ── */
img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}


/* ── MOBILE TOPBAR ── */
.mobile-topbar {
  display: none;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.mobile-topbar-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.mobile-topbar-brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  html, body {
    height: auto;
    overflow-x: hidden;
  }
  .sidebar {
    position: fixed;
    top: 0; left: 0; height: 100%;
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .overlay { display: none; }
  .sb-close { display: flex; align-items: center; justify-content: center; }
  .topbar { padding: 0 16px; }
  .topbar .hamburger { display: none; }
  .content { padding: 32px 18px 80px; }
  .tb-btn span { display: none; }

  .mobile-topbar { display: flex; }
  .mobile-topbar .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1.article-title { letter-spacing: -0.03em;         font-size: 32px;}
  .content { padding: 24px 16px 80px; }

  .article-divider {
  margin: 12px 0 32px;
}
}

.content ul li p {
    margin-bottom: 0px;
}

/* ── RELATED ARTICLES ── */
.related-articles {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.related-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.related-title .ph { font-size: 15px; }

.related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  margin-bottom: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.related-item:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--text);
}

.related-icon { font-size: 16px; color: var(--text-3); flex-shrink: 0; }

.related-arrow {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.related-item:hover .related-arrow {
  transform: translateX(3px);
  color: var(--accent);
}


/* ── SEARCH MODAL ── */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-modal.open { display: flex; }

.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 20px;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 1;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.search-input-icon { font-size: 18px; color: var(--text-3); flex-shrink: 0; }

.search-input {
  flex: 1;
  height: 52px;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
}

.search-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  padding: 6px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.search-close-btn:hover { background: var(--bg-hover); color: var(--text); }

.search-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.search-empty {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background 0.1s;
}
.search-result-item:hover { background: var(--bg-hover); }

.search-result-icon { font-size: 16px; color: var(--text-3); flex-shrink: 0; }

.search-result-body { flex: 1; min-width: 0; }

.search-result-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-title mark {
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}

.search-result-cat {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 1px;
}

.search-result-arrow { font-size: 14px; color: var(--text-3); flex-shrink: 0; }

@media (max-width: 768px) {
  .search-modal { padding-top: 60px; }
}

.search-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  padding: 5px;
  border-radius: var(--radius);
  margin-left: auto;
}
.search-trigger:hover { background: var(--bg-hover); }

/* ── SEARCH FAB ── */
.search-fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245,146,74,0.4);
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: transform 0.15s, box-shadow 0.15s;
}
.search-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(245,146,74,0.5);
}

@media (max-width: 768px) {
  .search-fab { display: flex; }
}

/* ── SIDEBAR SEARCH BTN ── */
.sb-search {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sb-search-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  transition: all 0.15s;
}

.sb-search-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.sb-search-btn .ph {
  font-size: 16px;
  flex-shrink: 0;
}

/* ── DOCS INDEX ── */
.di-section {
  margin-bottom: 40px;
}

.di-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.di-section-icon { font-size: 18px; color: var(--accent); }

.di-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}

.di-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.di-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-2);
  font-size: 13px;
  transition: background 0.1s, color 0.1s;
  border: 1px solid transparent;
}

.di-item:hover {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--text);
}

.di-icon { font-size: 14px; color: var(--text-3); flex-shrink: 0; }

.di-arrow {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-3);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.1s, transform 0.1s;
}

.di-item:hover .di-arrow {
  opacity: 1;
  transform: translateX(2px);
  color: var(--accent);
}

@media (max-width: 768px) {
  .di-grid { grid-template-columns: 1fr; }
}


  body { background: #fbfbfb; }
  .hub-header {
    height: 56px; background: #fff; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 32px;
    position: sticky; top: 0; z-index: 10;
  }
  .hub-header-logo {
    display: flex; align-items: center; gap: 9px;
    font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none;
  }
  .hub-logomark {
    width: 28px; height: 28px; background: var(--accent); border-radius: 7px;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
  }
  .hub-wrap  { max-width: 880px; margin: 0 auto; padding: 52px 32px 96px; }
  .hub-hero  { margin-bottom: 44px; }
  .hub-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--accent);
    background: var(--accent-bg); border: 1px solid var(--accent-border);
    padding: 3px 10px; border-radius: 100px; margin-bottom: 14px;
    letter-spacing: 0.02em;
  }
  .hub-title    { font-size: clamp(38px, 5vw, 40px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.35; margin-bottom: 10px; color: var(--text); }
  .hub-subtitle { font-size: 16px; color: var(--text-2); max-width: 500px; line-height: 1.6; }
  .hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hub-card {
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 20px 18px; display: flex; flex-direction: column; gap: 5px;
    text-decoration: none; transition: box-shadow .18s, border-color .18s, transform .18s;
  }
  .hub-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); border-color: var(--accent); transform: translateY(-2px); }
  .hub-card-icon { font-size: 26px; color: var(--accent); margin-bottom: 4px; }
  .hub-card-name { font-size: 16.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
  .hub-card-desc { font-size: 13.5px; color: var(--text-3); line-height: 1.5; }
  .hub-card-count { font-size: 13px; color: var(--accent); font-weight: 500; margin-top: auto; padding-top: 10px; }
  @media (max-width: 860px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } .hub-wrap { padding: 36px 20px 80px; } }
  @media (max-width: 480px) { .hub-grid { grid-template-columns: 1fr; } }


  /* ── INDEX — Secciones y recursos ────────────────────────────────────────── */
/* Agregar al final de base.css */

.hub-section-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
  margin-top: 48px;
}

/* ── Grid de recursos (2 columnas) ── */
.hub-recursos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hub-recurso-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .18s, border-color .18s, transform .18s;
  position: relative;
}
.hub-recurso-card:not(.hub-recurso-soon):hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hub-recurso-soon {
  opacity: 0.55;
  cursor: default;
}

.hub-recurso-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hub-recurso-icon .ph {
  font-size: 22px;
  color: var(--accent);
}

.hub-recurso-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hub-recurso-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.hub-recurso-desc {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.5;
}

.hub-recurso-meta {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 4px;
}

.hub-recurso-proximamente {
  color: var(--text-3) !important;
}

.hub-recurso-arrow {
  font-size: 16px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.15s, color 0.15s;
}
.hub-recurso-card:not(.hub-recurso-soon):hover .hub-recurso-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.hub-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

/* ── Divisor con texto ── */
.hub-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 0;
  color: var(--text-3);
  font-size: 12px;
}
.hub-divider::before,
.hub-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

@media (max-width: 640px) {
  .hub-recursos-grid { grid-template-columns: 1fr; }
  .hub-recurso-card  { padding: 14px 16px; gap: 12px; }
  .hub-recurso-icon  { width: 38px; height: 38px; }
  .hub-recurso-icon .ph { font-size: 18px; }
}

/* ── Hero Search ── */
.hero-search-wrap {
  margin: 2rem 0 2.5rem;
}
.hero-search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.hero-search-box i {
  color: var(--text-3);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: transparent;
}
.hero-search-input::placeholder {
  color: var(--text-3);
}
.hero-search-kbd {
  font-size: 0.7rem;
  color: var(--text-3);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}
/* Resultados */
.hero-search-results {
  display: none;
  margin-top: 0.5rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  max-height: 380px;
  overflow-y: auto;
}
.hero-search-results.active {
  display: block;
}
.hsr-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}
.hsr-item:last-child { border-bottom: none; }
.hsr-item:hover, .hsr-item.selected {
  background: var(--accent-bg);
}
.hsr-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: white;
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.85rem;
}


.hsr-icon.hsr-icon--image {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.hsr-text { flex: 1; min-width: 0; }
.hsr-title {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hsr-title mark {
  background: transparent;
  color: var(--accent);
  font-weight: 600;
}
.hsr-cat {
  font-size: 0.75rem;
  color: var(--text-3);
}
.hsr-type-badge {
  font-size: 0.65rem;
  color: var(--text-3);
  background: var(--bg-hover);
  border-radius: 4px;
  padding: 2px 5px;
  flex-shrink: 0;
}
.hsr-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-3);
  font-size: 0.875rem;
}
@media (max-width: 768px) {
  .hero-search-kbd { display: none; }
}

