/*
Theme Name:  C3ntro Blog
Theme URI:   https://c3ntro.com/blog
Description: Tema WordPress para el blog de C3ntro Telecom. Diseño idéntico a www.c3ntro.com — paleta, tipografía, nav y footer pixel-perfect.
Author:      C3ntro Telecom
Author URI:  https://c3ntro.com
Version:     2.0.0
License:     Proprietary
Text Domain: c3ntro-blog
Tags:        dark, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS — C3ntro Official Palette
   ============================================================ */
:root {
  --bg-deep:         #0A1424;
  --bg-surface:      #0F1D33;
  --bg-elevated:     #15263F;
  --bg-inset:        #0C1A2E;
  --c3-navy:         #0F1D33;
  --c3-navy-mid:     #1E3A5F;
  --c3-blue-dark:    #1A4FBF;
  --c3-blue-royal:   #1A56DB;
  --c3-blue:         #2563A8;
  --c3-purple:       #5B3AA0;
  --c3-purple-viv:   #7C3AED;
  --c3-teal:         #4A90C4;
  --c3-cyan:         #00E5CC;
  --c3-light-blue:   #CCE7FF;
  --c3-gold:         #C9A84C;
  --c3-green:        #38A169;
  --c3-red:          #E53E3E;
  --border-subtle:   #1F3354;
  --border-strong:   #2D4D80;
  --accent-cyan:     #00E5CC;
  --accent-mint:     #7FE5A6;
  --accent-blue:     #1A56DB;
  --text-primary:    #FFFFFF;
  --text-secondary:  #CCE7FF;
  --text-muted:      #6B7B8D;
  --font-sans:  "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-body:  "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, monospace;
  --max:        1440px;
  --pad-x:      clamp(24px, 5vw, 72px);
  --section-py: clamp(72px, 11vw, 160px);
}

/* ============================================================
   RESET COMPLETO
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  background: #0a0f1e;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; min-height: 100vh; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============================================================
   PRIMITIVOS — marker, eyebrow, btn
   ============================================================ */
.marker {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c3-light-blue);
  display: inline-flex; align-items: center; gap: 10px;
  line-height: 1;
}
.marker::before {
  content: ""; width: 28px; height: 2px;
  background: var(--c3-blue-royal); display: inline-block;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 2px;
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  transition: all .15s ease; border: 1px solid transparent;
  line-height: 1; white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--c3-blue-royal); color: #fff; }
.btn-primary:hover { background: #2563EB; box-shadow: 0 12px 32px -8px rgba(26,86,219,.55); }
.btn-ghost { border-color: rgba(204,231,255,.25); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--c3-cyan); color: var(--c3-cyan); }
.arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow, a:hover .arrow { transform: translateX(3px); }

/* ============================================================
   NAV — pixel-perfect www.c3ntro.com
   ============================================================ */
#c3-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
#c3-nav.scrolled {
  background: rgba(10,15,30,.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(204,231,255,.1);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 72px;
}

