/* apply a natural box layout model to all elements, but allowing components to change */

html {
    box-sizing: border-box;
    font-size: 62.5%;
    /**1rem = 10px**/
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    /* fuente para el body*/
    font-family: 'Hind Vadodara', sans-serif;
    /*textos 16px por defecto*/
    font-size: 1.6rem;
    /*interlineado*/
    line-height: 1.5;
}


/**Globales**/

@media (max-width: 768px) {
    .centrar-img-mobil {
        display: block;
        margin: auto;
    }
}

.centrar-img {
    display: block;
    margin: auto;
    margin-top: 2rem;
}

.centrar-img-top {
    display: block;
    margin: auto;
    margin-top: -5rem;
}

.texto-blanco {
    color: white;
}

.texto-azul {
    color: #3e4095;
}

.texto-titulo {
    text-decoration: none;
}

.fondo-gris-abajo {
    background-color: grey;
}

.fondo-azul {
    background-color: #272040;
}

.fondo-verde {
    background-color: #3e4095;
}

.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    width: 95%;
}

h1,
h2,
h3,
h4 {
    font-family: 'Hind Vadodara', sans-serif;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 4rem;
    line-height: 1.2;
}

h3 {
    font-size: 3.2rem;
}

h4 {
    font-size: 2.2rem;
}

img {
    max-width: 100%;
}


/**utilidades**/

.centrar-texto {
    text-align: center;
}

.texto-izquierda {
    text-align: right;
}

.no-margin {
    margin: 0;
}


/**botones**/

.btn {
    display: block;
    text-align: center;
    padding: 0.1rem 3rem;
    margin-bottom: 2rem;
    color: white;
    text-decoration: none;
    font-family: 'PT Sans' sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2rem;
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .btn {
        display: inline-block;
        flex: 0 0 auto;
    }
}

.btn-primario {
    border: solid #3e4095;
    color: #3e4095;
    margin-bottom: 2rem;
    text-align: center;
}


/**grid**/

@media (min-width: 768px) {
    .grid {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .centrar-columnas {
        justify-content: center;
    }
    .columnas-2 {
        flex: 0 0 calc(15% - 1rem);
    }
    .columnas-4 {
        flex: 0 0 calc(33%);
    }
    .columnas-6 {
        flex: 0 0 calc(50% - 1rem);
    }
    .columnas-8 {
        flex: 0 0 calc(66.6% - 1rem);
    }
    .columnas-10 {
        flex: 0 0 calc(83.3% - 1rem);
    }
    .columnas-12 {
        flex: 0 0 100%;
    }
    .columnas-8-4 {
        flex: 0 0 calc(50% - 1rem);
    }
}


/*contenido principal home*/

@media (min-width: 768px) {
    .grid-novedades {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-bottom: 3rem;
    }
}

.contenido-principal {
    display: flex;
    flex-wrap: wrap;
}

@media (min-width:768px) {
    .division-columna-blog {
        border-right: solid #9f97bf;
    }
}


/*Footer*/

.site-footer {
    background-color: black;
    padding: 3rem;
}

.site-footer p {
    color: white;
    font-size: 1.6rem;
    font-weight: 400;
    font-family: 'PT Sans' sans-serif;
    text-align: center;
}

.barra-footer img {
    margin-top: 1rem;
}

.site-footer a {
    text-align: center;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
}

.site-footer p span {
    font-weight: 700;
}


/*Paginas Internas*/


/*globales*/

.texto-marquesina {
    color: white;
    text-align: center;
    height: 8rem;
    font-weight: 300;
}

@media (min-width:768px) {
    .texto-marquesina {
        text-align: right;
    }
}

@media (min-width:768px) {
    .division-abajo-lista {
        margin-bottom: 2rem;
        border-bottom: solid #3e4095;
    }
}


/*Novedades*/

.navegacion-novedades a {
    text-align: left;
    display: inline-block;
    margin-right: 2rem;
    margin-left: 2rem;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
}

@media (min-width:768px) {
    .navegacion-novedades a {
        position: relative;
        left: 35%;
        text-align: center;
        display: inline-block;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

.texto-negro {
    color: black;
}

@media (min-width:768px) {
    .barra-lista {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 2rem;
    }
}

@media (min-width: 768px) {
    .grid-titulo-novedades {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .fondo-gris {
        background-color: #d2d3d5;
    }
}

@media (min-width: 768px) {
    .division-columna-azul {
        border-right: solid #3e4095;
    }
}

@media (max-width: 768px) {
    .publicacion {
        order: -1;
    }
}

.grid-notas-cirugia {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (min-width:768px) {
    .margenes-lista {
        margin-left: 0.5rem;
    }
    .barra-lista {
        padding: 1rem;
    }
}


/** Contacto **/

.formulario-contacto {
    background-color: #ffffff;
    padding: 2rem;
}

@media (min-width: 768px) {
    .formulario-contacto {
        margin-top: -30rem;
        padding: 4rem;
    }
}

.formulario-contacto .campo {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.formulario-contacto .campo label {
    flex: 0 0 10rem;
}

.formulario-contacto .campo input:not([type="submit"]),
.formulario-contacto textarea {
    flex: 1;
    border: 1px solid #e1e1e1;
    padding: 1rem;
}

.formulario-contacto select {
    flex: 1;
    border: 1px solid #e1e1e1;
    padding: 1rem;
}

.formulario-contacto textarea {
    height: 20rem;
}

.formulario-contacto .enviar {
    display: flex;
    justify-content: center;
}

.formato-error {
    color: red;
    margin-left: 11rem;
}