body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  background-color: #f2f2f2;
  color: #111;
  letter-spacing: -0.2px;
}

/* Header */
header {
  background: white;
  border-bottom: 1px solid #e5e5e5;
}

.nav {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav h1 {
  font-size: 22px;
  margin: 0;
}

/* Menu */
nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
}

nav a:hover {
  color: black;
}

/* Layout */
main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Hero */
.featured {
  background: white;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.featured h2 {
  font-size: 36px;
  line-height: 1.2;
}

/* Posts grid */
.posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Card */
.post {
  background: white;
  padding: 25px;
  border-radius: 12px;
  transition: 0.2s;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post:hover {
  transform: translateY(-5px);
}

.post h4 {
  margin-top: 0;
  font-size: 18px;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

.section-title {
  margin-bottom: 20px;
}

.featured {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 50px;
  margin-top: 20px;
}

.featured img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.featured-content {
  position: absolute;
  bottom: 50px;
  left: 50px;
  color: rgb(255, 255, 255);
  z-index: 2; /* 🔥 clave */
  max-width: 600px;
}

.featured-content h2 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0;
}

.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.4) 30%,
    rgba(0,0,0,0.1) 60%,
    rgba(0,0,0,0) 100%
  );
}

h1 {
  font-weight: 600;
}

h2 {
  font-weight: 700;
}

h3 {
  font-weight: 600;
}

p {
  font-weight: 300;
}

.featured-content p {
  font-size: 20px;
  margin-top: 12px;
  opacity: 0.9;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
  color: white;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 4px 8px;
  border-radius: 6px;
}