/* Logo */
.c3-logo { display: inline-flex; align-items: center; }
.logo-wrap { position: relative; display: block; line-height: 0; }
.logo-wrap .logo-default {
  height: 22px; width: auto; display: block;
  filter: brightness(0) invert(1); transition: opacity .2s ease;
}
.logo-wrap .logo-aqua {
  position: absolute; top: 0; left: 0;
  height: 22px; width: auto; display: block;
  opacity: 0; transition: opacity .2s ease;
}
.c3-logo:hover .logo-default { opacity: 0; }
.c3-logo:hover .logo-aqua    { opacity: 1; }

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-link {
  font-family: var(--font-sans); font-size: 13.5px;
  color: var(--text-secondary); font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; padding: 6px 0;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link.is-blog-active { color: var(--c3-cyan) !important; }

/* Dropdown items */
.menu-item { position: relative; display: inline-flex; align-items: center; }
.menu-item > .nav-link { gap: 6px; }
.chev { opacity: .55; transition: transform .2s ease; }
.menu-item:hover > .nav-link .chev { transform: rotate(180deg); }
.menu-item::after {
  content: ""; position: absolute;
  top: 100%; left: 0; right: 0; height: 16px;
}
.menu-dd {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 210px; padding: 8px;
  background: rgba(10,15,30,.97);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(204,231,255,.14);
  border-radius: 11px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  box-shadow: 0 24px 55px -16px rgba(0,0,0,.6); z-index: 200;
}
.menu-item:hover .menu-dd {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(8px);
}
.menu-dd a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; font-family: var(--font-sans);
  color: var(--text-secondary); white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.menu-dd a:hover { background: rgba(204,231,255,.09); color: #fff; }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta {
  border: 1px solid var(--border-strong); border-radius: 2px;
  padding: 9px 16px; font-size: 13px; font-weight: 500;
  color: var(--text-primary); transition: all .15s ease;
  font-family: var(--font-sans);
}
.nav-cta:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* Mobile toggle */
.nav-mobile-toggle {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 8px; background: none; border: 0;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all .25s ease;
}
.nav-mobile-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   BLOG PAGE HEADER
   ============================================================ */
.blog-page-header {
  padding: 140px 0 80px;
  background: #05080F;
  border-bottom: 1px solid var(--border-subtle);
  position: relative; overflow: hidden;
}
.blog-page-header::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 25%, rgba(124,58,237,.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 12% 80%, rgba(26,79,191,.25) 0%, transparent 60%),
    linear-gradient(135deg, rgba(15,29,51,.97) 0%, rgba(10,20,36,.9) 100%);
  pointer-events: none;
}
.blog-page-header::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45,77,128,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,77,128,.3) 1px, transparent 1px);
  background-size: 80px 80px; opacity: .35;
  mask-image: radial-gradient(ellipse 95% 75% at 35% 45%, #000 15%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 35% 45%, #000 15%, transparent 80%);
  pointer-events: none;
}
.blog-page-header .wrap { position: relative; z-index: 2; }
.blog-page-header h1 {
  font-size: clamp(34px, 4.6vw, 64px);
  margin-top: 20px; max-width: 22ch;
  text-shadow: 0 4px 40px rgba(10,20,36,.6);
}
.blog-page-header p {
  margin-top: 18px; max-width: 58ch;
  font-size: 18px; line-height: 1.6;
  color: rgba(255,255,255,.72); font-family: var(--font-body);
}

/* ============================================================
   FILTROS
   ============================================================ */
.blog-filters {
  padding: 28px 0; background: var(--bg-deep);
  border-bottom: 1px solid var(--border-subtle);
}
.blog-filters-inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.blog-filter-btn {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid rgba(204,231,255,.18);
  border-radius: 2px; color: var(--text-muted); background: transparent;
  cursor: pointer; transition: all .15s ease; text-decoration: none; display: inline-block;
}
.blog-filter-btn:hover, .blog-filter-btn.active {
  border-color: var(--c3-cyan); color: var(--c3-cyan);
}

/* ============================================================
   GRID DE POSTS
   ============================================================ */
.blog-main {
  padding: clamp(48px, 8vw, 96px) 0;
  background: #0a0f1e; min-height: 60vh;
}
.blog-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}

