@import url(variables.css);
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-8);
}
html {
  scroll-behavior: smooth;
}
.main-header {
  background-color: var(--color-8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
}
.header-content {
  display: flex;
  display: flex;
  padding: 15px 20px;
  justify-content: center;
  align-items: center;
  position: relative; 
}
.menu-toggle {
  display: none; /* Oculto en PC */
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
/* Enlaces de navegacion en PC */
.links {
  display: flex;
  gap: 40px;
}
.links a {
  font-family: "Lato-Bold";
  color: var(--color-6);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
  padding: 15px 0;
  position: relative;
}
.links a:hover {
  color: var(--color-3);
}
.links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-1);
  transition: width 0.3s;
}
.links a:hover::after {
  width: 100%;
}
/* Botón de contacto */
.theme-btn {
  background: none;
  border: none;
  color: var(--color-6);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 9;
}

@keyframes pulse {
  0% {
    transform: scale(1.08);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1.08);
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    order: 1; /* Menú hamburguesa al inicio */
  }

  .header-content {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .logo {
    order: 2; /* Logo en el centro */
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 10px; /* Espacio a los lados */
  }

  .div-contact-me {
    order: 3; /* Botones al final */
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .links {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    order: 4; /* Menu desplegable al final */
    gap: 10px;
    margin-top: 0;
  }

  .links.active {
    max-height: 300px;
    margin-top: 15px;
  }

  .links a {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .links a:last-child {
    border-bottom: none;
  }

  /* Ajustar tamaño del logo si es necesario */
  .logo img {
    height: 35px;
    width: auto;
    max-width: 100px;
  }

  /* Ajustar botón Contact Me */
  .btn-contact {
    padding: 8px 15px;
    font-size: 14px;
  }

  /* Ajustar botón tema */
  .theme-btn {
    font-size: 18px;
  }
}

/* navMenu en capsula al hacer scroll */
#navMenu a {
  width: 120px;
  text-align: center;
  white-space: nowrap;
}
/* Estilo tipo cápsula al hacer scroll */
#navMenu.capsule {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-8);
  border: 1px solid var(--color-11);
  border-radius: 50px;
  padding: 10px 20px;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Enlaces dentro del nav cuando está en modo cápsula */
#navMenu.capsule a {
  color: var(--color-2);
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

/* Estilo para el enlace activo (puedes personalizarlo) */
#navMenu a.active {
  color: var(--color-3); /* o el color que elijas */
  font-weight: bold;
  position: relative;
}

#navMenu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-3);
}

