* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #ffffff;
  color: #1A1A1A;
}

/* NAVBAR */

.navbar {
  padding: 20px 30px;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: #777;
  font-size: 0.95rem;
  transition: 0.25s;
}

.nav-menu a:hover {
  color: #FF9E8C;
}

/* LOGO */

.logo {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.logo img {
  width: 400px;
  margin-left: 29px;
}

/* CONTENIDO */

.blog {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 20px;
  text-align: center;
}

/* 🔥 HEADER NUEVO */

.blog-header {
  text-align: center;
  margin-bottom: 60px;
}

.blog-header h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-header p {
  color: #777;
  font-size: 0.95rem;
}

/* GRID */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* 🔥 TARJETAS NUEVAS */

.post-card {
  text-align: left;
  padding: 26px;
  border-radius: 20px;

  background: linear-gradient(135deg, #eaf7f3, #f6fffc);

  border: 1px solid #f0f0f0;

  transition: all 0.3s ease;

  position: relative;
  overflow: hidden;
}

/* glow elegante */

.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, #FF9E8C20, transparent 60%);
  opacity: 0;
  transition: 0.3s;
}

/* hover PRO */

.post-card:hover {
  transform: translateY(-6px) scale(1.01);
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.post-card:hover::before {
  opacity: 1;
}

/* FEATURED */

.post-card.featured {
  grid-column: span 2;
    background: linear-gradient(135deg, #ffe9e4, #fff6f3);

}

/* TEXTO */

.post-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.post-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}


.post-card {
  opacity: 0;
  transform:  scale(0.97);

  animation: fadeInUp 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.2s;
}

/* animación */

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* 🔥 CTA MEJORADO */

.leer-mas {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #7ED1B2;
  font-weight: 500;
  position: relative;
}

.leer-mas::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: #7ED1B2;
  transition: 0.3s;
}

.leer-mas:hover::after {
  width: 100%;
}




/* =========================
   📱 MOBILE BLOG PAGE
========================= */

@media (max-width: 768px) {

  /* NAV */
  .nav-container {
    justify-content: center;
  }

  .nav-menu {
    gap: 16px;
  }

  .nav-menu a {
    font-size: 0.95rem;
  }

  /* LOGO (🔥 quitar desplazamiento raro) */
  .logo img {
    width: 100%;
    max-width: 220px;
    margin-left: 0; /* 🔥 clave */
  }

  /* CONTENEDOR */
  .blog {
    padding: 20px 16px;
  }

  /* HEADER */
  .blog-header {
    margin-bottom: 30px;
  }

  .blog-header h1 {
    font-size: 1.8rem;
  }

  .blog-header p {
    font-size: 0.95rem;
  }

  /* GRID */
  .blog-grid {
    grid-template-columns: 1fr; /* 🔥 una columna */
    gap: 18px;
  }

  /* FEATURED (🔥 MUY IMPORTANTE) */
  .post-card.featured {
    grid-column: span 1; /* 🔥 si no, rompe layout */
  }

  /* CARDS */
  .post-card {
    padding: 22px;
    border-radius: 18px;
  }

  .post-card h3 {
    font-size: 1.1rem;
  }

  .post-card p {
    font-size: 0.95rem;
  }

  /* CTA */
  .leer-mas {
    font-size: 0.9rem;
  }

}

.nav-menu a.active {
  color: #7ED1B2; /* 🔥 tu verde */
}