* {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: 'Inter', sans-serif;
  padding: 90 0px;
  background-color: rgb(253, 253, 253);
}

svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
  margin-bottom: -2px;
}

a {
  text-decoration: none;
  color: #000;
}

:root {
  --theme-color: linear-gradient(180deg, #020811 0%, #192f5b 50%, #000000 100%);
  --theme-color-secondary: linear-gradient(90deg, #0a1833, #000000);
  --theme-color-tertiary: linear-gradient(180deg, #000000 0%, #0e1b36 50%, #000000 100%);
  --theme-color-reverse-transparency: linear-gradient(90deg, #0a1833, #000000);
  --theme-color-transparency: linear-gradient(90deg, #0a1833, #000000);
  --primary-color: #4ccffb;
  --secondary-color: #0765bd;
  --shadow-primary-color: #007cf0;
}

/* NAVBAR  */
.navbar {
  background: linear-gradient(180deg, #000000, #071d3f);
  box-shadow: var(--shadow-primary-color) 0px 1px 5px;
  color: white;
  text-decoration: none;
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 70px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  font-weight: bold;
}

.navbar a {
  color: white;
  font-size: 7px;
  line-height: 1.2;
  border-radius: 0.32rem;
  white-space: nowrap; /* Evita que el texto se contraiga */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.navbar a i {
  font-size: 16px;
  margin-bottom: 3px;
}

.navbar a.active {
  color: rgb(231, 125, 3);
  border-radius: 0.32rem;
  transition: 0.3s ease-in-out;
}

@media (min-width: 768px) {
  .navbar {
    top: 0;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
  }

  .navbar a {
    color: white;
    border-radius: 0.32rem;
    font-size: 12px;
    padding: 10px 5px;
    line-height: 1.2;
    margin: 0 10px;
  }

  .navbar a i {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .navbar a.active, .navbar a:hover {
    color: rgb(231, 125, 3);
    border-radius: 0.32rem;
    transition: 0.3s ease-in-out;
  }
}

@media (min-width: 1024px) {
  .navbar a {
    font-size: 10px;
    padding: 2px 4px;
  }

  .navbar a i {
    font-size: 15px;
  }
}

/* NAVBAR  */

/* INICIO */

.container-inicio {
  background: var(--theme-color);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  min-height: 80vh;
  height: 80vh;
  margin: 0;
  margin-bottom: -5px;
}

.container-inicio img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10rem;
  border-radius: 50%;
  border: solid 2px white
}

.social_networks {
  display: flex;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.title_init {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 600px;
  color: white;
  padding: 0 1.7rem;
  font-size: 1.4rem;
}

.title_init p {
  font-size: 1.5rem;
  color: rgb(212, 211, 211);
}

.title_init strong {
  color: #fab700;
}

.img_inicio_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
}

.social_item {
  font-size: 16px;
  padding: 20px 0;
}

.social {
  color: white;
  padding: 0.5rem 0.6rem;
  border-radius: 100%;
}

.social:hover {
  padding: 0.5rem 0.6rem;
  background-color: white;
  color: black;
  transition: 0.5s;
}

.location {
  color: rgba(212, 211, 211, 0.667);
  font-size: 1rem;
  padding-top: 5px;
}

@media (max-width: 768px) {
  .container-inicio {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
  }

  .container-inicio img {
    width: 10rem;
    border-radius: 50%;
  }

  .title_init p {
    font-size: 1rem;
    max-width: 300px;
  }

  .location {
    font-size: 0.7rem;
  }

  .title_init {
    font-size: 0.8rem;
  }
}

/* INICIO */

/* PROJECTS */

.titulo-portafolio {
  display: flex;
  justify-content: center;
  font-size: 1.2rem;
  letter-spacing: -0.06em;
  margin: 0 auto;
  line-height: 1.1;
}

@media (min-width: 762px) {
  .titulo-portafolio {
    font-size: 2rem;
  }
}

@media (min-width: 992px) {
  .titulo-portafolio {
    font-size: 1.65rem;
  }
}

.portafolio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 40px auto;
  gap: 20px;
}

/* CART */

.carta {
  position: relative;
  cursor: pointer;
  width: 568px;
  height: 270px;
}

.carta .cara {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  border-radius: 3px;
  overflow: hidden;
  transition: 0.5s;
}

.carta .frontal {
  transform: perspective(600px) rotateY(0deg);
  box-shadow: 0 4px 7px rgb(100, 100, 100);
}

.carta .frontal img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carta .frontal h3 {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 45px;
  line-height: 45px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.carta .trasera {
  transform: perspective(600px) rotateY(180deg);
  background: var(--theme-color);
  padding: 15px;
  color: #f3f3f3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 4px 7px rgb(100, 100, 100);
}

.carta .trasera .link {
  border-top: solid 1px #f3f3f3;
  height: 50px;
  line-height: 50px;
}

.link-item {
  filter: brightness(90%);
  font-size: 30px;
  padding: 12px;
}

.link-item:hover {
  filter: brightness(165%);
}

.carta-texto {
  color: #fff;
}

.carta .trasera .link a {
  color: #f3f3f3;
}

.carta .trasera .link h3 {
  font-size: 30px;
  margin-top: 20px;
  letter-spacing: 2px;
}

.carta .trasera p {
  letter-spacing: 1px;
}

.carta:hover .frontal {
  transform: perspective(600px) rotateY(180deg);
}

.carta:hover .trasera {
  transform: perspective(600px) rotateY(360deg);
}

@media (max-width: 768px) {
  .carta {
    width: 337px;
    height: 160px;
  }

  .carta .frontal h3 {
    height: 30px;
    line-height: 30px;
  }

  .carta .trasera .link {
    height: 30px;
    line-height: 30px;
  }

  .carta .trasera .link h3 {
    font-size: 20px;
  }

  .carta .trasera p {
    font-size: 12px;
  }

  .link-item {
    font-size: 20px;
  }
}

@keyframes scroll {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CART */

/* PROJECTS */


/* EXPERIENCIA */

.experiencia_laboral {
  background: var(--theme-color-tertiary);
  padding: 30px;
}

.exp_h2 {
  text-align: center;
  color: white;
  font-size: 40px;
  padding-bottom: 50px;
}

.timeline {
  position: relative;
  max-width: 1100px;
  margin: auto;
}

/* Línea vertical */
.timeline::before {
  content: "";
  position: absolute;
  left: 51.5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #878787;
}

.timeline-item {
  position: relative;
  color: white;
  background: linear-gradient(90deg, #0a183319, #000000);
  border-radius: 7px;
  box-shadow: 2px 2px 5px rgb(2, 43, 82);
  border: solid rgb(83, 83, 83) 1px;
  margin: 20px 0;
  padding: 20px;
  margin-left: 144px;
  /* Espacio para el marcador y la línea */
  filter: brightness(90%);
  opacity: 0;
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.timeline-item.scroll {
  animation: scroll 1.5s ease-out forwards;
}

.timeline-item:hover {
  box-shadow: 2px 2px 8px rgba(13, 104, 201, 0.741);
  cursor: pointer;
  filter: brightness(120%);
}

.active {
  filter: brightness(140%);
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgb(255, 166, 0);
  border: 3px solid #333;
  border-radius: 50%;
  left: -100px;
  top: 20px;
}

.timeline-item h3 {
  margin: 0 0 5px;
  font-size: 1.2em;
  color: rgb(255, 166, 0);
}

.timeline-item h2 {
  text-align: center;
  margin-bottom: 40px;
}

.timeline-item span {
  display: block;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
  color: #ffffffb1;
}

.timeline-item p {
  margin: 0;
  font-size: 1em;
  line-height: 1.4em;
  color: white
}

@media (max-width: 992px) {
  .timeline-item {
    margin-left: 30px;
    font-size: 0.75em;
  }

  .timeline-item::before {
    left: -30px;
  }

  .timeline::before {
    left: 8px;
  }

  .experiencia_laboral {
    padding: 10px;
  }

  .exp_h2 {
    font-size: 25px;
    padding-bottom: 20px;
  }
}

/* EXPERIENCIA */

/* CERTIFICACIONES */
.carousel-container {
  width: 90%;
  overflow: hidden;
  position: relative;
  background: white;
  color: white;
  margin: 20px auto;
}

.carousel {
  display: flex;
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
}

.carousel-item {
  flex: 0 0 auto;
  width: 100%;
  max-width: 300px;
  /* Máximo 4 elementos en pantallas grandes */
  scroll-snap-align: start;
  padding: 15px 15px;
  text-align: center;
}

.carousel-item img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-item:hover img {
  box-shadow: 0 7px 10px rgba(0, 0, 0, 0.2);
  scale: 1.05;
  transition: 0.25s ease-in-out;
}

.carousel-item h3 {
  margin-bottom: 5px;
}

.carousel-item p {
  font-size: 14px;
  color: #666;
}

.carousel-item a {
  display: inline-block;
  margin-top: 5px;
  color: rgb(255, 166, 0);
  text-decoration: none;
  font-weight: bold;
}

.carousel-item a:hover {
  text-decoration: underline;
}

.buttons {
  position: absolute;
  top: 60%;
  left: 10px;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
}

.buttons button {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
}

.buttons button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.title_carrousel {
  color: black;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: -0.06em;
  margin: 10px auto;
  padding: 15px;
  line-height: 1.6;
}

/* Responsivo */
@media (min-width: 768px) {
  .carousel-container {
    width: 68%;
  }
  .carousel-item {
    max-width: 50%;
    /* 2 cursos en tablets */
  }

  .title_carrousel {
    font-size: 2.3rem;
  }
}

@media (min-width: 1024px) {
  .carousel-item {
    max-width: 33.33%;
    /* 3 cursos en pantallas medianas */
  }
}

@media (min-width: 1400px) {
  .carousel-item {
    max-width: 25%;
    /* 4 cursos en pantallas grandes */
  }

  .title_carrousel {
    font-size: 2.5rem;
    max-width: 800px;
  }
}

/* CERTIFICACIONES */


/* SOBREMI */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');

.sobremi {
  background: black;
  text-align: center;
  padding: 20px 20px;
  margin-bottom: -5px;
}

.sobremi-img {
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 20px;
}

.sobremi-img img {
  border-radius: 10px;
  border: solid 3px white;
  width: 90%;
  height: auto;
  max-width: 900px;
  object-fit: cover;
  cursor: pointer;
  filter: brightness(90%);
  mask-image: linear-gradient(black 60%, transparent);
}

.h1-sobremi {
  color: white;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: -0.06em;
  margin: 0 auto;
  padding: 15px;
  /* padding-bottom: 35px; */
  line-height: 1.6;
}

.sobremi-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.p-sobremi {
  color: rgb(206, 203, 203);
  max-width: 90ch;
  font-size: 1rem;
  line-height: 1.3;
  flex-wrap: wrap;
  text-align: left;
}

.p-sobremi strong {
  color: rgb(255, 138, 29);

}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 2rem;
  cursor: pointer;
}

.button {
  font-weight: bold;
  display: inline-block;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  padding: 0.1rem 1rem;
  line-height: 2rem;
  margin: 1rem;
  margin-top: 40px;
  border-radius: 0.7rem;
  box-shadow: rgba(12, 33, 119, 0.725) 1px 2px 4px 1px;
  color: white;
  background: var(--theme-color-secondary);
  border: solid 1px;
}

.button:hover {
  box-shadow: var(--shadow-primary-color) 1px 2px 4px 1px;
  filter: brightness(130%);
  transition: 0.5s;
}

.img-sobremi-pc {
  width: 100%;
}

@media (min-width: 762px) {
  .title-sobremi {
    font-size: 1.9rem;
    max-width: 600px;
  }

  .button {
    font-size: 1rem;
  }

  .h1-sobremi {
    font-size: 2.2rem;
  }
}

@media (min-width: 992px) {
  .sobremi {
    text-align: left;
  }

  .sobremi-container {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0px auto;
    padding: 10px;
    gap: 160px;
  }

  .img-sobremi-pc {
    width: 100%;
  }

  .sobremi-img {
    padding: 0px;
  }

  .sobremi-img img {
    width: 90%;
  }

  .title-sobremi {
    padding: 0;
    max-width: 500px;
  }

  .button {
    font-size: 0.9rem;
    padding: 0.2rem 1.2rem;
  }
}

/* SOBREMI */

/* HABILIDADES */

.habilidades-container {
  min-height: 300px;
  /* background: url("assets/fondo-2.webp") no-repeat center center ; */
  background-size: 600px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
}

.habilidades {
  text-align: center;
}

.habilidades-links {
  margin: 15px;
  padding: 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 700px;
  gap: 20px;
}

.img-habilidades-pc {
  width: 50%;
  max-width: 300px;
}

.img-habilidades {
  width: 50px;
  max-width: 4rem;
  padding: 1px;
  margin: 1px;
  filter: grayscale(100%);
}

.heroku {
  width: 32px;
}

.img-habilidades:hover {
  filter: brightness(120%);
  filter: grayscale(10%);
  scale: 1.2;
  transition: 0.18s ease-in-out;
}

.title-habilidades {
  color: black;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: -0.06em;
  margin: 0 auto;
  padding: 15px;
  line-height: 1.6;
}

.habilidades-logo-circulo {
  padding: 10px 10px;
}

@media (min-width: 762px) {
  .title-habilidades {
    font-size: 2.3rem;
  }

  .img-habilidades {
    width: 80px;
    max-width: 6rem;
    padding: 4px;
    margin: 4px;
  }

  .habilidades-links {
    gap: 20px;
  }

  .heroku {
    width: 52px;
  }

  .habilidades-container {
    min-height: 400px;
    background-size: 1200px;
    padding: 50px;
  }
}

@media (min-width: 992px) {
  .title-habilidades {
    font-size: 2.5rem;
    max-width: 800px;
  }

  .habilidades-links {
    justify-content:center;
    max-width:1100px;
    gap:40px;
  }


}

/* HABILIDADES */


/* FOOTER */

.container-footer {
  background: var(--theme-color-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
  margin-top: -10px;
}

.ul-footer {
  display: flex;
  justify-content: center;
  list-style: none;
}

.footer-item {
  font-size: 25px;
  margin: 8px 10px;
  text-transform: uppercase;
  width: max-content;
}

.footer-title {
  display: block;
  justify-content: center;
  text-align: center;
  padding: 10px;
  color: #fff;
  font-size: 10px;
}

.footer-title h2 {
  display: block;
  justify-content: center;
  text-align: center;
  padding: 10px;
  color: #fff;
  font-size: 1.8rem;
  padding-bottom: 30px;
}


.footer-img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
  max-width: 350px;
}

.item-footer {
  text-decoration: none;
  color: white;
  padding: 0.5rem 0.65rem;
  border-radius: 3rem;
}

.item-footer:hover {
  padding: 0.5rem 0.65rem;
  background-color: white;
  color: black;
  transition: 0.5s;
}

@media (max-width: 768px) {
  .footer-title h2 {
    font-size: 1.3rem;
  }

  .footer-title {
    font-size: 0.5rem;
  }

  .footer-item {
    font-size: 15px;
    margin: 8px 5px;
  }

  .item-footer {
    padding: 0.25rem 0.325rem;
  }

  .container-footer {
    padding-bottom: 150px;
  }

}