/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Rubik+Dirt&display=swap');

/* HEADER */
body {
  background-color: #081b29 !important ;
}

/* BARRA DE NAVEGACION */
  /* Alinear elementos en el navbar */
.contenedor-nav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.contenedor-navegacion{
  background: transparent;
  position: relative;
  top: 0;
  left: 0;
}

.contenedor-navegacion .navbar-toggler{
  box-shadow: 0 0 0 4px #efefefd0;
  border-radius: 15px;
  z-index: 1; 
  opacity: .5;
  transition: all .3s ease;
} 

.contenedor-navegacion .navbar-toggler:active {
  border: 2px solid #081b29;
  box-shadow: 0 0 15px #00abf0;
  transform: scale(0.95);
  opacity: 1;
  transition: transform 0.2s;
}

.navbar-toggler .navbar-toggler-icon{
  z-index: 1; 
}

.contenedor-navegacion .navbar-toggler:active .navbar-toggler-icon{
  z-index: -1;
}

.navbar .navbar-collapse {
  padding: 5px 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .navbar-nav li{
  background: #081b29;
  opacity: .8;
  border-radius: 10px;
  padding: 0px 5px;
  margin: 1.5px;
}

.navbar .navbar-nav li a {
  color: #ededed;
  font-size: clamp(0.8rem, 1rem , 1.2rem);
}
.navbar .navbar-nav li a:hover {
  color: #00abf0;
  text-shadow: 800;
}
/* FIN DE NAVBAR */

/* HOME */

/* Sección HOME y demás */
  .contenedor-seccion {
    border-top: 1px solid #000;
    padding: 20px 0;
    margin-top:80px;
  }  

/* SECCION LEFT */

  .section-left {
    background: #081b29;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centrar contenido */
    text-align: center;
    padding: 20px;
  }


  .section-left img {
    /* Evitar que creca demasiado */
    max-width: 150px; 
    height: auto;
    border-radius: 10%;
    margin: 20px;
    object-fit: cover;
  }

  /* Efecto para la imagen de perfil cuando está activa en touch */
  .active-img {
    position: relative;               
    top: 0;
    left: 0;
    transform: scale(2);  
    transition: transform 0.3s ease;
    z-index: 1100;                 
  }

  .section-left h1,
  .section-left h3 {
    width: 100%;
    margin: 5px 0; 
    
  }

  .section-left h1 {
    color:  #ededed;
    letter-spacing: .3rem;
    font-family: "Rubik Dirt", serif;
    font-size: 1.8rem;
  }

  .section-left h3{
    color: #00abf0;
    letter-spacing: .1rem;
    font-size: 1.2rem;
  }

  .section-left .location i{
    color: #d93025;
    font-size: clamp(1rem,1.5rem,1.8rem);
  }

  .section-left .location{
    color: aliceblue;
  }

/* ICONOS CONTENEDOR */
  .iconos-contenedor {
    background: transparent;
    margin: 10px 0; 
    width: 100%;
    max-width: 200px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 10px;
  }

  .iconos-contenedor a {
    position: relative;
    text-align: center;
    border: 1px solid #00abf0;
    color: #00abf0;
    font-size: 1.2rem;
    border-radius: 40%;
    text-decoration: none;
    width: 20%;
    height: 100%;
    overflow: hidden; 
    z-index: 1;
    transition: .5s;
  }

  /* Efecto para los iconos al tocar */
  .active-icon {
    transform: scale(0.9);
    transition: transform 0.3s ease;
    color: #081b29; 
  }

  .iconos-contenedor a:hover{
    color: #081b29;
  }

  .iconos-contenedor a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #00abf0;
    z-index: -1;
    transition: .6s;
  }
  
  .iconos-contenedor a:hover::before{
    width: 100%;
  }

  /* SECCION RIGHT */
  .section-right {
    background: #081b29;
    display: flex;
    flex-direction: column;
    justify-content: center;
  } 

  .section-right h2 {
    color:  #ededed;
    font-family: "Rubik Dirt", serif;
    letter-spacing: .3rem;
    font-size: 1.8rem;
  }

  .section-right p{
    color: #ededed;
    font-size: 1.2rem;
  }


  .contenedor-skill .titulo-skill {
    color: #ededed;
    font-family: "Rubik Dirt", serif;
    font-size: 1.8rem;
    letter-spacing: .3rem;
    border-top: 1px solid #00abf0;
    margin-right: 15px;
    padding-top: 10px;
  }

  .contenedor-skill .frond-end,
  .contenedor-skill .lenguajes{
    margin-bottom: 2px;
  }
  
  /*MIS PROYECTOS*/
  
  .contenedor-proyectos{
    background: #081b29;
    padding-top: 20px;
    border-top: 1px solid #00abf0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }  

  #proyectos {
    font-family: "Rubik Dirt", serif;
    letter-spacing: .4rem;
    font-size: bold;
    color: #ededed;
    width: 100%;
    background: transparent;
    text-align: center;
  }

  .proyectos-contenido{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: start;

      @media( max-width: 768px) {
        align-items: center;
      }

  }

  .proyecto-descripcion {
    background: #081b29;
    margin: 0 0 1rem 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
  }

  .proyecto-descripcion p {
    color: white;
    font-size: 1.2rem;
  }

  .proyecto {
    position: relative;
  }

  .proyecto img {
    min-height: 320px;
    width: 100%;
    object-fit: cover;
    border-radius: 15%;
    display: block;
    transition: all .3s ease;
    margin: .3rem 0 1rem 0;
  }

  .overlay {
    transition: all .3s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    width:100% ;
    transform: translate(-50%,-50%);
    text-align: center;
  }
 
  .overlay h3 {
    color: white;
    font-size: 2rem;
    letter-spacing: .3rem;
    font-weight: bold;
    margin-bottom: 0;
  }

  .proyecto:hover img {
    opacity: .2;
  }

  .proyecto:hover .overlay{
    opacity: 1;
  }
  
  .overlay .iconos-contenedor {
    display: flex;
    width: 100%;
  }
  
  .overlay .iconos-contenedor a{
    text-align: center;
    color: #ededed;
    font-size: 1.2rem;
  }
  .overlay .iconos-contenedor a i {
    color:#00abf0;
    font-size: 1.2rem;
    margin: 10px;
  }
  
  .overlay .iconos-contenedor a:hover i{
    color: #081b29;
  }

  /* -------------- CONTACT ---------------------- */

  .contenedor-contacto {
    background: #081b29;
    padding: 1.2rem;
    margin-top: 1rem;
    border-top: 1px solid #00abf0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contenedor-contacto h2 {
    font-family: "Rubik Dirt", serif;
    letter-spacing: .4rem;
    text-align: center;
    margin-bottom: 20px;
    color: #ededed;
  }
  
  #contactForm {
    padding: 0 20px;
    width: 100%;
  }

  #contactForm .input-box {
    margin-bottom: .2rem;
    display: flex;
    justify-content: center;
  }

  #contactForm .input-box .input-field{
    margin: .3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  #contactForm .textarea-field{
    margin: 0 .1rem;
  }
  #contactForm .input-box .input-field label{
    margin-bottom: 2px;
  }

  #contactForm .input-box .input-field label,
  #contactForm .textarea-field label{
    color: #ededed;
    font-size: 1.1rem;
  }

  .field .form-control{
    width: 100%;
    padding: .8rem;
    background: #081b29;
    border: 1px solid #0054f0;
    outline: none;
    border-radius: 6px;
    color: #ededed;
  }

  .field.error .form-control{
    border: 1px solid #d93025;
  }

  .field .form-control:focus{
    background: #081b29;
    color: #ededed;
  }

  .field .form-control::placeholder{
    color: rgba(255, 255, 255, .3);
  }
  
  .field .error-txt {
    font-size: .7rem;
    color: #d93025;
    text-align: left;
    margin: -1px 0 0 5px;
    display: none;
  }

  .field.error .error-txt{
    display: block;
  }

  #contactForm .textarea-field .form-control{
    resize: none;
  }

  #contactForm button {
    padding: .4rem 1.2rem;
    background: #0054f0;
    border: none;
    outline: none;
    border-radius: 6px;
    box-shadow: 0 0 10px #0054f0;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    margin-top: .5rem;
    transition: .5;
  }

  #contactForm button:hover{
    box-shadow: none;
  }

  /* FOOTER */

  footer {
    background-color: #020c12 !important;
    width: 100%;
  }

  .contenedor-footer-into {
    border-top: 1px solid #ededed;
    background: #020c12;
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;   
  }

  .copyRight{
    color: rgba(255, 255, 255, 0.694);
    font-weight: 600;
    font-size: .9em;
    margin: 20px 0 0 0;
    opacity: .3;
  }

  .contenedor-footer-into .thanks strong {
    color: #efefef;
    opacity: .8;
  }

  .contenedor-footer-into .thanks i{
    font-size: clamp(1rem,1.2rem,1.4rem);
    color: rgb(255, 255, 0, .3);
  }

/* RESPONSIBLE */

  @media screen and (max-width: 768px){
    .proyecto img{
      opacity: .3;  
    } 
   
    .overlay {
      opacity: 1;
    }
  }

  @media screen and (max-width: 425px ){
    .navbar-brand {
      display: none;
    }

    #contactForm .input-box {
      display: flex;
      flex-direction: column;
    }
  }