* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header img {
  height: 80px;
  width: auto;
  background: white;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
}

.lang-selector {
  display: flex;
  gap: 0.5rem;
}

.lang-selector a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-selector a .flag {
  font-size: 1.2rem;
  display: inline-block;
}

.lang-selector a .lang-text {
  display: inline-block;
}

.lang-selector a.active {
  background: rgba(0,0,0,0.2);
}

.lang-selector a:hover {
  background: rgba(0,0,0,0.15);
}

/* Responsive: ocultar texto en pantallas pequeñas */
@media (max-width: 511px) {
  .lang-selector a {
    padding: 0.5rem 0.3rem;
    gap: 0;
  }

  .lang-selector a .lang-text {
    display: none;
  }
}

.banner {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

header .description {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  line-height: 0.95rem;
  font-style: italic;
}

nav {
  background: #f8f9fa;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

nav ul {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

nav a:hover {
  color: #667eea;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  min-height: 60vh;
}

footer {
  background: #f8f9fa;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid #ddd;
  color: #666;
}

article {
  margin: 2rem 0;
  line-height: 1.8;
  font-size: 1.05rem;
}

article p {
  margin-bottom: 1.5rem;
  color: #444;
}

article h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: #667eea;
  font-size: 1.8rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
}

article h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #764ba2;
  font-size: 1.3rem;
}

article a {
  color: #667eea;
  text-decoration: none;
}

article a:hover {
  text-decoration: underline;
}

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

article > ul {
  padding: 0 20px;
  margin: 0 0 10px 0;
}

.list-articles {
  display: grid;
  gap: 2rem;
}

.article-preview {
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

.article-preview:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.article-preview h3 {
  margin-bottom: 0.5rem;
  color: #667eea;
}

.article-preview a {
  color: #667eea;
  text-decoration: none;
}

.article-preview a:hover {
  text-decoration: underline;
}
