body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
}

header {
  background-color: #1e1e2f;
  color: white;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-size: 28px;
  font-weight: bold;
}

.social-icons a {
  margin-left: 15px;
}

.social-icons img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 0 5px transparent;
}

.social-icons img:hover {
  transform: scale(1.2);
  filter: brightness(1);
  background-color: white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.header-subtitle {
  margin-top: 8px;
  font-size: 16px;
  color: #ccc;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card.destacada {
  grid-column: span 2;
  grid-row: span 2;
}

.card h3 {
  margin: 10px 0;
  font-size: 20px;
  color: #1e1e2f;
}

.card p {
  font-size: 14px;
  color: #444;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #0066cc;
  font-weight: bold;
}

footer {
  background-color: #1e1e2f;
  color: #aaa;
  text-align: center;
  padding: 15px;
  font-size: 13px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .grid {
    display: flex;
    flex-direction: column;
    padding: 20px;
  }

  .card {
    margin-bottom: 20px;
  }

  .card img {
    max-height: 180px;
  }

  .card h3 {
    font-size: 22px;
  }

  .card p,
  .card a {
    font-size: 15px;
  }
}
