/* Diseño de la pagina del apartado barra de arriba */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins";
}
:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: white;
  --main-color: #eac10c;
}
html {
  font-size: 60%;
  overflow-x: hidden;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
}
.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 4rem 15%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}
#menu-icon{
  font-size: 3.5rem;
  color: var(--main-color);
  display: none;
}
.logo {
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.logo-img {
  width: 110px; 
  transition: 0.3s ease-in-out;
}
.logo:hover .logo-img {
  transform: scale(1.1); 
}
span{
  background: linear-gradient(
    270deg,
    #dfbf08 10%,
    #ff9215 100%
  );
  background-clip: text;
  color: transparent;
}
.navbar a{
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
}  
.navbar a:hover{
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}
.gradient-btn{
  font-size: 1.8rem;
  padding: 1rem 2rem;
  border-radius: 3rem;
  background: linear-gradient(
    270deg,
    #DF8908 10%,
    #ff1d15 100%
  );
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  color: white;
  border: none;
  text-wrap: nowrap;
}
.gradient-btn:hover{
  transform: scale(1.05);
}

/* Diseño de la pagina del apartado Home */
section {
  min-height: 100vh;
  padding: 10rem 15%;
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.home-content h1 {
  font-size: 8rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}

.home-content h3 {
  margin: 1rem 0;
  font-size: 4rem;
}

.home-content p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
}

.home-img img {
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}

.home-img img:hover {
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color),
              0 0 100px var(--main-color);
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  padding: 1rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 0.5rem;
  transition: 0.3s ease-in-out;
}

.social-icons a:hover {
  color: var(--text-color);
  background-color: var(--text-color);
  transform: scale(1.2) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
}

.btn-group {
  display: flex;
  gap: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 3rem;
  font-size: 1.8rem;
  color: black;
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.3s ease-in-out;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color); 
}

.btn-group a:nth-of-type(2) {
  background-color: black;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
  box-shadow: 0 0 25px var(--main-color);
  background-color: black;
  color: var(--main-color); 
}


/* Diseño de la pagina del apartado Sobre mi */
.about{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
  background: var(--second-bg-color);
}
.about-img img{
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}
.about-img img:hover{
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color),
              0 0 100px var(--main-color);
}
.about-content h2{
  font-size: 7rem;
  text-align: left;
}
.about-content p {
  font-size: 1.8rem;
}
.about-content .btn{
  margin: 3rem 0;
}

::-webkit-scrollbar{
  width: 20px;
}
::-webkit-scrollbar-thumb{
  background-color: var(--main-color);
}
::-webkit-scrollbar-track{
  background-color: var(--bg-color);
}

/* Diseño de la pagina del apartado Servicios */
.heading{
  text-align: center;
  font-size: 7rem;
  margin: 5rem 0;
}
.services{
  background-color: var(--bg-color);
  color: black;
}
.services h2{
  color: var(--text-color);
}
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  width: auto; 
  margin: 0 auto; 
}
.service-box{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-color);
  height: 600px;
  border-radius: 3rem;
  cursor: pointer;
  border: 5px solid transparent;
  transition: 0.4s ease-in-out;
}
.service-box:hover{
  background: var(--second-bg-color);
  color: var(--main-color);
  border: 5px solid var(--main-color);
  transform: scale(1.03);
}
.service-info{
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 5rem;
}
.service-info h4{
  font-size: 2.5rem;
  margin: 2rem 0;
  font-weight: 800;
}
.service-info p{
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.7;
  margin: 1rem 0;
}
.service-info p1{
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.7;
  margin: 1rem 0;
}
.service-info i{
  font-size: 5rem;
}
.service-gif {
  max-width: 100%;
  height: auto;
  margin: 0.5rem 0;
}

/* Diseño de la pagina del apartado Proyectos */

