:root {
  --blanco: #ffffff;
  --oscuro: #000000;
  --primario: #300a97;
  --secundario: #262022;
  --gris: #585353;
  --navegador: #ff69b4;
  --grisClaro: #dfe9f3;
  --opaco: rgb(138, 134, 134);
}
/* se define una paleta de colores */

html {
  font-size: 62.5%;
  box-sizing: border-box; /*Hack para Box Model*/
  /* scroll-snap-type: y mandatory; */
}
*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
  font-size: 16px; /*1rem = 10px */
  font-family: "Source Code Pro", monospace;
  background: #dfe9f3;
  background-image: linear-gradient(
    to top,
    var(--opaco) 0%,
    var(--grisClaro) 100%
  ); /*Agrega degradado*/
}
a {
  text-decoration: none;
  color: inherit;
}

h1 {
  font-size: 3.8rem;
}
h2 {
  font-size: 2.8rem;
}
h3 {
  font-size: 1.8rem;
}

h1,
h2,
h3 {
  text-align: center;
}

/* titulos */
.title span {
  font-size: 2rem;
}
.w-100 {
  width: 100%;
}
@media (min-width: 768px) {
  .w-100 {
    width: auto;
  }
}
.contenedor {
  max-width: 120rem;
  margin: 0 auto;
}

.boton {
  background-color: var(--oscuro);
  color: var(--blanco);
  padding: 1rem 3rem;
  margin-top: 1rem;
  font-size: 2rem;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 0.5rem;
  width: 90%;
  text-align: center;
  border: none;
}

.botton {
  background-color: #000000;
  color: var(--blanco);
  padding: 1rem 3rem;
  margin-top: 1rem;
  font-size: 2rem;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 1.5rem;
  width: 90%;
  text-align: center;
  border: none;
}
@media (min-width: 480px) {
  .botton {
    width: auto;
  }
}

.botton:hover {
  cursor: pointer;
  color: #585353;
}

@media (min-width: 480px) {
  .boton {
    width: auto;
  }
}

.boton:hover {
  cursor: pointer;
  color: #757575;
}

.sombra {
  -webkit-box-shadow: 0px 5px 15px 0px rgba(153, 145, 153, 1);
  -moz-box-shadow: 0px 5px 15px 0px rgba(153, 145, 153, 1);
  box-shadow: 0px 5px 15px 0px rgba(153, 145, 153, 1);
  background-color: var(--grisClaro);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}
.nav-bg {
  background-color: var(--secundario);
}

.flex {
  display: flex;
}
.alinear-derecha {
  justify-content: flex-end;
}

.navegacion-principal {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 768px) {
  .navegacion-principal {
    justify-content: space-between;
    flex-direction: row;
  }
}
.navegacion-principal a {
  display: block;
  text-align: center;
  color: var(--blanco);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 300;
  padding: 1.5rem;
}

.navegacion-principal a:hover {
  background-color: #ff69b4;
  color: var(--blanco);
}

