html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.navbar {
  background-color: #123166;
}

a.nav-link {
  color: rgba(255, 255, 255, 0.705);
}

a.nav-link:hover {
  color: white;
}

a.nav-link.ac {
  color: white;
  font-weight: 500;
}

@font-face {
  font-family: 'fuentePixel';
  src: url('font/Mojang-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'title';
  src: url('font/Rockstar-ExtraBold.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

.numbspan {
  color: aquamarine;
  font-size: small;
  word-spacing: 6px;
  font-family: 'fuentePixel', sans-serif;
}

.borderlleno {
  border: 0.15rem #7fffd4 solid;
  border-radius: 10px;
  padding: 10px;
}

.container-fluid {
  background-color: #123166;
  flex: 1;
}

.linkjuan {
  text-decoration: none;
}

.uptitle {
  color: aquamarine;
  font-size: 17px;
  word-spacing: 6px;
  font-family: 'fuentePixel', sans-serif;
  margin: 0px 0px 20px 2px;
}

.title {
  color: white;
  font-size: 5.5rem;
  font-family: 'title', sans-serif;
  margin: 0;
}

.subtitle {
  font-size: 3.5rem;
  font-family: 'title', sans-serif;
  font-weight: bold;
  color: #8892b0;
}

.descripcion {
  max-width: 600px;
  color: #8892b0;
}

a.proyectos, .proyectos {
  color: aquamarine;
  text-decoration: none;
}

@media (max-width: 768px) {
  .title {
    font-size: 3.5rem;
    text-align: center;
  }

  .subtitle {
    font-size: 2.5rem;
    text-align: center;
  }

  .descripcion {
    text-align: center;
    padding: 0 1rem;
  }

  .uptitle {
    text-align: center;
  }

  .navbar-nav {
    text-align: center;
  }

  .nav-item {
    margin: 0.3rem 0;
  }

  .borderlleno {
    display: inline-block;
    margin-top: 0.4rem;
  }
}




/*///////////////////////////// PROYECTOS /////////////////////////////*/
/*///////////////////////////// PROYECTOS /////////////////////////////*/
/*///////////////////////////// PROYECTOS /////////////////////////////*/
/*///////////////////////////// PROYECTOS /////////////////////////////*/
/*///////////////////////////// PROYECTOS /////////////////////////////*/
/*///////////////////////////// PROYECTOS /////////////////////////////*/
/*///////////////////////////// PROYECTOS /////////////////////////////*/
/*///////////////////////////// PROYECTOS /////////////////////////////*/
/*///////////////////////////// PROYECTOS /////////////////////////////*/
/*///////////////////////////// PROYECTOS /////////////////////////////*/
/*///////////////////////////// PROYECTOS /////////////////////////////*/
/*///////////////////////////// PROYECTOS /////////////////////////////*/
.title-proyect-card {
  color: white;
}

.proyectcard {
  position: relative;
  overflow: hidden;
}

.proyectcard .card-img-top {
  border-radius: 10px;
  transition: transform 0.5s ease, filter 0.5s ease;
  width: 100%;
  height: auto;
  display: block;
}

.proyectcard:hover .card-img-top {
  filter: blur(3.5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.hover-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.proyectcard:hover .hover-hint {
  opacity: 1;
  animation: bounce 1s infinite;
}

.hover-hint img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}


@media (max-width: 768px) {

  .title-proyect-card {
    font-size: 1.1rem;
    text-align: center;
  }

  .hover-hint img {
    height: 80px !important;
  }
  
  .form {
    margin: 0 auto;
  }

}



/*///////////////////////////// CONTACTO /////////////////////////////*/
/*///////////////////////////// CONTACTO /////////////////////////////*/
/*///////////////////////////// CONTACTO /////////////////////////////*/
/*///////////////////////////// CONTACTO /////////////////////////////*/
/*///////////////////////////// CONTACTO /////////////////////////////*/
/*///////////////////////////// CONTACTO /////////////////////////////*/
/*///////////////////////////// CONTACTO /////////////////////////////*/
/*///////////////////////////// CONTACTO /////////////////////////////*/
/*///////////////////////////// CONTACTO /////////////////////////////*/
/*///////////////////////////// CONTACTO /////////////////////////////*/
/*///////////////////////////// CONTACTO /////////////////////////////*/
/*///////////////////////////// CONTACTO /////////////////////////////*/

.pregunta {
  color: white;
}

.respuesta {
  color: #a4aabd;
}

/* FORMULARIO CONTACTO */
/* FORMULARIO CONTACTO */
/* FORMULARIO CONTACTO */
/* FORMULARIO CONTACTO */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  background-color: #355891;
  padding: 20px;
  border-radius: 10px;
  position: relative;
}

.message {
  color: #355891;
  font-size: 14px;
}

.flex {
  display: flex;
  width: 100%;
  gap: 6px;
}

.form label {
  position: relative;
}

.form label .input {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid #355891;
  border-radius: 5px;
}

.form label .input+span {
  position: absolute;
  left: 10px;
  top: 15px;
  color: #355891;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input:placeholder-shown+span {
  top: 15px;
  font-size: 0.9em;
}

.form label .input:focus+span,
.form label .input:valid+span {
  top: 30px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input:valid+span {
  color: green;
}

.input01 {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid #355891;
  border-radius: 5px;
}

.form label .input01+span {
  position: absolute;
  left: 10px;
  top: 50px;
  color: #355891;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input01:placeholder-shown+span {
  top: 40px;
  font-size: 0.9em;
}

.form label .input01:focus+span,
.form label .input01:valid+span {
  top: 50px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input01:valid+span {
  color: green;
}

.fancy {
  background-color: white;
  border: 2px solid #355891;
  border-radius: 0px;
  box-sizing: border-box;
  color: #355891;
  cursor: pointer;
  display: inline-block;
  font-weight: 390;
  letter-spacing: 2px;
  margin: 0;
  outline: none;
  overflow: visible;
  padding: 8px 30px;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: all 0.3s ease-in-out;
  user-select: none;
  font-size: 13px;
}

.fancy::before {
  content: " ";
  width: 1.7rem;
  height: 2px;
  background: #355891;
  top: 50%;
  left: 1.5em;
  position: absolute;
  transform: translateY(-50%);
  transform: translateX(230%);
  transform-origin: center;
  transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
  font-size: 1.125em;
  line-height: 1.33333em;
  padding-left: 2em;
  display: block;
  text-align: left;
  transition: all 0.3s ease-in-out;
  text-transform: lowercase;
  text-decoration: none;
  color: #355891;
  transform: translateX(30%);
}

.fancy .top-key {
  height: 2px;
  width: 1.5625rem;
  top: -2px;
  left: 0.625rem;
  position: absolute;
  background: #355891;
  transition: width 0.5s ease-out, left 0.3s ease-out;
}

.fancy .bottom-key-1 {
  height: 2px;
  width: 1.5625rem;
  right: 1.875rem;
  bottom: -2px;
  position: absolute;
  background: #355891;
  transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy .bottom-key-2 {
  height: 2px;
  width: 0.625rem;
  right: 0.625rem;
  bottom: -2px;
  position: absolute;
  background: #355891;
  transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy:hover {
  color: #355891;
  background: #5f82a9;
}

.fancy:hover::before {
  width: 1.5rem;
  background: #355891;
}

.fancy:hover .text {
  color: white;
  padding-left: 1.5em;
}

.fancy:hover .top-key {
  left: -2px;
  width: 0px;
}

.fancy:hover .bottom-key-1,
.fancy:hover .bottom-key-2 {
  right: 0;
  width: 0;
}

/* REDES SOCIALES */
/* REDES SOCIALES */
/* REDES SOCIALES */
/* REDES SOCIALES */
/* REDES SOCIALES */



.about-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.photo-container img {
  max-width: 250px;
  height: auto;
  border-radius: 10px;
}



.skill-box .title2 {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.skill-box .skill-bar {
  height: 8px;
  width: 100%;
  border-radius: 6px;
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.1);
}

.skill-bar .skill-per {
  position: relative;
  display: block;
  height: 100%;
  width: 90%;
  border-radius: 6px;
  background: #4070f4;
  animation: progress 0.4s ease-in-out forwards;
  opacity: 0;
}

.skill-per.html {
  /*progreso de las diferentes lenguajes*/
  width: 95%;
  animation-delay: 0.3s;
}

.skill-per.css {
  /*progreso de las diferentes lenguajes*/
  width: 70%;
  animation-delay: 0.4s;
}

.skill-per.javascript {
  /*progreso de las diferentes lenguajes*/
  width: 60%;
  animation-delay: 0.5s;
}

.skill-per.nodejs {
  /*progreso de las diferentes lenguajes*/
  width: 90%;
  animation-delay: 0.6s;
}

@keyframes progress {
  0% {
    width: 0;
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

.skill-per span {
  position: absolute;
  right: -14px;
  top: -28px;
  font-size: 9px;
  font-weight: 500;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  background: #4070f4;
  z-index: 1;
}

.skill-per span::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  height: 10px;
  width: 10px;
  z-index: -1;
  background-color: #4070f4;
  transform: translateX(-50%) rotate(45deg);
}

/* From Uiverse.io by ahmed150up */
.cardsocialmedia {
  display: flex;
  height: 70px;
  width: 270px;
}

.cardsocialmedia svg {
  position: absolute;
  display: flex;
  width: 60%;
  height: 100%;
  font-size: 24px;
  font-weight: 700;
  opacity: 1;
  transition: opacity 0.25s;
  z-index: 2;
  cursor: pointer;
}

.cardsocialmedia .social-link1,
.cardsocialmedia .social-link2,
.cardsocialmedia .social-link3,
.cardsocialmedia .social-link4 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25%;
  color: whitesmoke;
  font-size: 24px;
  text-decoration: none;
  transition: 0.25s;
  border-radius: 50px;
}

.cardsocialmedia svg {
  transform: scale(1);
}

.cardsocialmedia .social-link1:hover {
  background: #f09433;
  background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f09433', endColorstr='#bc1888', GradientType=1);
  animation: bounce_613 0.4s linear;
}

.cardsocialmedia .social-link2:hover {
  background-color: #00ccff;
  animation: bounce_613 0.4s linear;
}

.cardsocialmedia .social-link3:hover {
  background-color: #5865f2;
  animation: bounce_613 0.4s linear;
}

.cardsocialmedia .social-link4:hover {
  background-color: #12a50b;
  animation: bounce_613 0.4s linear;
}

@keyframes bounce_613 {
  40% {
    transform: scale(1.4);
  }

  60% {
    transform: scale(0.8);
  }

  80% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* From Uiverse.io by andrew-demchenk0 */
.buttoncv {
  position: relative;
  width: 100%;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 1px solid #233e69;
  background-color: #355891;
  border-radius: 10px;
  justify-content: center;
  overflow: hidden;
}

.buttoncv,
.button__icon,
.button__text {
  transition: all 0.3s;
}

.buttoncv .button__text {
  color: #fff;
  font-weight: 600;
}

.buttoncv .button__icon {
  position: absolute;
  transform: translateX(109px);
  height: 100%;
  width: 39px;
  background-color: #355891;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buttoncv .svg {
  width: 20px;
  fill: #fff;
}

.buttoncv:hover {
  background: #355891;
}

.buttoncv:hover .button__text {
  color: transparent;
}

.buttoncv:hover .button__icon {
  width: 148px;
  transform: translateX(0);
}

.button:active .button__icon {
  background-color: #355891;
}

.buttoncv:active {
  border: 1px solid #355891;
}

.cvdownload {
  text-decoration: none;
}

/* From Uiverse.io by PriyanshuGupta28 */
.rating {
  display: inline-block;
  position: relative;
  justify-content: flex-start;
}

.rating input {
  display: none;
}

.rating label {
  position: relative;
  float: right;
  cursor: pointer;
  color: #ccc;
  transition: color 0.3s;
  text-align: center;
}

.rating label:before {
  content: '\2605';
  font-size: 30px;
}

.rating input:checked~label,
.rating label:hover,
.rating label:hover~label {
  color: #ffd900;
  transition: color 0.3s;
}

@keyframes thankYouFade {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }

  20% {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
  }

  80% {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
}

.rating label .thank-you-badge {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.promediovotos {
  font-size: 13px;
  margin-top: -10px;
  color: rgb(179, 179, 179);
}

.promediovotos .numbspan {
  font-size: 10px;
}

.textovotos {
  color: white;
  margin: 5px 0px -5px 2px;
}

/* Centrado para pantallas pequeñas */
@media (max-width: 768px) {

  .about-me {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-top: 40px;
    /* Asegura que el texto esté centrado */
  }

  .about-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centra el contenido dentro de esta sección */
  }

  .photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .cvdownload {
    display: flex;
    margin-top: 10px;
    justify-content: center;
    align-items: center;
  }

  .textovotos {
    margin-top: 25px;
  }

  .rating {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
  }

  .promediovotos {
    text-align: center;
    /* Centra el texto */
  }
}

/* From Uiverse.io by fanishah */
.cardfoto {
  width: 12.5rem;
  height: 17rem;
  background: #4158D0;
  /* Color de fondo por si no carga la imagen */
  background-image: url('img/fotojuan.png');
  background-size: cover;
  /* Asegura que la imagen se ajuste correctamente */
  background-position: center;
  /* Centra la imagen */
    border: #4158D0 0.2em solid;
  border-radius: 2.5rem 0 2.5rem 0;
  transition: all 0.4s ease-in;
  box-shadow: 0.4rem 0.4rem 0.6rem #00000040;
}

.cardfoto2 {
  width: 15.5rem;
  height: 23.5rem;
  background: #4158D0;
  /* Color de fondo por si no carga la imagen */
  background-image: url('img/fotojuan.png');
  background-size: cover;
  /* Asegura que la imagen se ajuste correctamente */
  background-position: center;
  /* Centra la imagen */
    border: #4158D0 0.2em solid;
  border-radius: 2.5rem 0 2.5rem 0;
  transition: all 0.4s ease-in;
  box-shadow: 0.4rem 0.4rem 0.6rem #00000040;
}

.navbar-toggler-icon {
  color: white;
}