@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato/Lato-Bold.ttf') format('truetype'),
 
}

* {
  box-sizing: inherit;
}
*:before, *:after {
  box-sizing: inherit;
}
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
body {
  justify-content: center;
  align-items: center;
  background-color: #000;
  position: relative;
}
body:before {
  position: absolute;
  inset: 40% -60% 0 -60%;
  opacity: 0.3;
  pointer-events: none;
}

/* logo - imagen-container */
  .logo{
    width: 80%;
    padding: 2px 0;
    text-align: center;
    display: block;
    margin: 0 auto;
  }

  .image-container {
    position: relative;
    width: 80%; /* Ajusta al tamaño real de tus imágenes */
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Evita que se desborde contenido */
    margin: 0 auto;
}

.image-container img {
  position: absolute;
  text-align: center;
  margin: 0 auto;
  width: 100%;
  height: auto; /* Mantiene la proporción */
  object-fit: cover; /* Ajusta la imagen para llenar el contenedor */
}

.hidden {
    opacity: 0;
}
.hidden1 {
  opacity: 0;
}
.hidden2 {
  opacity: 0;
}
.image-container2 {
  display: none;
}

.image-container3 {
  position: relative;
  width: 100%; /* Ajusta al tamaño real de tus imágenes */
  height: 45%; /* Mantiene la proporción */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Evita que se desborde contenido */
  margin: 0 auto;
}

.image-container3 img {
position: absolute;
text-align: center;
margin: 0 auto;
width: 100%;
height: auto; /* Mantiene la proporción */
object-fit: cover; /* Ajusta la imagen para llenar el contenedor */
}
/*Fin de logo - imagen-container */

/* Menu principal*/
nav {
  /* font-family: 'Bebas Neue', sans-serif; */
  width: 97%;
  position: relative;
  z-index: 1;
  margin-top: 10px;
} 

nav ul {
  margin: 0 auto;
  padding-bottom: 20px;
  list-style: none;
  justify-content: center;
  display: flex;
  gap: 20px;
} 
.ui-btn {
  box-sizing: border-box;
  text-transform: uppercase;
  text-shadow: 0 0 5px #0444ff, 0 0 10px #001b7a;
  animation: flicker 1.5s infinite alternate;
  padding: 10px 10px; 
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  font-style: normal;
  font-display: swap; /* Asegura el mismo comportamiento que Google Fonts */
  background: #000;
  border: 3px ridge #149CEA;
  cursor: pointer;
  white-space: nowrap;
  transition: .3s;
  box-shadow: 0 0 6px #0444ff, 0 0 7px rgba(4, 68, 255, 0.7), 0 0 8px rgba(2, 39, 165, 0.9);    
}
.ui-btn2 {
  box-sizing: border-box;
  text-transform: uppercase;
  text-shadow: 0 0 5px #0444ff, 0 0 10px #001b7a;
  animation: flicker 1.5s infinite alternate;
   padding: 10px; 
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  background: #000;
  border: 3px ridge #149CEA;
  cursor: pointer;
  transition: .3s;
  box-shadow: 0 0 5px #0444ff, 0 0 6px rgba(4, 68, 255, 0.7), 0 0 7px rgba(2, 39, 165, 0.9);    
}
 .ui-btn span {
  letter-spacing: .1rem;
  transition: .3s;
  box-sizing: border-box;
  position: relative;
  animation: flicker 1.5s infinite alternate;
  background: inherit;
}
.ui-btn2 span {
  letter-spacing: .1rem;
  transition: .3s;
  box-sizing: border-box;
  position: relative;
  animation: flicker 1.5s infinite alternate;
  background: inherit;
} 
.ui-btn span::before {
  box-sizing: border-box;
  position: absolute;
  content: "";
  background: inherit;
  animation: flicker 1.5s infinite alternate;
}
.ui-btn2 span::before {
  box-sizing: border-box;
  position: absolute;
  content: "";
  background: inherit;
  animation: flicker 1.5s infinite alternate;
}
.ui-btn:hover, .ui-btn:focus {
  background: #000;
}
.ui-btn2:hover, .ui-btn2:focus {
  background: #000;
}