.projects{
  background-color: var(--second-bg-color);
}
.projects-box{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  place-items: center;
  gap: 3rem;
  row-gap: 5rem;
}
.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 3rem;
  gap: 2rem;
  padding: 5rem 2rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 5px var(--main-color);
  transition: 0.3s ease;
}
.project-card:hover {
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color);
  transform: scale(1.02);
}
.project-card video {
  width: 100%; 
  height: auto; 
  border-radius: 2em;
  object-fit: cover; 
}
.project-card h3 {
  font-size: 3rem;
}
.project-card p {
  font-size: 1.6rem;
}

/* Diseño de la pagina del apartado Footer */
.footer{
  background-color: var(--second-bg-color);
  padding: 50px 0;
}
.footer .social-icons{
  text-align: center;
}
.footer ul{
  text-align: center;
  font-size: 1.8rem;
}
.footer ul li{
  display: inline-block;
  margin-left: 20px;
}
.footer ul li a{
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}
.footer ul li a:hover{
  border-bottom: 3px solid var(--main-color)
}
.footer .copyright{
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
}

/* Diseño de la pagina del apartado Contacto */
.heading{
  text-align: center;
  font-size: 7rem;
  margin: 5rem 0;
}
.contact{
  background-color: var(--bg-color);
  color: black;
}
.contact h2{
  color: var(--text-color);
}
.contact-container {
  display:block;
  gap: 2.5rem;
  max-width: 1200px; 
  margin: 0 auto; 
}
.contact-box{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-color);
  height: 600px;
  border-radius: 3rem;
  cursor: pointer;
  border: 5px solid transparent;
  transition: 0.4s ease-in-out;
}
.contact-box:hover{
  background: var(--second-bg-color);
  color: var(--main-color);
  border: 5px solid var(--main-color);
  transform: scale(1.03);
}
.contact-info{
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 5rem;
}
.contact-info h4{
  font-size: 4rem;
  margin: 2rem 0;
  font-weight: 800;
}
.contact-info p{
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.7;
}
.contact-info i{
  font-size: 8rem;
}


/* Diseño de la pagina del apartado Script */
@media(max-width:1285px){
  #menu-icon{
    display: block;
  }
  .navbar{
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3rem;
    background: rgba(0, 0, 0, 0.8);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
  }
  .navbar a{
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--text-color);
  }
  .navbar.active{
    display: block;
  }
  .gradient-btn{
    display: none;
  }
  .home{
    flex-direction: column-reverse;
    margin: 5rem 0;
    gap: 5rem;
  }
  .home-content{
    align-items: center;
    text-align: center;
  }
  .home-img img{
    width: 56vw;
  }
  .about{
    flex-direction: column-reverse;
    text-align: center;
  }
  .about h2{
    text-align: center;
    margin: 2rem 0;
  }
  .about img{
    width: 52vw;
  }
}


/* Diseño para móviles */
@media (max-width: 768px) {
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row; 
    padding: 1rem; 
  }

  .logo {
    display: flex;
    align-items: center;
  }

  .logo-img {
    max-width: 150px; 
  }

  .bx-menu {
    display: block;
    cursor: pointer;
    font-size: 2rem; 
  }

  .home-content {
    text-align: center;
    padding: 1rem; 
  }

  .home-img, .about-img {
    text-align: center;
    margin: 1rem 0;
    width: 100%; 
    max-width: 90%; 
  }

  .projects-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem; 
  }

  .project-card {
    margin-bottom: 1rem;
    padding: 1rem; 
    box-sizing: border-box; 
    border: 2px solid var(--main-color);
    border-radius: 3rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
  }
  .project-card h3 {
    font-size: 1.7rem; 
  }

  .project-card p {
    font-size: 0.95rem; 
  }

  .service-box {
    margin-bottom: 0.8rem;
    padding: 0.8rem; 
    box-sizing: border-box; 
  }
  .service-info h4{
    margin-bottom: 0.5rem; 
    font-size:large;
  }
  .service-info p1 {
    margin-bottom: 0.5rem; 
    font-size: small;
  }
  .service-info p {
    margin-bottom: 0.5rem; 
    font-size: larger;
  }
}

