@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Salsa&display=swap');

:root {
    --primary-green: #1e7e34;
    --primary-red: #c41c1c;
    --accent-green: #25a244;
    --accent-red: #e63946;
    --light-bg: #f8f9fa;
    --dark-text: #333;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
    position: relative;
    background-color: #f5f5f5;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/imagen.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 126, 52, 0.1) 0%, rgba(196, 28, 28, 0.1) 100%);
    z-index: -1;
}

.slide {
    display: none;
    min-height: calc(100vh - 80px);
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 2rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: justify; 
}

.slide.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

.banner {
    height: 160px; 
    background-image: url('images/portada.png');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    border-radius: 8px;
}

.banner-text {
    position: absolute;
    bottom: 20px;
    left: 30px;
    color: white;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-family: 'Salsa', cursive;
    font-size: 2.75rem; 
}

.nav-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-item {
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--primary-green); 
}

.nav-item:hover {
    background-color: rgba(30, 126, 52, 0.1);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 126, 52, 0.3);
}

.section-title {
    color: var(--primary-green);
    border-bottom: 3px solid var(--accent-red);
    padding-bottom: 0.75rem;
    margin-bottom: 1.75rem;
    display: inline-block;
    font-family: 'Salsa', cursive;
    font-size: 2rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    height: 220px;
    background-color: #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-container {
    aspect-ratio: 16/9;
    background-color: #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 126, 52, 0.05) 0%, rgba(196, 28, 28, 0.05) 100%);
}

.navigation-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.control-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 126, 52, 0.2);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 126, 52, 0.3);
}

.control-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.info-box {
    background-color: rgba(30, 126, 52, 0.08);
    border-left: 5px solid var(--primary-green);
    padding: 1.25rem;
    margin-bottom: 1.75rem;
    border-radius: 0 12px 12px 0;
    text-align: justify;
}

.highlight {
    color: var(--accent-red);
    font-weight: 600;
}

.icon-box {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.icon-box i {
    color: var(--primary-green);
    font-size: 1.75rem;
    margin-right: 1.25rem;
}

.card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: justify;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-card {
    text-align: center;
    padding: 1.25rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testimonial {
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    text-align: justify;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(30, 126, 52, 0.1);
    font-family: Georgia, serif;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .banner {
        height: 140px;
    }

    .banner-text {
        bottom: 15px;
        left: 20px;
        font-size: 2rem;
    }

    .slide {
        padding: 1.25rem;
    }

    .nav-container {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        border-radius: 30px;
    }

    .nav-item {
        padding: 0.5rem 1rem;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .section-title {
        font-size: 1.5rem;
    }
}
