/* Variables CSS */
:root {
    --primary-green: #28a745;
    --light-green: #e8f5e8;
    --dark-green: #1e7e34;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Header */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--white) 100%);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%2328a745" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%2328a745" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Images */
.hero-images {
    position: relative;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 500px;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Intervention Cards */
.intervention-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.intervention-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.intervention-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.intervention-card h4 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Values Section */
.values-list {
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: var(--primary-green);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.value-content h5 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Founder Cards */
.founder-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.founder-avatar {
    font-size: 4rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.founder-card h4 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.founder-role {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--light-green);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-green);
    height: 100%;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--dark-green);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-light);
    display: block;
    margin-top: 0.25rem;
}

/* Collaborator Section */
.collaborator-info h4 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.collaborator-images img {
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.collaborator-images img:hover {
    transform: scale(1.02);
}

/* Sponsor Cards */
.sponsor-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.sponsor-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.sponsor-card h4 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.sponsor-role {
    color: var(--primary-green);
    font-weight: 600;
}

/* Reality Grid */
.reality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.reality-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reality-item img:hover {
    transform: scale(1.05);
}

/* Help Cards */
.help-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.help-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.help-card h4 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-content h5 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.help-at-home {
    background: var(--light-green);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.help-at-home h5 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.help-at-home ul {
    list-style: none;
    padding: 0;
}

.help-at-home li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.help-at-home li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--dark-green) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .image-grid img {
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .value-item,
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .value-icon,
    .contact-icon {
        margin: 0 auto 1rem;
    }
    
    .reality-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Hover effects for images */
img {
    transition: all 0.3s ease;
}

.rounded:hover {
    box-shadow: var(--shadow-lg);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

