/* Condor Data — listados (servicios, blog, productos): look cercano al landing */

#cd-page .cd-hub-section {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Fondo decorativo (grid + viñeta), scoped al bloque */
#cd-page .cd-hub-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 197, 66, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 197, 66, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

#cd-page .cd-hub-section .section-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
}

/* Migas */
#cd-page .cd-hub-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

#cd-page .cd-hub-crumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

#cd-page .cd-hub-crumb a:hover {
  color: var(--gold);
}

#cd-page .cd-hub-crumb span[aria-hidden='true'] {
  opacity: 0.45;
  user-select: none;
}

#cd-page .cd-hub-crumb__current {
  color: rgba(240, 237, 228, 0.55);
}

/* Chips bajo el lead */
#cd-page .cd-hub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#cd-page .cd-hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 197, 66, 0.08);
  border: 1px solid rgba(245, 197, 66, 0.22);
}

#cd-page .cd-hub-chip i {
  font-size: 11px;
  opacity: 0.9;
}

#cd-page a.cd-hub-chip {
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

#cd-page a.cd-hub-chip:hover {
  background: rgba(245, 197, 66, 0.12);
  border-color: rgba(245, 197, 66, 0.35);
  color: var(--gold) !important;
}

/* Grid de tarjetas */
#cd-page .cd-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 720px) {
  #cd-page .cd-hub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Tarjeta tipo svc-card + acento */
#cd-page .cd-hub-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

#cd-page .cd-hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--hub-glow, rgba(245, 197, 66, 0.12)) 0%, transparent 58%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

#cd-page .cd-hub-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

#cd-page .cd-hub-card:hover::before {
  opacity: 1;
}

#cd-page .cd-hub-card__bar {
  height: 3px;
  width: 100%;
  background: var(--hub-bar, linear-gradient(90deg, var(--gold), rgba(245, 197, 66, 0.35)));
  flex-shrink: 0;
}

#cd-page .cd-hub-card__body {
  padding: 20px 20px 18px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#cd-page .cd-hub-card__pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 197, 66, 0.08);
  border: 1px solid rgba(245, 197, 66, 0.22);
  margin-bottom: 12px;
}

#cd-page .cd-hub-card__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

#cd-page .cd-hub-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

#cd-page .cd-hub-card__title a:hover {
  color: var(--gold);
}

#cd-page .cd-hub-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

#cd-page .cd-hub-card__footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

#cd-page .cd-hub-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

#cd-page .cd-hub-card__link:hover {
  gap: 10px;
  opacity: 0.95;
}

#cd-page .cd-hub-card__link-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 197, 66, 0.25);
  padding-bottom: 1px;
}

#cd-page .cd-hub-card__link-sub:hover {
  color: var(--text-dim);
  border-bottom-color: rgba(245, 197, 66, 0.45);
}

/* Acentos por variante */
#cd-page .cd-hub-card--gold {
  --hub-glow: rgba(245, 197, 66, 0.14);
  --hub-bar: linear-gradient(90deg, #f5c542, rgba(245, 197, 66, 0.25));
}

#cd-page .cd-hub-card--blue {
  --hub-glow: rgba(45, 111, 255, 0.14);
  --hub-bar: linear-gradient(90deg, #2d6fff, rgba(45, 111, 255, 0.25));
}

#cd-page .cd-hub-card--green {
  --hub-glow: rgba(34, 197, 94, 0.12);
  --hub-bar: linear-gradient(90deg, #22c55e, rgba(34, 197, 94, 0.25));
}

#cd-page .cd-hub-card--orange {
  --hub-glow: rgba(251, 146, 60, 0.14);
  --hub-bar: linear-gradient(90deg, #fb923c, rgba(251, 146, 60, 0.25));
}

/* Productos: reutiliza cards del landing dentro del hub */
#cd-page .cd-hub-products .products-grid {
  margin-top: 0;
}

#cd-page .cd-hub-empty {
  border: 1px dashed rgba(245, 197, 66, 0.22);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

#cd-page .cd-hub-empty p {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
}

#cd-page .cd-hub-empty code {
  font-size: 12px;
}