.ui-btn:hover span, .ui-btn:focus span {
  color: #fff;
}
.ui-btn2:hover span, .ui-btn2:focus span {
  color: #fff;
}
.ui-btn:hover span::before, .ui-btn:focus span::before {
  animation: chitchat linear both 1.2s;
}
.ui-btn2:hover span::before, .ui-btn2:focus span::before {
  animation: chitchat2 linear both 1.2s;
}
.button {
  width: 8em;
  position: relative;
  height: 2.5em;
  border: 3px ridge #149CEA;
  outline: none;
  background-color: transparent;
  color: white;
  transition: 1s;
  border-radius: 0.3em;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
.button::after {
  content: "";
  position: absolute;
  top: -15px;
  left: 3%;
  width: 95%;
  height: 50%;
  background-color: #000;
  transition: 0.5s;
  transform-origin: center;
}
.button::before {
  content: "";
  transform-origin: center;
  position: absolute;
  top: 80%;
  left: 3%;
  width: 95%;
  height: 50%;
  background-color: #000;
  transition: 0.5s;
}
.button:hover::before, .button:hover::after {
  transform: scale(0)
}

.button:hover {
  box-shadow: inset 0px 0px 25px #1479EA;
  box-shadow: 0 0 15px #0444ff, 0 0 20px rgba(4, 68, 255, 0.7), 0 0 25px rgba(2, 39, 165, 0.9);    
}
/* Ocultar pseudo-elementos cuando el botón tiene la clase .active */
.button.active::before,
.button.active::after {
    display: none;
  transition: 3s;
}
.button.active{
  box-shadow: 0 0 10px #0444ff, 0 0 12px rgba(4, 68, 255, 0.7), 0 0 15px rgba(2, 39, 165, 0.9);    
}

@keyframes chitchat {
  0% {content: "#";}
  5% {content: ".(";}
  10% {content: "^{*";}
  15% {content: "-!/";}
  20% {content: "#$_3";}
  25% {content: "№:0/";}
  30% {content: "#{+.$";}
  35% {content: "@}-?+";}
  40% {content: "?{4@=%";}
  45% {content: "=.,^!#+";}
  50% {content: "?2@!%";}
  55% {content: "\";1}]";}
  60% {content: "?{%7:%";right: 0;}
  65% {content: "|{f/[4";right: 0;}
  70% {content: "{4%0)%";right: 0;}
  75% {content: "'1_0?<";right: 0;}
  80% {content: "{0%#";right: 0;}
  85% {content: "]>'¡";right: 0;}
  90% {content: "4/";right: 0;}
  95% {content: "2";right: 0;}
  100% {content: "";right: 0;}
}
@keyframes chitchat2 {
  0% {content: "#";}
  5% {content: ".";}
  10% {content: "^{";}
  15% {content: "-!";}
  20% {content: "#$_";}
  25% {content: "№:0";}
  30% {content: "#{+.";}
  35% {content: "@}-?";}
  40% {content: "?{4@";}
  45% {content: "=.,^";}
  50% {content: "?2@";}
  55% {content: "\;1}";}
  60% {content: "?{%:";right: 0;}
  65% {content: "|{f[";right: 0;}
  70% {content: "{4%0";right: 0;}
  75% {content: "'1_0";right: 0;}
  80% {content: "{0%";right: 0;}
  85% {content: "]>'";right: 0;}
  90% {content: "4";right: 0;}
  95% {content: "2";right: 0;}
  100% {content: "";right: 0;}
}
@keyframes flicker {
  0% { text-shadow: 0 0 5px #29b3d8, 0 0 10px #29b3d8, 0 0 20px #01588e; }
  50% { text-shadow: 0 0 8px #29b3d8, 0 0 18px #01588e, 0 0 30px rgba(1, 88, 142, 0.9); }
  100% { text-shadow: 0 0 5px #29b3d8, 0 0 10px #29b3d8, 0 0 20px #01588e; }
}

/* Fin del Menu principal */

/* section / contenedor principal */
.section {
  position: relative;
  overflow: hidden;
  padding: 20px;
  margin: 20px auto;
  margin-top: 32px;
  width: 60%;
  height: 100%;
  color: #fff; /* Texto azul neón */
  font-family: 'Lato', sans-serif;
  font-style: normal;
  font-display: swap; /* Asegura el mismo comportamiento que Google Fonts */
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 0 5px #0444ff, 0 0 10px #001b7a;
  border: 2px solid #0444ff;
  border-radius: 5px 5px 37px 5px;
  box-shadow: 0 0 15px #0444ff, 0 0 30px rgba(4, 68, 255, 0.7), 0 0 40px rgba(2, 39, 165, 0.9);    
  animation: flicker 1.5s infinite alternate;
  min-width: none;
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(1, 25, 50, 0.6); /* Fondo semi-transparente para mejorar legibilidad */
  z-index: -1;
}
.section-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: -1;
 /* object-position: center bottom;  Centrada en la parte inferior */}

  .section-background2 {
    display: none;
  }
.botaso{
  position: absolute;
  top: -1px;
  left: -1px;
  font-family: 'Lato', sans-serif;
  padding-left: 10px;
  padding-right: 25px;
  -webkit-clip-path: polygon(0 0,0 0,100% 0,100% 0,100% calc(100% - 15px),calc(100% - 15px) 100%,15px 100%,0 100%);
  clip-path: polygon(0 0,0 0,100% 0,100% 0,100% calc(100% - 15px),calc(100% - 15px) 100%,15px 100%,0 100%);
  height: 40px;
  width: 35%;
  line-height: 14px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1.5px;
  transition: .2s .1s;
  background: linear-gradient(20deg,  rgba(4, 68, 255, 0.5), rgba(4, 68, 255, 0.4));
  overflow: hidden;
  border: none; 
  margin-bottom: 10px;
}
/* Línea de escaneo */
.scan-line {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(41, 179, 216, 0.7);
  box-shadow: 0 0 10px #29b3d8, 0 0 20px #01588e;
  animation: scanMove 4s infinite linear;
}

@keyframes scanMove {
  0% { top: -10%; opacity: 0.2; }
  50% { opacity: 0.3; }
  100% { top: 110%; opacity: 0.2; }
}

/* Partículas flotantes */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #29b3d8; /* Azul neón */
  border-radius: 50%;
  opacity: 0.4;
}

@keyframes floatParticlesA {
  0% { transform: translateY(0) translateX(0) scale(0.9); opacity: 0.4; }
  50% { transform: translateY(-20px) translateX(15px) scale(1.1); opacity: 0.6; }
  100% { transform: translateY(-40px) translateX(-10px) scale(0.8); opacity: 0.4; }
}

/* Animación de viento y profundidad (efecto B - inverso) */
@keyframes floatParticlesB {
  0% { transform: translateY(0) translateX(0) scale(1.1); opacity: 0.5; }
  50% { transform: translateY(-10px) translateX(-20px) scale(1.3); opacity: 0.7; }
  100% { transform: translateY(-30px) translateX(10px) scale(1.0); opacity: 0.5; }
}
/*Fin section / contenedor principal */

/* Seccion Home */
.contenthome{
  display: flex;
  margin-top: 15px;
    align-items: center; /* Alinea verticalmente al centro */
    gap: 20px; /* Espacio entre la imagen y el texto */
}
.gifardo{
  float: left;
  margin-bottom: 1px;
  width: 140px;
  margin-top: 30px;
  margin-left: 30px;
  margin-right: 30px;
  height: auto;
  border-radius: 5px;
  text-shadow: 0 0 5px #0444ff, 0 0 10px #001b7a;
  border: 2px solid #0444ff;
  box-shadow: 0 0 10px #0444ff, 0 0 20px rgba(4, 68, 255, 0.7), 0 0 50px rgba(2, 39, 165, 0.9);    
  animation: flicker 1.5s infinite alternate;
}
#home p{
  font-size: 1rem;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 25px;
}
.cta-button {
  background-color: #0444ff;
  font-size: 1rem;
  color: #fff;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  background-color: rgba(4, 68, 255, 0.8); /* Fondo más brillante */
  color: #fff; /* Texto blanco */
  border: 1.5px solid #00ffff; /* Borde neon */
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff; /* Resplandor neon en el texto */
  border-radius: 3px;
  margin-bottom: 40px;
}
.cta-button:hover {
  transform: scale(1.05); /* Efecto de escala para un ligero agrandamiento */
  box-shadow: 0 0 10px #0444ff, 0 0 20px #00ffff; /* Sombra neon */
  transition: all 0.3s ease;
}
/* Fin de section Home */

/* Creamos un contenedor para el contenido desplazable */
#portfolio .portfolio-container {
  max-height: 400px;   /* Ajusta según el espacio que quieras */
  overflow-y: auto;    /* Barra lateral solo para los proyectos */
  overflow-x: hidden;
  margin-top: -10px;
  padding-top: 20px;
  margin-bottom: 10px;
  margin-right: 3%;
  padding-right: 1px; /* Espacio para que no tape la barra */
}