@media (max-width: 480px) {
  .heading {
    font-size: 1.5rem;
  }

  .btn-group {
    flex-direction: column;
    gap: 0.5rem; 
    padding: 0 1rem; 
  }

  .btn {
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem; 
  }

  .service-info {
    font-size: 0.8rem;
  }

  .project-card {
    width: 100%;
    padding: 0.5rem; 
  }

  .project-card h3 {
    font-size: 1.55rem; 
  }

  .project-card p {
    font-size: 1rem; 
  }
  .footer {
    font-size: 0.5rem; 
    padding: 0.7rem; 
  }
  
  .footer .social-icons {
    font-size: 1rem; 
  }
  
  .footer .list {
    padding: 0;
    margin: 0;
    list-style: none; 
    text-align: center; 
  }
  
  .footer .list li {
    display: inline-block;
    margin: 0 0.5rem; 
  }
  
  .footer .copyright {
    margin-top: 1rem; 
  }
}


/* Diseño para eDITS */
.slider {
  width: 50%; 
  max-width: 1000px; 
  margin: auto;
  overflow: hidden;
  position: relative;
}

.slider ul {
  display: flex;
  padding: 0;
  margin: 0;
  width: 900%; 
  animation: cambio 25s infinite linear; 
}

.slider li {
  width: 100%; 
  list-style: none;
}

.slider img {
  width: 95%;
  display: block;
  object-fit: cover; 
}

/* Animación */
@keyframes cambio {
  0% { margin-left: 0; }
  11.11% { margin-left: 0; }

  22.22% { margin-left: -100%; }
  33.33% { margin-left: -100%; }

  44.44% { margin-left: -200%; }
  55.55% { margin-left: -200%; }

  66.66% { margin-left: -300%; }
  77.77% { margin-left: -300%; }

  88.88% { margin-left: -400%; }
  100% { margin-left: 0; } 
}


/* Estilos específicos para móviles */
@media (max-width: 768px) {
  .slider {
      width: 95%; 
  }

  .slider ul {
      width: 500%; 
  }

  .slider li {
      width: 100%;
  }

  @keyframes cambio {
      0% { margin-left: 0; }
      20% { margin-left: 0; }
      
      25% { margin-left: -100%; }
      45% { margin-left: -100%; }
      
      50% { margin-left: -200%; }
      70% { margin-left: -200%; }
      
      75% { margin-left: -300%; }
      95% { margin-left: -300%; }
      
      100% { margin-left: 0; } 
  }
}

/* Media Queries para el header y home*/
@media (max-width: 768px) {
  section {
    padding: 5rem 5%; /* Reducido el padding para pantallas pequeñas */
  }

  .home-content h1 {
    font-size: 5rem; /* Reducido el tamaño del texto para móviles */
  }

  .home-content h3 {
    font-size: 2.5rem; /* Reducido el tamaño del texto para móviles */
  }

  .home-content p {
    font-size: 1.2rem; /* Reducido el tamaño del texto para móviles */
  }

  .about-content h2 {
    font-size: 4rem; /* Ajustado el tamaño del título en móviles */
  }

  .about-content p {
    font-size: 1.3rem; /* Ajustado el tamaño del texto en móviles */
  }
}

@media (max-width: 480px) {
  .home-content h1 {
    font-size: 4rem; /* Más pequeño en pantallas muy pequeñas */
  }

  .home-content h3 {
    font-size: 2rem; /* Más pequeño en pantallas muy pequeñas */
  }

  .btn {
    padding: 0.8rem 2rem; /* Botones más pequeños en pantallas muy pequeñas */
    font-size: 1.5rem;
  }

  .social-icons a {
    font-size: 2rem; /* Iconos más pequeños en pantallas muy pequeñas */
    padding: 0.8rem;
  }
}