@media (max-width: 480px) {
  .main-header {
    position: relative;
  }

  .header-content {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
  }

  .div-contact-me {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .theme-btn {
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    color: var(--color-6);
    transition: color 0.3s ease;
  }

  .theme-btn:hover {
    color: var(--color-1);
  }

  .menu-toggle {
    font-size: 20px;
  }

  .logo img {
    max-width: 120px;
  }

  nav.links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}


/* ****************************** MAIN **************************** */
/* imagen de encuadre */
.kevin-image {
  font-size: clamp(24px, 6vw, 60px);
  text-align: center;
  height: 100vh;
  width: 100%;
  background-image: url('../img/kevin\ 16-9.png');
  background-size: cover;
  background-position: 45% center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
}

.kevin-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
  z-index: 0;
}
.kevin-image h1 {
  margin-bottom: clamp(2rem, 6vh, 4rem);
  color: #efefef;
  font-family: "Lato-Bold", sans-serif;
  z-index: 1;
  position: relative;
}
.parallax-text {
  will-change: transform, opacity;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
@media (max-width: 768px) {
  .kevin-image {
    font-size: 25px;
  }
  .hero-section {
    background-position: 60% center;
  }
}

.arrow-down {
  color: #efefef;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  animation: bounce 2s infinite;
  z-index: 1;
  position: relative;
  cursor: pointer;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

/* EStilo de el resto de las secciones */
main {
  margin-top: 60px;
  padding: 20px;
}
#home {
  scroll-margin: 70px;
}
main .portada-box {
  display: flex;
  margin-left: 80px;
  margin-right: 80px;
}
main .text-box {
  margin-top: 105px;
  display: flex;
  flex-direction: column;
}

main .box1 .content p {
  color: var(--color-6);
  font-size: 24px;
  font-family: "Lato-Semi-Bold";
}

main .box1 .content h1 {
  color: var(--color-2);
  font-size: 28px;
  font-family: "Lato-Bold";
}

main .box1 .typewriter {
  font-family: "Lato-Black";
  font-size: 50px;
  background: linear-gradient(#984300, #fd6f00, #ca5900);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

main .portada-box .links-social {
  display: flex;
}
main .portada-box .links-social i {
  color: var(--color-2);
  background-color: var(--color-9);
  font-size: 30px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  margin-top: 30px;
  margin-right: 30px;
}

/********* Botones hire me y contact me *********/
main .buttons {
  display: flex;
  gap: 20px;
}
main .buttons {
  display: flex;
  gap: 1rem;
}

main .buttons button {
  width: 150px;
  height: 40px;
  border-radius: 8px;
  margin-top: 40px;
  font-family: "Lato-Bold", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.4s ease;
}

/* ****** Boton hire me ******** */
main .buttons .hire-me {
  border: none;
  color: white;
  background: linear-gradient(135deg, #fd6f00, #e46400);
}

main .buttons .hire-me:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(253, 111, 0, 0.5);
  animation: pulse 0.6s ease forwards;
}

/* ***** Boton CV ******* */
main .buttons .cv {
  background-color: transparent;
  color: var(--color-7);
  border: 2px solid var(--color-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 150px;
  border-radius: 8px;
  font-family: "Lato-Bold", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.4s ease;
}

main .buttons .cv:hover {
  transform: scale(1.08);
  background-color: var(--color-2);
  color: white;
  animation: pulse 0.6s ease forwards;
}

/* Animación de pulso (común a ambos botones) */
@keyframes pulse {
  0% {
    transform: scale(1.08);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1.08);
  }
}

main .stats-box {
  width: 534px;
  height: 125px;
  background-color: var(--color-10);
  display: flex;
  margin-top: 40px;
  font-family: "Lato-Bold";
  border-radius: 8px;
  gap: 30px;
}
main .stats-box .experience {
  margin-left: 24px;
  border-right: 2px var(--color-2) solid;
}
main .stats-box .project {
  border-right: 2px var(--color-2) solid;
}
main .stats-box .experience,
.project,
.clients {
  width: 144px;
  height: 77px;
  margin-top: 24px;
}

main .stats-box h1 {
  color: var(--color-7);
  font-size: 24px;
}

main .stats-box p {
  margin-top: 12px;
  color: var(--color-7);
  font-size: 15px;
}

main .photo-box {
  margin-left: 200px;
  background-color: var(--color-10);
  border-radius: 1000px;
}
/* ********************** diseño responsive ********************** */
/* Pantallas extra grandes (más de 1800px) - Monitores de 27 pulgadas y más grandes */
@media only screen and (min-width: 1801px) {
  main {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 80px;
  }

  main .portada-box {
    margin-left: 120px;
    margin-right: 120px;
    justify-content: space-between;
    align-items: center;
  }

  main .text-box {
    margin-top: 120px;
    max-width: 50%;
  }

  main .box1 .content p {
    font-size: 30px;
  }

  main .box1 .content h1 {
    font-size: 40px;
  }

  main .box1 .fullstack-developer {
    font-size: 42px;
  }

  main .portada-box .links-social i {
    font-size: 36px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
  }

  main .buttons button {
    width: 180px;
    height: 50px;
    font-size: 18px;
  }

  main .stats-box {
    width: 700px;
    height: 150px;
  }

  main .stats-box .experience,
  main .stats-box .project,
  main .stats-box .clients {
    width: 180px;
    height: 100px;
  }

  main .stats-box h1 {
    font-size: 32px;
  }

  main .stats-box p {
    font-size: 18px;
  }

  main .photo-box {
    margin-left: 0;
    width: 45%;
    display: flex;
    justify-content: center;
  }

  main .photo-box img {
    max-width: 90%;
    max-height: 600px;
  }
}

/* Pantallas grandes (1401px - 1800px) */
@media only screen and (min-width: 1401px) and (max-width: 1800px) {
  main {
    margin-top: 70px;
  }

  main .portada-box {
    margin-left: 100px;
    margin-right: 100px;
    justify-content: space-between;
  }

  main .text-box {
    margin-top: 110px;
    width: 50%;
  }

  main .box1 .content p {
    font-size: 26px;
  }

  main .box1 .content h1 {
    font-size: 32px;
  }

  main .box1 .fullstack-developer {
    font-size: 34px;
  }

  main .photo-box {
    margin-left: 50px;
    width: 40%;
    display: flex;
    justify-content: center;
  }

  main .stats-box {
    width: 600px;
    height: 140px;
  }

  main .stats-box h1 {
    font-size: 28px;
  }
}

/* Dispositivos grandes (1201px - 1400px) */
@media only screen and (min-width: 1201px) and (max-width: 1400px) {
  main .portada-box {
    margin-left: 80px;
    margin-right: 80px;
    justify-content: space-between;
  }

  main .photo-box {
    margin-left: 120px;
    width: 40%;
  }

  main .stats-box {
    width: 100%;
    max-width: 560px;
  }
}

/* Dispositivos medianos-grandes (993px - 1200px) */
@media only screen and (min-width: 993px) and (max-width: 1200px) {
  main .portada-box {
    margin-left: 40px;
    margin-right: 40px;
  }

  main .photo-box {
    margin-left: 80px;
  }

  main .stats-box {
    width: 100%;
    max-width: 534px;
  }
}

/* Tablets (menos de 992px) */
@media only screen and (max-width: 992px) {
  main .portada-box {
    flex-direction: column-reverse;
    margin-left: 20px;
    margin-right: 20px;
    align-items: center;
  }

  main .text-box {
    margin-top: 40px;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  main .photo-box {
    margin-left: 0;
    margin-top: 40px;
  }

  main .stats-box {
    width: 100%;
    max-width: 534px;
  }

  main .buttons {
    justify-content: center;
  }

  main .portada-box .links-social {
    justify-content: center;
  }
}

/* Móviles (menos de 768px) */
@media only screen and (max-width: 768px) {
  main {
    margin-top: 30px;
    padding: 10px;
  }

  main .portada-box {
    margin-left: 10px;
    margin-right: 10px;
  }

  main .box1 .content p {
    font-size: 20px;
  }

  main .box1 .content h1 {
    font-size: 24px;
  }

  main .box1 .fullstack-developer {
    font-size: 24px;
  }

  main .stats-box {
    flex-direction: row;
    height: auto;
    gap: 15px;
    padding: 15px 0;
  }

  main .stats-box .experience,
  main .stats-box .project,
  main .stats-box .clients {
    width: 100%;
    height: auto;
    margin-top: 10px;
    border-right: none;
    text-align: center;
  }

  main .stats-box .experience {
    margin-left: 0;
    border-bottom: 2px var(--color-2) solid;
    padding-bottom: 10px;
  }

  main .stats-box .project {
    border-bottom: 2px var(--color-2) solid;
    padding-bottom: 10px;
  }

  main .buttons {
    flex-direction: row;
    gap: 5px;
    align-items: center;
  }

  main .buttons button {
    width: 90%;
    max-width: 200px;
  }
  main .photo-box {
    border-radius: 70px;
  }
  main .photo-box img {
    margin-left: 45px;
    max-width: 80%;
  }
  main .photo-box img {
    max-width: 80%;
  }
}

/* Móviles pequeños (menos de 576px) */
@media only screen and (max-width: 576px) {
  main .portada-box .links-social i {
    font-size: 20px;
    width: 35px;
    height: 35px;
    margin-right: 15px;
  }

  main .box1 .content p {
    font-size: 18px;
  }

  main .box1 .content h1 {
    font-size: 22px;
  }

  main .box1 .fullstack-developer {
    font-size: 22px;
  }
}

/* ******************** Services ********************************* */

/* Estilos base para la sección de servicios */
main .services {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 150px;
  width: 100%;
  padding: 0 20px;
}
#services {
  scroll-margin: 70px;
}
main .services .text {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

main .services .text h1 {
  font-size: 40px;
  font-family: "Lato-Bold";
  color: var(--color-7);
}

main .services .text p {
  font-size: 20px;
  font-family: "Lato-Medium";
  color: var(--color-6);
}

main .services .boxes {
  width: 100%;
  max-width: 1200px;
}

main .services .boxes .father-box1 {
  display: flex;
  flex-direction: row;
  margin-top: 80px;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

main .services .box1,
main .services .box2,
main .services .box3 {
  background-color: var(--color-10);
  padding: 34px;
  width: 350px;
  height: 400px;
  border-radius: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main .services .box1:hover,
main .services .box2:hover,
main .services .box3:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

main .services .box1 i,
main .services .box2 i,
main .services .box3 i {
  color: var(--color-1);
  font-size: 70px;
}

main .services .box1 p,
main .services .box2 p,
main .services .box3 p {
  color: var(--color-11);
  font-size: 20px;
  font-family: "Lato-medium";
  margin-bottom: 20px;
}

main .services .boxes h1 {
  font-family: "Lato-Bold";
  color: var(--color-1);
  font-size: 24px;
}

main .services .icon-and-tittle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.btn-repo {
  padding: 10px 20px;
  border-radius: 8px;
  background: linear-gradient(#984300, #fd6f00, #ca5900);
  color: white;
  text-decoration: none;
  text-align: center;
  font-family: "Lato-Bold";
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease,
  box-shadow 0.3s ease;
}

.btn-repo:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px var(--color-3);
}

.btn-repo:hover {
  animation: pulse 0.6s ease forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1.08);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1.08);
  }
}

/* Pantallas extra grandes (más de 1800px) - Monitores de 27 pulgadas y más grandes */
@media only screen and (min-width: 1801px) {
  main .services {
    margin-top: 200px;
  }

  main .services .text h1 {
    font-size: 48px;
  }

  main .services .text p {
    font-size: 24px;
  }

  main .services .boxes .father-box1 {
    gap: 60px;
  }

  main .services .box1,
  main .services .box2,
  main .services .box3 {
    width: 450px;
    height: 500px;
    padding: 40px;
  }

  main .services .box1 i,
  main .services .box2 i,
  main .services .box3 i {
    font-size: 80px;
  }

  main .services .boxes h1 {
    font-size: 28px;
  }

  main .services .box1 p,
  main .services .box2 p,
  main .services .box3 p {
    font-size: 22px;
  }

  .btn-repo {
    padding: 10px 20px;
    font-size: 18px;
  }
}

/* Pantallas grandes (1401px - 1800px) */
@media only screen and (min-width: 1401px) and (max-width: 1800px) {
  main .services {
    margin-top: 180px;
  }

  main .services .text h1 {
    font-size: 44px;
  }

  main .services .text p {
    font-size: 22px;
  }

  main .services .boxes .father-box1 {
    gap: 50px;
  }

  main .services .box1,
  main .services .box2,
  main .services .box3 {
    width: 380px;
    height: 420px;
  }
}

/* Dispositivos grandes (1201px - 1400px) */
@media only screen and (min-width: 1201px) and (max-width: 1400px) {
  main .services {
    margin-top: 160px;
  }

  main .services .boxes .father-box1 {
    gap: 30px;
  }

  main .services .box1,
  main .services .box2,
  main .services .box3 {
    width: 360px;
    height: 410px;
  }
}

/* Dispositivos medianos (993px - 1200px) */
@media only screen and (min-width: 993px) and (max-width: 1200px) {
  main .services {
    margin-top: 140px;
  }

  main .services .text h1 {
    font-size: 36px;
  }

  main .services .text p {
    font-size: 18px;
  }

  main .services .boxes .father-box1 {
    gap: 20px;
  }

  main .services .box1,
  main .services .box2,
  main .services .box3 {
    width: 300px;
    height: 400px;
    padding: 30px;
  }

  main .services .box1 i,
  main .services .box2 i,
  main .services .box3 i {
    font-size: 60px;
  }

  main .services .boxes h1 {
    font-size: 22px;
  }

  main .services .box1 p,
  main .services .box2 p,
  main .services .box3 p {
    font-size: 18px;
  }
}

/* Tablets (768px - 992px) */
@media only screen and (min-width: 768px) and (max-width: 992px) {
  main .services {
    margin-top: 120px;
  }

  main .services .text h1 {
    font-size: 32px;
  }

  main .services .text p {
    font-size: 17px;
  }

  main .services .boxes .father-box1 {
    gap: 30px;
    margin-top: 60px;
  }

  main .services .box1,
  main .services .box2,
  main .services .box3 {
    width: 330px;
    height: 360px;
    padding: 25px;
  }

  main .services .box1 i,
  main .services .box2 i,
  main .services .box3 i {
    font-size: 55px;
  }

  main .services .boxes h1 {
    font-size: 20px;
  }

  main .services .box1 p,
  main .services .box2 p,
  main .services .box3 p {
    font-size: 16px;
  }

  .btn-repo {
    padding: 10px 18px;
    font-size: 14px;
  }
}

/* Móviles (576px - 767px) */
@media only screen and (min-width: 576px) and (max-width: 767px) {
  main .services {
    margin-top: 100px;
  }

  main .services .text h1 {
    font-size: 28px;
  }

  main .services .text p {
    font-size: 16px;
  }

  main .services .boxes .father-box1 {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
  }

  main .services .box1,
  main .services .box2,
  main .services .box3 {
    width: 90%;
    max-width: 400px;
    height: auto;
    min-height: 350px;
    padding: 25px;
  }

  main .services .box1 i,
  main .services .box2 i,
  main .services .box3 i {
    font-size: 50px;
  }

  main .services .boxes h1 {
    font-size: 20px;
  }

  main .services .box1 p,
  main .services .box2 p,
  main .services .box3 p {
    font-size: 16px;
    margin-bottom: 15px;
  }
}

/* Móviles pequeños (menos de 576px) */
@media only screen and (max-width: 575px) {
  main .services {
    margin-top: 80px;
  }

  main .services .text h1 {
    font-size: 26px;
  }

  main .services .text p {
    font-size: 15px;
  }

  main .services .boxes .father-box1 {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
  }

  main .services .box1,
  main .services .box2,
  main .services .box3 {
    width: 100%;
    height: auto;
    min-height: 320px;
    padding: 20px;
  }

  main .services .box1 i,
  main .services .box2 i,
  main .services .box3 i {
    font-size: 45px;
  }

  main .services .boxes h1 {
    font-size: 18px;
  }

  main .services .box1 p,
  main .services .box2 p,
  main .services .box3 p {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .btn-repo {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* ************************************** infinite slider *********************************** */
#technologies {
  scroll-margin: 150px;
}
.main h1 {
  text-align: center;
  color: var(--color-7);
  font-family: "Lato-Bold";
  font-weight: 600;
  margin-bottom: 50px;
}

.main {
  width: min(1200px, 90vw);
  margin: auto;
  margin-top: 250px;
  margin-bottom: 100px;
}
.slider {
  width: 100%;
  height: calc(var(--height) + 30px);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
  position: relative;
}

.slider .list {
  display: flex;
  width: 100%;
  min-width: calc(var(--width) * var(--quantity));
  position: relative;
}

.slider .item {
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 10s linear infinite;
  animation-delay: calc(
    (10s / var(--quantity)) * (var(--position) - 1) - 10s
    ) !important;
  }
  .slider .item img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s;
    transform-origin: center;
  }

  .slider .item:hover img {
    transform: scale(1.15);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    z-index: 2;
  }

  @keyframes autoRun {
    from {
      left: 100%;
    }
    to {
      left: calc(var(--width) * -1);
    }
  }

  .slider:hover .item {
    animation-play-state: paused !important;
    filter: grayscale(1);
  }

  .slider .item:hover {
    filter: grayscale(0);
  }

  .slider[reverse="true"] .item {
    animation: reversePlay 10s linear infinite;
  }

  @keyframes reversePlay {
    from {
      left: calc(var(--width) * -1);
    }
    to {
      left: 100%;
    }
  }

  /* **************** about me ******************** */
  #about-me {
    scroll-margin: 70px;
  }
  main .about-me {
    margin-top: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
  }

  .about-me .titte-description {
    max-width: 800px;
    width: 100%;
    height: 100%;
  }

  .about-me .titte-description h1 {
    font-size: 40px;
    text-align: center;
    color: var(--color-7);
    font-family: "Lato-Bold";
  }

  .about-me .titte-description p {
    font-size: 20px;
    text-align: center;
    color: var(--color-6);
    font-family: "Lato-Medium";
    margin-top: 15px;
  }

  main .image-text {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 150px;
    width: 100%;
    max-width: 1400px;
  }

  main .image-text p {
    width: 630px;
    max-width: 100%;
    height: auto;
    font-size: 18px;
    line-height: 190%;
    text-align: left;
    color: var(--color-6);
    font-family: "Lato-Medium";
  }

  main .text-and-btn a {
    margin-top: 10px;
    display: inline-block;
  }

  .btn-cv {
      font-family: "Lato-Bold", sans-serif;
      background: linear-gradient(135deg, #984300, #fd6f00, #ca5900);
      color: white;
      padding: 10px 20px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      white-space: nowrap;
      display: inline-block;
      text-align: center;
      transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    }
    .btn-cv:hover {
      transform: scale(1.08);
      box-shadow: 0 0 18px rgba(253, 111, 0, 0.5);
      animation: pulse 0.6s ease forwards;
    }
  /******************* modelado de el fondo de la imagen ****************/
  .image {
    position: relative;
    width: 320px;
    height: 480px;
    flex-shrink: 0;
  }

  .image img {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
  }

  .background-arch {
    position: absolute;
    top: 18%;
    left: 0;
    width: 100%;
    height: 70%;
    background-color: var(--color-10);
    border-radius: 50% / 25%;
    z-index: 0;
  }

  .theme-btn {
    background: none;
    border: none;
    color: var(--color-6);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  /********************** diseño responsive ********************* */
  /* Pantallas extra grandes (más de 1800px) */
  @media only screen and (min-width: 1801px) {
    main .about-me {
      margin-top: 250px;
    }

    .about-me .titte-description h1 {
      font-size: 48px;
    }

    .about-me .titte-description p {
      font-size: 24px;
    }

    main .image-text {
      gap: 200px;
      margin-top: 80px;
    }

    main .image-text p {
      font-size: 20px;
      width: 700px;
    }

    .image {
      width: 380px;
      height: 570px;
  }
}

/* Pantallas grandes (1401px - 1800px) */
@media only screen and (min-width: 1401px) and (max-width: 1800px) {
  main .about-me {
    margin-top: 230px;
  }

  .about-me .titte-description h1 {
    font-size: 44px;
  }

  .about-me .titte-description p {
    font-size: 22px;
  }

  main .image-text {
    gap: 180px;
    margin-top: 70px;
  }

  main .image-text p {
    font-size: 19px;
    width: 650px;
  }

  .image {
    width: 350px;
    height: 525px;
  }
}

/* Dispositivos grandes (1201px - 1400px) */
@media only screen and (min-width: 1201px) and (max-width: 1400px) {
  main .about-me {
    margin-top: 210px;
  }

  .about-me .titte-description h1 {
    font-size: 42px;
  }

  .about-me .titte-description p {
    font-size: 21px;
  }

  main .image-text {
    gap: 120px;
    margin-top: 60px;
  }

  main .image-text p {
    width: 600px;
  }
}

/* Dispositivos medianos-grandes (993px - 1200px) */
@media only screen and (min-width: 993px) and (max-width: 1200px) {
  main .about-me {
    margin-top: 180px;
  }

  .about-me .titte-description h1 {
    font-size: 38px;
  }

  .about-me .titte-description p {
    font-size: 19px;
  }

  main .image-text {
    gap: 80px;
    margin-top: 50px;
  }

  main .image-text p {
    width: 500px;
    font-size: 17px;
  }

  .image {
    width: 280px;
    height: 420px;
  }
}

/* Tablets (768px - 992px) */
@media only screen and (min-width: 768px) and (max-width: 992px) {
  main .about-me {
    margin-top: 150px;
  }

  .about-me .titte-description h1 {
    font-size: 34px;
  }

  .about-me .titte-description p {
    font-size: 18px;
  }

  main .image-text {
    gap: 60px;
    margin-top: 40px;
    flex-direction: column; /* Cambiar a columna en tablets */
  }

  main .image-text p {
    width: 100%;

    max-width: 600px;
    text-align: center; /* Centrar texto en tablets */
    font-size: 16px;
  }

  .image {
    width: 260px;
    height: 390px;
  }

  main .text-and-btn {
    text-align: center; /* Centrar botón */
  }
}

/* Móviles grandes (576px - 767px) */
@media only screen and (min-width: 576px) and (max-width: 767px) {
  main .about-me {
    margin-top: 120px;
    padding: 0 15px;
  }

  .about-me .titte-description h1 {
    font-size: 30px;
  }

  .about-me .titte-description p {
    font-size: 17px;
  }

  main .image-text {
    gap: 40px;
    margin-top: 30px;
    flex-direction: column;
  }

  main .image-text p {
    font-size: 15px;
    text-align: center;
    line-height: 180%;
  }

  .image {
    width: 240px;
    height: 360px;
  }
  main .text-and-btn {
    text-align: center;
  }
}

/* Móviles pequeños (menos de 576px) */
@media only screen and (max-width: 575px) {
  main .about-me {
    margin-top: 100px;
    padding: 0 10px;
  }

  .about-me .titte-description h1 {
    font-size: 26px;
  }

  .about-me .titte-description p {
    font-size: 16px;
  }

  main .image-text {
    gap: 30px;
    margin-top: 25px;
    flex-direction: column;
  }

  main .image-text p {
    font-size: 12px;
    text-align: center;
    line-height: 170%;
    width: 100%;
    height: auto;
  }

  .image {
    width: 200px;
    height: 300px;
  }
  main .text-and-btn {
    text-align: center;
}

  main .text-and-btn a {
    /* text-align: center; */
    margin-top: 15px;
    padding: 8px 16px;
    font-size: 14px;
  }

  main .text-and-btn p {
    text-align: center;
  }

  .background-arch {
    top: 20%;
    height: 65%;
  }
}

/* ********* formulario ********** */
#contact-me {
  scroll-margin: 75px;
}
.form-box {
  margin-top: 150px;
  width: auto;
  height: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  /* justify-content: center; */
}
.form-box .tittle-description {
  width: 100%;
  max-width: 547px;
  height: auto;
}
.form-box h1 {
  color: var(--color-7);
  font-family: "Lato-Bold";
  font-size: 40px;
}
.form-box p {
  color: var(--color-6);
  font-family: "Lato-Medium";
  font-size: 20px;
  margin-top: 20px;
}

.form-box form {
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1015px;
  width: 100%;
  color: var(--color-6);
  font-family: "Lato-Medium";
  font-weight: 600;
}
.form-box input {
  background-color: var(--color-10);
  border: none;
  border-radius: 8px;
  width: 450px;
  height: 50px;
  color: var(--color-7);
}
.form-box textarea {
  color: var(--color-7);
  background-color: var(--color-10);
  border: none;
  border-radius: 8px;
  width: 500px;
  height: 150px;
}
.form-box .nombre, .email, .asunto, .comentarios {
  display: flex;
  flex-direction: column;
}
.form-box .nombre, .email, .asunto, .comentarios label {
  display: flex;
  flex-direction: column;
}
.form-box .nombre,
.form-box .email,
.form-box .asunto,
.form-box .comentarios {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.form-box label {
  font-size: 16px;
  color: var(--color-6);
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}
.form-box form {
  width: 100%;
  max-width: 500px;
}
.form-box form {
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1015px;
  width: 100%;
}

.form-left,
.form-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-left {
  flex: 1;
  min-width: 250px;
  max-width: 450px;
}

.form-right {
  flex: 1;
  min-width: 250px;
  max-width: 500px;
}

.form-box label {
  text-align: left;
  font-size: 16px;
  color: var(--color-6);
}
.form-box input,
.form-box textarea {
  background-color: var(--color-10);
  border: none;
  border-radius: 8px;
  width: 100%;
  padding: 10px;
  font-size: 16px;
}

input[type="submit"] {
  margin-top: 30px;
  padding: 12px 24px;
  background-color: var(--color-1);
  color: var(--color-7);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  align-self: center;
}

@media (max-width: 480px) {
  .form-box {
    margin-top: 80px;
    padding: 0 10px;
  }

  .form-box h1 {
    font-size: 28px;
  }

  .form-box p {
    font-size: 16px;
    margin-top: 15px;
  }

  .form-box form {
    margin-top: 40px;
    gap: 15px;
  }

  .form-box input,
  .form-box textarea {
    padding: 8px;
    font-size: 14px;
  }

  .form-box textarea {
    height: 120px;
  }

  .form-box label {
    font-size: 14px;
  }

  input[type="submit"] {
    margin-top: 20px;
    padding: 10px 20px;
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .form-box form {
    flex-direction: column;
    align-items: center;
  }

  .form-left,
  .form-right {
    width: 100%;
    max-width: 500px;
  }
    .form-box h1 {
    font-size: 32px;
  }
  .form-box p {
    font-size: 18px;
  }
}

/* *************** footer ******************* */
.footer {
  margin-top: 200px;
  background-color: var(--color-8);
  color: var(--color-7);
  padding: 40px 20px 20px;
  font-family: "Lato-Medium", sans-serif;
  transition: background-color 0.3s ease;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-logo img {
  max-width: 150px;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 14px;
  color: var(--color-11);
}

.footer-links h3,
.footer-social h3 {
  font-family: "Lato-Bold", sans-serif;
  margin-bottom: 10px;
  color: var(--color-1);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: var(--color-7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--color-1);
}

.footer-social .social-icons a {
  font-size: 20px;
  color: var(--color-7);
  margin-right: 10px;
  transition: color 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: var(--color-1);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: var(--color-11);
  border-top: 1px solid var(--color-9);
  padding-top: 15px;
}


.theme-btn{
  margin-left: 40px;
}
.theme-btn:hover {
  color: var(--color-1);
}

body,
.main-header,
header,
main,
section,
button,
a,
p,
h1,
h2,
h3,
h4,
h5,
h6,
div {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
