/* ============================================================================
   misc-premium.css
   Polish for 404 error page + guías list.
   ============================================================================ */

/* ── 404 error page ────────────────────────────────────────────────── */
.error-404 {
  max-width: 780px;
  margin: 20px auto 48px;
  text-align: center;
}
.error-404__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-404__icon svg {
  width: 44px;
  height: 44px;
  color: var(--primary, #2563eb);
  stroke-width: 1.8;
}
.error-404__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0f172a;
  margin: 0 0 8px;
}
.error-404__subtitle,
.error-404__text {
  font-size: 14.5px;
  color: #64748b;
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

/* 404 search bar */
.error-404__search {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin: 0 auto 32px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 28px;
  padding: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.error-404__search:focus-within {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.error-404__search-input {
  flex: 1;
  border: 0;
  padding: 10px 18px;
  background: transparent;
  font-size: 14px;
  color: #0f172a;
  outline: none;
}
.error-404__search-input::placeholder { color: #94a3b8; }
.error-404__search-btn {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border: 0;
  padding: 0 22px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.error-404__search-btn:hover { background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%); }

/* 404 categorías populares */
.error-404__categories {
  margin: 0 auto 32px;
  max-width: 640px;
  text-align: left;
}
.error-404__categories > h2,
.error-404__categories-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #475569;
  text-align: center;
  margin: 0 0 12px;
}
.error-404__cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.error-404__cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.error-404__cat-link:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--primary, #2563eb);
  text-decoration: none;
  transform: translateY(-1px);
}
.error-404__cat-count {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  min-width: 22px;
  text-align: center;
  line-height: 16px;
}
.error-404__cat-link:hover .error-404__cat-count {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary, #2563eb);
}

/* 404 enlaces útiles */
.error-404__links {
  margin: 0 auto;
  max-width: 640px;
}
.error-404__links > h2,
.error-404__links-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #334155;
  text-align: center;
  margin: 0 0 14px;
}
.error-404__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.error-404__link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  text-decoration: none;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.error-404__link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--primary, #2563eb);
  text-decoration: none;
}
.error-404__link-card svg {
  width: 24px;
  height: 24px;
  color: var(--primary, #2563eb);
}


/* ── Guías (list page) ─────────────────────────────────────────────── */
/* Featured guide card at top */
.guides-featured { margin: 0 0 28px; }
.guides-featured__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  box-shadow: 0 4px 14px -6px rgba(37, 99, 235, 0.1);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guides-featured__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(37, 99, 235, 0.2);
  text-decoration: none;
}
.guides-featured__badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 2px 6px -1px rgba(16, 185, 129, 0.4);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.guides-featured__body { flex: 1; min-width: 0; }
.guides-featured__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.22;
}
.guides-featured__desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px;
}
.guides-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary, #2563eb);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1px;
}
.guides-featured__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 160px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.08);
}
.guides-featured__visual svg {
  width: 80px;
  height: 80px;
  color: var(--primary, #2563eb);
  opacity: 0.85;
}

/* Grid of standard guide cards (reuses .card.card--cat pattern) */
.grid.grid--cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.grid--cats > .card.card--cat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 16px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 140px;
}
.grid--cats > .card.card--cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.1), 0 4px 8px -3px rgba(15, 23, 42, 0.04);
  border-color: rgba(37, 99, 235, 0.22);
  text-decoration: none;
}
.grid--cats > .card.card--cat .card__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 6px;
}
.grid--cats > .card.card--cat:hover .card__title {
  color: var(--primary, #2563eb);
}
.grid--cats > .card.card--cat .card__desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
}
.grid--cats > .card.card--cat .card__meta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary, #2563eb);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease;
}
.grid--cats > .card.card--cat:hover .card__meta {
  gap: 8px;
}

@media (max-width: 640px) {
  .guides-featured__card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
  .guides-featured__title { font-size: 20px; }
  .guides-featured__visual { height: 100px; }
  .guides-featured__visual svg { width: 56px; height: 56px; }
  .error-404__title { font-size: 22px; }
}