/* Opcional: mejorar la estética de la barra de scroll */
#portfolio .portfolio-container::-webkit-scrollbar {
  width: 8px;
}
#portfolio .portfolio-container::-webkit-scrollbar-thumb {
  background-color: rgba(4, 68, 255, 0.7);
  border-radius: 4px;
}
#portfolio .portfolio-container::-webkit-scrollbar-track {
  background: transparent;
}
/* Scrollbar personalizada para portfolio */
#portfolio .portfolio-container::-webkit-scrollbar {
  width: 10px; /* ancho de la barra */
}

#portfolio .portfolio-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0444ff, #29b3d8); /* degradado azul */
  border-radius: 5px;
  box-shadow: 0 0 8px #0444ff, 0 0 15px rgba(4, 68, 255, 0.8); /* sombra neón */
}

#portfolio .portfolio-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #29b3d8, #00ffff); /* degradado más brillante */
  box-shadow: 0 0 10px #00ffff, 0 0 20px rgba(0, 255, 255, 0.9);
}

#portfolio .portfolio-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4); /* fondo oscuro */
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(4, 68, 255, 0.5); /* sombra interna */
}

/* Firefox */
#portfolio .portfolio-container {
  scrollbar-width: thin;
  scrollbar-color: #0444ff rgba(0, 0, 0, 0.4);
}

