/* --- Variables y Estilos Globales --- */
:root {
    --color-background: #FDFBF6;
    --color-text: #333333;
    --color-primary: #8D7B68;
    --color-secondary: #556B2F;
    --color-white: #FFFFFF;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

section {
    padding: 80px 0;
}

/* --- Header y Navegación --- */
.main-header {
    background-color: var(--color-background);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    padding: 10px 15px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--color-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

/* --- Sección Héroe --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('hero-background.jpg') no-repeat center center/cover;
    color: var(--color-white);
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cta-button {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #7a6b5a;
}

/* --- Secciones Generales --- */
.pillars-section, .blog-section {
    background-color: var(--color-white);
}

.pillars-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar, .blog-post {
    text-align: center;
}

.pillar img, .blog-post img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.pillar h3 {
    font-size: 1.5rem;
}

.pillar a, .blog-post a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.blog-post {
    text-align: left;
    background: var(--color-background);
    border-radius: 5px;
    overflow: hidden;
}

.blog-post-content {
    padding: 20px;
}

.blog-post-content span {
    font-size: 0.8rem;
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.blog-section .cta-button-secondary {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    padding: 12px 25px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
}

.blog-section .cta-button-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}


/* --- Otras Secciones --- */
.findings-section {
    text-align: center;
}
.subtitle {
    max-width: 600px;
    margin: -20px auto 40px;
}
.findings-placeholder {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.finding-item {
    padding: 40px 20px;
    border: 1px dashed var(--color-primary);
    border-radius: 5px;
    width: 180px;
}

.community-section {
    background: url('community-background.png') no-repeat center center/cover;
    text-align: center;
    color: var(--color-white);
    position: relative;
}
.community-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(85, 107, 47, 0.7); /* Verde oscuro con transparencia */
}
.community-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.community-content h2 {
    color: var(--color-white);
}

/* --- Footer --- */
.main-footer {
    background-color: #e9e5e1;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 30px;
    margin-bottom: 15px;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul a {
    text-decoration: none;
    color: var(--color-text);
    line-height: 2;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons img {
    height: 24px;
}

.newsletter-form {
    display: flex;
    margin-top: 10px;
}

.newsletter-form input {
    flex-grow: 1;
    border: 1px solid var(--color-primary);
    padding: 10px;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #d4ccc5;
    padding-top: 20px;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--color-text);
}

/* --- Responsividad para Móviles --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: var(--color-background);
        width: 100%;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .pillars-grid, .blog-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
}