:root {
    --blanco: #ffffff;
    --oscuro: #212121;
    --primario: #ffc107;
    --secundario: #0097A7;
    --gris: #757575;
}

/* Globales */

html{
    font-size: 62.5%;
    box-sizing: border-box; /* Hack para Box Model */
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}
*, *:before, *:after{
    box-sizing: inherit;
}
body{
    font-size: 16px; /* 1rem=10px */
    font-family: "Krub", sans-serif;
    background-image: linear-gradient(to top,#a4bece 0%, var(--blanco) 20%);
}

/* Tipografía */
h1,h2,h3{
    text-align: center;
}

h1{
    text-align:center;
    color:rgb(9, 8, 85);
    TEXT-TRANSFORM: UPPERCASE;
    font-size: 3.8rem; 
}

/* Títulos */

h1.titulo span{
    font-size: 2rem;
    color:rgb(9, 8, 85)
}

.boton{
    background-color: var(--secundario);
    color: var(--blanco);
    padding: 1rem 3rem;
    margin-top: 1rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;
    width: 90%;
    text-align: center;
    border: none;
}

@media (min-width: 768px) {
    .boton{
        width: auto;}
}

.boton:hover {
    cursor: pointer
}

.sombra{
    box-shadow: 0px 10px 19px 0px rgba(179,188,189,1); 
background-color: var(--blanco);
padding: 2rem;
border-radius: 1rem;
}

.contenedor{
    max-width: 80%;
    margin: 0 auto;
}

h2{
    font-size: 2.8rem;
    color: rgb(50, 50, 158);
    text-align: center;
}


main{
    text-align:center;
}

h3{
    text-align:center;
    color:darkblue;
    font-size: 1.8rem;
}

nav{
    text-align: center;
}

header p{
    text-align: center;
}
header section{
    text-align: center;
}

div{
    text-align:center;
}
legend{
    text-align: center;
}

  .nav-bg{
    background-color: var(--secundario);
  }
  .navegacion-principal {
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 120rem;
    margin-top:  5rem auto;
  }

  .navegacion-principal a {
    color: var(--blanco);
    background-color: transparent;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem;
}


.navegacion-principal a:hover{
    background-color: var(--primario);
    color: var(--oscuro)
}


@media (min-width: 768px) {
    .navegacion-principal {
        flex-direction: row;
        justify-content: space-between;
    }
}

.hero {
    background-image: url(../Vehnäpelto_6.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 250px;
    position: relative;
}
.contenido-hero{
    position:absolute;
    background-color: rgba(0,0,0,.4); /* Anterior */
    background-color: rgb( 0 0 0 /70% );
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contenido-hero h2,
.contenido-hero p{
    color: var(--blanco);
}

.ubicacion{
    font-size: 1rem;
}

.texto{
    font-size: 1.3rem;
}

.lineas,
.navegacion-principal,
.formulario,
.continuacion-miembros {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

/** Líneas de investigación**/
@media (min-width: 768px) {
    .lineas {
        display: grid;
        grid-template-rows: repeat(3, 1fr);
        row-gap: 2rem;
    }
}
.apartados {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.apartados h3{
    color: var(--secundario);
    font-weight: 400;
}

.apartados p{
    line-height: 2;
    text-align: center;
}


.apartados .iconos{
height: 15rem;
width: 15rem;
background-color: var(--primario);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
/** Contacto **/
.formulario {
    background-color: var(--gris);
    width: min( 60rem, 100%  ); /**Utilizar el valor más pequeño**/
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
}

.formulario fieldset{
    border: none;
}

.formulario legend{
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    color:var(--primario)
}

@media (min-width: 768px) {
    .contenedor-campos {
        display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 20rem;
    column-gap: 1rem;

    }
    .campos:nth-child(3), .campos:nth-child(4) {
        grid-column: 1 / 3;
    }
}


.campos{
margin-bottom: 1rem;

}

.campos label {
    color: var(--blanco);
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
}

.campos textarea{
    height: 20rem;
}

.input-text {
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;

}

/** Utilidades **/

.w-sm-100{
    width: 100%;
}

@media (min-width: 768px) {
    .w-sm-100{
        width: auto;
    }
    
}
.flex {
    display: flex;
}

.alinear-derecha {
    display: flex;
    justify-content: flex-end;
    margin-top: 3rem;
}

/** Footer **/

.footer{
    text-align: center;
}

section p{
    text-decoration: none;
    color: var(--oscuro);
}

a{
    text-decoration: none;
}

.cabecero{
    color:rgb(9, 8, 85);
}

.disposición__miembros{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
