/* #region global styles */
body {
    /* align-items: center;
    justify-content: center; */
    margin: 0;
    padding: 0;
    font: Arial, sans-serif;
    overflow-x: hidden;
}
* {
    box-sizing: border-box;
}
a.fuente_imagen {
    font-size: smaller;
    color: blue;
}
a.fuente_imagen:hover {
    color: #c50000;
    text-decoration: underline;
}
div.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

/* #endregion */

/* #region header*/
header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100vw;
    background-color: #a2c8cc;
    color: black;
    padding: 2% 8% 2% 8%;
    position: sticky;
    top: 0;
    max-height: 80px;
    z-index: 100;
}
header #name {
    color: black;
    text-shadow: 2px 2px 4px white;
    text-align: center;
}
nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 10px
}
nav a {
    background-color: #cca6a2;
    border: 2px solid black;
    padding: 5px;
    border-radius: 10px;
    color: black;
    font-size: 1.1rem;
    font-weight: 900;
    text-decoration: none;
    text-align: center;
}

nav a:hover {
    background-color: #bba2cc;
}

/* #endregion */

/* #region main*/
main {
    /* margin: 0% 0%; */
    width: 100%;
    padding: 1% 10%;
}
main section {
    min-height: 40vh;
}

#about, #skills, #metacognition, #projects, #contact, #experience {
    scroll-margin-top: 80px; /* Ajusta el valor según la altura de tu header */
    margin-bottom: 1vh;
}
/* #region Cabeceras */
main h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    line-height: 1.5em;
    padding-bottom: 15px;
    position: relative;
}
main h1:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: 55px;
    background-color: #111;
}
main h1:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 1px;
    width: 95%;
    max-width: 255px;
    background-color: #333;
}
main h2 {
    font-size:24px; 
    font-weight:700;
    letter-spacing:0.5px; 
    width:160px; 
    text-align:center; 
    /* margin:auto;  */
    white-space:nowrap; 
    padding-bottom:13px;
    padding-left: 2rem;
}
main h2:before {
    background-color: #c50000;
    content: '';
    display: block;
    height: 0.2rem;
    width: 3rem;
    margin-bottom: 5px;
}
main h2:after {
    background-color: #c50000;
    content: '';
    display: block;
    position:relative; 
    right:0; 
    bottom:0;
    height: 3px;
    width: 8rem;
    margin-bottom: 0.25em;
}
main h3 {
    text-align: center;
    font-size:20px; 
    font-weight:300; 
    color:#222; 
    letter-spacing:1px;
    display: block;
    grid-gap: 20px;
    align-items: center;
    border-bottom: 2px double #c50000;
}

main h4 {
    font-size: 1.15rem;
    font-weight: 700;
    /* color: #333; */
    text-align: center;
    margin-bottom: 1rem;
}

/* #endregion */

/* #region about me*/
img#foto_perfil {
    width: 300px;
    height: 290px;
    border-radius: 50%;
    margin: 0% 5%;
    border: 5px solid black;
}
#about div#bio {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10%;
}
#about div#bio p {
    max-width: 40rem;
    font-size: 1.2rem;
    text-align: justify;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 3px;
}
#about div#bio p:hover {
    box-shadow: 0 4px 10px #e2504c;
    transition: all 0.3s ease-in-out;
}
#about div#bio h2 {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
}

/* #endregion */

/* #region experience */
#experience {
    min-height: 25rem;
    margin-bottom: 2rem;
}
#jobs_space {
    display: flex;
    flex-direction: row;
    /* align-items: center; */
    justify-content: center;
    gap: 5%;
    flex-wrap: wrap;
    padding: 0% 5%;
}
.job_book {
    position: relative;
    border-radius: 10px;
    width: 18rem;
    height: 22rem;
    background-color: whitesmoke;
    -webkit-box-shadow: 1px 1px 12px #000;
    box-shadow: 1px 1px 12px #000;
    -webkit-transform: preserve-3d;
    -ms-transform: preserve-3d;
    transform: preserve-3d;
    -webkit-perspective: 2000px;
    perspective: 2000px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #000;
    margin-bottom: 2rem;
}
  
.cover {
    top: 0;
    position: absolute;
    background-color: lightgray;
    width: 18rem;
    height: 22rem;
    border-radius: 10px;
    cursor: pointer;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform-origin: 0;
    -ms-transform-origin: 0;
    transform-origin: 0;
    -webkit-box-shadow: 1px 1px 12px #000;
    box-shadow: 1px 1px 12px #000;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    /* align-items: center; */
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: space-between;
}
.cover img {
    max-width: 12rem;
    max-height: 10rem;
    align-items: center;
    justify-content: center;
    margin: auto;
}
.job_book h4, .cover h4 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #d64242;
}
.job_book p, .cover div p {
    text-align: justify;
    max-width: 15rem;
}
.job_book p{
    font-size: 1.2rem;
    font-weight: 500;
    color: #000;
    padding: 0% 5%;
}
.cover div p {
    padding-left: 10px;
}
  
