/*Resets para mejor CSS*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root{
  /*Fuentes */
  --ff-primary: "Rubik", sans-serif;
  --ff-secondary: 'Source Code Pro', monospace;
  
  /*Estilos para las fuentes**/
  --fw-reg: 300;
  --fw-bold: 900;

  /*Estipos para los titulos*/
  --fs-h1: 3rem;
  --fs-h2: 2.75rem;
  --fs-h3: 2rem;
  --fs-h4: 1.45rem;
  --fs-h5: 1rem;
  --fs-body: 1.20rem;

  /*Colores*/
  --color1: #a3f7e5;
  --color2: #efef7b;
  --color3: #15101e;
  --color4: #ffffff;
  --color5:  rgb(245, 246, 196);
  --color6:  #565606;
  --color7: #B0FECC;
  --color8: #c5a90d;
}

strong{
  color: var(--color8);
}

ul,
ol{
  list-style:disc;
}

img, 
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: .5rem;
}

a{
  text-decoration: none;
}

/*Estilos generales*/

body{
  font-family: var(--ff-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-width: 320px;
  background-color: var(--color3);
  color: var(--color4) ;
  margin: 0;
  font-size: var(--fs-body);
}

@media (max-width: 800px) {
  :root {
      --fs-h1: 2.5rem;
      --fs-h2: 2rem;
      --fs-h3: 1.5rem;
      --fs-body: 1.125rem;
  }
}

h1 { font-size: var(--fs-h1) }
h2 { font-size: var(--fs-h2) }
h3 { font-size: var(--fs-h3) }
h4 { font-size: var(--fs-h4) }
h5 { font-size: var(--fs-h5) }

h1,
h2,
h3 {
    line-height: 1.1;
    margin: 0;
    color: var(--color2);
    font-family:"Rubik Doodle Shadow", system-ui;
} 

h4,
h5{
    line-height: 1.1;
    margin: 1.3em auto;
    color: var(--color7);
}

/*
p{
  padding: 2rem;
}
*/

.flex
{
  display: flex;
  gap: var(--gap, 1rem);
  flex-wrap: wrap;
}


.grid
{
  display: grid;
  gap: var(--gap, 1rem);
}



/*Estilos de elementos html nativos*/
section{
  padding: 5em 1em;
  border-bottom: 1px solid violet ;

  background: rgba( 207, 27, 27, 0.05 );
  box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
  backdrop-filter: blur( 20px );
  -webkit-backdrop-filter: blur( 20px );
  border-radius: 10px;
  border: 1px solid hsla(0, 0%, 100%, 0.593);
  margin: 20px;
  overflow: hidden;
}

main{
  z-index: 10;
  position:relative;
  left: 0;
  width: 100vw;
  backdrop-filter: blur( 5px );
  -webkit-backdrop-filter: blur( 10px );
}

footer
{
  position: relative;
  bottom: 0;
  width: 100%;
  height: 60px;
  line-height: 60px;
  font-size: 18px;
  background-color: var(--color3);
  border-top: var(--color4) solid 1px;
  color: var(--color4);
  text-align: center;
  z-index: 10;
}
@media(max-width:481px){
  footer{
    font-size: var(--fs-body)
  }
}
/*Css del fondo de circuito svg*/
svg {
  position: absolute;
  top: 0;
}
.path {
  animation: draw 20s infinite;
  animation-timing-function: linear;
}
.path-01 {
  animation-delay: 0s;
}
.path-02 {
  animation-delay: 1s;
}
.path-03 {
  animation-delay: 2s;
}
.path-04 {
  animation-delay: 3s;
}
.path-05 {
  animation-delay: 4s;
}


@keyframes draw {
  0% {
  }
  100% {
    stroke-dashoffset: 0;
    stroke-opacity: 1;
  }
}

.circuito
{
  max-width: 100vw;
  z-index: 1;

}

.circuitoBot{
  bottom: 1600px;
  display: block;
  position: relative;
}


@keyframes buildAnimation {
  0% { background-position: 300px 0; }   /* Frame 2 */
  25% { background-position: -600px 0; }  /* Frame 5 */
  50% { background-position: -900px 0; }  /* Frame 8 */
  100% { background-position: 300px 0; }  /* Regresa al inicio */
}

.enConstruccion {
  width: 300px;  /* Tamaño de un frame */
  height: 185px;
  background-image: url('/media/build3x3.png');
  background-repeat: no-repeat;
  animation: buildAnimation 4.5s steps(4) infinite;
  
  position: absolute;
  z-index: 11;
  align-items: center;
  justify-content: center;
  right: 20px;
  top: 130px;
}


/*Css del contenido principal*/

#smartest_programmer, .enConstruccion{
  visibility: hidden;
  display: none;
}

.navbar {
  background-color: #333;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 12;
}

.nav-container {
  display: flex;
  flex-wrap:wrap ;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  /*margin: 0 auto;*/
}

.nav-list {
  display: flex;
  list-style-type: none;
  padding: 0;
}


.nav-item {
 padding: 5px 2rem 5px 2rem;
 font-size: 18px;
}

.nav-item a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-item a:hover {
  color: #007bff;
}

#redes_sociales > a > svg{
position:inherit;
}