.post-card {
  background: var(--c3-navy);
  border: 1px solid rgba(204,231,255,.08);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  text-decoration: none; color: inherit;
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(204,231,255,.2);
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.5), 0 0 0 1px rgba(26,86,219,.15);
}
/* Wrapper de aspecto ratio 16:9 — padding-bottom trick, más compatible que aspect-ratio */
.post-card-thumb-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 64.27%; /* 736:473 — formato imagen C3ntro */
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
/* Imagen dentro del wrapper */
.post-card-thumb-wrap img,
.post-card-thumb-wrap .wp-post-image {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
}
/* Ícono placeholder dentro del wrapper */
.post-card-thumb-wrap > div {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--c3-navy-mid) 100%);
}
.post-card-thumb-placeholder {
  position: relative;
  width: 100%;
  padding-bottom: 64.27%;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--c3-navy-mid) 100%);
  flex-shrink: 0;
}
.post-card-thumb-placeholder svg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.post-card-body {
  padding: 24px 28px 28px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.post-card-meta { display: flex; align-items: center; gap: 12px; }
.post-card-tag {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--c3-cyan);
}
.post-card-date {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); letter-spacing: 0.06em;
}
.post-card-title {
  font-family: var(--font-sans); font-size: 18px; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.25; color: var(--text-primary);
}
.post-card-excerpt {
  font-family: var(--font-body); font-size: 14px;
  line-height: 1.6; color: rgba(204,231,255,.65); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-read {
  margin-top: 6px; font-family: var(--font-sans);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s ease;
}
.post-card:hover .post-card-read { color: var(--c3-cyan); }

/* Post destacado — más compacto */
.post-card.is-featured { grid-column: span 3; flex-direction: row; max-height: 340px; }
.post-card.is-featured .post-card-thumb-wrap {
  width: 48%;
  padding-bottom: 0;
  height: 340px;
  flex-shrink: 0;
}
.post-card.is-featured .post-card-thumb-placeholder {
  width: 48%;
  padding-bottom: 0;
  height: 340px;
  flex-shrink: 0;
}
.post-card.is-featured .post-card-body {
  padding: 28px 36px;
  justify-content: center;
  overflow: hidden;
}
.post-card.is-featured .post-card-title { font-size: clamp(18px, 2.2vw, 26px); }
.post-card.is-featured .post-card-excerpt { -webkit-line-clamp: 3; }

/* Paginación */
.blog-pagination {
  margin-top: 64px; display: flex;
  justify-content: center; align-items: center; gap: 8px;
}
.blog-pagination .page-numbers {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  width: 40px; height: 40px; display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid rgba(204,231,255,.15); border-radius: 2px;
  color: var(--text-muted); transition: all .15s ease; text-decoration: none;
}
.blog-pagination .page-numbers:hover { border-color: var(--c3-cyan); color: var(--c3-cyan); }
.blog-pagination .page-numbers.current { background: var(--c3-blue-royal); border-color: var(--c3-blue-royal); color: #fff; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-header {
  padding: 100px 0 0; background: #05080F;
  border-bottom: 1px solid var(--border-subtle);
  position: relative; overflow: hidden;
}
.single-post-header::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(124,58,237,.25) 0%, transparent 60%),
    linear-gradient(135deg, rgba(15,29,51,.98) 0%, rgba(10,20,36,.92) 100%);
  pointer-events: none;
}
.single-post-header .wrap { position: relative; z-index: 2; }

/* Layout dos columnas: texto izquierda, imagen derecha */
.single-post-header-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
  min-height: 360px;
  padding-bottom: 56px;
}
.single-post-header-text { display: flex; flex-direction: column; justify-content: center; }

/* Imagen en el header — proporciones respetadas, sin recorte */
.single-post-header-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
  width: 100%;
  padding-bottom: 64.27%; /* 736:473 — formato imagen C3ntro */
}
.single-post-header-image-wrap img,
.single-post-header-image-wrap .wp-post-image {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important; /* contain para no recortar nada */
  display: block !important;
  background: var(--bg-elevated);
}

.single-post-breadcrumb {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--text-muted); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.single-post-breadcrumb a:hover { color: var(--c3-cyan); }
.single-post-tag {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--c3-cyan);
  margin-bottom: 16px; display: block;
}
.single-post-title {
  font-size: clamp(24px, 3vw, 40px);
  max-width: 22ch;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.single-post-meta-row {
  margin-top: 24px; display: flex; align-items: center;
  gap: 18px; flex-wrap: wrap;
}
.single-post-author { display: flex; align-items: center; gap: 10px; }
.single-post-author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c3-navy-mid); overflow: hidden; flex-shrink: 0;
}
.single-post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.single-post-author-name { font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; }
.single-post-author-role { font-size: 12px; color: var(--text-muted); }
.single-post-sep { width: 1px; height: 24px; background: rgba(204,231,255,.15); }
.single-post-date, .single-post-read-time {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.08em;
}

/* Quitar la imagen full-width que había antes — ya no se usa */
.single-post-featured-image { display: none; }