/* CTA final: un poco más “hero” */
#cd-page .cd-hub-section .cd-cta {
  margin-top: 8px;
}

@media (max-width: 719px) {
  #cd-page .cd-hub-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── Páginas de detalle (blog / servicio / producto) ─── */

#cd-page .cd-hub-crumb__truncate {
  max-width: min(52ch, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}

@media (max-width: 640px) {
  #cd-page .cd-hub-crumb__truncate {
    max-width: 100%;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Barra decorativa bajo migas (detalle) */
#cd-page .cd-hub-detail-accent {
  height: 4px;
  width: 100%;
  border-radius: 999px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, rgba(245, 197, 66, 0.35), rgba(245, 197, 66, 0.85), rgba(245, 197, 66, 0.35));
}

#cd-page .cd-hub-detail-accent--blog {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.35), #fb923c, rgba(251, 146, 60, 0.35));
}

#cd-page .cd-hub-detail-accent--servicio {
  background: linear-gradient(90deg, rgba(45, 111, 255, 0.35), #2d6fff, rgba(45, 111, 255, 0.35));
}

#cd-page .cd-hub-detail-accent--producto {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.35), #22c55e, rgba(34, 197, 94, 0.35));
}

/* Cuerpo del artículo (blog): panel lectura */
#cd-page .cd-hub-article-shell {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  padding: 22px 22px 26px;
}

@media (min-width: 720px) {
  #cd-page .cd-hub-article-shell {
    padding: 26px 28px 32px;
  }
}

/* Títulos h2 del cuerpo en publicaciones (HTML del blog) */
#cd-page .cd-hub-article-shell .cd-prose h2 {
  color: var(--gold);
  border-left-color: rgba(245, 197, 66, 0.55);
}

/* Bloques de sección con icono (servicios / productos / FAQ título) */
#cd-page .cd-hub-block {
  margin-top: 0;
}

#cd-page .cd-hub-block__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

#cd-page .cd-hub-block__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(245, 197, 66, 0.08);
  border: 1px solid rgba(245, 197, 66, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 16px;
}

#cd-page .cd-hub-block__icon--blue {
  background: rgba(45, 111, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

#cd-page .cd-hub-block__icon--green {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

#cd-page .cd-hub-block__icon--orange {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.35);
  color: #fb923c;
}

#cd-page .cd-hub-block__titles {
  flex: 1;
  min-width: 0;
}

#cd-page .cd-hub-block__titles h2 {
  margin: 0;
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: 0.01em;
}

#cd-page .cd-hub-block__sub {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Panel de lista / texto dentro de bloque */
#cd-page .cd-hub-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 18px;
}

#cd-page .cd-hub-panel .cd-prose {
  margin: 0;
}

/* Mini grid: casos, enlaces relacionados, posts */
#cd-page .cd-hub-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px) {
  #cd-page .cd-hub-mini-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

#cd-page .cd-hub-card--compact .cd-hub-card__body {
  padding: 16px 16px 14px;
}

#cd-page .cd-hub-card--compact .cd-hub-card__title {
  font-size: 15px;
}

#cd-page .cd-hub-card--compact .cd-hub-card__excerpt {
  -webkit-line-clamp: 3;
  font-size: 13px;
}

#cd-page .cd-hub-card__result {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(240, 237, 228, 0.88);
}

#cd-page .cd-hub-card__result strong {
  color: var(--text);
}

/* Métricas citables (casos) */
#cd-page .cd-hub-metrics {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#cd-page .cd-hub-metrics__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 237, 228, 0.55);
  margin-bottom: 10px;
}

#cd-page .cd-hub-metrics ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(240, 237, 228, 0.88);
}

/* Hero producto detalle: reusa headers del landing */
#cd-page .cd-hub-product-strip {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

#cd-page .cd-hub-product-strip .product-header {
  padding: 22px 24px 18px;
}

#cd-page .cd-hub-product-strip .product-name {
  font-size: clamp(26px, 5vw, 36px);
}

/* Lista relacionada estilo “cards” en una columna */
#cd-page .cd-hub-related-stack {
  display: grid;
  gap: 12px;
}
