/* Texto debajo de la bandera para cambio de idioma en header */
.header-lang-text {
  font-size: 0.85rem;
  font-weight: 400;
  color: #00e5ff;
  margin-top: 0.15rem;
  text-align: center;
}
/*EGTech*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* Utilidades */
.d-none { display: none !important; }

/* Alertas superiores coherentes con el estilo oscuro/cian */
.alert-top {
  display: none; /* visible con .is-show */
  margin: 0 0 16px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.08);
  color: #e0fbff;
  border: 1px solid #00e5ff;
  font-weight: 600;
  text-align: left;
}
.alert-top.is-show { display: block; }
.alert-top.is-error {
  background: rgba(255, 77, 77, 0.1);
  border-color: #ff6b6b;
  color: #ffb3b3;
}
/* Estado de éxito */
.alert-top.is-success {
  background: rgba(0, 229, 255, 0.12);
  border-color: #00e5ff;
  color: #b9f7ff;
}

/* Ajuste pequeño para el widget de reCAPTCHA v2 */
.g-recaptcha { margin-top: 0.25rem; }

body {
  background-color: #0a0a0a;
  color: #f0f0f0;
  line-height: 1.6;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #121212;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  color: #00e5ff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #f0f0f0;
  transition: color 0.3s;
}

nav a:hover {
  color: #00e5ff;
}

#langBtn {
  background-color: transparent;
  color: #00e5ff;
  border: 1px solid #00e5ff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 1rem;
}

.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
              url("Imagenes/banner.png") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background-color: #00e5ff;
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #00bcd4;
}

section {
  padding: 4rem 1rem;
  text-align: center;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1200px; /* Limitador del con*/
  margin: 2rem auto; /*centrar*/
  gap: 2rem;
}

#servicios h2,
#contacto h2,
#nosotros h2,
#dtrabajo h2,
#video-section h2 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.service-card {
  background-color: #1c1c1c;
  padding: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-details {
  display: block;
  margin-top: 1rem;
  opacity: 1;
  max-height: none;
}


/*.service-details img {
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 10px;
}*/

form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 1rem;
  border: none;
  border-radius: 5px;
  background-color: #2c2c2c;
  color: #fff;
}

button[type="submit"] {
  background-color: #00e5ff;
  color: #000;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background-color: #00bcd4;
}

footer {
  background-color: #121212; /* puedes usar #111 si prefieres el otro */
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #aaa;
  margin-top: auto; /* esta es clave si el body es flex */
}


.nosotros-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}


.nosotros-card {
  flex: 1 1 220px;
  max-width: 240px;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

.dtrabajo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.dtrabajo-card {
  flex: 1 1 220px;
  max-width: 270px;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

.circular-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}
.circular-img2 {
  width: 230px;
  height: 230px;
  object-fit: cover;
  border-radius: 0%;
  margin-bottom: 10px;
}

/* Video */
.video-container {
  max-width: 1000px;
  margin: 0 auto;
}
#nosotros .service-details {
  display: block;
}


.sectores-info {
  padding: 4rem 1rem;
  /* No se pone background para que parezca "unida" a la página */
}

.sectores-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: row; /* Asegura alineación horizontal */
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.texto-sectores {
  flex: 1 1 60%;
  min-width: 300px;
  color: #f0f0f0;
}

.texto-sectores h2,
.texto-sectores h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  text-align: left;
}

.texto-sectores ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.texto-sectores li {
  margin-bottom: 0.5rem;
}

.texto-sectores p {
  text-align: left;
}

.imagen-sectores {
  flex: 1 1 35%;
  min-width: 250px;
  margin-top: 6.5rem; /*altura */
  margin-left: -26rem; /* po*/
}


.imagen-sectores img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}


.contacto-section {
  padding: 4rem 1rem;
}

.contacto-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.formulario {
  flex: 1 1 45%;
  min-width: 300px;
}

