main {
    padding: 0 100px;
    box-sizing: border-box; 
    height: 87vh;

    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('/img/main.jpg') no-repeat top center fixed;
    background-size: cover;
    color: white;
}

main h1 {
    font-size: 65px;
    line-height: clamp(40px, 10vw, 80px);
    margin: 0;
    color: white;
    width: calc(55% + 50px);
}

main p {
    color: white;
    width: calc(72% + 50px);
}

.main-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.main-buttons input {
    padding: 15px 30px;
    font-size: 18px;
    width: 35vh;
    margin: 10px 30px  0px 0;
    border-radius: 7px;
    color: white;
    border: none;
    font-weight: 700;
    transition: 0.2s all;
    cursor: pointer;
}

.main-buttons  .boton:hover {
    border: 3px solid white;
}

.main-buttons  .boton2 {
    border: 3px solid #ffffff;
    background-color: transparent;
    backdrop-filter: blur(10px); 
    border: 3px solid white;
}

.main-buttons  .boton2:hover {
    border: 3px solid #62939e;
    color: #62939e;
}


@media(max-width: 770px){
    main  { 
        height: 100vh;
    }
}

@media(max-width: 500px){
    main p { 
        font-size: 13px;
    }

    main  { 
        height: 115vh;
    }
}

@media(max-width: 375px){
    main  { 
        height: 130vh;
    }
}

@media(max-width: 340px){
    main {
        height: 750px;
    }

    main h1 { 
        font-size: 25px;
        width: 100%;
    }

    .main-buttons input {
        padding: 15px 30px;
        font-size: 18px;
        width: 41vh;
        margin: 10px 0  0px 0;
        
    }
    
}

/* Estilo del modal */
.modal {
    display: none; /* Oculta el modal por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semi-transparente */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px; /* Ancho máximo para no estirarse en pantallas grandes */
    max-height: 80vh;
    overflow-y: auto; /* Scroll si el contenido es muy largo */
    position: relative;
}

.modal-contenido h2 {
    text-align: center;
    color:#62939e;
}

.cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
