:root {
    --primary-color: #1f3c88;
    --secondary-color: #e9a01f;
    --background-color: #e9e9e9;
    --text-color: #333;
    --white-color: #fff;
    --green-color: #558823;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    overflow: auto;
}
.hero {
    padding: 50px 20px 10px 140px;
}
.hero-content {
    height: auto; /* Ensure hero content height adjusts to its content */
    margin-bottom: 20px; /* Add some space below the hero content */
}

.hero .button-container {
    margin-top: 4vh;
    width: 90%; /* Ensure full width */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Ensure equal columns */
    gap: 10px; /* Adjust gap */
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* Adjust width to fit content */
    height: 60px; /* Adjust height */
    background-color: #c28112;
    color: var(--white-color);
    font-size: 16px; /* Reduced font size */
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: 0.3s ease all;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    padding: 25px 10px; 
}

.hero-button::after {
    content: "";
    width: 100%;
    height: 250px;
    background: var(--green-color);
    position: absolute;
    z-index: 1;
    top: -250px;
    left: 0;
    transition: 0.5s ease-in-out all;
    border-radius: 0 0 300px 300px;
}

.hero-button:hover::after {
    top: 0;
}

#parcial-beca, #complete {
    padding: 15vh 10vw;
    background: var(--white-color);
    border-radius: 0px 0px 120px 120px;
}
#complete {
    background: var(--background-color);
}
.sobre-container {
    display: flex;
    align-items: center; /* Center items vertically */
    justify-content: center;
    gap: 3vw;
}

.img-sobre {
    width: 42%;
    margin-left: auto;
}

.img-sobre img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.sobre-text {
    width: 46%;
    margin-right: auto;
    text-align: justify;
}

.line-detail {
    background: var(--primary-color);
    width: 17vw;
    height: 4px;
    margin-bottom: 3vh;
    border-radius: 2px;
}

#form {
    padding: 10vh 10vw;
    background: var(--background-color);
    text-align: center;
    margin-bottom: 20vh;
}

#form h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

#form .line-detail {
    margin: 0 auto 30px; /* Center the line and add spacing below */
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Add spacing between form elements */
    max-width: 600px;
    margin: 0 auto;
}

form label {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    align-self: flex-start; /* Align labels to the left */
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
    border-color: var(--secondary-color);
}

form button {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 18px;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: var(--secondary-color);
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero {
        padding: 40px 5px 5px 10px;
        text-align: center;
        height: 76vh;
    }

    .hero-content {
        max-width: 65%;
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 25px;
    }

    .hero p {
        font-size: 15px !important;
    }

    .hero .button-container {
        grid-template-columns: 1fr 1fr 1fr; /* Stack buttons vertically */
        gap: 15px;
        width: 120%; /* Full width for smaller screens */
        margin: 10px auto 0; /* Center the button container */
    }

    .hero-button {
        font-size: 14px; /* Further reduced font size for smaller screens */
        height: 50px; /* Adjust height for smaller screens */
        padding: 5px; /* Adjust padding for smaller screens */
    }

    #parcial-beca, #complete {
        padding: 10vh 5vw 15vh;
        border-radius: 0px 0px 80px 80px;
    }

    .sobre-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .img-sobre {
        width: 100%;
        margin: 0 0 20px 0;
    }

    .sobre-text {
        width: 100%;
    }

    .sobre-text h2 {
        font-size: 24px;
    }

    .sobre-text p {
        font-size: 15px;
    }

    #form {
        padding: 8vh 5vw;
    }

    form {
        width: 100%;
    }

    form label {
        font-size: 16px;
    }

    form input,
    form textarea {
        font-size: 14px;
    }

    form button {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 5px 5px 10px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero p {
        font-size: 14px !important;
    }

    .hero .button-container {
        gap: 10px; /* Reduce spacing between buttons for very small screens */
    }

    .hero-button {
        font-size: 12px; /* Further reduced font size for very small screens */
        height: 45px; /* Further reduce height */
        padding: 12px; /* Further adjust padding */
    }

    #parcial-beca, #complete {
        padding: 8vh 5vw;
    }

    .sobre-text h2 {
        font-size: 20px;
    }

    .sobre-text p {
        font-size: 14px;
    }

    #form {
        padding: 6vh 5vw;
    }

    form label {
        font-size: 14px;
    }

    form input,
    form textarea {
        font-size: 12px;
    }

    form button {
        font-size: 14px;
    }
}