.info-contacto {
  flex: 1 1 40%;
  min-width: 280px;
  color: #f0f0f0;
}

.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-contacto input,
.form-contacto textarea {
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #1c1c1c;
  color: #fff;
  font-size: 1rem;
}

.form-contacto input::placeholder,
.form-contacto textarea::placeholder {
  color: #aaa;
}

.form-contacto button {
  background-color: #00e5ff;
  color: #000;
  padding: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-contacto button:hover {
  background-color: #00bcd4;
}

textarea {
  resize: none;
  height: 150px;
}

.contact-info h4 {
  margin-top: 4.5rem; /* O más si deseas mayor separación */
}

.info-contacto h3 {
  margin-bottom: 1rem;
}

.select-pais {
  margin-top: 0.5rem;
}

#telefono {
  margin-bottom: 0rem;
  margin-top: 1.5rem;
}

#horario {
  list-style-position: inside;
  padding-left: 0;
  text-align: left;
  margin: 0;
}

#horario li {
  margin-bottom: 5px;
  padding-left: 1rem;
  text-indent: -1rem;
}
/*#########################################################################################################*/


.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.select-pais {
  width: 100%;
  max-width: 250px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #00eaff;
  font-size: 16px;
  text-align: center; /*Esto NO funcionará por sí solo en <select> */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
  text-align-last: center; /*Centrar texto */
}


.select-pais:hover {
  background-color: #ffffff;
  color: #000;
}

.select-pais:focus {
  box-shadow: 0 0 5px #00eaff;
}

/*#########################################################################################################*/


.horario-grid {
  display: flex !important;
  justify-content: flex-start;
  gap: 30px;               
  margin-top: 12px;
  flex-wrap: nowrap;
}
.columna-horario {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 8px; /*separar horario de titulo*/
  flex: 1;
  min-width: 200px;
}

.columna-horario li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 15px;
  color: #eee;
  margin-left: 55px;
}

.circulo {
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  display: inline-block;
  margin-right: 20px;
}


.correo-link {
  display: inline-block;
  margin-top: 0.1rem; /*espacio arriba */
  margin-bottom: 1.5rem;/*espacio abajo */
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
}

.correo-link:hover {
  color: #00bfff;
  text-decoration: none;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.contact-info .select-pais {
  margin-top: 0;
}

footer {
  background-color: #121212;
  padding: 2rem 1rem;
  color: #aaa;
  margin-top: auto;
}

.footer-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.instagram-link {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.instagram-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  margin-top: 8px; /* ← aquí ajustas cuánto lo quieres bajar */
  vertical-align: middle; /* asegura que no se desplace raro con el texto */
  transition: transform 0.3s;
}

.instagram-link:hover .instagram-icon {
  transform: scale(1.1);
}

.footer-text {
  margin: 0;
  font-size: 0.95rem;
}

.bandera-unica {
  width: 60px;
  height: auto;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}

.bandera-unica:hover {
  transform: scale(1.05);
}

/* ====== ADAPTACIÓN RESPONSIVA MÓVIL ===== */
@media (max-width: 768px) {
  .container, .sectores-container, .contacto-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    height: 60vh; /* Cambia de 100vh a 60vh */
  }
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .services,
  .nosotros-grid,
  .dtrabajo-grid {
    grid-template-columns: 1fr;
  }

  .imagen-sectores {
    margin: 2rem 0 0 0;
    flex: 1 1 100%;
  }

  .texto-sectores {
    flex: 1 1 100%;
  }

  .formulario,
  .info-contacto {
    flex: 1 1 100%;
    min-width: auto;
    text-align: center;
  }

  .form-contacto input,
  .form-contacto textarea,
  .form-contacto button {
    width: 100%;
  }

  .select-pais {
    max-width: 100%;
  }

  .columna-horario li {
    margin-left: 20px;
    justify-content: center;
  }

  .logo {
    font-size: 1.5rem;
    text-align: center;
  }
    header {
    padding: 0.5rem 0;
  }

  .container {
    flex-direction: column;
    gap: 0.3rem;
  }

  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    background-color: #1a1a1a;
    border: 1px solid #333;
  }

  #langBtn {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    margin: 0.5rem auto 0 auto;
    display: block;
  }

  .logo {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
  }

  .video-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Puedes bajarlo a 500 o 400 si lo quieres más chico */
    margin: 0 auto;
    padding-bottom: 65%; /* Esto controla la altura: menos porcentaje = más cuadrado */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  .formulario {
    flex: 1 1 100%;
    min-width: 90% !important;
  }

  .form-contacto input,
  .form-contacto textarea {
    font-size: 1rem;
    padding: 1.2rem;
  }
  

  .circulo {
    align-items: baseline;  /* ← esta es la clave */
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    margin-right: 24px; /* más separación a la izquierda */
    margin-top: 0px;     /* sube ligeramente el círculo */
    flex-shrink: 0;
  }

  #sectores h2 {
  font-size: 2.5rem;       /* Tamaño más controlado para móviles */
  line-height: 1.2;        /* Reduce la separación entre líneas */
  text-align: center;      /* Centra el texto */
  word-break: keep-all;    /* Evita romper palabras si no es necesario */
  hyphens: none;           /* Evita guiones automáticos */
  margin-bottom: 1rem;     /* Opcional: reduce espacio extra abajo */
  padding: 0 1rem;         /* Espacio interno para evitar que toque los bordes */
}

