@import url("https://fonts.googleapis.com/css2?family=Alata&display=swap");
body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  font-family: "Alata", sans-serif;
  margin: 0;
  padding: 0;
}

/* Estilos para el header */
.contenedor-header {
  background: #1e2326;
  position: fixed;
  width: 100%;
  font-size: 22px;
  margin-top: -20px;
  left: 0;
  z-index: 99;
}

.contenedor-header header {
  max-width: 1400px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contenedor-header header .logo a {
  font-family: "Alata", sans-serif;
  font-size: 36px;
  color: #4169e1;
  text-decoration: none;
}

.contenedor-header header .logo img {
  width: 5em;
  height: auto;
  margin-top: 20px;
}

.contenedor-header header nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contenedor-header header nav ul li a {
  color: #fff;
  margin: 0 15px;
  padding: 3px;
  transition: 0.5s;
  text-decoration: none;
}

.contenedor-header header nav ul li a:hover {
  color: #4169e1;
}

.nav-responsive {
  background-color: #4169e1;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  display: none;
}

/*inicio*/
.inicio {
  background: linear-gradient(
      to top,
      rgba(30, 35, 38, 0.8),
      rgba(30, 35, 38, 1)
    ),
    url(img/social-media.jpg);
  background-size: cover;
  height: 100vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center; /* Alineación horizontal */
}

.inicio .contenido-banner {
  padding: 20px;
  background-color: #1e2326;
  max-width: 550px;
  margin-top: 100px;
  border-radius: 40px;
  text-align: center;
}

.inicio .contenido-banner img {
  margin-top: 40px;
  border: 3px solid #4169e1;
  width: 80%;
  border-radius: 100%;
}

.inicio .contenido-banner h1 {
  margin-top: 40px;
  font-size: 30px;
  font-family: "Alata", sans-serif;
}

.inicio .contenido-banner h2 {
  font-size: 25px;
  font-weight: normal;
}

.inicio .contenido-banner .redes a {
  color: #fff;
  display: inline-block;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 100%;
  width: 42px;
  height: 42px;
  line-height: 42px;
  margin: 40px 5px;
  font-size: 20px;
  transition: 0.3s;
}

.inicio .contenido-banner .redes a:hover {
  background-color: #4169e1;
}

/*======= QUIEN =========*/

.quien {
  background-color: #1e2326;
  color: #fff;
  padding: 50px 20px;
}

.contenido-quien {
  max-width: 1600px;
  margin: 30px auto;
  text-align: justify;
}

.quien h2 {
  font-size: 4rem;
  font-family: "Alata", sans-serif;
  text-align: center;
  padding: 20px 0;
}
.quien h4 {
  font-size: 30px;
  margin-top: 40px;
  padding: 0 -10px;
}

/* Estilos para la fila y columnas */
.fila {
  display: flex;
  flex-wrap: wrap;
}

.col {
  width: 50%;
  box-sizing: border-box;
  padding: 0 15px;
}

.col h3 {
  font-size: 2vw;
  font-family: "Alata", sans-serif;
  margin-bottom: 2.5vw;
  text-align: center;
}

.col ul {
  list-style: none;
  padding-left: 0;
}

.col ul li {
  font-size: 20px;
  margin: 1.2vw 0;
}

.col ul li strong {
  display: inline-block;
  color: #91a8ee;
  width: 20%;
}

.col ul li span {
  background-color: #4169e1;
  padding: 0.5vw;
  font-weight: bold;
  border-radius: 5px;
}

/* Estilos para los intereses */
.contenedor-intereses {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around; /* Distribuye uniformemente los elementos en el contenedor */
  margin: 0 -1vw; /* Compensación para el margen negativo de los intereses */
}

.intereses {
  width: calc(
    25% - 2vw
  ); /* 25% del ancho del contenedor con un pequeño margen para evitar desbordamiento */
  max-width: 300px; /* Ancho máximo para evitar que los elementos se estiren demasiado en pantallas grandes */
  height: 150px;
  text-align: center;
  font-style: normal;
  background-color: #252a2e;
  border-radius: 10px;
  margin: 1vw; /* Margen entre los elementos */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.intereses:hover {
  background-color: #4169e1;
}

.intereses i {
  font-size: 200%;
  margin-bottom: 0.5vw; /* Margen inferior reducido */
}

/* Media queries */
@media (max-width: 900px) {
  .intereses {
    width: calc(50% - 2vw); /* Dos elementos por fila en pantallas medianas */
  }
  .col h3 {
    font-size: 3.5vw;
    font-family: "Alata", sans-serif;
    margin-bottom: 2.5vw;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .intereses {
    width: calc(
      100% - 2vw
    ); /* Ocupa el ancho completo del contenedor con un pequeño margen para evitar desbordamiento */
    margin: 1vw auto; /* Margen vertical arriba y abajo y centrado horizontalmente */
  }

  .col h3 {
    font-size: 3.5vw;
    font-family: "Alata", sans-serif;
    margin-bottom: 2.5vw;
    text-align: center;
  }
}

/* Estilos para el botón */
button {
  cursor: pointer;
  background-color: transparent;
  border: 2px solid #fff;
  width: fit-content;
  display: block;
  margin: 20px auto;
  padding: 10px 22px;
  font-size: 16px;
  color: #fff;
  position: relative;
  z-index: 10;
}

button .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #4169e1;
  z-index: -1;
  transition: 0.5s;
}

button:hover .overlay {
  width: 100%;
}

/* Estilos generales */
.skills {
  background-color: #252a2e;
  color: #fff;
  padding: 5% 5vw;
}

.skills .contenido-seccion {
  max-width: 100%;
  margin: 30px auto;
}

.skills h2 {
  font-size: 4rem;
  font-family: "Alata", sans-serif;
  text-align: center;
  padding: 2% 0;
}

/* Estilos para las habilidades */
.skills .fila {
  display: flex;
  flex-wrap: wrap;
}
.skills .fila .col {
  width: 50%;
  padding: 0 2%;
}
.skills .fila .col h3 {
  font-size: 2.2rem;
  font-family: "Alata", sans-serif;
  margin-bottom: 2vw;
}
.skills .skill > span {
  font-size: 1.5em;
  display: block;
  margin-bottom: 1vw;
}
.skills .skill .barra-skill {
  height: 0.8vw;
  width: 100%;
  background-color: #131517;
  position: relative;
  margin-bottom: 2vw;
}
.skills .skill .progreso {
  background-image: linear-gradient(to right, #ff0000, #00ff15);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}
.skills .skill .barra-skill span {
  position: absolute;
  height: 3vw;
  width: 3vw;
  background-color: #4169e1;
  border-radius: 50%;
  line-height: 3vw;
  text-align: center;
  top: -1vw;
  right: -1.5vw;
}
/* Media queries */
@media (max-width: 700px) {
  .skills .fila .col {
    width: 100%;
    padding: 0;
  }
}
/* Animaciones */
.skills .skill .edicion {
  width: 0%;
  animation: 2s edicion forwards;
}
@keyframes edicion {
  0% {
    width: 0%;
  }
  100% {
    width: 80%;
  }
}
.skills .skill .javascript {
  width: 0%;
  animation: 2s javascript forwards;
}
@keyframes javascript {
  0% {
    width: 0%;
  }
  100% {
    width: 50%;
  }
}
.skills .skill .copy {
  width: 0%;
  animation: 2s copy forwards;
}
@keyframes copy {
  0% {
    width: 0%;
  }
  100% {
    width: 60%;
  }
}
.skills .skill .equipo {
  width: 0%;
  animation: 2s equipo forwards;
}
@keyframes equipo {
  0% {
    width: 0%;
  }
  100% {
    width: 90%;
  }
}
.skills .skill .innovacion {
  width: 0%;
  animation: 2s innovacion forwards;
}
@keyframes innovacion {
  0% {
    width: 0%;
  }
  100% {
    width: 95%;
  }
}
.skills .skill .atencion {
  width: 0%;
  animation: 2s atencion forwards;
}
@keyframes atencion {
  0% {
    width: 0%;
  }
  100% {
    width: 85%;
  }
}

/* Historias */
.historia {
  background-color: #1e2326;
  color: #fff;
  width: 100%;
  overflow-x: hidden;
}

.historia h2 {
  font-size: 4rem;
  font-family: "Alata", sans-serif;
  text-align: center;
  padding: 0 10px;
  margin-top: 100px;
  margin-bottom: 50px;
}
.historia h3 {
  font-size: 40px;
  text-align: center;
}
.historia h4 {
  font-size: 30px;
  padding: 0 100px;
  margin-bottom: -80px;
}
.historia .col {
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 16px;
  text-align: justify;
}
.historia .contenido-seccion p {
  padding: 100px;
  font-size: 1.5em;
}

.historia .contenedor-intereses {
  width: calc(50% - 10px);
  margin-bottom: 10px;
  float: left;
  margin-left: 10px;
  box-sizing: border-box;
  padding: 5px;
}

.historia .contenedor-intereses a {
  font-size: 40px;
  display: block;
  text-align: center;
  text-decoration: none;
}

/* Media query para pantallas con un ancho máximo de 700px */
@media (max-width: 700px) {
  .historia {
    overflow-x: hidden;
  }
  .historia .contenido-seccion h4 {
    padding: 25px;
    font-size: 1.4em;
  }

  .historia .contenido-seccion p {
    padding: 10px;
    font-size: 1.5em;
    margin-top: 80px;
    margin-bottom: 20px;
  }

  .historia .contenedor-intereses {
    width: calc(50% - 8px);
    margin: auto;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .historia .contenedor-intereses a {
    font-size: 80%; /* Disminuir el tamaño de la fuente al 80% */
  }

  .historia h3 {
    font-size: 24px; /* Disminuir el tamaño del título */
  }
}
/* Media query para pantallas con un ancho mínimo de 1000px */
@media (min-width: 1269px) {
  .historia .contenedor-intereses {
    width: calc(
      25% - 10px
    ); /* Establece el ancho a 33.33% para tres columnas y resta el margen */
  }
}

.historia .contenido-seccion .contenedor-intereses .seguridad {
  width: 400px;
  height: 300px;
  font-size: 35px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 20px;
  background: linear-gradient(rgba(28, 38, 47, 0.7), rgba(28, 38, 47, 0.7)),
    url("img/racoon.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  font-weight: bold;
  transition: transform 0.3s;
  transform: scale(1);
}

.historia .contenido-seccion .contenedor-intereses .seguridad:hover {
  background: linear-gradient(rgba(0, 136, 255, 0.7), rgba(0, 136, 255, 0.7)),
    url("img/racoon.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  transform: scale(1.1);
}

.historia .contenido-seccion .contenedor-intereses .citas {
  width: 400px;
  height: 300px;
  font-size: 35px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 20px;
  background: linear-gradient(rgba(28, 38, 47, 0.7), rgba(28, 38, 47, 0.7)),
    url("img/cita.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  font-weight: bold;
  transition: transform 0.3s;
  transform: scale(1);
}

.historia .contenido-seccion .contenedor-intereses .citas:hover {
  background: linear-gradient(rgba(0, 136, 255, 0.7), rgba(0, 136, 255, 0.7)),
    url("img/cita.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  transform: scale(1.1);
}
.historia .contenido-seccion .contenedor-intereses .paginas {
  width: 400px;
  height: 300px;
  font-size: 35px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 20px;
  background: linear-gradient(rgba(28, 38, 47, 0.7), rgba(28, 38, 47, 0.7)),
    url("img/webpage.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  font-weight: bold;
  transition: transform 0.3s;
  transform: scale(1);
}
.historia .contenido-seccion .contenedor-intereses .paginas:hover {
  background: linear-gradient(rgba(0, 136, 255, 0.7), rgba(0, 136, 255, 0.7)),
    url("img/webpage.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  transform: scale(1.1);
}
.historia .contenido-seccion .contenedor-intereses .empleo {
  width: 400px;
  height: 300px;
  font-size: 35px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 20px;
  background: linear-gradient(rgba(28, 38, 47, 0.7), rgba(28, 38, 47, 0.7)),
    url("img/fila.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  font-weight: bold;
  transition: transform 0.3s;
  transform: scale(1);
}
.historia .contenido-seccion .contenedor-intereses .empleo:hover {
  background: linear-gradient(rgba(0, 136, 255, 0.7), rgba(0, 136, 255, 0.7)),
    url("img/fila.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  transform: scale(1.1);
}

/* TRABAJOS */
.trabajos {
  background-color: #252a2e;
  color: #fff;
  padding: 50px 20px;
}
.trabajos .contenido-seccion {
  zoom: 1.5;
  max-width: 1100px;
  margin: 30px auto;
}
.trabajos h2,
.trabajos h3,
.trabajos p {
  font-family: "Alata", sans-serif;
  text-align: center;
  padding: 20px 0;
}
.trabajos h2 {
  font-size: 3rem;
}
.trabajos h3 {
  font-size: 18px;
  font-style: italic;
}
.trabajos p {
  font-size: 16px;
}

/* VIDEO */
.galeria-video,
.videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.galeria-video {
  gap: 10px;
}
.video-container {
  position: relative;
  width: calc(50% - 10px);
  margin: 5px;
}
.videos video {
  width: 100%;
  height: auto;
}

/* Estilos para el botón de reproducción */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10%;
  height: auto;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(28, 182, 152, 0.1),
    rgba(0, 162, 255, 0.7)
  );
  transition: opacity 0.3s ease;
}
.play-button:hover {
  background-color: rgba(0, 0, 0, 0.5);
}
.fa-circle-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6vw;
  color: #4169e1;
}


/*========== PROGRAMACION WEB ==========*/

.programacion-web {
  margin-top: 40px;
}

.programacion-web h3 {
  font-size: 0.9rem;
  font-style: normal;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.programacion-web h3 i {
  font-size: 1.5rem;
  color: #ffffff;
}

.web-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.web-card {
  background-color: #252a2e;
  border-radius: 8px;
  width: calc(25% - 20px); /* 4 cajas en una fila con espacio */
  min-width: 200px;
  max-width: 250px;
  text-align: center;
  padding: 15px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.web-card img {
  width: 50%;
  height: auto;
  border-radius: 4px;
}

.web-card:hover {
  background-color: #4169e1;
  transform: translateY(-5px);
}

.web-card:hover img {
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .web-card {
    width: calc(50% - 20px); /* 2 cajas por fila en pantallas medianas */
  }
}

@media (max-width: 600px) {
  .web-card {
    width: 100%; /* 1 caja por fila en pantallas pequeñas */
  }
}


/*========== FOTO ==========*/
/* Variables para controlar la animación */
:root {
  --slide-gap: 10px;                /* Espacio entre slides */
  --animation-duration-desktop: 30s;  /* Aumenta velocidad reduciendo duración */
  --animation-duration-md: 25s;       /* Pantallas medianas */
  --animation-duration-sm: 10s;       /* Móviles */
  --animation-duration-xs: 8s;        /* Móviles muy pequeños */
}

/* Contenedor de la sección de foto */
.foto {
  padding: 40px 0;
  background-color: #252a2e;
  color: #fff;
  text-align: center;
}

.foto p {
  font-size: 1rem;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Contenedor visible del carrusel */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Pista que contiene las imágenes y su duplicado */
.slide-track {
  display: flex;
  gap: var(--slide-gap);
  align-items: center;
  width: 200%; /* Duplicamos las imágenes para el bucle infinito */
  animation: scroll var(--animation-duration-desktop) linear infinite;
}

/* Duplicamos el contenido para efecto infinito */
.slide-track::before {
  content: "";
  display: block;
  width: 100%;
}

/* Cada “slide” */
.slide {
  flex: 0 0 auto;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #111;
}

.slide img {
  display: block;
  width: auto;      /* Ancho de imagen autónomo */
  height: 100%;     /* Altura fija según slide */
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Efecto hover sobre la imagen */
.slide img:hover {
  transform: scale(1.05);
}

/* Pausar animación al pasar el cursor */
.carousel-container:hover .slide-track {
  animation-play-state: paused;
}

/* Animación keyframes: desplazamiento hacia la izquierda al 50% del contenedor */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =============================
   LAYOUT RESPONSIVE
   ============================= */
/* Pantallas medianas (hasta 1024px): Duración ajustada */
@media (max-width: 1024px) {
  .slide-track {
    animation-duration: var(--animation-duration-md);
  }
  .slide {
    height: 160px;
  }
}

/* En móviles (hasta 600px): Duración más rápida */
@media (max-width: 600px) {
  .slide-track {
    animation-duration: var(--animation-duration-sm);
  }
  .slide {
    height: 120px;
  }
}

/* En móviles muy pequeños (hasta 400px): Ajuste final */
@media (max-width: 400px) {
  .slide-track {
    animation-duration: var(--animation-duration-xs);
  }
  .slide {
    height: 100px;
  }
}




/*contacto*/
.contacto {
  background: linear-gradient(
      to top,
      rgba(30, 35, 38, 0.8),
      rgba(30, 35, 38, 1)
    ),
    url(img/contactBG.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  color: #fff;
  display: flex;
  align-items: center;
}
.contacto .contenido-seccion {
  margin-top: 50px;
  max-width: 1700px;
}
.contacto h2 {
  font-size: 4rem;
  font-family: "Alata", sans-serif;
  text-align: center;
  padding: 20px 0;
}
.contacto .fila {
  display: flex;
  justify-content: center;
}
.contacto form {
  display: flex;
  flex-direction: column;
}
.contacto form input,
.contacto form textarea {
  width: 60%;
}
.contacto .col {
  width: 50%;
  padding: 10px;
  position: relative;
}
.contacto .col input,
.contacto .col textarea {
  display: block;
  width: calc(100% - 24px);
  padding: 8px;
  border: none;
  margin-bottom: 10px;
  background-color: #252a2e;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 0 3px #4169e1;
}

.contacto button {
  cursor: pointer;
  background-color: transparent;
  border: 2px solid #fff;
  width: fit-content;
  display: block;
  margin: 20px auto;
  padding: 10px 22px;
  font-size: 16px;
  color: #fff;
  position: relative;
  z-index: 10;
}
.contacto button .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #4169e1;
  z-index: -1;
  transition: 0.2s;
}
.contacto button:hover .overlay {
  width: 100%;
}
.contacto .col img {
  width: 100%;
}
@media (min-width: 768px) {
  .contacto .col {
    width: 30%;
  }
}

/*Footer*/
.footer {
  background-color: #131517;
  color: #fff;
  font-size: 10px;
}
.footer .copyright {
  display: flex;
  justify-content: space-between; /* Distribuye el espacio entre las columnas */
}

.footer .copyright p {
  margin: 20px 100px;
  width: calc(
    33.33% - 10px
  ); /* Ancho de cada columna, restando el espacio entre ellas */
  margin-right: 10px; /* Espacio entre las columnas */
}

/*RESPONSIVE*/

@media screen and (max-width: 900px) {
  /* Ocultar el menú de navegación principal en pantallas pequeñas */
  nav {
    display: none;
  }
  /* Mostrar el icono del menú en pantallas pequeñas */
  .nav-responsive {
    display: block;
  }
  /* Ajustar el estilo del menú desplegable */
  nav.responsive {
    display: block;
    position: absolute;
    right: 0;
    top: 75px;
    background-color: #252a2e;
    width: 180px;
  }
  nav.responsive ul {
    display: block !important;
    margin: 0;
    padding: 0;
  }
  nav.responsive ul li {
    border-bottom: 1px solid #fff;
    padding: 10px;
    text-align: center;
  }

  .galeria-video {
    display: block; /* Cambia el display a bloque para que los videos aparezcan uno debajo del otro */
    text-align: center; /* Centra los videos en la pantalla */
    width: 100%; /* Ajusta el ancho al 100% del contenedor */
  }

  .video-container {
    width: 100%; /* Opcional: haz que el contenedor de video ocupe todo el ancho disponible */
    margin: 5px auto; /* Centra el contenedor de video */
  }
}

@media screen and (max-width: 700px) {
  /* Ajustes para la sección de contacto */
  .contacto .fila {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contacto .col {
    width: 80%;
    text-align: center;
  }

  .contacto .col input,
  .contacto .col textarea {
    width: 100%;
  }

  .contacto .col button {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  /* Ajustes adicionales para pantallas más pequeñas */
  .footer {
    text-align: center;
  }
  .copyright {
    font-size: 12px;
  }
}

@media screen and (max-width: 600px) {
  /* Ocultar completamente el pie de página en pantallas muy pequeñas */
  .footer {
    display: none;
  }
}
@media screen and (max-width: 900px) {
  .inicio .contenido-banner {
    scale: 90%;
    margin-top: 100px;
  }
}