.hero {
  background-image: url(img/rn.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  height: 450px;
  position: relative;
  margin-bottom: 2rem;
}

.about-section {
  margin-bottom: 2rem;
  height: 100%;
}
.about-section-container {
  /* position: absolute; */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.info-content {
  justify-content: center;
  max-width: 900px;
  height: 100%;
  width: 100%;
  display: flex;

  border-radius: 1rem;
  color: #000;
}

.container-skills {
  width: 100%; /* Full width */
  background-color: #ddd; /* Grey background */
}
.skill-title {
  font-weight: bold;
}
.skills {
  text-align: right; /* Right-align text */
  padding-top: 10px; /* Add top padding */
  padding-bottom: 10px; /* Add bottom padding */
  color: white; /* White text color */
}
.python {
  width: 85%;
  background-color: #4e4d4e;
} /* Green */

.cpp {
  width: 70%;
  background-color: #4d5a5aae;
} /* Green */

.javascript {
  width: 65%;
  background-color: #97939a;
} /* Green */

.verilog {
  width: 80%;
  background-color: #5b5262;
} /* Green */

.contenido-hero {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contenido-hero h2,
.contenido-hero p {
  color: var(--blanco);
}

.contenido-hero .ubicacion {
  display: flex;
  align-items: flex-end;
}

.servicios,
.navegacion-principal,
.formulario {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* Servicios */
@media (min-width: 768px) {
  .servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1rem;
  }
}

.servicio {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.servicio h2 {
  margin: 0 0 15px;
}
.servicio h3 {
  color: var(--secundario);
  font-weight: 200;
}

.servicio p {
  line-height: 2;
  text-align: center;
}

.servicio .iconos {
  height: 15rem;
  width: 15rem;
  background-color: var(--navegador);
  border-radius: 50%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-block;
  width: auto;
  height: auto;
  background-color: transparent;
  border: none;
  cursor: pointer;
  margin: 0px 25px 15px;
  min-width: 150px;
}

.btn span {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  transition: 0.3s;
}

/*--- btn-1 ---*/
.btn-1::before {
  background-color: rgb(0, 0, 0);
  transition: 0.3s ease-out;
}

.btn a {
  text-decoration: none;
}

.btn-1 span {
  color: rgb(21, 17, 17);
  border: 1px solid rgb(28, 31, 30);
  transition: 0.2s 0.1s;
}
.btn-1 span:hover {
  color: #ff69b4;
  transition: 0.2s 0.1s;
}
.container-pop {
  width: 400px;
  background: #fff;
  border-radius: 6px;
  border-color: var(--oscuro);
  border-style: double;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  text-align: center;
  padding: 0 30px 30px;
  color: #333;
  visibility: hidden;
  transition: transform 0.4s, top 0.4s;
}

.open-popup {
  visibility: visible;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
}

.container-pop svg {
  /* width: 100px; */
  margin-top: 10px;
  /* border-radius: 50%; */
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
}

.container-pop h3 {
  font-size: 40px;
  font-weight: 500;
  margin: 30px 0 10px;
}

.container-pop button {
  width: 100%;
  margin-top: 50px;
  padding: 10px 0;
  background: var(--oscuro);
  color: #fff;
  border: 0;
  outline: none;
  cursor: pointer;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}

/* 1.hover-filled-slide-down */
.btn.hover-filled-slide-down::before {
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
}
.btn.hover-filled-slide-down:hover::before {
  height: 0%;
}

/* 2.hover-filled-slide-up */
.btn.hover-filled-slide-up::before {
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
}
.btn.hover-filled-slide-up:hover::before {
  height: 0%;
}

/* 3.hover-filled-slide-left */
.btn.hover-filled-slide-left::before {
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.btn.hover-filled-slide-left:hover::before {
  width: 0%;
}

/* 4. hover-filled-slide-right */
.btn.hover-filled-slide-right::before {
  top: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
}
.btn.hover-filled-slide-right:hover::before {
  width: 0%;
}

/* 5. hover-filled-opacity */
.btn.hover-filled-opacity::before {
  top: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 1;
}
.btn.hover-filled-opacity:hover::before {
  opacity: 0;
}

.servicio .machine {
  height: 15rem;
  width: 25rem;
  background-size: cover;
  border-radius: 5%;
  background-image: url(img/ml.jpg);
  background-repeat: no-repeat;
  background-position: center center;
}
.servicio .mask {
  height: 15rem;
  width: 25rem;
  background-size: cover;
  border-radius: 5%;
  background-image: url(img/mn.jpg);
  background-repeat: no-repeat;
  background-position: center center;
}
.servicio .algoritmo {
  height: 15rem;
  width: 25rem;
  background-color: #300a97;
  border-radius: 5%;
  background-image: url(img/code.jpeg);
  background-size: cover;
}

.servicio a {
  text-decoration: none;
  list-style: none;
}

.contact-section {
  margin-top: 25px;
}

.formulario {
  background-color: var(--oscuro);
  width: min(60rem, 100%); /**Utilizar el valor mas pequeño**/
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1rem;
}

.formulario fieldset {
  border: none;
}
.formulario legend {
  text-align: center;
  font-size: 1.8rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--blanco);
}

.campo textarea {
  height: 18rem;
}

@media (min-width: 768px) {
  .contenedor-campos {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto auto 20rem;
    column-gap: 1rem;
  }
  .campo:nth-child(3),
  .campo:nth-child(4) {
    grid-column: 1/3;
  }
}

.campo {
  margin-bottom: 1rem;
}

.campo label {
  color: var(--blanco);
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

.campo input {
  width: 100%;
  border: none;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.enviar .boton {
  width: 100%;
}

.campo textarea {
  width: 100%;
  border: none;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.social_media {
  max-width: 120rem;
  margin-top: 10rem;
  margin: 0 auto;
}
.social_media ul {
  list-style: none;
}
.social_media li a {
  text-decoration: none;
  align-items: center;
  display: flex;
  justify-content: center;
}

.footer {
  text-align: center;
}

.skills {
  margin: auto;
  text-align: center;
}

.pentagon {
  width: 300px;
  height: 300px;
  margin: auto;
  padding: 3px 3px 28px 3px;
  display: inline-block;
}

.header {
  text-align: center;
  width: 100%;
  margin: auto;
  height: 25px;
}

#c {
  margin: auto;
}

.typed-out {
  overflow: hidden;
  border-right: 0.1em solid var(--secundario);
  white-space: nowrap;
  animation: typing 3s forwards;
  width: 0;
}