.job_book:hover .cover {
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform: rotatey(-80deg);
    -ms-transform: rotatey(-80deg);
    transform: rotatey(-80deg);
}
  
/* .job_book {
    font-size: 20px;
    font-weight: bolder;
  } */
/* #endregion */

/* #region metacognition */
#dafo {
    display: grid;
    grid-template-columns: 1fr 4fr 4fr;
    grid-template-rows: 1fr 3fr 3fr;
    text-align: center;
    font-weight: bold;
    gap: 0.5rem;
    min-height: 20rem;
    max-width: 85rem;
    min-width: 80rem;
    /* width: 80rem; */
    margin: auto;
  }

#dafo .header {
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.label-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
#dafo .dafo-element{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#dafo div .title {
    font-size: 1.2rem;
}
#dafo div .description {
    font-size: 1rem;
    text-align: justify;
    max-width: 80%;
    padding: 0 0 1rem 5rem;
}

#debilidades {
    background-color: #ffe680;
    color: #a67c00;

}

#amenazas {
    background-color: #ff8080;
    color: #cc0000;
}

#fortalezas {
    background-color: #99e699;
    color: #339933;
}

#oportunidades {
    background-color: #b3e0ff;
    color: #3399cc;
}
/* #endregion */

/* #region skills*/
.backend_language, .frontend_language{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    gap: 20%;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 20px;
}
.backend_language img, .frontend_language img{
    width: 150px;
}

.language_description {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    width: 70%;
    text-align: justify;
}

/* #region softskills and scientific*/
div#cards_softskills, #cards_scientific_skills {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;
    gap: 5px;
    flex-wrap: wrap;
}
div#cards_softskills .card, #cards_scientific_skills .card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* height: 100px; */
    width: 18rem;
    border-radius: 10px;
    color: black;
    cursor: pointer;
    transition: 400ms;
}
.card h4 {
    text-align: center;
}
.card p {
    text-align: justify;
    max-width: 16rem;
    font-size: 1.1rem;
}
div#cards_softskills .card:hover, #cards_scientific_skills .card:hover {
    transform: scale(1.1, 1.1);
    cursor: zoom-in;
}
div#cards_softskills:hover > .card:not(:hover) {
    filter: blur(10px);
    transform: scale(0.9, 0.9);
}
div#cards_scientific_skills:hover > .card:not(:hover) {
    filter: blur(2px);
    transform: scale(0.9, 0.9);
}

div#cards_scientific_skills .card {
    background-color: #96c4c4;
}

#communication_card{
    background-color: #77dd77;
}
#teamwork_card{
    background-color: #ffda9e;
}
#solver_card{
    background-color: #fdfd96;
}
#adapt_card{
    background-color: #ff6961;
}
#autonomy_card{
    background-color: #84b6f4;
}
/* #endregion */

/* #endregion */

/* #region projects*/
/* #region loader */
#project_loader {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
  }
/* #region waves */
  .wave {
    width: 1.8rem;
    height: 150px;
    background-color: #ff6b6b;
    margin: 0 4px;
    border-radius: 0.4rem;
    animation: wave 1.5s linear infinite;
    transform-origin: center;
  }
  
  @keyframes wave {
    0% {
      transform: scale(0);
      filter: hue-rotate(90deg) blur(100px);
    }
    25% {
      transform: scale(0);
      filter: hue-rotate(120deg) blur(50px);
    }
    50% {
      transform: scale(1);
      filter: hue-rotate(180deg) blur(25px);
    }
    25% {
      transform: scale(0);
      filter: hue-rotate(360deg) blur(2px);
    }
    100% {
      transform: scale(0);
      filter: hue-rotate(0deg) blur(0);
    }
  }
  
  .wave:nth-child(2) {
    animation-delay: 0.1s;
  }
  
  .wave:nth-child(3) {
    animation-delay: 0.2s;
  }
  
  .wave:nth-child(4) {
    animation-delay: 0.3s;
  }
  
  .wave:nth-child(5) {
    animation-delay: 0.4s;
  }
  
  .wave:nth-child(6) {
    animation-delay: 0.5s;
  }
  
  .wave:nth-child(7) {
    animation-delay: 0.6s;
  }
  
  .wave:nth-child(8) {
    animation-delay: 0.7s;
  }
  
  .wave:nth-child(9) {
    animation-delay: 0.8s;
  }
  
  .wave:nth-child(10) {
    animation-delay: 0.9s;
  }
/* #endregion */
  #loading_text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c50000;
    text-align: center;
    margin-top: 2rem;
}
  
/* #endregion */
/* #endregion */

/* #endregion */

/* #region footer*/
footer {
    background-color: #3d6064;
    color: white;
    width: 100vw;
    padding: 0% 5% 2% 5%;
}
footer h1 {
    text-transform: uppercase;
    text-align: center;
    padding: 1rem 0% 1rem 0%;
}
footer section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 5%;
    margin-bottom: 2rem;
}
footer section p {
    font-size: 1.3rem;
}
footer img{
    max-width: 2rem;
}
div.contacto {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
div.contacto a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    transition: 0.3s;
}
/* #endregion */