.menu-icon {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
@media  (max-width: 760px) {
  .nav-list {
      display: none;
      flex-direction: column;
      align-items: center;
  }
  .nav-list.show {
      display: flex;
  }
  .nav-list li {
      margin: 0.5rem 0;
  }
  .menu-icon {
      display: block;
  }
  .nav-container {
    padding: 1.2718%;
  }
}
/*
.navegacion
{
  background-color: rgb(245, 246, 196);
}

.navegacion > ul
{
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.navegacion  li > a{
  color: var(--color3);
  padding-left: 10px;
  text-decoration: none;
  padding-right: 10px;
}

.navegacion  li > a:hover{
  background-color: #565606;
  color: #efef7b;
  padding: 10px;
}
*/

.subir
{
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  margin-left: 10px;
  margin-bottom: 50px;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  padding: 10px 0 0;
  position: fixed;
  text-align: center;
  width: 90px;
  z-index: 15;

  opacity: 0.5;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.subir.show {
  opacity: 0.5;
  visibility: visible;
  transform: translateY(0);
}

.subir:hover{
  transform: scale(1.1);
}

.subir:active{
  transform: scale(0.95);
}


.contenedor
{
  padding-inline: 2em;
  margin-inline: auto;
  max-width: 70rem;
  min-width: 320px;
  background-color: var(--color3);
}

.portaforlio{
  background-color: var(--color3);
}

.presentacion
{
  flex-direction: column;

}

#presento{
  padding-top: 6rem;
}

.img_presentacion{
  animation: cambiar-color-sombra 10s infinite alternate;
  border-radius: 2%;

}


@media(min-width: 990px){
  .img_presentacion{
  max-width: 35%;
  }
}

@media(max-width:990px) and (min-width: 750px) {
  .img_presentacion{
  max-width: 60%; 
  }
}


@keyframes cambiar-color-sombra {
  10% {
    box-shadow: 0 8px 82px 0 rgba(0, 0, 255, 0.5);  backdrop-filter: blur( 20px );
  }
  50% {
    box-shadow: 0 8px 82px 0 rgba(255, 0, 0, 0.5);  backdrop-filter: blur( 20px );
  }
  100% {
    box-shadow: 0 8px 82px 0 rgba(0, 255, 0, 0.5);  backdrop-filter: blur( 20px );
  }
}

.nombre-imagen{
  justify-content: space-around;
  flex-direction: row-reverse;
}

@media(max-width: 750px){
  .nombre-imagen{
    justify-content: flex-end;
  }
}

.lineas-presentacion {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.programador{
  color:rgb(205, 92, 137);
}

.mi-nombre
{
  color: var(--color1); 
}

.descripcion
{
  font-size: 1.5rem;
}

.seccion-iot
{
  display: flex;
}

.vacante{
  border: 1px ridge turquoise;
  border-radius: 10px / 5px;
  padding: 10px;
  margin-top: 2rem;
}

.status-indicator {
  display: inline-block;
  width: 15px; /* Tamaño del círculo */
  height: 15px; /* Tamaño del círculo */
  background-color: rgb(33, 255, 33); /* Color del círculo */
  border-radius: 50%; /* Hacerlo circular */
  animation: pulse 1.5s infinite; /* Aplicar la animación */

}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1.2);
  }
  50% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}


/* css grid de cartas del proyecto */


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  overflow: hidden;
  transition: transform 0.3s ease;  

  background: rgba( 207, 27, 27, 0.05 );
  box-shadow: 0 8px 32px 0 rgba(135, 31, 109, 0.37);
  backdrop-filter: blur( 20px );
  -webkit-backdrop-filter: blur( 20px );
  border-radius: 10px;
  border: 1px solid rgba( 255, 255, 255, 0.18 );
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color:var(--color2);
}

.project-description {
  font-size: 0.9rem;
  color: #fff1f1;
  margin-bottom: 15px;
}

.project-link {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: #0056b3;
}


/*Css carrucel tecnologias*/

.carrucel{
  display: flex;
  flex-direction: row;
  max-width: 100%;
  flex-wrap: wrap;
}

.carrucel img{
  width: 100px;
  height: auto;

}

/*Css formulario contactame*/
.contacto{
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}


.contactame{
  margin-bottom: 3em;
  max-width: 50%;
  margin-right: 2em;
}

.contact-form {
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  background: rgba(255, 134, 47, 0.1);
box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
backdrop-filter: blur( 1.5px );
-webkit-backdrop-filter: blur( 1.5px );
border-radius: 10px;
border: 1px solid hsla(32, 92%, 57%, 0.18);
min-width: 50%;

}
.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 5px;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #130d0d;
  border-radius: 4px;
}
textarea {
  height: 100px;
  max-width: 100%;
  min-width: 100%;
  field-sizing: content;
}
button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: #555;
}

/*Grid sobre mi */

.parent {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(5, auto);
  gap: 1.5rem;


}
.div_grid{
  border-radius: 10px;
  border: 1px dashed hsla(0, 0%, 100%, 0.593);
  padding: 15px 20px;
  
}
  
.div1 {
  grid-column: span 2 / span 2;
  border: none;
    margin: -15px;
}

.div2 {
  grid-row-start: 2;
}

.div3 {
  grid-row: span 2 / span 2;
  grid-column-start: 1;
  grid-row-start: 3;
}

.div4 {
  grid-row: span 2 / span 2;
  grid-column-start: 2;
  grid-row-start: 2;
}

.div5 {
  grid-column-start: 2;
  grid-row-start: 4;
}


/*
estilos para moviles
*/

@media (max-width: 480px) {
  :root {
      --fs-h1: 1.8rem;
      --fs-h2: 1.5rem;
      --fs-h3: 1.3 rem;
      --fs-h4: 1 rem;
      --fs-body: 0.80rem;
  }

  .descripcion
  {
    font-size: 0.75rem;
  }

  h3{
    font-size: 1rem;
  }
}


@media(max-width:600px){
  .parent{
    display: flex;
    flex-direction: column;
  }
}

@media(max-width:792px){
  .contacto{
    display: flex;
    flex-direction: column;
  }

  .contactame{
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  .contenedor{
    margin: 1rem;
  }
}

@media (max-width: 1110px) {
  .circuito, .circuitoBot{
    visibility: hidden;
    display: none;
  }
}