/* Formulario de contacto */
#contact-form {
  max-width: 350px;
  margin: 0 auto;
  text-align: left;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff; /* Resplandor neon en el texto */
  margin-top: 40px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #29b3d8;
  background-color: rgba(1, 25, 50, 0.6);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  text-shadow: 0 0 5px #2fc8f3, 0 0 10px #01588e;
  transition: all 0.3s ease;
  border-radius: 1px;
  font-weight: bold;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #fff;
  opacity: 0.7;
}

#contact-form textarea {
height: 85px;
}
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: #01588e;
  box-shadow: 0 0 10px #29b3d8, 0 0 20px #01588e;
}

#contact-form button {
  background-color: #29b3d8;
  color: #fff;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  border: 1px solid #29b3d8;
  background-color: rgba(1, 25, 50, 0.6);
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  text-shadow: 0 0 5px #29b3d8, 0 0 10px #01588e;
  transition: all 0.3s ease;
}

#contact-form button:hover {
  background-color: #01588e;
  color: #fff;
  box-shadow: 0 0 10px #29b3d8, 0 0 20px #01588e;
}
/*Fin del Formulario de contacto */


/* Contenedor de los enlaces sociales */
.social-links {
  display: flex;
  gap: 8px; /* Espacio entre los iconos */
  justify-content: flex-end; /* Mueve los iconos a la derecha */
  margin-right: 25px; /* Ajusta el margen derecho si es necesario */
}

/* Estilos para los iconos sociales */
.social-links a {
  color: #3667f9; /* Color base azul */
  font-size: 1rem; /* Tamaño de los iconos */
  text-decoration: none;
  transition: all 0.3s ease;
  background: linear-gradient(145deg, #2d60f9, #2e71f6); /* Degradado azul metalizado */
  -webkit-background-clip: text; /* Aplica el degradado al texto (icono) */
  background-clip: text;
  -webkit-text-fill-color: transparent; /* Hace el texto transparente para mostrar el degradado */
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff; /* Resplandor neon en el texto */
}

/* Efecto hover para los iconos */
.social-links a:hover {
  transform: scale(1.2); /* Escala ligeramente el icono */
  text-shadow: 0 0 10px rgba(4, 68, 255, 1), 0 0 20px rgba(4, 68, 255, 0.8); /* Aumenta el brillo al pasar el mouse */
}
/* Estilos para el modal-popup */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  text-shadow: 0 0 5px #0444ff, 0 0 10px #001b7a;
  border: 2px solid #0444ff;
  background-color:  rgba(100, 137, 249, 0.7); 
}

.modal-content {
  background-color: rgba(1, 25, 50, 0.9); /* Fondo azul oscuro */
  border: 2px solid #29b3d8;
  border-radius: 5px;
  box-shadow: 0 0 15px #29b3d8, 0 0 30px rgba(41, 179, 216, 0.7);
  margin: 15% auto;
  padding: 20px;
  width: 300px;
  text-align: center;
  color: #fff;
  font-family: 'Lato', sans-serif;
  animation: flicker 1.5s infinite alternate; /* Animación de parpadeo */
}

#modal-message {
  font-size: 1rem;
  margin-bottom: 15px;
}

