/* ==========================================================================
   SECCIÓN SERVICIOS Y HUB DE CONTENIDOS (/servicios)
   ========================================================================== */

/* 1. Estructura y Contenedor Principal */
.servicios-section {
  padding: 40px 0 60px 0;
  background-color: var(--bg-light, #f8fafc);
  width: 100%;
}

.servicios-section .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* 2. Encabezado de la Sección */
.servicios-header {
  text-align: left;
  margin-bottom: 32px;
}

.servicios-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-dark, #064e3b);
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.servicios-header p {
  font-size: 15px;
  color: var(--text-muted, #64748b);
  max-width: 720px;
  line-height: 1.5;
  margin: 0;
}

/* 3. Grid de Dos Columnas (Escritorio / Móvil) */
.servicios-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 992px) {
  .servicios-layout {
    grid-template-columns: 2fr 1fr;
  }
}

/* 4. Columna Izquierda: Lista de Guías / Artículos */
.servicios-list-container h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
  margin-top: 0;
  margin-bottom: 20px;
}

.servicios-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.servicio-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.servicio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  border-color: var(--brand, #16a34a);
}

.servicio-card-icon {
  font-size: 24px;
  background: var(--brand-light, #f0fdf4);
  padding: 12px;
  border-radius: 10px;
  line-height: 1;
  flex-shrink: 0;
}

.servicio-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
  margin: 0 0 6px 0;
  transition: color 0.2s ease;
}

.servicio-card:hover .servicio-card-body h3 {
  color: var(--brand, #16a34a);
}

.servicio-card-body p {
  font-size: 14px;
  color: var(--text-muted, #64748b);
  line-height: 1.4;
  margin: 0;
}

/* 5. Columna Derecha: Sidebar CTA Calculadora */
.servicios-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 100px;
}

.servicios-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0284c7;
  background: #f0f9ff;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.servicios-sidebar-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
  margin: 0 0 8px 0;
}

.servicios-sidebar-card p {
  font-size: 14px;
  color: var(--text-muted, #64748b);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.servicios-btn-cta {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: #007bcd;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 205, 0.25);
}

.servicios-btn-cta:hover {
  background: #0066a1;
  transform: translateY(-2px);
}

/* ==========================================================================
   VISTA DE ARTÍCULO INDIVIDUAL DE GUÍA (/servicios/articulo)
   ========================================================================== */

.servicio-article-container {
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.servicio-article-header {
  margin-bottom: 28px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 20px;
}

.servicio-article-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-dark, #064e3b);
  line-height: 1.3;
  margin-bottom: 12px;
}

.servicio-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted, #64748b);
}

.servicio-article-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
  margin: 28px 0 12px 0;
}

.servicio-article-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
  margin: 20px 0 8px 0;
}

.servicio-article-content p {
  font-size: 15px;
  color: var(--text-primary, #1e293b);
  line-height: 1.7;
  margin-bottom: 16px;
}

.servicio-article-content ul,
.servicio-article-content ol {
  margin: 0 0 20px 20px;
  padding: 0;
}

.servicio-article-content li {
  font-size: 15px;
  color: var(--text-primary, #1e293b);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Caja destacada para reglas clave u jurisprudencia */
.servicio-callout-box {
  background: #f0f9ff;
  border-left: 4px solid #007bcd;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

.servicio-callout-box p {
  margin: 0;
  font-size: 14px;
  color: #0369a1;
  font-weight: 500;
}

/* Enlace de regreso */
.servicio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.servicio-back-link:hover {
  color: var(--brand, #16a34a);
}

/* Tablas de consulta procesal (Tono Azul Corporativo) */
.servicio-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

.servicio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.servicio-table th {
  background-color: #f0f9ff;
  color: #0369a1;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid #bae6fd;
}

.servicio-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: var(--text-primary, #1e293b);
}

.servicio-table tr:hover {
  background-color: #f8fafc;
}
