@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    --bg: #eef5ec;
    --surface: #ffffff;
    --surface-soft: #f6faf3;
    --text: #203228;
    --text-muted: #556b58;
    --primary: #2f7f39;
    --primary-strong: #1f5a2a;
    --accent: #81c784;
    --border: #dfe9dc;
    --shadow: 0 24px 60px rgba(34, 65, 38, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.75;
}

h1, h2, h3, .logo, .seccion-titulo {
    font-family: 'Playfair Display', Georgia, serif;
}

img {
    max-width: 100%;
    display: block;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
}

header {
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%), linear-gradient(180deg, var(--primary) 0%, #2b6f32 100%);
    background-color: var(--primary);
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 40px 0 28px;
    position: relative;
    overflow: hidden;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logo {
    font-size: clamp(2rem, 2.8vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.6px;
}

.brand-tagline {
    margin: 0;
    font-size: 1rem;
    opacity: 0.88;
}

.menu-principal ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.menu-principal a {
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.menu-principal a:hover {
    background: rgba(255, 255, 255, 0.28);
}

.menu-principal a.active {
    background: rgba(255,255,255,0.35);
    font-weight: 700;
}

.hero {
    text-align: center;
    padding: 42px 0 24px;
}

.hero-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='2'%3E%3Cpath d='M20 160 C40 120 60 120 80 160 S120 200 140 160'/%3E%3Cpath d='M40 40 C60 20 80 20 100 40 S140 80 160 40'/%3E%3Cpath d='M60 120 C80 100 100 100 120 120'/%3E%3Cpath d='M80 70 C100 50 120 50 140 70'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center top;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.8rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin: 0;
    line-height: 1.05;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    max-width: 720px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 14px 28px;
    background: #ffffff;
    color: var(--primary-strong);
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 16px 32px rgba(37, 77, 37, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(37, 77, 37, 0.16);
}

.page-main {
    padding: 60px 0 80px;
}

.section-header {
    margin-bottom: 40px;
}

.seccion-titulo {
    font-size: 2.2rem;
    color: var(--primary-strong);
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 6px solid var(--primary);
}

.section-subtitle {
    max-width: 680px;
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

.articulos-grid {
    display: grid;
    gap: 24px;
}

.card-articulo {
    background-color: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    border-left: 4px solid transparent;
    padding: 28px;
    box-shadow: 0 18px 44px rgba(46, 113, 59, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
}

.card-articulo:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(46, 113, 59, 0.14);
    border-left-color: var(--primary);
}

.card-articulo .categoria {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--surface-soft);
    color: var(--primary-strong);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
}

.card-articulo .categoria::before {
    content: "🌿 ";
}

.card-articulo h2 {
    font-size: 1.55rem;
    margin: 0 0 16px;
    line-height: 1.25;
}

.card-articulo h2 a {
    color: var(--text);
}

.card-articulo .extracto {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 22px;
}

.card-articulo .leer-mas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-strong);
    font-weight: 700;
}

.card-articulo .leer-mas:hover {
    color: var(--primary);
}

.article-hero {
    margin: 0 0 32px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(46, 113, 59, 0.12);
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.article-hero figcaption {
    padding: 18px 22px;
    background-color: var(--surface-soft);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-figure {
    margin: 0 0 28px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(34, 65, 38, 0.08);
}

.article-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.article-figure figcaption {
    padding: 16px 20px;
    background-color: var(--surface-soft);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contenedor-columnas {
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
    align-items: flex-start;
}

.columna-principal {
    display: grid;
    gap: 24px;
}

.barra-lateral {
    display: grid;
    gap: 24px;
}

.widget {
    background-color: var(--surface);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(34, 65, 38, 0.08);
}

.widget h3 {
    margin-top: 0;
    color: var(--primary-strong);
}

.widget ul {
    margin: 12px 0 0;
    padding-left: 18px;
}

.widget li {
    margin-bottom: 10px;
}

.widget-anuncio {
    border-left: 4px solid var(--primary);
}

.etiqueta-anuncio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-strong);
    background-color: var(--accent);
    margin-bottom: 14px;
}

.formulario-contacto {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 14px 30px rgba(34, 65, 38, 0.08);
    display: grid;
    gap: 18px;
}

.formulario-contacto label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-strong);
}