#modal-close {
  background-color: #29b3d8;
  color: #fff;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 3px;
  margin-top: 10px;
  text-shadow: 0 0 5px #29b3d8, 0 0 10px #01588e; /* Efecto de resplandor neón en el texto */
  box-shadow: 0 0 10px #29b3d8, 0 0 20px rgba(41, 179, 216, 0.7); /* Sombra neón */
  transition: all 0.3s ease;
}

#modal-close:hover {
  background-color: #01588e; /* Cambia el color al hacer hover */
  box-shadow: 0 0 15px #29b3d8, 0 0 30px rgba(41, 179, 216, 0.9); /* Aumenta la sombra al hacer hover */
}

.whatsapp-button {
  position: fixed;
  bottom: 40px;
  right: 40px;
  color: white;
  font-size: 35px;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 10px #0444ff, 0 0 20px rgba(4, 68, 255, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3667f9; /* Color base azul */
  text-decoration: none;
  transition: all 0.3s ease;
  background: linear-gradient(145deg, #2d60f9, #2e71f6); /* Degradado azul metalizado */
  text-shadow: 0 0 10px #04bebe, 0 0 20px #05aeae; /* Resplandor neon en el texto */
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #0444ff, 0 0 30px rgba(4, 68, 255, 0.9);
}

/* Icono de WhatsApp */
.whatsapp-button i {
  color: white;
}

/* Efecto de radar */
.whatsapp-button .radar {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(4, 68, 255, 0.3); /* Color semitransparente */
  border-radius: 50%;
  animation: radarEffect 1.5s infinite;
  z-index: -1;
}

/* Estilos para el nuevo botón de WhatsApp dentro del section */
.whatsapp-button-section {
  position: absolute;
  bottom: 75px; /* Distancia desde el borde inferior */
  left: 45%; /* Centrado horizontal */
  color: white;
  font-size: 35px;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 10px #0444ff, 0 0 20px rgba(4, 68, 255, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3667f9;
  text-decoration: none;
  transition: all 0.3s ease;
  background: linear-gradient(145deg, #2d60f9, #2e71f6);
  text-shadow: 0 0 10px #04bebe, 0 0 20px #05aeae;
  display: none; /* Oculto por defecto */
}
/* Icono de WhatsApp */
.whatsapp-button-section i {
  color: white;
}
.whatsapp-button-section:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #0444ff, 0 0 30px rgba(4, 68, 255, 0.9);
}
.whatsapp-button-section .radar {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(4, 68, 255, 0.3); /* Color semitransparente */
  border-radius: 50%;
  animation: radarEffect 1.5s infinite;
  z-index: -1;
}
/* Mostrar el botón solo en pantallas menores a 480px */

@keyframes radarEffect {
  0% {transform: scale(1);opacity: 0.8;}
  100% {transform: scale(2.5);opacity: 0;}
}
/* Asegúrate de que el section-container tenga position: relative */

/* Estilo del select */
.language-select {
  position: absolute;
  top: 184px;
  right: 25%;
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
  width: 120px; /* Ancho del select */
  height: 40px;
  padding-left: 0px;
  font-size: 15px;
  border: 2px solid #0444ff;
  border-radius: 5px;
  background: linear-gradient(145deg, #2d60f9, #2e71f6); /* Degradado azul metalizado */
  color: #fff; /* Texto blanco */
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro */
  outline: none; /* Elimina el borde al seleccionar */
  transition: all 0.3s ease; /* Transición suave */
  appearance: none; /* Elimina el estilo predeterminado del select */
  -webkit-appearance: none; /* Para navegadores basados en WebKit */
  -moz-appearance: none; /* Para Firefox */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2329b3d8'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e"); /* Flecha personalizada */
  background-repeat: no-repeat;
  background-position: right 10px center; /* Posición de la flecha */
  background-size: 12px; /* Tamaño de la flecha */
  text-align: center; /* Centrar el texto */
  text-shadow: 0 0 3px #0444ff, 0 0 7px #001b7a;
  border: 2px solid #0444ff;
  border-radius: 5px;
  box-shadow: 0 0 15px #0444ff, 0 0 25px rgba(4, 68, 255, 0.7), 0 0 35px rgba(2, 39, 165, 0.9);    
  animation: flicker 1.5s infinite alternate;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Efecto hover */
#language-select:hover {
  transform: scale(1.05); /* Efecto de escala */
  box-shadow: 0 0 15px #0444ff, 0 0 30px rgba(4, 68, 255, 0.7), 0 0 40px rgba(2, 39, 165, 0.9);    
}



/* Estilo cuando el select está enfocado */
#language-select:focus {
  border: 2px solid #0444ff;
  box-shadow: 0 0 15px #0444ff, 0 0 30px rgba(4, 68, 255, 0.7), 0 0 40px rgba(2, 39, 165, 0.9);    
}

footer {
  color: #fff; /* Texto blanco */
  text-align: center; /* Centrar el texto */
  padding: 15px 0; /* Espaciado interno */
  font-family: 'Lato', sans-serif; /* Fuente consistente con el resto del sitio */
  position: relative; /* Para que quede fijo en la parte inferior si es necesario */
  bottom: 0;
  width: 100%;
}

footer .footer-content {
  max-width: 1200px; /* Ancho máximo del contenido */
  margin: 0 auto; /* Centrar el contenido */
  padding: 0 20px; /* Espaciado lateral */
}

footer p {
  margin: 0; /* Eliminar márgenes por defecto */
  font-size: 14px; /* Tamaño de fuente */
  line-height: 1.5; /* Espaciado entre líneas */
}

footer strong {
  color: #00bcd4; /* Color destacado para el enlace o nombre */
  font-weight: 700; /* Negrita */
}

footer a {
  color: #00bcd4; /* Color del enlace */
  text-decoration: none; /* Sin subrayado */
}

footer a:hover {
  text-decoration: underline; /* Subrayado al pasar el mouse */
}

/* Estilos para el contenedor del portfolio */
.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Espacio entre los proyectos */
  justify-content: center;
  margin-top: 20px;
}

