body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #d7f6c5;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 40px 20px;
}

.quote {
    font-style: italic;
    color: #333;
    margin-bottom: 10px;
    background-color: beige;
}

h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    color: #0b5d2a;
    text-shadow: 1px 1px 3px #aaa;
}

.about{
    position: relative;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    overflow: hidden;
    border-radius: 20px;
    margin: 30px;
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("images/inamigos-logo.png") center/cover no-repeat;
    filter: blur(12px);
    transform: scale(1.1);
}

.about::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.overlay {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 15px;
    color: white;
    max-width: 800px;
    text-align: center;
}

.logo {
    width: 120px;
    margin: 15px 0;
    border-radius: 10px;
}

h2 {
    font-size: 2rem;
}

p {
    font-size: 1.1rem;
}

.overlay p,
.project-card p,
.impact-card p,
footer p {
    color: white;
}

.gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

@media (max-width: 768px) {

    .gallery {
        flex-direction: column;
    }

    .title-gallery {
        margin-bottom: 20px;
    }

}

.title-gallery {
    color:rgb(1, 60, 22);
    border:5px solid #333;
    border-radius: 5px;
    background-color: beige;
    text-align: center;
}

.track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 80%;
    padding: 10px;

    scroll-snap-type: x mandatory;
}

.track::-webkit-scrollbar {
    display: none;
}

.track img {
    width: 70vw;
    max-width: 650px;
    min-width: 300px;
    height: 400px;

    object-fit: cover;
    border-radius: 15px;
    flex-shrink: 0;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.track img:hover {
    transform: scale(1.08);
}

.arrow {
    background: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.arrow:hover {
    background: #ddd;
}

.projects-wrapper {
    padding: 40px 20px;
}

.project-title {
    text-align: center;
    font-size: 2rem;
    color: #0b5d2a;
    margin-bottom: 20px;
}

.projects {
    position: relative;
    padding: 40px;
    margin: 30px;
    border-radius: 20px;

    overflow: hidden;
}

.projects::before {
    content: "";
    position: absolute;
    inset: 0;

    background: url("images/inamigos-logo.png") center/cover no-repeat;
    filter: blur(12px);
    transform: scale(1.1);
    z-index: 0;
}

.projects::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.project-track {
    position: relative;
    z-index: 2;

    display: flex;
    gap: 20px;

    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px;
}

.project-track::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex-shrink: 0;
    width: 85vw;
    max-width: 450px;

    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);

    border-radius: 15px;
    padding: 15px;

    color: white;
    text-align: center;

    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.img-project {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 10px;
}

.impact-wrapper {
    padding: 40px 20px;
}

.impact-title {
    text-align: center;
    font-size: 2rem;
    color: #0b5d2a;
    margin-bottom: 20px;
}

.impacts {
    position: relative;
    margin: 30px;
    padding: 20px;
    border-radius: 20px;
    overflow: hidden;
    height: 500px;  
}

.impacts::before {
    content: "";
    position: absolute;
    inset: 0;

    background: url("background.png") center/cover no-repeat;
    filter: blur(12px);
    transform: scale(1.1);
    z-index: 0;
}

.impacts::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.impact-track {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;   
    gap: 15px;

    height: 100%;
    overflow-y: auto;       
    padding: 10px;
}


.impact-track::-webkit-scrollbar {
    display: none;
}


.impact-card {
    display: flex;
    gap: 15px;
    align-items: center;

    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);

    padding: 15px;
    border-radius: 12px;

    color: white;

    transition: transform 0.3s ease;
}

@media (max-width: 768px) {

    .impact-card {
        flex-direction: column;
        text-align: center;
    }

}

.impact-card:hover {
    transform: scale(1.03);
    background-color: #3c8b5b;
    border-radius: 30px;
    color: navy;
}

.impact-card img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

   

.cta-title {
   text-align: center;
   color: rgb(1, 60, 22);
   background: greenyellow;
   max-width: 900px;
   margin: 20px auto;
   padding: 20px;
   border-radius: 50px;
   border: 2px solid ghostwhite;

}

.cta-msg {
    text-align: center;
    font-size: 1.2rem;
    max-width: 900px;
    margin: 20px auto;
    background: beige;
    color:rgba(2, 177, 60, 0.699);
    border-radius: 50px;

}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

}

.button {
    background: #0b5d2a;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 600;
    transition: 0.3s;
}

.button:hover {
    transform: translateY(-3px);
    background: #13713a;
}

footer {
    background-color: #0b5d2a;
    color: white;

    text-align: center;

    padding: 40px 20px;
    margin-top: 50px;
}

footer h3 {
    margin-bottom: 10px;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {

    h1 {
        font-size: 2rem;
    }

    .track img {
        width: 90vw;
        height: auto;
    }

    .project-card {
        width: 85vw;
    }

    .impact-card {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-title,
    .cta-msg {
        margin: 15px;
        padding: 20px;
    }

    .overlay {
        padding: 20px;
    }

}

section {
    margin-bottom: 60px;
}