.formulario-contacto input,
.formulario-contacto textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background-color: var(--surface-soft);
    color: var(--text);
    font-size: 1rem;
}

.formulario-contacto textarea {
    min-height: 150px;
    resize: vertical;
}

.formulario-contacto button {
    width: max-content;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.formulario-contacto button:hover {
    background-color: var(--primary-strong);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .contenedor-columnas {
        grid-template-columns: 1fr;
    }

    .barra-lateral {
        order: -1;
    }
}

/* Pie de página */
footer {
    background-color: #1a2e1f;
    color: #c9d7c6;
    text-align: center;
    padding: 36px 20px 42px;
    font-size: 0.95rem;
    border-top: 3px solid var(--primary);
}

.footer-links {
    margin: 18px 0;
}

.footer-links a {
    color: #c9d7c6;
    text-decoration: none;
    margin: 0 8px;
}

.footer-links a:hover {
    color: #ffffff;
}

.legal-nota {
    color: rgba(201, 215, 198, 0.8);
}
/* Estilos para las imágenes del blog */
.imagen-destacada {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 20px 45px rgba(34, 65, 38, 0.08);
    display: block;
}

.widget ul li a:hover {
    color: var(--primary);
}

header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ESTILO ESPECÍFICO PARA TU BLOQUE DE ANUNCIOS */
.widget-anuncio {
    background-color: #f8fbf6;
    border: 1px dashed #c8dec6;
    text-align: center;
    padding: 20px;
    min-height: 250px;
    width: 100%;
}

.etiqueta-anuncio {
    font-size: 0.75rem;
    color: #7e9a80;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.bloque-publicidad {
    background-color: #f1f8e9;
    color: #556b58;
    padding: 40px 10px;
    border-radius: 4px;
    font-weight: bold;
    min-height: 250px;
    width: 100%;
}

.toc-box {
    background: var(--surface-soft);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0 0 32px;
}

.toc-box h4 {
    color: var(--primary-strong);
    font-family: 'Playfair Display', Georgia, serif;
    margin-top: 0;
}

.toc-box ol {
    padding-left: 20px;
    line-height: 2;
    margin: 12px 0 0;
}

.articulos-relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.card-relacionado {
    background: var(--surface);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
}

.card-relacionado a {
    font-weight: 600;
    color: var(--primary-strong);
    text-decoration: none;
}

.card-relacionado a:hover {
    color: var(--primary);
}

.card-relacionado:hover {
    background: var(--surface-soft);
}

@media (max-width: 980px) {
    .contenedor-columnas {
        flex-direction: column;
    }

    .barra-lateral {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-main {
        padding: 40px 0 60px;
    }

    .hero {
        padding: 28px 0 20px;
    }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .menu-principal ul {
        justify-content: flex-start;
        gap: 8px;
    }

    .menu-principal a {
        padding: 7px 11px;
        font-size: 0.82rem;
    }

    .logo {
        font-size: 1.6rem;
    }

    .brand-tagline {
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .seccion-titulo {
        font-size: 1.8rem;
    }

    .articulos-grid {
        gap: 16px;
    }

    .card-articulo {
        padding: 20px;
    }

    .widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
  .menu-principal ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .menu-principal a {
    text-align: center;
    padding: 8px 6px;
    font-size: 0.8rem;
  }
  
  .hero h1 {
    font-size: 1.7rem;
  }
  
  .seccion-titulo {
    font-size: 1.5rem;
  }
  
  .card-articulo {
    padding: 16px;
  }
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 600px) {
    .menu-toggle {
        display: block;
    }

    nav.menu-principal {
        display: none;
    }

    nav.menu-principal.abierto {
        display: block;
    }
}

/* Byline del autor */
.article-byline {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: -4px 0 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.article-byline a { color: var(--primary); font-weight: 600; }
.byline-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Widget newsletter */
.widget-newsletter { border-left: 4px solid var(--accent); }
.widget-newsletter h3 { margin-top: 0; }