/* Estilos para cada item del portfolio */
.portfolio-item {
  width: 300px; /* Ancho de cada proyecto */
  text-align: center;
  background-color: rgba(1, 25, 50, 0.6); /* Fondo semi-transparente */
  padding: 15px;
  border: 2px solid #0444ff;
  border-radius: 5px;
  box-shadow: 0 0 10px #0444ff, 0 0 20px rgba(4, 68, 255, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.portfolio-item:hover {
  transform: scale(1.05); /* Efecto de escala al pasar el mouse */
  box-shadow: 0 0 15px #0444ff, 0 0 30px rgba(4, 68, 255, 0.9);
}

/* Estilos para las imágenes del portfolio */
.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  border: 1px solid #29b3d8;
  transition: transform 0.3s ease;
}

.portfolio-item img:hover {
  transform: scale(1.1); /* Efecto de escala al pasar el mouse */
}

/* Estilos para la descripción del portfolio */
.portfolio-description {
  font-size: 0.9rem;
  text-transform: lowercase;
  color: #fff;
  margin-top: 10px;
  text-shadow: 0 0 5px #29b3d8, 0 0 10px #01588e;
}

.hacker-loader {
  position:absolute;
  min-width: 340px;
  max-width: 400px;
  width: 30%;
  height: 165px; 
  background-color: #000;
  border: 0.2em solid #0444ff;
  border-radius: 0.5em;
  padding: 1em;
  overflow: hidden;
  box-shadow: 0 0 20px #0444ff, 0 0 35px rgba(4, 68, 255, 0.7), 0 0 55px rgba(2, 39, 165, 0.9);    

}
.hacker-loader img{
  width: 100%;
}

.loader-text {
  text-align: center;
  margin-bottom: 1em;
}

.text-glitch {
  font-size: 1.5em;
  position: relative;
  display: inline-block;
  color: #fff; /* Texto azul neón */
  text-shadow: 0 0 5px #0444ff, 0 0 10px #001b7a;
  animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
  0% { text-shadow: 0 0 5px #29b3d8, 0 0 10px #01588e; }
  50% { text-shadow: 0 0 8px #29b3d8, 0 0 18px #01588e; }
  100% { text-shadow: 0 0 5px #29b3d8, 0 0 10px #01588e; }
}

.text-glitch::before,
.text-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0a0a0a;
  clip: rect(0, 0, 0, 0);
}

.text-glitch::before {
  left: -0.1em;
  text-shadow: 0.1em 0 #ff00ff;
  animation: glitch-effect 3s infinite linear alternate-reverse;
}

.text-glitch::after {
  left: 0.1em;
  text-shadow: -0.1em 0 #00ffff;
  animation: glitch-effect 2s infinite linear alternate-reverse;
}

.loader-bar {
  width: 100%;
  height: 0.5em;
  background-color: rgba(2, 39, 165, 0.9);
  border-radius: 0.25em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px #0444ff, 0 0 30px rgba(4, 68, 255, 0.7), 0 0 50px rgba(2, 39, 165, 0.9);
}
.bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #0444ff;
  text-shadow: 0 0 15px #0444ff, 0 0 30px rgba(4, 68, 255, 0.7), 0 0 50px rgba(2, 39, 165, 0.9);    
  animation: bar-fill-animation 2s infinite ease-in-out;
}

.bar-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,transparent,rgba(2, 39, 165, 0.9),transparent);
  background-size: 200% 200%;
  animation: bar-glitch-animation 2s infinite linear;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 0.2em;
  height: 0.2em;
  background-color: #0444ff;
  border-radius: 50%;
  opacity: 0;
  animation: particle-animation 2s infinite linear;
}

