/* =========================================
   Variables & Reset
   ========================================= */
   :root {
    /* Color Palette */
    --primary-color: #3b5c43; /* Softer Green */
    --primary-dark: #2a402e;
    --secondary-color: #a86c58; /* Softer Terracotta */
    --secondary-hover: #8f5846;
    --color-sachamama: #718761; /* Verde brand Sacha Mama */
    --bg-color: #FCFCFC; /* Very light off-white */
    --bg-light: #FFFFFF;
    --text-main: #444444; /* Softer text */
    --text-muted: #777777;
    
    /* Typography */
    --font-heading: 'PT Serif', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Other */
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky nav */
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }

.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 1.5rem auto;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons - Minimalist */
.btn {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border-radius: 4px; /* More delicate than fully rounded */
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border-color: #ccc;
}

.btn-outline:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-typographic {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
    text-decoration: none;
}

.logo-line-1 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3.5px;
    color: var(--color-sachamama);
    text-transform: uppercase;
    transition: var(--transition);
}

.logo-line-2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-sachamama);
    text-transform: uppercase;
    transition: var(--transition);
}

.logo:hover .logo-line-1,
.logo:hover .logo-line-2 {
    opacity: 0.8;
}

.primary-navigation .nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.nav-link:not(.btn):hover {
    color: var(--secondary-color);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(31, 51, 36, 0.7), rgba(31, 51, 36, 0.8));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   Misión Section
   ========================================= */
.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lead-text {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-style: italic;
}

/* =========================================
   Proyectos Section
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-light);
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-card-image {
    transform: scale(1.05);
}

.project-card-content {
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.project-card-header-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-card-header-svg-icon-wrapper {
    background-color: rgba(59, 92, 67, 0.08);
    color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.project-card:hover .project-card-header-svg-icon-wrapper {
    background-color: var(--primary-color);
    color: white;
}

.project-header-svg-icon {
    width: 24px;
    height: 24px;
    display: block;
    stroke: currentColor;
    transition: var(--transition);
}

.project-header-logo-icon {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.project-card-title {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.35;
    margin-bottom: 0;
}

.project-card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    border-radius: 4px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid #ddd;
    background-color: transparent;
}

.social-btn.facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
}

.social-btn.instagram:hover {
    border-color: #e6683c;
    color: #e6683c;
}

/* Feature Section (Sacha Mama) */
.feature-section {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 3rem;
    margin-top: 4rem;
    border-top: 4px solid var(--secondary-color);
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-text {
    text-align: left;
}

.project-logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.feature-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feature-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gallery-img {
    border-radius: var(--border-radius);
    object-fit: cover;
    width: 100%;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.img-main {
    grid-column: 1 / -1;
    height: 250px;
}

.img-secondary {
    height: 180px;
}

/* =========================================
   Donar Section
   ========================================= */
.donate-section {
    position: relative;
    color: white;
    background-color: var(--primary-dark);
}

.donate-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/algarrobo.jpg'); 
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 1;
}

.donate-content {
    position: relative;
    z-index: 2;
}

.donate-content h2 {
    color: white;
}

.donate-content p {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.donation-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    color: var(--text-main);
    max-width: 450px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.donation-instruction {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.alias-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    background: var(--bg-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px dashed #ccc;
}

.alias {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.copy-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--primary-color);
    color: white;
}

.copy-msg {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-msg.show {
    opacity: 1;
}

/* =========================================
   Contacto Section
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    text-align: left;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-list i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.map-container {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 92, 67, 0.2);
}

.contact-form .btn {
    width: 100%;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-logo .logo-typographic {
    text-align: center;
    align-items: center;
}

.footer-logo .logo-line-1,
.footer-logo .logo-line-2 {
    color: white;
}



.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* =========================================
   Animations
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }

/* =========================================
   Responsive Media Queries
   ========================================= */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .primary-navigation {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }

    .primary-navigation[data-visible="true"] {
        transform: translateY(0);
        opacity: 1;
    }

    .primary-navigation .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero h1 { font-size: 2.5rem; }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .feature-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-section {
        padding: 2rem 1.5rem;
    }

    /* Fix alias overflow */
    .alias-container {
        flex-direction: column;
        gap: 0.8rem;
    }

    .alias {
        font-size: 1.2rem;
        word-break: break-all;
    }

    /* Fix text overflow on contact list */
    .contact-list li {
        font-size: 0.95rem;
        flex-wrap: wrap;
    }

    .contact-list li a {
        word-break: break-all;
    }

    /* Fix map margin */
    .map-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
}
