@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

* {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bocadillo {
    display: none;
}

body {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(40vh, 1fr) 3fr;
    grid-template-rows: repeat(3, auto);
    background-color: rgb(219, 219, 219);
}

article {
    width: 100%;
    height: 100%;
    background-color: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
    grid-row-gap: 20px;
    max-width: 100%;
    min-width: 30vh;
}

.calla {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.calla a {
    margin-top: 20px;

}

.fondo {
    text-align: center;
    margin-top: 40px;

}


article .fondo i {
    background-color: rgb(138, 140, 162);
    padding: 7px;
    width: 15px;
    border-radius: 50%;
    margin-left: 7px;
    margin-right: 7px;
    max-width: 100%;
    margin-bottom: 50px;
    text-align: center;

}

article h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    margin-top: 20px;
    color: #e74c3c;

}

span {
    color: #3498db;
}

article hr {
    border: 1px solid #34495e;
    max-width: 100%;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
}

.calla {
    width: 100%;
}

.calla a {
    text-decoration: none;
    color: white;
    transition: 1s;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    max-width: 100%;
    width: 90%;
    margin-left: auto;
    margin-right: auto;

}

.calla a p {
    margin-left: 15px;
    max-width: 100%;

}

.calla a:hover {
    background-color: #3498db;
    max-width: 100%;

}

aside {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    grid-gap: 20px;

}

.alto,
.bajo {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    margin: 15px;
    padding: 20px;
    color: #2c3e50;

}

.alto hr {
    border: 1px solid #3498db;
}

.bajo hr {
    border: 1px solid #3498db;
    margin-top: 10px;
}

.alto {
    grid-row: 1;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.bajo {
    grid-row: 2 / span 2;
}

.division {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-gap: 20px;
}

.servicio {
    background-color: #e9f0f2;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    margin-top: 20px;
}

.icono {
    color: #2e86de;
    font-size: 40px;
    margin-bottom: 15px;
}

.formulario {
    grid-row: 2;
    background-color: white;
    grid-column: 2;
    margin: 15px;
    border-radius: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    padding: 15px;
    color: #2c3e50;

}

.formulario hr {
    border: 1px solid #2e86de;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
}

input {
    border-radius: 5px;
    border: 1px solid gray;
    height: 40px;
    margin-bottom: 20px;
    margin-top: 5px;
}

select {
    border-radius: 5px;
    border: 1px solid gray;
    height: 40px;
    margin-bottom: 20px;
    margin-top: 5px;
}


textarea {
    border-radius: 5px;
    border: 1px solid gray;
    height: 70px;
    margin-bottom: 20px;
    margin-top: 5px;

}

button {
    background-color: #2e86de;
    border: none;
    color: white;
    width: 150px;
    border-radius: 7px;
    height: 45px;
    transition: 1s;
}

button:hover {
    transform: scale(1.05);
}

footer {
    grid-column: 2;
    grid-row: 3;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50af;
}

@media screen and (min-width: 768px) and (max-width: 992px) {
    body {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
    }

    article {
        grid-row: 1;
        grid-column: 1;
    }

    aside {
        grid-row: 2;
        grid-column: 1;
        grid-template-rows: repeat(3, auto);
    }

    .alto {
        grid-row: 1;
        display: flex;
        flex-direction: column;
        row-gap: 10px;
        height: auto;
        margin-top: 50px;

    }

    .bajo {
        grid-row: 2 / span 3;
    }

    .formulario {
        grid-row: 3;
        grid-column: 1;
    }

    footer {
        grid-row: 4;
        grid-column: 1;
    }

    .division {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }

}

@media screen and (max-width: 767px) {
    body {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
    }

    article {
        grid-row: 1;
        grid-column: 1;
    }

    aside {
        grid-row: 2;
        grid-column: 1;
        grid-template-rows: repeat(3, auto);
    }

    .alto {
        grid-row: 1;
        display: flex;
        flex-direction: column;
        row-gap: 10px;
        height: auto;
        margin-top: 50px;

    }

    .bajo {
        grid-row: 2 / span 3;
    }

    .division {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
    }

    .formulario {
        grid-row: 3;
        grid-column: 1;
    }

    footer {
        grid-row: 4;
        grid-column: 1;
    }

    .calla {
        display: none;
    }

    .bocadillo {
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        padding: 10px 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        transition: 1s;
    }

    .bocadillo:hover {
        transform: scale(1.5);
    }

    .bocadillo:hover .calla {
        display: block;
    }

    #menu-toggle:checked+label+.calla {
        display: block;
    }
}