img {
    height: auto;
    width: 100%;
}

header {
    display: grid;
    grid-template-columns: 140px auto;
    align-items: center;
    background-color: #2b2b2b;
    justify-items: stretch;
}

footer {
    display: grid;
    grid-template-columns: 140px auto;
    align-items: center;
    background-color: #2b2b2b;
    justify-content: space-between;
}

h1 {
    text-align: center;
    font-size: 48px;
    color: #ffffff;
    margin-right: 155px;
    font-weight: 400;
    font-family: "Montserrat";
}
#subtitilo {
    display: grid;
    grid-template-areas:
        "subtitulo subtitulo subtitulo"
        "Datos Preferencias Tipo"
        "open openg openg";
}

h2 {
    grid-area: subtitulo;
    text-align: center;
    font-family: "Montserrat";
}

h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h3::before, #datos legend::before, #trecero legend::before, #preferencias legend::before {
    display: inline-flex;
    background-color: #c81a64;
    color: white;
    width: 50px;
    height: 50px;
    font-size: 25px;
    font-family: Arial, Helvetica, sans-serif;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 20px;
}

p {
    font-size: 18px;
    text-align: center;
}

#trecero, #preferencias, #datos {
    font-family: "Montserrat";
    font-size: 16px;
    border-radius: 10px;
    padding: 30px;
}

h3::before {
    margin-right: 0;
}

h3:nth-child(2) {
    grid-area: Datos;
    font-family: "Montserrat";
}

h3:nth-child(3) {
    grid-area: Preferencias;
    font-family: "Montserrat";
}

h3:nth-child(4) {
    grid-area: Tipo;
    font-family: "Montserrat";
}

#datos input {
    display: block;
}

h3:nth-child(2)::before,
li:nth-child(2) legend::before {
    content: '1';
}

h3:nth-child(3)::before,
li:nth-child(3) legend::before {
    content: '2';

}

h3:nth-child(4)::before,
li:nth-child(4) legend::before {
    content: '3';

}

main {
    width: 800px;
    margin: auto;
}

.obligatorio {
    color: red;
    font-size: 20px;
}

li {
    
    margin-bottom: 20px;
    list-style-type: none;
}

textarea:focus {
    /* Destacado adicional para elementos que tienen el cursor */
    /* border: #555 2px solid; */
    /* outline: blue 2px solid; */
    /* box-shadow: 4px 1px 5px black; */
}

.form>li {
    list-style-type: none;
}
/* sadaadsdad */
button {
    border: none;
    padding: 10px 30px;
    cursor: pointer;
    border-radius: 5px;
    color: #ffffff;
}



button[type="submit"] {
    background-color: mediumseagreen;
}

.check {
    margin-right: 20px;
    display: flex;
}


textarea {
    display: block;
}

legend {
    display: flex;
    align-items: center;

}


.parte {
    display: flex;
    justify-content: space-around;

}

.unoparte>input {
    width: 150%;
}

.dosparte>input {
    width: 150%;
}

.columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.preferen {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-around;
    align-items: center;
}

.tipo>li {

    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;



}

.tipo__t>li {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;

}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 100px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
    font-family: "Montserrat";
    border-radius: 10px;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}



/* The popup form - hidden by default */
.form-popup {
    width: 724px;
    display: none;
    position: relative;
    top: -48px;
    bottom: 0;
    right: 0;
    border: 3px solid #f1f1f1;
    border-radius: 2%;
    background-color: #ffffff;
    text-align: center;
    -webkit-animation-name: animatetop;
    animation-name: animatetop;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    padding: 40px;
}

.form-popup::after{
    -webkit-animation-name: animate;
    animation-name: animate;
    -webkit-animation-duration: 1s;
    animation-duration: 1s

}
@keyframes animatetop {
   
    from {
      top: -700px;
      opacity: 0;
    }
    to {
      top: -50px;
      opacity: 1;
    }
}
  
@keyframes animate {
   
    from {
        top: -50px;
        opacity: 1;
    }
    to {
      top: -600px;
      opacity: 0;
    }
}
  
.open-button {
    background-color: #ffffff;
    color: #2b2b2b;
    padding: 16px 20px;
    border: 2px solid #aeaeae;
    cursor: pointer;
    opacity: 0.8;
    position: relative;
    bottom: -30px;
    right: -9px;
    width: 280px;
    grid-area: openg;
    transition: 0.8s;
}
.open-button:hover {
    scale: 1.1;
    background-color: #1a64a9;
    border: none;
    color: #ffffff;
}
/* Add styles to the form container */
.form-container {
    max-width: 300px;
    padding: 10px;
    background-color: white;
}

/* Full-width input fields */
.form-container input[type=text],
.form-container input[type=password] {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
}

/* When the inputs get focus, do something */
.form-container input[type=text]:focus,
.form-container input[type=password]:focus {
    background-color: #ddd;
    outline: none;
}

/* Set a style for the submit/login button */
.form-container .btn {
    background-color: #04AA6D;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
    background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover,
.open-button:hover {
    opacity: 1;
}

ul.form {
    padding: 0;
}

.forma_todo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    
}

main {
    flex: 1;
}

h4{
    color: #ffffff;
    font-family: "Montserrat";
    font-size: 14px;
}
.cancel {
    position: relative;
    top: -28px;
    left: 325px;
    border: 1px solid #ff001047;
    background-color: #ffff;
    padding: 10px 30px;
    cursor: pointer;
    border-radius: 5px;
    color: #3a3a3e87;
    transition: 0.6s;
}
.cancel:hover{
    background-color: red;
    color: #ffffff;

}

.unoparte {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.enviar__borarr {
    display: flex;
    gap: 50px;
    justify-content: space-around;
    align-items: center;
}

.enviar {
    padding: 15px 50px;
    transition: 0.5s;
}

.enviar:hover{
    scale: 1.1;
}
.borrar {
    background-color: #ffffff;
    color: #2b2b2b87;
    border: 2px solid #ff000029;
    padding: 15px 50px;
    transition: 0.5s;
}

.borrar:hover{
    
    background-color: #ff0000;
    color: #ffffff;
}
.dosparte {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}