body, html {
  font-family: "Sarpanch", sans-serif;
}

/**************************************************************************************************************************************
********************************************************* ESTILOS DEL HEADER **********************************************************
***************************************************************************************************************************************/

.nav-item-padding {
  padding-right: 2em;
  margin-top: 30px;
}

.nav-link {
  color: white;
  padding: 10px;
  font-size: 1.5em;
}

.navbar-nav .nav-item .nav-link {
  text-decoration: none;
  position: relative;
}

.navbar-nav .nav-item .nav-link::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -1px;
  left: 0;
  background-color: #D4AF37;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.5s ease-in-out;
}

.navbar-nav .nav-item .nav-link:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: var(--bs-navbar-toggler-icon-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.typewriter-cursor {
  border-right: 2px solid #000;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #000;
  }
}

.welcome-text {
  padding-top: 10em;
}

#text1 {
  font-size: 3em;
}

#text2 {
  font-size: 5em;
}


.borde#D4AF37-column {
  border-left: #D4AF37;
  border-style: solid;
}

.smaller-image {
  width: 24em; /* Ancho deseado */
  height: auto; /* Altura automática para mantener la proporción */
}

.icono-rrss {
  max-width: 50px;
  margin-left: 1.5em;
  margin-right: 1.5em;
  border-radius: 100%;
  border: 1px solid #fff;
  display: inline-block;
  object-fit: cover;
}

.skills-row {
  padding-top: 8em;
}

/**************************************************************************************************************************************
************************************************************* ABOUT ME ****************************************************************
***************************************************************************************************************************************/

#about {
  padding-top: 10em;
  margin-bottom: 0px;
}

.about-me-text {
  padding-left: 10em;
  padding-right: 10em;
  font-size: 1.5em;
}

.montserrat-text {
  font-family: "Montserrat", sans-serif;
}

.skills-row {
    padding-top: 2em;
    padding-bottom: 2em;
    margin-top: 10em;
    margin-bottom: 5em;
    border-top: 1px solid #D4AF37;
    border-bottom: 1px solid #D4AF37;
  }


/**************************************************************************************************************************************
********************************************************* TECHNICAL SKILLS  ***********************************************************
***************************************************************************************************************************************/

#skills {
  padding-top: 6em;
}

.skill-icon {
  height: 50px;
  width: 50px;
}

.cert-icon {
  height: 150;
  width: 150px;
}

.tech-second-row {
  margin-top: 2em;
}

.card {
  max-height: 220px;
}


/**************************************************************************************************************************************
************************************************************ EXPERIENCE ***************************************************************
***************************************************************************************************************************************/

#experience {
  padding-top: 6em;
}

.contents {
  padding: 0px 30px;
  border-left: 2px solid #D4AF37;
}
.contents .box {
  position: relative;
  padding: 20px;
  border: 1px solid #D4AF37;
  cursor: pointer;
  transition: all 0.4s;
  margin-bottom: 20px;
}
.contents .box:hover {
  box-shadow: 0px 3px 12px 0px #D4AF37;
  border: 1px solid transparent;
}
.contents .box::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  right: calc(100% + 24px); /* Cuanto mayor el numero mas a la izquierda*/
  top: 0;
  background-color: #D4AF37;
  border: 2px solid white;
}


/********************************************** PROJECTS ***********************************************************************/

.img-project {
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(212, 207, 55, 0.15), 0 1.5px 8px rgba(0,0,0,0.10);
  transition: transform 0.35s cubic-bezier(.21,1.02,.73,1), box-shadow 0.35s;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
  border: 3px solid #D4AF37;
  background: #2b2b12;
}

.img-project:hover {
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 16px 48px rgba(212, 209, 55, 0.25), 0 3px 16px rgba(0,0,0,0.15);
  border-color: #ffc107;
}

/*************************************************** @media ************************************************************************/

@media screen and (max-width: 770px) {
  .welcome-text {
    padding-top: 0em;
    text-align: center;
  }
  #text1 {
    font-size: 1.5em;
  }

  #text2 {
    font-size: 2.2em;
  }
  
  .borde#D4AF37-column {
    border-left: none;
  }

  .icono-rrss {
    max-width: 50px;
    margin-left: 1em;
    margin-right: 1em;
  }
  .skills-row {
    padding-top: 2em;
    margin-top: 5em;
    border-top: 1px solid #D4AF37;
  }
  #about {
    padding-top: 2em;
  }
  .about-me-text {
    padding-left: 0em;
    padding-right: 0em;
    font-size: 1.2em;
  }
  .experience-date {
    margin-top: 1.5em;
  }
}

.custom-link {
  color: #D4AF37;
  text-decoration: underline; /* Optional: Remove underline */
}

.custom-link:hover {
  color: #685a2b; /* Optional: Change color on hover */
}

@media (max-width: 1070px) {
  .col-custom {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2em;
  }
  .tech-second-row {
    margin-top: 0;
  }
  .project-container-left {
    text-align: center;
  }
  .project-container-right {
    text-align: center;
  }
}

/* AoS duration settings */
body[data-aos-delay="4500"] [data-aos],
[data-aos][data-aos][data-aos-delay="4500"] {
  transition-delay: 4500ms;
}

body[data-aos-delay="5000"] [data-aos],
[data-aos][data-aos][data-aos-delay="5000"] {
  transition-delay: 5000ms;
}

body[data-aos-delay="5400"] [data-aos],
[data-aos][data-aos][data-aos-delay="5400"] {
  transition-delay: 5400ms;
}

body[data-aos-delay="5800"] [data-aos],
[data-aos][data-aos][data-aos-delay="5800"] {
  transition-delay: 5800ms;
}

body[data-aos-delay="6200"] [data-aos],
[data-aos][data-aos][data-aos-delay="6200"] {
  transition-delay: 6200ms;
}

body[data-aos-delay="6600"] [data-aos],
[data-aos][data-aos][data-aos-delay="6600"] {
  transition-delay: 6600ms;
}

body[data-aos-delay="7000"] [data-aos],
[data-aos][data-aos][data-aos-delay="7000"] {
  transition-delay: 7000ms;
}

/***********************************************************************************************************************
*************************************************** Pie de página ******************************************************
***********************************************************************************************************************/

#pie-pagina{
    width: 100%;
    border-top: 1px solid #c1bc9e; /* Línea continua arriba del footer */
    color: white;
    text-align: center;
}

.pie_pagina .grupo_1{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 50px;
    padding: 45px 0px;
}

.red_social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
}

.red_social a {
    color: #fff;
    background: #222;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.box{
   margin-top: 15px;
}

.red_social a:hover {
    background: #ffc107;
    color: #222;
    transform: scale(1.15);
}

.rounded-circle{
    border: 4px solid;
    border-image: linear-gradient(135deg, #D4AF37, #685a2b, #D4AF37, #ffc107) 1;
    animation: border-move 2s linear infinite;
    box-sizing: border-box;
    /* Para que el borde no deforme la imagen */
    padding: 2px;
    background-clip: padding-box;
  }