/*
   Variables html
*/

:root {
  --color-primary: #1f2a44;
  --color-secondary: #2c5072;
  --color-text: #2b2b2b;
  --color-muted: #6b6b6b;

  --font-title: serif;
  --font-body: system-ui, sans-serif;

  --max-width: 65rem;
  
}


/* 
totalidad pagina
*/

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

main{
  padding-top:11rem;
}

section {
  scroll-margin-top: 8rem;
}


h1{
  font-family: var(--font-title);
}

.titulo-principal{
  font-family: var(--font-title);
  font-size: 2.5rem;
  line-height: 1.6;
}

p{
  font-family: var(--font--body);
  text-align: justify;
}

strong{
  color: var(--color-secondary);
}

main{
  padding-top: 7rem;
}
/* 
ENCABEZADO
*/

.encabezado-sitio {
  position: fixed;
  top: 0;
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 1rem;
  z-index: 10;
  background-color:#ffffff;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 1);
}

.encabezado-contenedor {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.marca-logo img {
  height: 2.5rem;
  width: auto;
  display: block;
}


/* nav */
.nav-principal{
  flex:1;
  display:flex;
  justify-content: center;
}

.nav-principal .lista-nav {
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  align-items: center;
}

.nav-principal a {
  position: relative;
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--color-text);
  font-family: var(--font-title);
}

/* linea navegador estudiar después */
.nav-principal a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 0.15rem;
  background-color: var(--color-primary);
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-principal a:hover::after,
.nav-principal a:focus::after {
  opacity: 1;
  transform: scaleX(1);
}

/* linea navegador estudiar después */



/* 
toggle base
*/

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

p{
  font-size: 1.5rem;
}


/* 
bio
*/

.bloque-texto {
  text-align: center;
  margin: 12rem auto 5rem;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 1.5rem;
}

.bloque-texto p {
  margin-bottom: 1.5rem;
}

.bloque-bio{
  margin-top: 0;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 1.5rem;
}

.bio-texto .titular {
  margin-bottom: 0.5rem;
}

.titular{
  margin-top: -4rem;
  margin-bottom: 3rem;
  max-width: auto;
}

.titular h1{
  margin: 0;
}




.bio-contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  width: 100%;
  flex-wrap: wrap;
}

.bio-texto {
  flex: 1 1 55%;
  min-width: 18rem;
}

.bio-texto span {
  display: block;
  margin-top: -1.3rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  font-family: var(--font-title);
  opacity: 0.8;
}

.experiencia-info {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.experiencia-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1rem;
}


.bio-imagen {
  margin-top: 1rem;
  flex: 0 0 40%;
  max-width: 20rem;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.bio-imagen img {
  width: 100%;
  height: auto;
  max-height: 28.5rem;
  object-fit: cover;
}



/* quito todos los efectos, revisar */
a.btn,
a.btn:hover,
a.btn:focus,
a.btn:active {
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
  filter: none;
}

.bio-imagen img {
  width: 100%;
  height: auto;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.75);
}

.card {
  background-color: #f5f6f8;
  border-radius: 1rem;
  padding: 2rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card .card-text {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.areas-contenedor {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
  row-gap: 4rem;
  column-gap: 3rem;
}


/* animación */

.animar-scroll {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animar-scroll.activo {
  opacity: 1;
  transform: translateY(0);
}


/*
Iframes
*/ 

.contenedor-mapas {
  width: 90%;
  margin: 6rem auto;

  display: flex;
  justify-content: space-between;
  gap: 3rem;
}

.seccion-mapas {
  width: 48%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mapa-contenedor {
  width: 100%;
  height: 20rem;
}

.mapa-contenedor iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/*
Forms
*/

.titulo-formulario {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 2rem;
  text-align: center;
}


.contenedor-centro {
  margin-top: 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1rem;
}


.contenedor-forms {
  background-color: #fff;
  padding: 3rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.forms {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fila-doble {
  display: flex;
  gap: 1rem;
}

.fila-doble label {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.campo-ancho {
  display: flex;
  flex-direction: column;
}

.forms input,
.forms textarea {
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
}

.forms textarea {
  resize: vertical;
}


/* 
Footer
*/

footer{
  background-color: rgb(184, 184, 184);
}

.footer-contenedor {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 3rem;
  justify-items: center;
}

.item-icono-texto {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.item-icono-texto a {
  display: flex;
  align-items: center;
  gap: 0.75rem;

  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-family: inherit;
}

.footer-marca {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-marca p {
  font-size: 0.85rem;
  margin: 0;
  color: #555;
}

.footer-marca a {
  color: #555;
  font-weight: 500;
}

.footer-marca a:hover {
  color: var(--color-primary);
}


@media (max-width: 48rem) {

  html{
    scroll-padding-top: 12rem;
  }

  main{
    padding-top: 14rem;
  }

  .fila-doble {
    flex-direction: column;
  }

  .forms {
    max-width: 90%;
  }

  .nav-toggle {
      display: block;
    }

    .titulo-principal{
      font-size: 1.6rem;
      line-height: 1;
      max-width: 14rem;
      margin: 0 auto;
    }


    .nav-principal {
      position: absolute;
      flex: none;  /* esto */
      top: 100%;
      left: 0;
      width: 100%; /*esto  */
      display: block;
    }


    .nav-principal .lista-nav {
      display: none;
      flex-direction: column;
      background-color: #fff;
      gap: 1.5rem;
      padding: 2rem 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }

    .nav-principal.activo .lista-nav {
      max-height: 25rem;
      display: flex;
    }

    .bio-contenedor{
      flex-direction: column;
      text-align: center;
      gap: 2rem;
    }

    .bio-imagen {
      transform: scale(1.3);
      margin-bottom: 4rem;
      margin-top: 3rem;
    }

    .bio-imagen img {
      max-height: auto;
    }

    .experiencia-info {
      flex-direction: row;
      gap: 1rem;
    }

    .areas-contenedor{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2rem;
    }

    .bloque-texto{
      max-width: 100%;
      padding: 0 1rem;
    }

    section{
      scroll-margin-top: 10.5rem;
    }
    
    .card{
      width: 100%;
      max-width: 28rem;
    }

    

    .contenedor-mapas {
    flex-direction: column;
    width: 100%;
  }

  .bio-separador{
    width: 14rem;
  }

  .seccion-mapas {
    width: 100%;
  }
}