/* Estilos para la sección de hero y modal */

/* Hero texts */
.hero__texts {
    text-align: center;
}

/* Hero CTA */
.hero__cta {
    text-align: center;
    margin: 5px;
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    display: inline-block;
    font-weight: 500;
    transition: background-color .3s;
}

.hero__cta:hover {
    background-color: #fff;
    color: #1e3c72;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111111bd;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s .9s;
    --transform: translateY(-100vh);
    --transition: transform .8s;
}

.modal--show {
    opacity: 1;
    pointer-events: unset;
    transition: opacity .6s;
    --transform: translateY(0);
    --transition: transform .8s .8s;
}

/* Modal container */
.modal__container {
    margin: auto;
    width: 90%;
    max-width: 600px;
    max-height: 90%;
    background-color: #fff;
    border-radius: 6px;
    padding: 3em 2.5em;
    display: grid;
    gap: 1em;
    place-items: center;
    grid-auto-columns: 100%;
    transform: var(--transform);
    transition: var(--transition);
}

/* Modal title */
.modal__title {
    font-size: 2.5rem;
}

/* Modal paragraph */
.modal__paragraph {
    margin-bottom: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

/* Modal close button */
.modal__close {
    text-decoration: none;
    color: #000000;
    background-color: rgb(226, 226, 226);
    padding: 1em 3em;
    border: 1px solid;
    border-radius: 6px;
    display: inline-block;
    font-weight: 300;
    transition: background-color .3s;
}

.modal__close:hover {
    color: #F26250;
    background-color: #fff;
}

/* Nuevos estilos para hacer el modal responsive */
@media only screen and (max-width: 600px) {
  .modal__container {
    width: 90%;
    padding: 2em;
  }
}

@media only screen and (max-width: 400px) {
  .modal__container {
    width: 95%;
  }
}
