/* ============================================================
   imagensatelital.io — Blog CSS
   Archivo: css/blog.css
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0a0c0f;
  --bg-card:    #111418;
  --bg-card-2:  #161a20;
  --accent:     #2365cf;       /* azul eléctrico del sitio */
  --accent-dim: rgba(59,130,246,0.15);
  --border:     rgba(59,130,246,0.12);
  --border-hov: rgba(59,130,246,0.35);
  --text:       #e2e8f0;
  --text-muted: #64748b;
  --text-dim:   #94a3b8;
  --white:      #ffffff;
  --font-head:  'Rajdhani', sans-serif;
  --font-body:  'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { color: var(--white); font-weight: 600; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(10,12,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo .logo-img { height: 44px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

/* ── BLOG HERO ── */
.blog-hero {
  position: relative;
  padding: 160px 32px 90px;
  overflow: hidden;
  background: var(--bg);  /* fallback si no hay imagen */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,12,15,0.72) 0%, rgba(10,12,15,0.60) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--accent); }

.hero-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.75;
}

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

/* ── BLOG LAYOUT ── */
.blog-section { padding: 60px 0 80px; }

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
}

/* ── FEATURED CARD ── */
.featured-card {
  margin-bottom: 48px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
}
.featured-card:hover { border-color: var(--border-hov); }

.featured-img {
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
}
.featured-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.7) saturate(0.8);
  transition: transform 0.7s, filter 0.4s;
}
.featured-card:hover .featured-img img {
  transform: scale(1.04);
  filter: brightness(0.85) saturate(1);
}

.featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,12,15,0.7) 0%, transparent 60%);
}

.featured-tag {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
}

.featured-content { padding: 32px; background: var(--bg-card); }

.featured-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--white);
  margin: 8px 0 12px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.featured-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 640px;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.featured-meta time {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

/* ── BLOG CARD ── */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.blog-card:hover {
  border-color: var(--border-hov);
  transform: translateY(-4px);
}

.card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.75) saturate(0.7);
  transition: transform 0.6s, filter 0.4s;
}
.blog-card:hover .card-img img {
  transform: scale(1.06);
  filter: brightness(0.9) saturate(1);
}

.card-tag {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(10,12,15,0.85);
  border: 1px solid var(--border-hov);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.card-body { padding: 20px; }
.card-body h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin: 6px 0 10px;
  line-height: 1.3;
}
.card-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.card-footer time {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── SHARED LABELS & LINKS ── */
.cat-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.2s;
}
.read-more:hover { gap: 10px; }

.read-more-sm {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: opacity 0.2s;
}
.read-more-sm:hover { opacity: 0.75; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 24px;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  opacity: 0.88;
  box-shadow: 0 0 18px rgba(59,130,246,0.4);
}

/* ── SIDEBAR ── */
.blog-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
}
.sidebar-block h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 8px 0 10px;
  line-height: 1.3;
}
.sidebar-block p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.sidebar-block .cat-label { margin-bottom: 14px; }

.sidebar-list {
  list-style: none;
}
.sidebar-list li {
  border-bottom: 1px solid var(--border);
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.sidebar-list a:hover { color: var(--accent); }
.sidebar-list a span { color: var(--text-muted); }

.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.kw-tag {
  background: var(--accent-dim);
  border: 1px solid var(--border-hov);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  transition: background 0.2s;
}
.kw-tag:hover { background: rgba(59,130,246,0.25); }

.sidebar-cta {
  border-color: var(--border-hov);
  position: relative;
}
.sidebar-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

/* ── ARTICLE HERO ── */
.article-hero {
  position: relative;
  height: 560px;
  margin-top: 72px;
  overflow: hidden;
}
.article-hero-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.45) saturate(0.65);
}
.article-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,12,15,0.97) 10%, rgba(10,12,15,0.3) 60%, transparent 100%);
  z-index: 1;
}
.article-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 52px 40px;
  max-width: 960px;
}
.article-hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 10px;
}

/* ── ARTICLE SECTION ── */
.article-section { padding: 60px 0 80px; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── ARTICLE BODY ── */
.article-body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.85;
}
.article-body p { margin-bottom: 1.4rem; }

.article-body h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.8rem 0 0.7rem;
}

.article-body ul {
  list-style: none;
  margin-bottom: 1.4rem;
}
.article-body ul li {
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 0.95rem;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  background: var(--accent);
}

/* ── PULL QUOTE ── */
.pull-quote {
  border-left: 3px solid var(--accent);
  background: var(--bg-card-2);
  padding: 24px 28px;
  margin: 2.2rem 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
}

/* ── FORMULA ── */
.formula-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Courier New', monospace;
}
.formula-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.formula-expr {
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 600;
}

/* ── DELIVERABLES TABLE ── */
.deliverables-table {
  border: 1px solid var(--border);
  margin: 1.5rem 0;
  overflow-x: auto;
}
.dt-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.dt-row:last-child { border-bottom: none; }
.dt-row > div { padding: 14px 16px; color: var(--text-dim); }
.dt-header {
  background: var(--bg-card-2);
}
.dt-header > div {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── ARTICLE FIGURE ── */
.article-figure {
  margin: 2rem 0;
  border: 1px solid var(--border);
}
.article-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.8);
}
figcaption {
  padding: 10px 14px;
  background: var(--bg-card);
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── ARTICLE KEYWORDS ── */
.article-keywords {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-keywords .cat-label { margin-bottom: 14px; }

/* ── ARTICLE CTA ── */
.article-cta {
  margin-top: 40px;
  border: 1px solid var(--border-hov);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.article-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}
.cta-text h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 6px 0 8px;
}
.cta-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cta-text .cat-label { margin-bottom: 4px; }

@media (max-width: 640px) {
  .article-cta { flex-direction: column; align-items: flex-start; }
}

/* ── GLOSSARY ── */
.glossary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.glossary-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.glossary-list li:last-child { border-bottom: none; }
.gls-term {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.gls-def {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── RELATED SECTION ── */
.related-section {
  padding: 60px 0 80px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.related-header h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ── FOOTER ── */
.site-footer {
  background: #070809;
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-brand { max-width: 280px; }
.footer-logo { height: 52px; width: auto; margin-bottom: 20px; }
.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.footer-legal {
  font-size: 0.72rem !important;
  color: var(--text-muted) !important;
  margin-top: 12px !important;
}
.footer-legal a { color: var(--accent); }

.footer-cols {
  display: flex;
  gap: 64px;
}
.footer-cols h4 {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .blog-hero { padding: 120px 20px 60px; }
  .container { padding: 0 20px; }
  .site-nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .article-hero { height: 420px; }
  .article-hero-content { padding: 32px 20px; }
  .footer-inner { flex-direction: column; }
  .footer-cols { gap: 32px; }
  .blog-sidebar { position: static; }
  .dt-row { grid-template-columns: 1fr; }
  .dt-row > div { border-bottom: 1px solid var(--border); }
}