/* Responsive header */
@media (max-width: 900px) {
  .single-post-header-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }
  .single-post-header-image-wrap {
    max-height: 260px;
    order: -1; /* imagen arriba en móvil */
  }
  .single-post-title { font-size: clamp(22px, 5vw, 34px); }
}
.single-post-layout {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 64px; padding: clamp(48px, 7vw, 96px) 0; align-items: start;
  background: #0a0f1e;
}
.single-post-layout-wrap { background: #0a0f1e; }

/* Contenido del artículo */
.single-post-content {
  font-family: var(--font-body); font-size: 17px;
  line-height: 1.75; color: rgba(204,231,255,.82);
}
.single-post-content h2 {
  font-size: clamp(22px, 3vw, 32px); color: var(--text-primary);
  margin: 2.2em 0 0.8em; line-height: 1.15;
}
.single-post-content h3 {
  font-size: clamp(18px, 2.5vw, 24px); color: var(--text-primary);
  margin: 1.8em 0 0.6em;
}
.single-post-content h4 { font-size: 18px; color: var(--text-primary); margin: 1.5em 0 0.5em; }
.single-post-content p { margin-bottom: 1.4em; }
.single-post-content a { color: var(--c3-cyan); text-decoration: underline; text-underline-offset: 3px; }
.single-post-content a:hover { color: var(--text-primary); }
.single-post-content ul, .single-post-content ol { margin: 0 0 1.4em 1.5em; list-style: initial; }
.single-post-content li { margin-bottom: 0.5em; }
.single-post-content blockquote {
  border-left: 3px solid var(--c3-cyan); padding: 16px 24px;
  margin: 2em 0; background: rgba(0,229,204,.05);
  border-radius: 0 8px 8px 0; font-style: italic;
  color: var(--text-secondary); font-size: 18px;
}
.single-post-content code {
  font-family: var(--font-mono); font-size: 14px;
  background: rgba(204,231,255,.08); padding: 2px 8px;
  border-radius: 4px; color: var(--c3-cyan);
}
.single-post-content pre {
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 24px; overflow-x: auto; margin: 1.6em 0;
}
.single-post-content pre code { background: none; padding: 0; color: var(--text-secondary); }
.single-post-content img { width: 100%; border-radius: 8px; margin: 1.8em 0; border: 1px solid var(--border-subtle); }
.single-post-content figcaption {
  font-size: 13px; color: var(--text-muted); text-align: center;
  margin-top: 10px; font-family: var(--font-mono); letter-spacing: 0.06em;
}

/* Sidebar */
.single-post-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--c3-navy); border: 1px solid rgba(204,231,255,.08);
  border-radius: 12px; padding: 24px 26px;
}
.sidebar-widget-title {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c3-cyan); margin-bottom: 16px;
}
.sidebar-post-list { display: flex; flex-direction: column; gap: 14px; }
.sidebar-post-list li a {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  color: var(--text-secondary); line-height: 1.35; transition: color .15s ease;
}
.sidebar-post-list li a:hover { color: var(--c3-cyan); }
.sidebar-post-list .s-date {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); display: block; margin-top: 3px;
}
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tag {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid rgba(204,231,255,.14);
  border-radius: 2px; color: var(--text-muted); transition: all .15s ease;
  text-decoration: none; display: inline-block;
}
.sidebar-tag:hover { border-color: var(--c3-cyan); color: var(--c3-cyan); }
.sidebar-cta {
  background: linear-gradient(135deg, rgba(26,86,219,.2) 0%, rgba(0,229,204,.08) 100%);
  border-color: rgba(26,86,219,.35) !important;
}
.sidebar-cta-text {
  font-size: 14px; line-height: 1.55;
  color: rgba(204,231,255,.75); margin-bottom: 16px; font-family: var(--font-body);
}
.sidebar-cta .btn { width: 100%; justify-content: center; font-size: 13px; }

/* Tags del post */
.single-post-tags {
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-subtle);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.single-post-tags-label {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}

/* Posts relacionados */
.related-posts {
  padding: clamp(48px, 7vw, 80px) 0;
  background: var(--bg-surface); border-top: 1px solid var(--border-subtle);
}
.related-posts .section-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 32px; margin-bottom: 48px;
}
.related-posts .section-head h2 {
  font-size: clamp(24px, 3vw, 38px);
}

/* ============================================================
   FOOTER — idéntico a www.c3ntro.com
   ============================================================ */
#c3-footer { padding: 96px 0 32px; background: #0a0f1e; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr repeat(5,1fr);
  gap: 32px; padding-bottom: 64px;
  border-bottom: 1px solid var(--border-subtle);
}
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand .c3-logo { display: inline-flex; }
.foot-brand p {
  color: var(--text-muted); font-size: 13.5px;
  line-height: 1.55; max-width: 30ch; font-family: var(--font-body);
}
.foot-brand .logo-wrap .logo-default,
.foot-brand .logo-wrap .logo-aqua { height: 28px; }