.particle:nth-child(1) {top: 10%;left: 10%;animation-delay: 0s;}
.particle:nth-child(2) {top: 30%;left: 60%;animation-delay: 0.5s;}
.particle:nth-child(3) {top: 70%;left: 30%;animation-delay: 1s;}
.particle:nth-child(4) {top: 90%;left: 90%;animation-delay: 1.5s;}
.particle:nth-child(5) {top: 50%;left: 50%;animation-delay: 2s;}

@keyframes glitch-effect {
  0% {clip: rect(42px, 9999px, 44px, 0);}
  5% {clip: rect(12px, 9999px, 59px, 0);}
  10% {clip: rect(48px, 9999px, 29px, 0);}
  15.0% {clip: rect(42px, 9999px, 73px, 0);}
  20% {clip: rect(63px, 9999px, 27px, 0);}
  25% {clip: rect(34px, 9999px, 55px, 0);}
  30.0% {clip: rect(86px, 9999px, 73px, 0);}
  35% {clip: rect(20px, 9999px, 20px, 0);}
  40% {clip: rect(26px, 9999px, 60px, 0);}
  45% {clip: rect(25px, 9999px, 66px, 0);}
  50% {clip: rect(57px, 9999px, 98px, 0);}
  55.0% {clip: rect(5px, 9999px, 46px, 0);}
  60.0% {clip: rect(82px, 9999px, 31px, 0);}
  65% {clip: rect(54px, 9999px, 27px, 0);}
  70% {clip: rect(28px, 9999px, 99px, 0);}
  75% {clip: rect(45px, 9999px, 69px, 0);}
  80% {clip: rect(23px, 9999px, 85px, 0);}
  85.0% {clip: rect(54px, 9999px, 84px, 0);}
  90% {clip: rect(45px, 9999px, 47px, 0);}
  95% {clip: rect(37px, 9999px, 20px, 0);}
  100% {clip: rect(4px, 9999px, 91px, 0);}
}

@keyframes bar-fill-animation {
  0%,
  100% {width: 0;}
  50% {width: 100%;}
}

@keyframes bar-glitch-animation {
  0% {background-position: 0 0;}
  100% {background-position: 200% 0;}
}

/* @keyframes particle-animation {
  0% {opacity: 0;transform: translate(0, 0);}
  50% {opacity: 1;}
  100% {opacity: 0;transform: translate(2em, 2em);}
} */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.preloader.hidden {
  display: none;
}


/* Media queries para pantallas muy grandes (más de 1600px) */


 
@media (min-width: 1200px) {
  
  /* Aumentar tamaño de los botones del menú */
   .ui-btn, .ui-btn2 {
    font-size: 18px;
    padding: 12px 15px;
  }
  
  /* Aumentar tamaño del section principal */
  .section {
    width: 60%;
    max-width: 1200px;
    padding: 30px;
    font-size: 20px!important;
  }
  
  /* Aumentar tamaño del GIF en la sección home */
  .gifardo {
    width: 180px;
    margin-top: 30px;
  }
  
  /* Aumentar tamaño de fuente en la sección home */
  #home p {
    padding: 1.2rem;
    line-height: 1.6;
    font-size: 20px;
  }
  
  /* Aumentar tamaño del formulario de contacto */
  #contact-form {
    max-width: 450px;
  }
  
  #contact-form input,
  #contact-form textarea,
  #contact-form button {
    font-size: 1rem;
    padding: 12px;
  }
  
  /* Aumentar tamaño de los iconos sociales */
  .social-links a {
    font-size: 1.2rem;
  }
  
  /* Ajustar el tamaño del logo */
  .logo {
    width: 70%;
    max-width: 800px;
  }
  
  .image-container{
    margin-bottom: 50px;
  }
  /* Aumentar tamaño del selector de idioma */
  .language-select {
    font-size: 17px;
    width: 140px;
    height: 45px;
    top: 225px;
  }
  
  /* Aumentar tamaño de los elementos del portfolio */
  .portfolio-item {
    width: 350px;
    padding: 20px;
  }
  
  .portfolio-description {
    font-size: 1rem;
  }
} 