footer {
  padding: 1.2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

footer .instagram-link img {
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
  margin-left: -50px; /* Mueve el ícono más a la izquierda */
}

footer p {
  font-size: 0.8rem;
  line-height: 1.2;
}

.footer-content {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.instagram-link .instagram-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  margin-left: -50px; /* Mueve el ícono Font Awesome más a la izquierda */
}

  .footer-text {
    font-size: 0.75rem;
  }

  /* === OPTIMIZACIONES ESPECÍFICAS PARA CONTACTO EN MÓVIL === */
  
  .contacto-container {
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .info-contacto {
    order: 2; /* Coloca la info de contacto después del formulario */
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .formulario {
    order: 1; /* Coloca el formulario primero */
    width: 100%;
    max-width: 100%;
  }

  .select-pais {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    font-size: 14px;
    padding: 12px;
    text-align: center;
  }

  #telefono {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    text-align: center;
  }

  .correo-link {
    font-size: 0.95rem;
    text-align: center;
    display: block;
    margin: 0.5rem 0 1.5rem 0;
    word-break: break-all;
  }

  #titulo-horario {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
    text-align: center;
  }

  .horario-grid {
    flex-direction: column;
    gap: 15px;
    margin-top: 1rem;
    align-items: center;
  }

  .columna-horario {
    width: 100%;
    max-width: 280px;
    text-align: left;
    margin: 0;
  }

  .columna-horario li {
    margin-left: 0;
    padding-left: 15px;
    justify-content: flex-start;
    font-size: 14px;
    margin-bottom: 6px;
  }

  .circulo {
    margin-right: 18px;
    margin-top: 2px;
    width: 8px;
    height: 8px;
  }

  .contact-info {
    margin-bottom: 1rem;
  }

  .contact-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
  }

  /* === MEJORAS ADICIONALES PARA MÓVIL === */
  
  /* Mejor área táctil para el selector */
  .select-pais {
    min-height: 48px; /* Área táctil mínima recomendada */
    cursor: pointer;
  }

  /* Espaciado mejorado entre secciones */
  .info-contacto h3:first-of-type {
    margin-top: 0;
  }

  /* Evitar overflow horizontal */
  .contacto-section {
    overflow-x: hidden;
  }

  /* Texto más legible en pantallas pequeñas */
  .info-contacto p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  /* Asegurar que el contenido no se desborde */
  .info-contacto * {
    max-width: 100%;
    word-wrap: break-word;
  }


}
