/* ============================================================
   NexAgua Solutions — Shared Blog Post Styles
   Redesigned 2026-08-10: dark-navy sidebar + resource cards +
   newsletter + CTA. Linked from every pages/blog/*.html.
   ============================================================ */

/* ---------- Sidebar: dark navy card ---------- */
.blog-sidebar {
  background: linear-gradient(135deg, #0a2540 0%, #1a365d 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sticky behaviour shared by all posts */
.sidebar-sticky {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.sidebar-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-section h4 {
  color: #ff6b35;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* ---------- Category links ---------- */
.categoria-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categoria-link {
  color: #cbd5e1;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
  display: flex;
  align-items: center;
  padding: 0.35rem 0;
}

.categoria-link:before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #ff6b35;
  border-radius: 50%;
  margin-right: 0.6rem;
  flex-shrink: 0;
}

.categoria-link:hover {
  color: #ff6b35;
  padding-left: 0.25rem;
}

/* ---------- Resource / tool cards ---------- */
.recurso-card {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.recurso-card:hover {
  background: rgba(255, 107, 53, 0.15);
  transform: translateY(-2px);
}

.recurso-card .recurso-icon {
  font-size: 1.2rem;
}

.recurso-card .recurso-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

.recurso-card .recurso-desc {
  color: #94a3b8;
  font-size: 0.78rem;
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* ---------- Newsletter ---------- */
.newsletter-desc {
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.newsletter-form input[type='email'] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  margin-bottom: 0.6rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-form input[type='email']::placeholder {
  color: #94a3b8;
}

.newsletter-form input[type='email']:focus {
  border-color: #ff6b35;
}

.newsletter-form .btn-subscribe {
  display: block;
  width: 100%;
  padding: 0.65rem;
  background: #ff6b35;
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-form .btn-subscribe:hover {
  background: #e85d2a;
}

.newsletter-form .btn-subscribe:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-success {
  display: none;
  color: #7ee0a3;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem 0;
}

.newsletter-fallback {
  color: #94a3b8;
  font-size: 0.72rem;
  margin-top: 0.5rem;
  text-align: center;
  opacity: 0.9;
}

/* ---------- CTA widget ---------- */
.sidebar-cta-phone,
.sidebar-cta-whatsapp {
  display: block;
  width: 100%;
  padding: 0.65rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.sidebar-cta-phone {
  background: #ff6b35;
  color: #fff;
  margin-bottom: 0.6rem;
}

.sidebar-cta-phone:hover {
  background: #e85d2a;
}

.sidebar-cta-whatsapp {
  background: #16a34a;
  color: #fff;
}

.sidebar-cta-whatsapp:hover {
  background: #15803d;
}

.sidebar-cta-note {
  color: #cbd5e1;
  font-size: 0.82rem;
  margin-bottom: 0.9rem;
  line-height: 1.45;
}

/* ---------- Comparison / technical tables ---------- */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.article-content th {
  background-color: #0a2540;
  color: white;
  font-weight: 600;
}

.article-content tr:nth-child(even) {
  background-color: #f9fafb;
}

/* ---------- Formula / callout box ---------- */
.formula-box {
  background-color: #f8fafc;
  border-left: 4px solid #ff6b35;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-family: monospace;
  font-size: 0.95rem;
  border-radius: 0 0.5rem 0.5rem 0;
}
