html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

p, a, b {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
}

h1, h2, h3, h4, h5 {
    font-family: Raleway, sans-serif;
    color: #0d3b70;
}

.barra-head {
    position: fixed;
    min-height: 80px;
    width: 100vw;
    left: 0;
    right: 0;
    top: 0;
    border-bottom: 4px solid #e3e7f3;
    background: #0d3b70;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0;
    z-index: 1000; 
}

.logo img {
    height:60px;
    width: auto;
    margin: 15px;
}
.bienvenida {
    width: 100%;
    display: flex;
    flex-direction: row;
    position: relative;
    padding-top: 90px;
    padding-bottom: 30px;
    background-color: #0d3b70;
}

.banner {
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.banner img {
    width: 100%;
    height: auto;
}
.formulariolp {
	width: 550px;
    margin-left: auto;
    margin-right: auto;
	padding: 40px;
    font-family: 'Quicksand', sans-serif;
    color: #ffffff;
}

.formulariolp fieldset {
	max-width: 100% !important;
	margin:0px;
	padding: 0px;
}

.formulariolp input {
	width: 100%;
    background-color: #eaf0f7;
    border-radius: 16px;
    margin-bottom: 5px;
    border: none;
    padding: 4px;
}

.formulariolp select, textarea {
	width: 100% !important;
    background-color: #eaf0f7;
    border-radius: 16px;
    margin-bottom: 5px;
    border: none
}

.formulariolp fieldset.form-columns-2 .hs-form-field {
	width: 100% !important;
	float: none !important;
}

.legal-consent-container .hs-form-booleancheckbox-display>span {
    font-size: 11px !important;
}
ul.inputs-list {
    list-style: none !important;
    margin:0px;
    padding: 0px;
}
.hbspt-form-62eb7ea0-9bf0-4838-93b1-cb79dc6dfc79 fieldset.form-columns-1 input[type=checkbox] {
    width: 10px !important;
}
input[type="button"],
input[type="reset"],
input[type="submit"] {
	margin-top:10px;
	border-radius: 10px;
	background: #ffffff;
	color:#0d3b70;
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

.primer-seccion {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: #0d3b70;
    padding: 20px;
}
.primer-seccion h2 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    padding: 20px;
    justify-items: center;
    width: 70%;
    margin: auto;
}

.grid-item {
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra de la tarjeta */
    text-align: center;
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    transition: transform 0.3s ease-in-out;
    align-items: center;
}

.grid-item:hover {
    transform: translateY(-5px); 
    background-color: #eaf0f7;
}

svg {
    max-width: 100%; 
    height: auto; 
}

h3 {
    margin: 10px 0;
}

p {
    color: #666;
}

.btn {
    display: flex;
    padding: 10px 20px;
    background-color: #0d3b70;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

.nivel {
    max-width: 100vw;
}
.nivel img {
    height: 310px;
    width: auto;
}

.gif {
    height:250px !important;
    width:auto;
}

.preescolar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-top: 50px;
    padding:10px;
    background-color: #eaf0f7;
}

.primaria {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-top: 50px;
    padding:10px;
}
.secundaria {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-top: 50px;
    padding:10px;
    background-color: #eaf0f7;
}
.preparatoria {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-top: 50px;
    padding:10px;
}
.prefoot {
    display: flex;
    flex-wrap: wrap;
    padding:20px 50px 20px 50px;
    background: #eaf0f7;
}

.foot {
    background-color: #4a7ac3;
    width: 100%;
    height: 200px; 
    display: flex;
    
    justify-content: center;
    align-items: center;
    gap: 20px;
        
}
.foot img {
    max-height: 80%;
    height: 80px;
    width: auto;
    
}

.barrafoot {
    width: 100%;
    background: #0d3b70;
    max-height: 40px;
    text-align: center;
    padding: 2px;
}

.barrafoot p {
    color: white;
    font-size: 0.8rem;
}

.mob {
    display: none;
}

.gracias {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    height:60vh;
    width: 90vw;
}

/*======================================================================================*/
/* Estilos para pantallas pequeñas */
/*======================================================================================*/

@media only screen and (max-width: 48em) {
    .logo img {
        height: auto;
        width: 50%;
        margin: auto;
        padding: 15px;
    }
    
    .bienvenida {
        flex-direction: column; 
    }

    .banner, .formulariolp {
        width: 100%; 
    }

    .desk {
        display: none;
    }

    .mob {
        display: block;
        margin-bottom:30px;
    }
    
    .formulariolp {
        width: 290px;
        margin: auto;
        padding: 20px;
    }

    .formulariolp h2 {
        line-height: 34px !important;
    }

    .formulariolp select, textarea  {
        width: 95% !important;
    }
    .formulariolp .actions {
        width: 95%;
    }
    
    div {
        display: flex;
        flex-direction: column; 
        align-items: stretch;  
    }
    .grid {
        width: 90%;
    }

    .nivel img {
    height: auto;
    width: 90vw;
    }

    .gif {
        height: auto !important;
        width: 70% !important;
        margin: 20px;
    }

    .primaria {
        display: flex;
        flex-wrap: wrap;
    }

    
    .primaria > div:nth-child(1) {
        order: 2; 
    }

    .primaria > div:nth-child(2) {
        order: 1; 
    }

    .preparatoria {
        display: flex;
        flex-wrap: wrap; 
    }

    
    .preparatoria > div:nth-child(1) {
        order: 2; 
    }

    .preparatoria > div:nth-child(2) {
        order: 1; 
    }
    
    .contactanos {
        padding-left: 0px !important;
        text-align: center;
        margin-bottom: 50px;
    }

    .foot {
        height: 100px;
    }
    .foot img {
        height: 55px;
    }

    .gracias {
        text-align: center;
        width:300px !important;
        height: 90vh;
        margin:auto;
    }
}

