/* ============================================================
   DIAR-Tech — páginas de contenido (servicios y blog)
   Reutiliza tokens, header y footer de style.css
   ============================================================ */

.content-hero {
  position: relative;
  padding: 150px 0 64px;
  background:
    radial-gradient(circle at 82% 8%, rgba(6, 182, 212, .16), transparent 34%),
    linear-gradient(158deg, #06111f 0%, #0b1b2d 58%, #073044 100%);
  color: #e2e8f0;
  overflow: hidden;
}
.content-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, .55), transparent);
}
.content-hero .kicker { margin-bottom: 18px; }
.content-hero h1 {
  color: #fff; max-width: 880px;
  font-size: clamp(32px, 5vw, 54px); letter-spacing: -1px; line-height: 1.08; text-wrap: balance;
}
.content-hero .lead {
  margin-top: 22px; max-width: 760px;
  font-size: clamp(16px, 2vw, 19px); line-height: 1.7; color: #b6c2d4;
}
.content-hero .lead strong { color: #e8f7fa; }
.content-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .4px; color: #7f97ac;
}
.content-meta span { display: inline-flex; align-items: center; gap: 7px; }
.content-meta b { color: #67e8f9; font-weight: 500; }

.breadcrumbs {
  margin: 0 0 26px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .3px;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs a { color: #7f97ac; text-decoration: none; }
.breadcrumbs a:hover { color: #67e8f9; }
.breadcrumbs li[aria-current] { color: #cbd5e1; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: #3f566d; }

/* ---------- Layout ---------- */
.content-body { padding: 56px 0 96px; background: var(--light); }
.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.content-article { max-width: 780px; }

.content-article h2 {
  font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.4px; margin: 44px 0 16px;
  scroll-margin-top: 96px;
}
.content-article h2:first-child { margin-top: 0; }
.content-article h3 { font-size: 19px; margin: 30px 0 10px; color: var(--ink-2); }
.content-article p { margin-bottom: 16px; font-size: 16.5px; line-height: 1.78; color: var(--txt); }
.content-article a { color: var(--cyan-deep); font-weight: 700; text-underline-offset: 3px; }
.content-article a:hover { color: #075b72; }
.content-article ul, .content-article ol { margin: 0 0 18px 22px; }
.content-article li { margin-bottom: 9px; font-size: 16px; line-height: 1.7; color: var(--txt); }
.content-article li::marker { color: var(--cyan-deep); }
.content-article strong { color: var(--ink-2); }
.content-article hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.callout {
  margin: 28px 0; padding: 22px 24px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cyan);
  box-shadow: 0 12px 34px rgba(7, 21, 37, .06);
}
.callout p:last-child { margin-bottom: 0; }
.callout .callout-title {
  display: block; margin-bottom: 8px; font-family: var(--font-display);
  font-size: 14px; letter-spacing: .4px; text-transform: uppercase; color: var(--cyan-deep);
}
.placeholder {
  background: rgba(250, 204, 21, .16); border: 1px dashed #d97706;
  border-radius: 6px; padding: 1px 7px; font-weight: 700; color: #92400e;
  font-size: .95em; white-space: nowrap;
}

/* Tabla comparativa simple */
.content-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.content-table th, .content-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.content-table th { background: #eef5f7; color: var(--ink-2); font-family: var(--font-display); font-size: 14px; }
.content-table tr:last-child td { border-bottom: 0; }

/* ---------- Aside / CTA ---------- */
.content-aside { position: sticky; top: 100px; display: grid; gap: 22px; }
.aside-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 26px; box-shadow: 0 18px 50px rgba(7, 21, 37, .08);
}
.aside-card h2 { font-size: 19px; margin-bottom: 10px; }
.aside-card p { font-size: 14.5px; line-height: 1.65; color: #5b6b7f; margin-bottom: 18px; }
.aside-card .btn { width: 100%; justify-content: center; min-height: 48px; }
.aside-card .btn + .btn { margin-top: 10px; }
.aside-list { list-style: none; margin: 0; }
.aside-list li { margin-bottom: 10px; }
.aside-list a { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: #33475d; text-decoration: none; }
.aside-list a:hover { color: var(--cyan-deep); }
.aside-list .mono { color: var(--cyan-deep); }
.aside-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cyan-deep); margin-bottom: 16px; }

/* ---------- FAQ ---------- */
.content-faq { margin-top: 52px; }
.content-faq h2 { margin-top: 0; }
.content-faq .faq-list { margin-top: 22px; }

/* ---------- Related ---------- */
.related { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.related h2 { font-size: 22px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card {
  display: block; padding: 22px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.related-card:hover { transform: translateY(-3px); border-color: rgba(6, 182, 212, .5); box-shadow: 0 14px 36px rgba(7, 21, 37, .08); }
.related-card .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--cyan-deep); }
.related-card h3 { font-size: 17px; margin: 8px 0 6px; color: var(--ink); }
.related-card p { font-size: 14px; color: #5b6b7f; margin: 0; }

/* ---------- CTA final ---------- */
.content-cta {
  margin-top: 64px; padding: 40px 44px; border-radius: 24px;
  background: linear-gradient(145deg, #06111f, #0b1b2d 58%, #063140); color: #cbd5e1;
}
.content-cta h2 { color: #fff; font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 12px; }
.content-cta p { color: #b6c2d4; max-width: 620px; margin-bottom: 24px; }
.content-cta .btn-primary { display: inline-flex; }

/* ---------- Índice de servicios / blog ---------- */
.hub-hero { padding-bottom: 56px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.hub-card {
  display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line); text-decoration: none;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.hub-card:hover { transform: translateY(-4px); border-color: rgba(6, 182, 212, .5); box-shadow: 0 18px 44px rgba(7, 21, 37, .1); }
.hub-card .hub-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; color: var(--cyan-deep); }
.hub-card h2, .hub-card h3 { font-size: 21px; color: var(--ink); }
.hub-card p { font-size: 15px; line-height: 1.65; color: #5b6b7f; margin: 0; }
.hub-card .hub-more { margin-top: auto; font-weight: 700; color: var(--cyan-deep); font-size: 14px; }

.blog-list { display: grid; gap: 18px; margin-top: 8px; }
.blog-card {
  display: grid; grid-template-columns: 1fr; gap: 10px; padding: 30px 30px;
  border-radius: 18px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.blog-card:hover { transform: translateY(-3px); border-color: rgba(6, 182, 212, .5); box-shadow: 0 16px 40px rgba(7, 21, 37, .08); }
.blog-card .blog-tag { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--slate-soft); }
.blog-card .blog-tag b { color: var(--cyan-deep); font-weight: 500; }
.blog-card h2 { font-size: 23px; color: var(--ink); letter-spacing: -.3px; }
.blog-card p { font-size: 15.5px; line-height: 1.65; color: #5b6b7f; margin: 0; }
.blog-card .read { margin-top: 6px; font-weight: 700; color: var(--cyan-deep); font-size: 14px; }

@media (max-width: 980px) {
  .content-wrap { grid-template-columns: 1fr; gap: 40px; }
  .content-aside { position: static; grid-row: auto; }
  .content-article { max-width: none; }
}
@media (max-width: 680px) {
  .content-hero { padding: 124px 0 48px; }
  .content-body { padding: 40px 0 72px; }
  .related-grid, .hub-grid { grid-template-columns: 1fr; }
  .content-cta { padding: 32px 24px; }
  .blog-card { padding: 24px 22px; }
}
