:root {
    --color-background: #fdfdfc; /* Un blanco muy sutil, casi puro */
    --color-text: #4a4a4a; /* Gris oscuro para buena legibilidad */
    --color-headings: #2F4836; /* Tu verde corporativo */
    --color-primary: #BD995B; /* Tu tierra corporativo */
    --color-accent: #5b9dbd; /* Un azul cielo suave para acentos secundarios */
    --color-border: #eaeaea;

    --font-body: 'Lato', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --container-width: 960px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-headings);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-headings);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.main-header {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    background-color: #ffffff;
}

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

.logo img {
    max-height: 65px; /* Ajusta la altura del logo */
    display: block;
}

.main-header nav a {
    margin-left: 30px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-headings);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-header nav a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* --- Hero Section --- */
.hero {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-background);
}

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

.hero p {
    font-size: 1.2rem;
    color: #777;
}

/* --- Posts --- */
.posts-section {
    padding: 60px 0;
    background-color: #fff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.posts-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.post-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(47, 72, 54, 0.1);
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

.post-card-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-card-content .read-more {
    font-weight: 700;
    align-self: flex-start;
    background-color: var(--color-primary);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.post-card:hover .read-more {
    background-color: var(--color-headings);
}

/* --- Full Post --- */
.post-full {
    background-color: #fff;
    padding: 50px 60px;
    margin: 40px 0;
    border-radius: 8px;
}

.post-full h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.post-full p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.post-full img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
}

.post-full ul,
.post-full ol {
    padding-left: 30px; /* Indentación de la lista */
    margin-bottom: 1.5rem;
}

.post-full li {
    margin-bottom: 0.5rem; /* Espacio entre elementos de la lista */
}

/* --- Footer --- */
.main-footer {
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
    background-color: var(--color-headings);
    color: #fff;
}

.main-footer p {
    color: #bdc3c7;
}

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

.social-links {
    display: flex;
    align-items: center;
}

.social-links span {
    margin-right: 10px;
    font-size: 0.9rem;
    color: #bdc3c7; /* Igualamos el color al del resto del footer */
}

.social-links a {
    margin-left: 0; /* Reseteamos el margen anterior */
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: #bdc3c7;
    transition: fill 0.3s ease;
}

.social-links a:hover svg {
    fill: #fff;
}

/* --- Mobile Navigation --- */
.mobile-menu-button {
    display: none; /* Oculto por defecto */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-button svg {
    stroke: var(--color-headings);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-headings);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav a {
    color: #fff;
    font-size: 2rem;
    font-family: var(--font-heading);
    margin: 20px 0;
    text-decoration: none;
}

.close-menu-button {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    cursor: pointer;
}

.close-menu-button svg {
    stroke: #fff;
}

/* Media Query para pantallas pequeñas */
@media (max-width: 768px) {
    .desktop-nav {
        display: none; /* Oculta el menú de escritorio */
    }

    .mobile-menu-button {
        display: block; /* Muestra el botón de hamburguesa */
    }
}