/* ==========================================
   article.css – Estilos para páginas de artículo
   Usar junto con main.css en páginas de contenido
   ========================================== */

/* ---- Layout override for article pages ---- */
.container main {
  flex: 3;
}

/* ---- Hero del artículo ---- */
.article-hero {
  background: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
}

.article-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* ---- Secciones de contenido ---- */
.content-section {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.content-section p {
  color: var(--light-text);
  margin-bottom: 1rem;
}

.content-section ul {
  padding-left: 1.5rem;
  color: var(--light-text);
  margin-bottom: 1rem;
}

.content-section ul li {
  margin-bottom: 0.5rem;
}

.content-section a {
  color: var(--primary);
  text-decoration: underline;
}

/* ---- Botón CTA ---- */
.cta-button {
  background: var(--accent);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.cta-button:hover {
  background: #059669;
}

/* ---- Tabla ---- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--primary);
}

/* ---- Pasos ---- */
.steps {
  background: var(--secondary);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-number {
  background: var(--accent);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- AdSense en artículo ---- */
.ads-article {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 3rem 0;
  border: 2px dashed #cbd5e1;
}

/* ---- Responsive artículo ---- */
@media (max-width: 768px) {
  .content-section {
    padding: 1.5rem;
  }

  table {
    font-size: 0.9rem;
  }

  .step {
    flex-direction: column;
    gap: 0.5rem;
  }
}
