html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #002467, #214480);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.container {
    display: grid;
    grid-template-columns: 400px 1fr;
    grid-template-rows: auto;
    grid-template-areas:
        "left buttons";
    max-width: 1200px;
    width: 90%;
    align-items: center;
    gap: 20px;
    position: relative;
}

.left {
    grid-area: left;
}

.left h1 {
    font-size: 2.2em;
}

.left p {
    font-size: 1em;
    margin-bottom: 20px;
}

.download-buttons {
    grid-area: buttons;
    display: flex;
    gap: 10px;
    justify-content: flex-start; /* Alinea los botones en pantallas grandes */
    flex-wrap: nowrap; /* Evita que los botones se coloquen en varias filas */
}

.download-buttons a img {
    width: 200px;
}

.terms {
    margin-top: 15px;
    font-size: 0.8em;
    text-align: center;
}

.terms a {
    color: white;
    text-decoration: underline;
}

.phone {
    position: absolute;
    top: 0;
    right: 0;
}

.phone img {
    width: 350px;
    max-width: 100%;
}

.logo-container svg {
    fill: white !important;
}

.footer {
    background-color: #002467;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.termsLink {
    color: white; /* Cambia el color del enlace a blanco */
    text-decoration: none; /* Opcional: elimina el subrayado */
}

/* Estilos responsivos */
@media screen and (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "buttons";
        text-align: center;
    }

    .left h1 {
        font-size: 2em;
    }

    .phone {
        position: relative;
        margin-top: 20px;
        text-align: center;
    }

    .phone img {
        width: 300px;
    }

    .download-buttons {
        justify-content: center;
        flex-wrap: wrap; /* Permite que los botones se coloquen en varias filas si es necesario */
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        gap: 10px;
    }

    .left h1 {
        font-size: 1.8em;
    }

    .left p {
        font-size: 0.9em;
    }

    .download-buttons a img {
        width: 180px;
    }

    .phone img {
        width: 250px;
    }
}

@media screen and (max-width: 480px) {
    .left h1 {
        font-size: 1.5em;
    }

    .left p {
        font-size: 0.85em;
    }

    .download-buttons {
        flex-direction: column; /* En pantallas pequeñas los botones se apilan */
        align-items: center;
    }

    .download-buttons a img {
        width: 160px;
    }

    .phone img {
        width: 220px;
    }
}
