@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap");
@import url("https://fonts.cdnfonts.com/css/wotfard");

/* Estilos Generales*/
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Wotfard", sans-serif;
}

html {
  scroll-padding-top: 120px;
}

body {
  min-width: 320px;
  background-color: #f4f4f4;
  color: #0c0909;
  padding-top: 100px;
}

.perfil,
.contacto,
.proyectos,
.certificados,
.cv-section {
  margin: 40px auto;
  background-color: #29a3bedc;
  padding: 20px;
  border-radius: 10px;
}

h1 {
  color: #0c0c0c;
  text-align: center;
  padding: 20px;
}

/* Estilos barra de navegación */

header {
  background-color: #29a3be;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 65px;
  height: 65px;
  background-color: black;
  border-radius: 50%;
  background-image: url(../../media/logo2.png);
  background-size: contain;
}
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-size: 22px;
}

.nav-link:hover {
  color: #f4f4f4;
}
/* Estilos sección Inicio: Perfil */

.profile_image {
  height: 300px;
  max-width: 300px;
  margin: auto;
}
.profile_image img {
  height: 100%;
  filter: drop-shadow(0px 0px 4px #0c0c0c);
  margin-right: 0;
}

.profile_description {
  padding-right: 60px;
}

.profile_content p {
  margin-top: 20px;
  text-align: justify;
}

.profile_content h1 {
  font-family: "Dancing Script", cursive;
  padding-bottom: 10px;
  font-size: 56px;
  text-align: left;
  padding-left: 0;
}
.profile_content h2 {
  font-size: 30px;
  font-weight: bolder;
}
.profile_content p,
.contacto p {
  font-size: 20px;
}

.parrafo-oculto {
  font-size: 20px;
  visibility: hidden;
  display: none;
}
.contacto .row {
  display: flex;
  align-items: center;
}
.contacto img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
}
.contacto .contact-info {
  flex: 1;
  padding-left: 20px;
}
.contacto a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Estilos de banner rotativo para tecnologías */

.tecnologias-slider {
  height: 150px;
  margin: auto;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.tecnologias-slider::before,
.tecnologias-slider::after {
  background: linear-gradient(
    to right,
    rgba(244, 244, 244, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  content: "";
  height: 150px;
  position: absolute;
  width: 200px;
  z-index: 2;
}

.tecnologias-slider::before {
  left: 0;
  top: 0;
}

.tecnologias-slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.tecnologias-slide-track {
  display: flex;
  margin: 0 auto;
  align-items: center;
  gap: 20px;
  width: calc(250px * 16);
  animation: scroll 30s linear infinite;
}

.tecnologias-slide {
  width: 250px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.tecnologias-slide img {
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 8));
  }
}

/* Estilos Sección de proyectos */

.proyecto {
  background-color: #f4f4f4;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 250px;
}

.proyecto .div-img {
  max-width: 40%;
}

.proyecto .imagen-proyecto {
  width: 100%;
  max-width: 350px;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}
.proyecto img {
  width: 150px;
  height: 100px;
  border-radius: 5px;
}
.info {
  flex: 1;
  text-align: center;
}

.proyecto .info i {
  font-size: 28px;
}

.proyecto .info h3 {
  margin: 10px 0 5px;
}

.proyecto .info p {
  margin: 5px 0;
}
.tecnologias {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin: 5px 0;
}

.tecnologias img {
  width: 30px;
}
.enlaces {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.enlaces a {
  display: inline-block;
  padding: 5px 10px;
  text-decoration: none;
  color: white;
  background-color: #333;
  border-radius: 5px;
}
.enlaces a.demo {
  background-color: #007bff;
}

/* Estilos de Certificados */

.certificados {
  margin: 40px auto;
  background-color: #29a3be;
  padding: 20px;
  border-radius: 10px;
}

.certificado {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.enlace-certificado button {
  font-size: 22px;
}

.modal-body {
  max-height: 80vh;
  overflow-y: auto;
}

.modal-img {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  margin: 0 auto;
}

.certificado .certificado-img {
  width: 150px;
  height: 100px;
  border-radius: 5px;
}
.info-certificado {
  flex: 1;
  text-align: center;
}

.info-certificado h3 {
  margin: 10px 0 5px;
}
.enlace-certificado {
  text-align: right;
}

/* Estilos del CV */

.cv-section {
  position: relative;
}

.cv-section li,
.cv-section p {
  font-size: 18px;
}

.cv-section h5 {
  font-size: 22px;
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.cv-header a {
  color: #0c0909;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
}
.cv-header a::after {
  content: "\2197";
  margin-left: 5px;
  font-size: 14px;
  background-color: black;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sobre-mi img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
}

.iconos-cv {
  font-size: 30px;
}

.aptitudes img {
  width: 30px;
}
.titulo-seccion {
  margin: 20px 0;
  font-size: 24px;
  font-weight: bold;
}
.experiencia,
.educacion {
  margin-bottom: 15px;
}

/* Estilos del footer */

footer {
  margin-bottom: 0;
  text-align: center;
  border-top: 0.3px solid #fff;
  background-color: #29a3be;
}

footer .rrss {
  width: 100%;
  margin-top: 10px;
  text-decoration: none;
}
footer .rrss a {
  text-decoration: none;
  text-align: center;
}
footer .rrss a i {
  color: #0c0909;
  font-size: 28px;
  width: 50px;
  padding: 30px 0px;
  transition: all 0.7s;
}
footer .rrss a i:hover {
  text-shadow: 1px 1px 1px #f4f4f4;
  transform: scale(1.15);
}

/* Breakpoints */
@media (max-width: 991px) {
  .contactoLogo {
    max-width: 150px;
    max-height: 150px;
  }
}
@media (min-width: 768px) {
  .certificado {
    flex-direction: row;
    align-items: center;
  }
  .info-certificado {
    text-align: left;
  }
  .proyecto {
    flex-direction: row;
    align-items: center;
  }
  .info {
    text-align: left;
  }
  .tecnologias {
    justify-content: flex-start;
  }
  .enlaces {
    justify-content: flex-start;
  }
}

@media (max-width: 1200px) {
  .profile_image {
    margin-top: 20px;
  }
  .profile_content p {
    visibility: hidden;
    display: none;
  }
  .parrafo-oculto {
    visibility: visible;
    display: block;
    margin-top: 12px;
  }
  .profile_content h1 {
    font-size: 46px;
  }
  .profile_content h2 {
    font-size: 24px;
  }
  .profile_description {
    padding: 0 10px;
  }
}

@media (max-width: 767px) {
  .profile_content h1 {
    font-size: 40px;
  }
  .profile_content h2 {
    font-size: 20px;
  }
  .parrafo-oculto {
    font-size: 16px;
  }
  .tecnologias-slider {
    height: 100px;
  }

  .tecnologias-slider::before,
  .tecnologias-slider::after {
    height: 100px;
    width: 40px;
  }

  .tecnologias-slide-track {
    gap: 10px;
    width: calc(150px * 16);
  }

  .tecnologias-slide {
    width: 150px;
    height: 100px;
    padding: 10px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-150px * 8));
    }
  }
}

@media (max-width: 392px) {
  .contact-info p a span {
    font-size: 16px;
  }
}