.foot-col h6 {
  font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.18em;
  font-weight: 700; color: var(--c3-cyan); text-transform: uppercase; margin-bottom: 16px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col li a {
  color: var(--text-secondary); font-size: 13.5px;
  transition: color .15s ease; font-family: var(--font-body);
}
.foot-col li a:hover { color: var(--accent-cyan); }

.offices-strip {
  display: grid; grid-template-columns: repeat(5,1fr);
  gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--border-subtle);
}
.office h6 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent-cyan); text-transform: uppercase; margin-bottom: 10px;
}
.office h6::before { content: "— \00a0"; color: var(--c3-cyan); opacity: .8; }
.office .addr { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.office .phone {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-muted); margin-top: 8px; display: block;
}
.footer-bottom {
  padding: 32px 0 0; display: flex;
  justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.foot-bot-l {
  display: flex; gap: 24px; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase;
}
.foot-bot-l a { color: var(--text-muted); transition: color .15s ease; }
.foot-bot-l a:hover { color: var(--accent-cyan); }
.lang {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); display: inline-flex; gap: 6px; align-items: center;
}
.lang .active { color: var(--text-primary); }
.socials { display: flex; gap: 14px; }
.social {
  width: 36px; height: 36px; border: 1px solid var(--border-subtle);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all .15s ease;
}
.social:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* ============================================================
   ANIMACIONES
   ============================================================ */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(127,229,166,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(127,229,166,0);  }
  100% { box-shadow: 0 0 0 0   rgba(127,229,166,0);  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .post-card.is-featured { grid-column: span 2; flex-direction: column; }
  .post-card.is-featured .post-card-thumb,
  .post-card.is-featured .post-card-thumb-placeholder { width: 100%; min-height: unset; aspect-ratio: 16/9; }
  .single-post-layout { grid-template-columns: 1fr; }
  .single-post-sidebar { position: static; }
  .footer-top { grid-template-columns: repeat(3,1fr); }
  .offices-strip { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-card.is-featured { grid-column: span 1; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(10,15,30,.97); padding: 16px 24px; gap: 4px; border-bottom: 1px solid var(--border-subtle); }
  .nav-links.is-open { display: flex; }
  .nav-links .menu-item { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-links .menu-dd { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none; background: transparent; border: 0; padding: 0 0 0 16px; display: none; }
  .nav-links .menu-item:hover .menu-dd { display: flex; }
  .nav-mobile-toggle { display: flex; }
  .footer-top { grid-template-columns: repeat(2,1fr); }
  .offices-strip { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .offices-strip { grid-template-columns: 1fr; }
}

/* ============================================================
   SECCIÓN NOTICIAS — estilos específicos
   ============================================================ */

/* Tags con color por categoría */
.noticias-tag { font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.noticias-tag--infra      { color: var(--c3-cyan); }
.noticias-tag--enterprise { color: var(--c3-blue-royal); }
.noticias-tag--c3ntro     { color: var(--c3-gold); }

/* Acento lateral en card según categoría */
.noticias-card.news-cat-infra      { border-top: 2px solid var(--c3-cyan); }
.noticias-card.news-cat-enterprise { border-top: 2px solid var(--c3-blue-royal); }
.noticias-card.news-cat-c3ntro     { border-top: 2px solid var(--c3-gold); }

/* Separador en la barra de filtros */
.noticias-filter-sep {
  width: 1px; height: 20px;
  background: rgba(204,231,255,.15);
  margin: 0 4px;
  display: inline-block;
  align-self: center;
}

/* Link "Ver Blog" en los filtros */
.noticias-blog-link {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--text-muted);
  transition: color .15s ease; display: inline-flex; align-items: center; gap: 5px;
}
.noticias-blog-link:hover { color: var(--c3-cyan); }

/* Header variante noticias — sin grid overlay */
.noticias-header::after { display: none; }

/* ============================================================
   OVERRIDE ESTILOS INLINE DE HUBSPOT
   Neutraliza colores y fondos hardcoded en el HTML importado
   ============================================================ */
.single-post-content *,
.single-post-content p,
.single-post-content span,
.single-post-content div,
.single-post-content li,
.single-post-content td,
.single-post-content th {
  color: inherit !important;
  background-color: transparent !important;
}

/* Preservar estilos que sí queremos */
.single-post-content a { color: var(--c3-cyan) !important; }
.single-post-content strong, .single-post-content b { color: var(--text-primary) !important; }
.single-post-content h2, .single-post-content h3, .single-post-content h4 { color: var(--text-primary) !important; }
.single-post-content blockquote { background-color: rgba(0,229,204,.05) !important; }
.single-post-content code { background-color: rgba(204,231,255,.08) !important; color: var(--c3-cyan) !important; }
.single-post-content pre { background-color: var(--bg-elevated) !important; }

/* ============================================================
   SELECTOR DE POSTS POR PÁGINA + SEPARADOR FILTROS
   ============================================================ */
.blog-filter-sep {
  width: 1px; height: 20px;
  background: rgba(204,231,255,.15);
  margin: 0 4px;
  display: inline-block;
  align-self: center;
  flex-shrink: 0;
}
.blog-per-page-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-per-page-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.blog-pp-btn {
  min-width: 44px;
  text-align: center;
  padding: 7px 10px !important;
  font-size: 12px !important;
}

/* ============================================================
   PAGINACIÓN — arreglo de empalme
   ============================================================ */
.blog-pagination {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.blog-pagination .page-numbers,
.blog-pagination a,
.blog-pagination span {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(204,231,255,.15);
  border-radius: 2px;
  color: var(--text-muted);
  transition: all .15s ease;
  text-decoration: none;
  line-height: 1;
}
.blog-pagination a:hover {
  border-color: var(--c3-cyan);
  color: var(--c3-cyan);
}
.blog-pagination .current,
.blog-pagination span.current {
  background: var(--c3-blue-royal);
  border-color: var(--c3-blue-royal);
  color: #fff !important;
}
.blog-pagination .dots,
.blog-pagination span.dots {
  border: 0;
  color: var(--text-muted);
  min-width: 20px;
}

/* ============================================================
   BARRA DE PAGINACIÓN + SELECTOR POSTS POR PÁGINA
   ============================================================ */
.blog-pagination-bar {
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.blog-pagination-bar .blog-pagination {
  margin-top: 0;
  justify-content: flex-start;
}
.blog-per-page-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.blog-per-page-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.blog-pp-btn {
  min-width: 40px !important;
  padding: 7px 10px !important;
  font-size: 12px !important;
  text-align: center;
}
@media (max-width: 600px) {
  .blog-pagination-bar { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   BLOQUE CTA + FORMULARIO HUBSPOT — single blog
   ============================================================ */
.blog-hubspot-cta {
  padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(135deg, #05080F 0%, #0F1D33 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.blog-hubspot-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 0% 50%, rgba(26,86,219,.2) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 100% 30%, rgba(0,229,204,.1) 0%, transparent 60%);
  pointer-events: none;
}
.blog-hubspot-cta-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
/* Texto lado izquierdo */
.blog-hubspot-cta-text .marker { margin-bottom: 20px; }
.blog-hubspot-cta-text h2 {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.blog-hubspot-cta-text p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(204,231,255,.72);
  max-width: 46ch;
  margin-bottom: 28px;
}
.blog-hubspot-cta-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-hubspot-cta-points li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta-check {
  color: var(--c3-cyan);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
/* Card del formulario lado derecho */
.blog-hubspot-form-card {
  background: rgba(15,29,51,.85);
  border: 1px solid rgba(204,231,255,.12);
  border-radius: 14px;
  padding: 32px 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.blog-hubspot-form-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c3-cyan);
  margin-bottom: 24px;
}
/* Estilos del formulario HubSpot para que se vea bien en el tema oscuro */
.blog-hubspot-form-card .hs-form fieldset { max-width: 100% !important; }
.blog-hubspot-form-card .hs-form .hs-input {
  width: 100% !important;
  background: rgba(204,231,255,.06) !important;
  border: 1px solid rgba(204,231,255,.18) !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  padding: 11px 14px !important;
  transition: border-color .15s ease !important;
}
.blog-hubspot-form-card .hs-form .hs-input:focus {
  border-color: var(--c3-cyan) !important;
  outline: none !important;
}
.blog-hubspot-form-card .hs-form label {
  color: rgba(204,231,255,.8) !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
  display: block !important;
}
.blog-hubspot-form-card .hs-form .hs-button {
  background: var(--c3-blue-royal) !important;
  border: none !important;
  border-radius: 2px !important;
  color: #fff !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 13px 24px !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background .15s ease !important;
  margin-top: 8px !important;
}
.blog-hubspot-form-card .hs-form .hs-button:hover {
  background: #2563EB !important;
}
.blog-hubspot-form-card .hs-error-msgs { color: var(--c3-red) !important; font-size: 12px !important; }
.blog-hubspot-form-card .submitted-message { color: var(--c3-cyan) !important; font-family: var(--font-sans) !important; font-size: 16px !important; font-weight: 600 !important; text-align: center !important; padding: 24px 0 !important; }

/* Responsive */
@media (max-width: 900px) {
  .blog-hubspot-cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   NAV — selector EN·ES
   ============================================================ */
.nav-lang {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: none; /* solo visible en desktop */
}
.nav-lang .lang-active { color: var(--text-primary); }
@media (min-width: 769px) { .nav-lang { display: inline-flex; gap: 4px; align-items: center; } }

/* ============================================================
   BLOG CTA STRIP — reemplaza el bloque grande del formulario
   ============================================================ */
.blog-cta-strip {
  padding: clamp(36px, 5vw, 56px) 0;
  background: linear-gradient(135deg, #05080F 0%, #0F1D33 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.blog-cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.blog-cta-strip-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c3-cyan);
  margin-bottom: 8px;
}
.blog-cta-strip-title {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.15;
}
.blog-cta-open-modal {
  flex-shrink: 0;
  font-size: 15px;
  padding: 16px 28px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .blog-cta-strip-inner { flex-direction: column; align-items: flex-start; }
  .blog-cta-open-modal { width: 100%; justify-content: center; }
}

/* ============================================================
   POPUP MODAL — formulario HubSpot
   ============================================================ */
.hs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.hs-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.hs-modal-box {
  background: var(--bg-surface);
  border: 1px solid rgba(204,231,255,.14);
  border-radius: 18px;
  padding: 40px 36px;
  width: 100%;
  max-width: 520px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.hs-modal-overlay.is-open .hs-modal-box {
  transform: translateY(0);
}
.hs-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(204,231,255,.08);
  border: 1px solid rgba(204,231,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s ease;
}
.hs-modal-close:hover {
  background: rgba(204,231,255,.15);
  color: var(--text-primary);
}
.hs-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c3-cyan);
  margin-bottom: 12px;
}
.hs-modal-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c3-cyan);
  animation: pulse 2s infinite;
}
.hs-modal-title {
  font-family: var(--font-sans);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.1;
}
.hs-modal-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}
.hs-modal-header {
  margin-bottom: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}
.hs-modal-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(204,231,255,.07);
}
.hs-modal-guarantee svg { color: var(--text-muted); flex-shrink: 0; }
.hs-modal-guarantee span {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
/* Estilos HubSpot dentro del modal */
.hs-modal-form .hs-form fieldset { max-width: 100% !important; }
.hs-modal-form .hs-form .hs-form-field { margin-bottom: 14px !important; }
.hs-modal-form .hs-form label {
  color: rgba(204,231,255,.8) !important;
  font-family: var(--font-body) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  margin-bottom: 5px !important;
  display: block !important;
}
.hs-modal-form .hs-form .hs-input {
  width: 100% !important;
  background: rgba(204,231,255,.06) !important;
  border: 1px solid rgba(204,231,255,.16) !important;
  border-radius: 5px !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  padding: 10px 13px !important;
  transition: border-color .15s !important;
}
.hs-modal-form .hs-form .hs-input:focus {
  border-color: var(--c3-cyan) !important;
  outline: none !important;
}
.hs-modal-form .hs-form .hs-button {
  background: var(--c3-blue-royal) !important;
  border: none !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 13px 24px !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background .15s !important;
  margin-top: 6px !important;
}
.hs-modal-form .hs-form .hs-button:hover { background: #2563EB !important; }
.hs-modal-form .submitted-message {
  color: var(--c3-cyan) !important;
  font-family: var(--font-sans) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-align: center !important;
  padding: 28px 0 !important;
}