@media (max-width: 1024px) {
nav {
  width: 96%; 
}
.section {
  width: 70%;
  height: auto;
  padding: 15px;
}
  
.logo{
  width: 100%;
}
  
.gifardo {
  width: 140px;
  margin-bottom: 10%;
}
  
.language-select {
  right: 20%;
  }
}

@media (max-width: 768px) {

nav {
  width: 94%; 
}
.section {
  width: 90%;
  }
.image-container {
  display: none;
}
.image-container2 {
  position: relative;
  width: 80%; /* Ajusta al tamaño real de tus imágenes */
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Evita que se desborde contenido */
  margin: 0 auto;
}

.image-container2 img {
  position: absolute;
  text-align: center;
  margin: 0 auto;
  width: 100%;
  height: auto; /* Mantiene la proporción */
  object-fit: cover; /* Ajusta la imagen para llenar el contenedor */
}

.language-select {
  right: 15%;
}
.whatsapp-button-section {
  display: flex; /* Mostrar el botón */
  bottom: 53px; /* Distancia desde el borde inferior */
}
  
.whatsapp-button {
  display: none; /* Ocultar el botón original */
}
}

@media (max-width: 480px) {
  
#portfolio .portfolio-container {
  max-height: 480px;   /* Ajusta según el espacio que quieras */
}
nav {
  width: 90%;   
}
nav ul {
  padding-bottom: 15px;
  gap: 8px;
} 
.button {
  width: 100%;
  position: relative;
  padding-left: 5px;
  padding-right: 5px;
  height: 3.5em;
  font-size: 12px;
}
#language-select {
  top: 180px;
}
.image-container {
  display: none;
}
.image-container2 {
  width: 100%; /* Asegura que el contenedor crezca */
}

.image-container2 img {
  width: 100%; /* Aumenta el tamaño más allá del 100% */
  height: auto; /* Mantiene la proporción */
}
  
.section {
  padding: 10px;
  box-shadow: 0 0 15px #0444ff, 0 0 30px rgba(4, 68, 255, 0.7), 0 0 35px rgba(2, 39, 165, 0.9);    
  width: 100%;
  border-radius: 5px 5px 34px 5px;
  padding-top: 35px;
}
.gifardo{
  box-shadow: 0 0 10px #0444ff, 0 0 20px rgba(4, 68, 255, 0.7), 0 0 40px rgba(2, 39, 165, 0.9);    
}

.section-background2 {
  display: block; 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: -1;
 /* object-position: center bottom;  Centrada en la parte inferior */
}
.section-background {
  display: none;
}
.social-links {
  margin-right: 20px; /* Ajusta el margen derecho si es necesario */
  margin-bottom: 7px;
}
.modal-content{
    /* Centrar el modal */
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.whatsapp-button-section {
  display: flex; /* Mostrar el botón */
  bottom: 75px; /* Distancia desde el borde inferior */
}

.whatsapp-button {
  display: none; /* Ocultar el botón original */
}
.language-select {
right: 10%;
top: 160px;
}

.contenthome {
  display: block; /* Cambiamos a bloque para que el texto fluya alrededor del GIF */
}

.gifardo {
  float: left; 
  margin-right: 15px; 
  width: 125px;
  margin-bottom: 10px;
}
.texthome{
margin-left: 20px;
}
.contenttext {
  overflow: hidden; /* Evita que el texto se solape con el GIF */
}

.contenttext p {
  font-size: 0.9rem; /* Reducir el tamaño del texto si es necesario */
  line-height: 1.4; /* Ajustar el interlineado */
  margin-top: 0; /* Eliminar margen superior para alinear con el GIF */
}

.cta-button {
  text-align: center; /* Centrar el texto del botón */
  margin-top: 10px;
  margin-left: 20px; /* Espacio entre el texto y el botón */
  clear: both; /* Asegurar que el botón esté debajo del texto y el GIF */
}
.botaso{
width: 50%;
}
#contact-form button {
  margin-top: 10px;
  margin-bottom: 20px;
}
}