/* ===== RESET GENERAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9fff9;
  color: #333;
  line-height: 1.6;
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(to right, #000000ed, #343534ed);
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 20px 20px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* ===== NAV ===== */
nav {
  text-align: center;
  margin: 20px 0;
}

nav a {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
  padding: 8px 12px;
}

nav a:hover {
  color: #797979;
  background: #f0f0f0;
  border-radius: 4px;
}

/* ===== CONTENIDO DEL ARTÍCULO ===== */
main {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

article {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.8;
}

article h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #000000;
  line-height: 1.3;
}

article h2 {
  font-size: 1.6rem;
  margin: 30px 0 15px 0;
  color: #1a1a1a;
  border-bottom: 2px solid #5a5a5a;
  padding-bottom: 10px;
}

article h3 {
  font-size: 1.3rem;
  margin: 25px 0 10px 0;
  color: #333;
  font-weight: 600;
}

article p {
  margin: 15px 0;
  font-size: 1rem;
  color: #444;
  text-align: justify;
}

article ul,
article ol {
  margin: 15px 0 15px 30px;
  color: #444;
}

article li {
  margin-bottom: 8px;
  line-height: 1.7;
}

article strong {
  color: #000000;
  font-weight: 600;
}

article em {
  color: #555;
  font-style: italic;
}

/* Blockquotes */
article blockquote {
  border-left: 4px solid #5a5a5a;
  padding: 15px 20px;
  margin: 20px 0;
  background: #f5f5f5;
  font-style: italic;
  color: #555;
}

/* Links dentro del artículo */
article a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

article a:hover {
  text-decoration: underline;
  color: #0052a3;
}

/* Imágenes dentro del artículo */
article img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Meta información del artículo */
.article-meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.article-meta p {
  margin: 3px 0;
}

/* CTA - Llamado a la acción */
.cta {
  background: #f0f0f0;
  border: 2px solid #5a5a5a;
  padding: 25px;
  border-radius: 8px;
  margin: 40px 0;
  text-align: center;
}

.cta h3 {
  margin-top: 0;
  color: #000000;
}

.cta p {
  margin: 15px 0;
  font-size: 1rem;
  color: #555;
}

.cta a {
  display: inline-block;
  padding: 12px 25px;
  background: #5a5a5a;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s ease;
  margin-top: 10px;
}

.cta a:hover {
  background: #000000;
}

/* Artículos relacionados */
.related-articles {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #eee;
}

.related-articles h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.related-articles ul {
  list-style: none;
  margin-left: 0;
}

.related-articles li {
  margin-bottom: 15px;
}

.related-articles a {
  color: #0066cc;
  font-weight: 500;
  text-decoration: none;
}

.related-articles a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(to right, #000000ed, #343534ed);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 60px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  main {
    margin: 20px auto;
  }
  
  article {
    padding: 20px;
  }
  
  article h1 {
    font-size: 1.8rem;
  }
  
  article h2 {
    font-size: 1.3rem;
  }
  
  article h3 {
    font-size: 1.1rem;
  }
  
  article p {
    text-align: left;
  }
}
