@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* ===== RESET GENERAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', 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 .logo-header {
  height: 60px;
  width: 60px;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.2s;
}

header .logo-header:hover {
  opacity: 0.8;
}

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;
}

/* Meta autor con foto */
.meta-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2dad5e;
  flex-shrink: 0;
  box-shadow: none;
  margin: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
  display: block;
  margin-bottom: 4px;
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #777;
  align-items: center;
}

.article-tag {
  background: #2dad5e;
  color: white;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Imagen hero del artículo */
.article-hero {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 28px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* 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;
}

/* CTA servicios - variante verde con múltiples links */
.cta-servicios {
  background: linear-gradient(135deg, #1a1a1a, #2dad5e);
  border: none;
  color: white;
}

.cta-servicios h3 {
  color: white;
}

.cta-servicios p {
  color: rgba(255,255,255,0.9);
}

.cta-servicios .cta-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cta-servicios .cta-links a {
  background: white;
  color: #1a1a1a;
  border-radius: 20px;
  margin-top: 0;
  font-size: 0.9rem;
}

.cta-servicios .cta-links a:hover {
  background: #f0f0f0;
}

/* 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;
  }
}
