.about-me {
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   background-color: white;
   overflow: hidden;
   align-items: center;

}

@media (max-width: 768px) {
   .about-me {
      flex-direction: column;
      align-items: center;
   }
}

.bio {
   padding: 20px;
   background-color: #f9f9f9;
   border-radius: 12px;
   font-family: 'Helvetica', sans-serif;
   line-height: 1.6;
   color: #333;
   width: 50%;
   height: 100%;
   box-sizing: border-box;
   margin: 0;


}

.bio p {
   margin-bottom: 1em;
   font-size: 18px;
}

.bio h1 {
   font-size: 36px;
   margin-bottom: 6px;
   text-align: center;
   margin: 30 0 0 30px;
}

.bio hr {
   width: 60px;
    height: 4px;
    background-color: #c32222;
    border: none;
    margin: auto;
    border-radius: 2px;
    animation: underline-grow 1s ease-in-out forwards;
}

@keyframes underline-grow {
   from {
      width: 0;
   }

   to {
      width: 100px;
   }
}

.bio pre {
   background-color: #eee;
   padding: 15px;
   border-left: 4px solid #ccc;
   font-style: italic;
   font-family: 'Times New Roman', Times, serif;
}

.imagen-AM {
   justify-content: center;
   align-items: center;
   text-align: center;
   margin: 0;
   width: 60%;
   height: 1205px;
   box-sizing: border-box;
   overflow: hidden;
   display: flex;
   background-color: #ffffff;

}

.imagen-AM img {
   width: 100%;
   height: 100%;
   display: flex;
   justify-content: left;
   align-items: center;
   overflow: hidden;
   object-fit: cover;


}

/*KEYWORDS*/

.keywords {
   text-align: center;
   text-decoration: none;
   text-transform: uppercase;
   list-style: none;
   color: white;
   padding: 20px 0 0 0;
}

.keywords-hr {
   width: 80%;
   margin-left: auto;
   margin-right: auto;
}

.keywords li {
   display: inline-block;
   margin: 10px 15px;
   padding: 10px 20px;
   font-size: large;
   color: white;
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   position: relative;
   transition: color 0.3s ease;
}

.keywords li:not(.separador)::after {
   content: '';
   position: absolute;
   left: 0;
   bottom: 0;
   height: 2px;
   width: 0;
   background-color: #c32222;
   transition: width 0.3s;
}

.keywords li:hover::after {
   width: 100%;
}

.estudios-container {
   position: relative;
}

.estudios-container::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   width: 100%;
   height: 100%;
   background-image: url('../Imgs/estanteria.jpg');
   filter: blur(8px);
   opacity: 0.5;
   background-color: rgba(255, 255, 255, 0.1);
   z-index: -1;
   pointer-events: none;
}

.estudios {
   z-index: 1;
   display: flex;
   flex-wrap: wrap;
   gap: 40px;
   padding: 40px;
   background-color: rgba(255, 255, 255, 0.8);
   text-align: center;
   justify-content: center;
   max-width: 1200px;
   margin: 0 auto;
}

.titulo-estudios {
   z-index: 2;
   width: 100%;
   opacity: 1;
   font-size: 32px;
   font-weight: bold;
   text-align: center;
   color: #222;
   margin-bottom: 40px;
}

.estudio {
   z-index: 2;
   width: 250px;
   text-align: center;
   background-color: white;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
   padding: 20px;
   border-radius: 10px;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   opacity: 1;
}

.estudio:hover {
   transform: translateY(-5px);
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.estudio h2 {
   font-weight: bold;
   font-size: 18px;
   margin-top: 10px;
   margin-bottom: 10px;
}

.estudio p {
   font-style: italic;
   font-size: 14px;
   color: #555;
}

.img-estudio img {
   width: 80px;
   height: 80px;
   object-fit: contain;
   margin-bottom: 15px;
}

.contacto-AM {
   background-color: #c32222;
   color: white;
   text-align: center;
   text-transform: uppercase;
   height: 60px;
   width: 200px;
   border: none;
   border-radius: 10px;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 16px;
   font-weight: bold;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   margin: 0 auto;
}

.contacto-AM:hover {
   transform: scale(1.05);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}