body, html {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.split-container {
    display: flex;
    height: 100%;
}

.image-column {
    flex: 60%;
    background-image: url('../images/fondo.jpeg');
    background-size: cover;
    background-position: center;
}

.content-column {
    flex: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
    position: relative;
}

.top-content, .bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.main-logo {
    max-width: 200px;
    margin-bottom: 25px;
}

h1.main-title {
    font-size: 2.8em;
    font-weight: 700;
    margin: 0.2em 0;
    color: #333;
}

p.subtitle {
    font-size: 1.2em;
    font-weight: 400;
    margin-bottom: 20px;
    color: #555;
    max-width: 400px;
}

.presente-en-container {
    display: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.presente-en-container p.subtitle {
    margin-bottom: 0;
}

.presente-en-container img {
    height: 80px;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px;
}

.action-button {
    background-color: #8BB423;
    border: 2px solid #8BB423;
    color: white;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}

.action-button:hover {
    background-color: #7aa31e;
    transform: translateY(-2px);
}

.action-button.secondary {
    background-color: transparent;
    color: #8BB423;
}

.action-button.secondary:hover {
    background-color: #f0f0f0;
}

.footer-logos {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.footer-logos img {
    height: 80px;
    opacity: 0.7;
}

/* Responsive adjustments */

@media (min-height: 801px) {
    .bottom-content {
        margin-bottom: 120px; /* Pushes buttons up from the footer */
    }
}

/* For shorter height screens */
@media (max-height: 800px) and (min-width: 769px) {
    .content-column {
        justify-content: flex-start;
        overflow-y: auto;
    }
    .footer-logos {
       position: static;
       margin-top: 40px;
       padding-bottom: 40px; /* Add some padding at the very bottom */
    }
    .bottom-content {
        margin-bottom: 40px; /* Add space between buttons and footer */
    }
}

/* For tablets and smaller devices */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .image-column {
        flex: 1;
        min-height: 200px;
    }

    .content-column {
        flex: 2;
        justify-content: flex-start;
        padding-top: 20px;
        overflow-y: auto;
    }

    .bottom-content {
        margin-bottom: 20px;
    }

    .footer-logos {
        position: static;
        margin-top: 20px;
    }
}

/* For mobile phones */
@media (max-width: 480px) {
    .image-column {
        display: none;
    }

    .content-column {
        padding: 20px;
    }

    h1.main-title {
        font-size: 2em;
    }

    p.subtitle {
        font-size: 1em;
    }

    .main-logo {
        max-width: 150px;
        margin-bottom: 20px;
    }
}
