/* =============================================
   TEKTO — Blog + Ecosistema CSS v4.0
============================================= */

/* =============================================
   ECOSISTEMA
============================================= */
.tekto-ecosystem { overflow: hidden; }

.ecosystem-diagram {
  background: rgba(255,255,255,0.02);
  border: 0.5px solid rgba(77,163,245,0.12);
  border-radius: var(--r-xl);
  padding: 32px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.ecosystem-diagram svg {
  width: 100%;
  height: auto;
  max-height: 420px;
}

.ecosystem-tech {
  text-align: center;
}

.tech-label {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
  margin-bottom: 16px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tech-pill {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--glass-blue);
  border: 0.5px solid rgba(77,163,245,0.2);
  color: var(--blue-1);
  font-family: var(--mono);
  transition: all 0.2s var(--ease);
  cursor: default;
}

.tech-pill:hover {
  background: rgba(77,163,245,0.18);
  border-color: rgba(77,163,245,0.35);
  transform: translateY(-1px);
}

/* =============================================
   CONTACTO INFO LIST
============================================= */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: -24px;
  margin-bottom: 0;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.contact-info-row span { font-size: 16px; }

.contact-info-row a {
  color: var(--text-2);
  transition: color 0.2s;
}
.contact-info-row a:hover { color: var(--blue-1); }

/* =============================================
   BLOG SECTION EN HOME
============================================= */
.tekto-blog-section { overflow: hidden; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.blog-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  background: var(--glass2);
  border-color: rgba(77,163,245,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.blog-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.blog-card:hover .blog-thumb img { transform: scale(1.04); }

.blog-thumb-placeholder svg {
  width: 100%;
  height: 100%;
  display: block;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-date {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
}

.blog-read {
  font-size: 11px;
  color: var(--blue-1);
  background: var(--glass-blue);
  border: 0.5px solid rgba(77,163,245,0.2);
  padding: 2px 8px;
  border-radius: 50px;
  font-family: var(--mono);
}

.blog-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.blog-title a {
  color: var(--text-1);
  transition: color 0.2s;
}
.blog-title a:hover { color: var(--blue-1); }

.blog-excerpt {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
  margin-bottom: 20px;
}

.blog-link {
  font-size: 13px;
  color: var(--blue-1);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.blog-link:hover { gap: 8px; color: var(--blue-1); }

/* =============================================
   PÁGINA DE LISTADO DE BLOG (blog.php)
============================================= */
.tekto-blog-page {
  padding: 160px 0 100px;
}

.blog-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.blog-page-grid .blog-card { }

/* Post individual */
.tekto-single {
  padding: 160px 0 100px;
}

.single-inner {
  max-width: 720px;
  margin: 0 auto;
}

.single-header { margin-bottom: 48px; }

.single-cat {
  font-size: 11px;
  color: var(--blue-1);
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.single-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 20px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
  padding-bottom: 32px;
  border-bottom: 0.5px solid var(--glass-border);
}

.single-meta span { color: var(--blue-1); }

.single-thumb {
  margin-bottom: 48px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.single-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contenido del post */
.single-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
  font-weight: 300;
}

.single-content h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-1);
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}

.single-content h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-1);
  margin: 36px 0 12px;
}

.single-content p { margin-bottom: 24px; }

.single-content ul,
.single-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.single-content li { margin-bottom: 8px; }

.single-content strong {
  color: var(--text-1);
  font-weight: 500;
}

.single-content blockquote {
  border-left: 3px solid var(--blue-2);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--glass-blue2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--text-1);
  font-size: 17px;
  font-style: italic;
}

.single-content a {
  color: var(--blue-1);
  border-bottom: 0.5px solid rgba(77,163,245,0.3);
  transition: border-color 0.2s;
}
.single-content a:hover { border-color: var(--blue-1); }

.single-content img {
  width: 100%;
  border-radius: var(--r-md);
  margin: 32px 0;
}

.single-content code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(77,163,245,0.08);
  border: 0.5px solid rgba(77,163,245,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--blue-1);
}

/* CTA al final del post */
.single-cta {
  margin-top: 72px;
  padding: 40px;
  background: var(--glass);
  border: 0.5px solid rgba(77,163,245,0.2);
  border-radius: var(--r-xl);
  text-align: center;
  backdrop-filter: blur(20px);
}

.single-cta h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 12px;
}

.single-cta p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
  font-weight: 300;
}

/* Posts relacionados */
.related-posts {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 0.5px solid var(--glass-border);
}

.related-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* =============================================
   FOUNDER IMG — CUSTOMIZER SUPPORT
============================================= */
.founder-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 32px rgba(36,120,220,0.4);
}

/* =============================================
   RESPONSIVE BLOG
============================================= */
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-page-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .ecosystem-diagram { padding: 16px; }
  .tech-pills { justify-content: flex-start; }
}
