/* Background Section */
.background-section {
    position: relative;
    width: 100%;
    height: 45vh; /* Fourth of the viewport height */
    background-image: url('../img/Gente.png'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-overlay {
    position: relative;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text readability */
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    font-size: 1.2rem;
    line-height: 1.5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.background-overlay h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.4;
}

/* Adjustments for mobile */
@media (max-width: 768px) {
    .background-section {
        height: 60vh; /* Increase height for better readability */
    }

    .background-overlay {
        font-size: 1rem; /* Reduce font size */
        padding: 15px;
    }

    .background-overlay h2 {
        font-size: 1.3rem; /* Adjust heading size */
    }
}

/* History Section */
.history-section {
    width: 90%;
    background-color: #f9f9f9; /* Light background color */
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.history-container {
    max-width: 900px; /* Center content and limit width */
    text-align: center;
    color: #333;
}

.history-container h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #315428; /* Use the corporate green color */
    margin-bottom: 20px;
}

.history-container p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}

/* Adjustments for mobile */
@media (max-width: 768px) {
    .history-container h2 {
        font-size: 1.5rem; /* Reduce heading size */
    }

    .history-container p {
        font-size: 1rem; /* Reduce paragraph font size */
        line-height: 1.4;
    }
}

/* Razones Section */
.reasons-section {
    width: 90%;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9; /* Light background */
}

.reasons-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 20px;
}

.reasons-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
    padding: 20px;
}

.reasons-left h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #315428; /* Corporate green */
}

.reasons-right {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for items on larger screens */
    gap: 15px;
}

.reason-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.reason-item img {
    width: 30px; /* Icon size */
    height: 30px;
}

.reason-item p {
    margin: 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

/* Adjustments for mobile */
@media (max-width: 768px) {
    .reasons-container {
        flex-direction: column; /* Stack left and right sections */
    }

    .reasons-left {
        text-align: center; /* Center text for smaller screens */
        align-items: center;
        padding: 10px;
    }

    .reasons-right {
        grid-template-columns: 1fr; /* Single column for items */
    }

    .reason-item {
        flex-direction: column; /* Stack icon and text */
        text-align: center;
    }

    .reason-item img {
        margin: 0 auto; /* Center icon */
    }
}
