@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
  --verde: #2e7d5b;
  --verde-oscuro: #1a4d38;
  --verde-suave: #e6f4ec;
  --coral: #ff6b4a;
  --coral-oscuro: #e2532f;
  --naranja-suave: #fff1ea;
  --fondo: #faf9f4;
  --texto: #24261f;
  --gris: #6b6b6b;
  --borde: #e4e0d4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito Sans', "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.65;
}

h1, h2, h3, .logo {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

a {
  color: var(--coral-oscuro);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--verde-oscuro);
  color: #fff;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.site-header .wrap {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-header a.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-header nav a {
  color: #d9f2e4;
  margin-left: 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-header nav a:hover {
  color: var(--coral);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
  color: #fff;
  padding: 3.5rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "🥦 🍎 🧊 🥗 🍲 🥕";
  position: absolute;
  bottom: -0.4rem;
  left: 0;
  right: 0;
  font-size: 2.4rem;
  opacity: 0.18;
  letter-spacing: 1.5rem;
  text-align: center;
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 0.8rem;
  line-height: 1.15;
}

.hero p {
  font-size: 1.1rem;
  color: #eafaf1;
  max-width: 55ch;
  margin: 0 auto;
}

.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.hero-tags span {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Main / layout ---------- */
main {
  max-width: 1000px;
  margin: -2.2rem auto 0;
  padding: 0 1.5rem 3rem;
  position: relative;
  z-index: 5;
}

main.page {
  margin-top: 0;
  padding-top: 2rem;
}

.section-title {
  font-size: 1.4rem;
  margin: 2.2rem 0 1.2rem;
  color: var(--verde-oscuro);
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  min-height: 90px;
  max-width: 728px;
  background: #f0efe6;
  border: 1px dashed var(--borde);
  border-radius: 8px;
  color: var(--gris);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Article cards ---------- */
.articulos-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.tarjeta {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: 0 4px 14px rgba(30, 40, 30, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(30, 40, 30, 0.12);
}

.tarjeta .icono {
  font-size: 1.8rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-suave);
  border-radius: 10px;
  margin-bottom: 0.9rem;
}

.tarjeta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.tarjeta h2 a {
  color: var(--texto);
}

.badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--verde-suave);
  color: var(--verde-oscuro);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.badge.naranja {
  background: var(--naranja-suave);
  color: var(--coral-oscuro);
}

.badge.azul {
  background: #e7f0fb;
  color: #2456a6;
}

.tarjeta p {
  margin: 0 0 1rem;
  color: var(--gris);
  flex-grow: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--coral-oscuro);
  text-decoration: none;
  transform: translateX(2px);
}

/* ---------- Article page ---------- */
article.post {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 2rem 2rem 2.4rem;
  box-shadow: 0 4px 14px rgba(30, 40, 30, 0.05);
}

article.post h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--verde-oscuro);
}

article.post .meta {
  color: var(--gris);
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--borde);
}

article.post h2 {
  color: var(--verde-oscuro);
  margin-top: 2rem;
  font-size: 1.3rem;
  border-left: 4px solid var(--coral);
  padding-left: 0.7rem;
}

article.post ul {
  padding-left: 1.3rem;
}

article.post li {
  margin-bottom: 0.5rem;
}

article.post strong {
  color: var(--verde-oscuro);
}

.volver {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 700;
  color: var(--coral-oscuro);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--verde-oscuro);
  color: #cfe9da;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

footer.site-footer a {
  color: #fff;
  margin: 0 0.5rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.9rem; }
  article.post { padding: 1.4rem; }
}
