 /* --- CSS COMPLETO CON MODAL DE REGISTRO --- */

/* BODY */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #1E3A5F;
  color: white;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  transition: 0.3s;
}

/* Animación en links de nav */
nav a:hover {
  color: #FFC107;
  transform: scale(1.1);
}

/* BOTÓN WHATSAPP */
.btn-whatsapp {
  background: #25D366;
  padding: 10px 15px;
  border-radius: 5px;
  color: white;
  text-decoration: none;
}

/* HERO */
.hero {


  background-size: cover;
  background-position: right center; /* 🔥 CAMBIO CLAVE */
  background-repeat: no-repeat;

  min-height: 40vh;
  display: flex;
  align-items: center;
  padding: 60px 50px;

  color: white;
}


.hero-text {
  max-width: 600px;
}

.hero-logo {
  width: 120px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 48px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 18px;
  margin: 20px 0;
  opacity: 0.9;
}

/* BOTONES HERO */
.hero-buttons a {
  display: inline-block;
  margin-right: 12px;
  padding: 14px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  vertical-align: middle;
}

/* AMARILLO */
.btn-yellow {
  background: linear-gradient(45deg, #FFC107, #ffda44);
  color: #000;
}

.btn-yellow:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,193,7,0.5);
}

/* VERDE */
.btn-green {
  background: linear-gradient(45deg, #25D366, #1ebe5d);
  color: white;
}

.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37,211,102,0.5);
}

/* AZUL */
.btn-blue {
  background: linear-gradient(45deg, #1E3A5F, #2b5c94);
  color: white;
}

.btn-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(30,58,95,0.5);
}

/* ICONOS EN BOTONES */
.hero-buttons a i {
  margin-right: 8px;
  vertical-align: middle;
}

/* SERVICIOS */
.services {
  padding: 30px 40px;
  text-align: center;
}

.services-intro {
  font-size: 18px;
  color: #1E3A5F;
  margin-bottom: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.card h3 {
  color: #1E3A5F; /* Títulos de servicios en azul */
}

/* BOTÓN VER TODOS LOS SERVICIOS */
.see-all-services {
  text-align: center;
  margin-top: 30px;
}

.see-all-services a {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  font-size: 18px;
  background: linear-gradient(45deg, #1E3A5F, #2b5c94);
  color: white;
}

.see-all-services a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(30,58,95,0.5);
}

/* PROYECTOS */
.projects {
  padding: 60px 40px;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

/* CONTACTO */
.contact {
  padding: 60px 40px;
  text-align: center;
  background: #f4f4f4;
}

.social {
  padding: 15px;
  margin: 10px;
  border-radius: 50%;
  font-size: 20px;
  color: white;
  text-decoration: none;
}

.whatsapp {
  background: #25D366;
}

.instagram {
  background: #E1306C;
}

/* FOOTER */
footer {
  background: #1E3A5F;
  color: white;
  text-align: center;
  padding: 15px;
}

/* --- MODAL DE REGISTRO --- */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* CAMPOS DEL FORMULARIO */

#registerForm input,
#registerForm select,
#registerForm textarea {

  width: 100%;

  display: block;

  padding: 12px;

  margin: 10px 0;

  border-radius: 8px;

  border: 1px solid #ccc;

  font-size: 15px;

  box-sizing: border-box;

}

/* LABEL */

#registerForm label {

  display: block;

  text-align: left;

  font-weight: bold;

  margin-top: 10px;

}

/* BOTÓN */

#registerForm button {

  width: 100%;

  margin-top: 15px;

}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: black;
}

/* Inputs del formulario */
#registerForm input {
  width: 80%;
  padding: 12px 15px;
  margin: 12px 0;
  border-radius: 5px;
  border: 1.8px solid #ccc;
  font-size: 15px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

#registerForm input:focus {
  border-color: #FFC107;
  outline: none;
}

/* Botón del formulario */
#registerForm button {
  padding: 14px 25px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(45deg, #FFC107, #ffda44);
  color: #000;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 84%;
  margin-top: 10px;
}

#registerForm button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,193,7,0.5);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  #registerForm input,
  #registerForm button {
    width: 100%;
  }
  } 
  /* --- CLIENTES --- */

.client-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.client-logos img {
  height: 60px;
  width: auto;

  filter: grayscale(100%);
  opacity: 0.7;

  transition: all 0.3s ease;
}

.client-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* --- PROYECTOS MEJORADOS --- */

.project-grid .card {
  text-align: left;
}

.project-grid .card h3 {
  margin-top: 10px;
  color: #1E3A5F;
}

.project-grid .card p {
  color: #666;
  font-size: 14px;
}

.project-grid .card img {
  transition: transform 0.3s ease;
}

.project-grid .card img:hover {
  transform: scale(1.05);
}
.see-more-projects {
  text-align: center;
  margin-top: 40px;
}

.see-more-projects a {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;

  background: linear-gradient(45deg, #1E3A5F, #2b5c94);
  color: white;
}

.see-more-projects a:hover {
  transform: translateY(-3px);
}
/* ===== PROYECTOS ESTILO PROFESIONAL ===== */
/* GRID AUTOMÁTICO Y RESPONSIVE */

.projects-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 30px;

  padding: 40px;

  align-items: stretch;

}

/* IMÁGENES */

.project-item img {

  width: 100%;

  border-radius: 10px;

}

/* TÍTULO PROYECTO */

.project-title {

  font-size: 16px;

  font-weight: 700;

  color: #1E3A5F;

  margin-top: 10px;

}

/* CIUDAD Y AÑO */

.project-location {

  font-size: 13px;

  color: #777;

  margin-top: 3px;

}

/* BOTÓN */

.see-more-projects {

  text-align: center;

  margin-top: 40px;

}

.see-more-projects a {

  display: inline-block;

  padding: 14px 30px;

  border-radius: 30px;

  font-weight: bold;

  text-decoration: none;

  transition: 0.3s;

  background: linear-gradient(45deg, #1E3A5F, #2b5c94);

  color: white;

}

.see-more-projects a:hover {

  transform: translateY(-3px);

}
/* ===== CLIENTES ESTILO LOGOS ===== */

.clients {

  background: #f5f5f5;

  padding: 60px 20px;

  text-align: center;

}

.clients h2 {

  font-size: 28px;

  color: #1E3A5F;

  margin-bottom: 10px;

}

.clients-text {

  color: #666;

  margin-bottom: 40px;

}

/* FILA DE LOGOS */

.clients-logos {

  display: flex;

  justify-content: center;

  align-items: center;

  flex-wrap: wrap;

  gap: 60px;

}

/* LOGOS */

.clients-logos img {

  height: 45px;

  filter: grayscale(100%);

  opacity: 0.7;

  transition: 0.3s;

}

/* EFECTO AL PASAR MOUSE */

.clients-logos img:hover {

  filter: grayscale(0%);

  opacity: 1;

  transform: scale(1.1);

}
/* ===== SECCIÓN CLIENTES ===== */

.clients {

  background: #f5f5f5;

  padding: 60px 20px;

  text-align: center; /* centra todo */

}

/* TÍTULO AZUL */

.clients-title {

  color: #1E3A5F; /* azul profesional */

  font-size: 30px;

  font-weight: bold;

  text-align: center;

  margin-bottom: 10px;

}

/* TEXTO DEBAJO */

.clients-text {

  color: #666;

  font-size: 15px;

  text-align: center;

  margin-bottom: 40px;

}

/* LOGOS CENTRADOS */

.clients-logos {

  display: flex;

  justify-content: center;

  align-items: center;

  flex-wrap: wrap;

  gap: 60px;

}

/* LOGOS */

.clients-logos img {

  height: 80px;   /* antes 45px */

  filter: grayscale(100%);

  opacity: 0.7;

  transition: 0.3s;

  margin: 15px;

}

/* EFECTO HOVER */

.clients-logos img:hover {

  filter: grayscale(0%);

  opacity: 1;

  transform: scale(1.1);

}
select {

  width: 100%;

  padding: 12px;

  margin: 10px 0;

  border-radius: 8px;

  border: 1px solid #ccc;

  font-size: 16px;

}

/* ESTADÍSTICAS MEJORADAS */

.stats {
  background: #0b4c8c;
  color: white;
  padding: 40px 15px; /* antes 60px → más compacto */
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px; /* menos separación */
  max-width: 900px; /* más estrecho = más elegante */
  margin: auto;
  text-align: center;
}

.stat-box {
  padding: 10px;
}

.stat-box i {
  font-size: 24px; /* antes 35px */
  margin-bottom: 8px;
}

.stat-box h2 {
  font-size: 1.6rem; /* antes 2.2rem */
  margin-bottom: 3px;
}

.stat-box p {
  font-size: 0.85rem; /* texto más fino */
  opacity: 0.9;
}
/* GALERÍA INTERACTIVA */

.project-images {

  position: relative;

  width: 100%;
  height: 200px;

  overflow: hidden;
}

.project-images img {

  position: absolute;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;

  transition: opacity 0.6s ease;
}

/* Primera imagen visible */

.project-images img:first-child {

  opacity: 1;
}

/* Hover cambia imágenes */

.project-card:hover img:nth-child(1) {
  opacity: 0;
}

.project-card:hover img:nth-child(2) {
  opacity: 1;
  transition-delay: 0.3s;
}

.project-card:hover img:nth-child(3) {
  opacity: 1;
  transition-delay: 0.8s;
}
/* ===== BOTÓN VOLVER AL INICIO ===== */

.back-home {

  width: 100%;

  display: flex;

  justify-content: center;

  margin-top: 50px;

}

.back-home a {

  background: linear-gradient(45deg, #1E3A5F, #2b5c94);

  color: white;

  padding: 14px 30px;

  border-radius: 30px;

  text-decoration: none;

  font-weight: bold;

  transition: 0.3s;

  display: inline-flex;

  align-items: center;

  gap: 8px;

}

.back-home a:hover {

  transform: translateY(-3px);

}

/* ===== TARJETA EXPANDIBLE ===== */

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* CRECER TARJETA */

.project-card:hover {

 transform: translateY(-8px);

  box-shadow: 0px 15px 30px rgba(0,0,0,0.2);

}

/* CONTENIDO */

.project-content {

  padding: 15px;

}

/* TEXTO CORTO */

.project-short {

  font-size: 14px;

  color: #555;

}

/* TEXTO OCULTO */

.project-details {

  max-height: 0;

  overflow: hidden;

  opacity: 0;

  transition: all 0.4s ease;

}

/* MOSTRAR EN HOVER */

.project-card:hover .project-details {

  max-height: 220px;

  opacity: 1;

  margin-top: 10px;

}

/* LISTA */

.project-details ul {

  padding-left: 18px;

  font-size: 13px;

  color: #666;

}

.project-details {

max-height: 0;
overflow: hidden;
opacity: 0;
transition: all 0.4s ease;

}

.project-card:hover .project-details {

max-height: 250px;
opacity: 1;

}


/* ===== BUSCADOR PRO ORDENADO ===== */

.finder {
  background: #f5f5f5;
  padding: 40px 20px;
  text-align: center;
}

.finder h2 {
  font-size: 26px;
  color: #1E3A5F;
  margin-bottom: 25px;
}

/* CONTENEDOR PRINCIPAL */
.finder-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: auto;
  align-items: center;
}

/* SELECTS */
.finder-bar select {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  width: 100%;
}

/* RANGO */
.range-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.range-box label {
  font-weight: bold;
  color: #1E3A5F;
  font-size: 13px;
  margin-bottom: 5px;
}

.range-box input {
  width: 100%;
}

.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

/* BOTÓN */
.btn-search {
  background: linear-gradient(45deg, #1E3A5F, #2b5c94);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  width: 100%;
}

.btn-search:hover {
  transform: translateY(-3px);
}

/* HEADER RIGHT (alinear traductor + botón) */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* TRADUCTOR LIMPIO */
#google_translate_element {
  font-size: 12px;
}

.goog-te-gadget {
  font-size: 0;
}

.goog-te-gadget select {
  padding: 6px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}
.lang-btn {
  background: #1E3A5F;
  color: white;
  border: 1px solid white;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.lang-btn:hover {
  background: #FFC107;
  color: black;
}


.email {
  background: #1E3A5F;
}

.lang-dropdown {
  position: relative;
}

.lang-btn {
  background: #1E3A5F;
  color: white;
  border: 1px solid white;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
}

/* MENÚ OCULTO */
.lang-menu {
  position: absolute;
  top: 45px;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  min-width: 150px;
  overflow: hidden;
}

/* OPCIONES */
.lang-menu a {
  padding: 10px;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}

.lang-menu a:hover {
  background: #f4f4f4;
}

/* MOSTRAR AL HACER HOVER */
.lang-dropdown:hover .lang-menu {
  display: flex;
}

.card {
  position: relative;
  padding-top: 40px;
}

.service-icon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFC107;
  color: black;
  padding: 10px;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* ===== DROPDOWN DOCUMENTOS ===== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown > a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
}

/* MENÚ OCULTO */
.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  min-width: 200px;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
  border-radius: 10px;
  overflow: hidden;
  top: 35px;
  z-index: 1000;
}

/* LINKS */
.dropdown-menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}

.dropdown-menu a:hover {
  background: #f4f4f4;
}

/* MOSTRAR */
.dropdown:hover .dropdown-menu {
  display: block;
}
/* CTA MODERNO */
.cta {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(45deg, #1E3A5F, #2b5c94);
  color: white;
}

/* TIPOGRAFÍA MÁS PRO */
.cta h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 25px;
  opacity: 0.9;
}

/* BOTÓN CENTRADO Y MEJORADO */
.cta .btn-yellow {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  background: linear-gradient(45deg, #FFC107, #ffda44);
  color: black;
  transition: 0.3s;
}

.cta .btn-yellow:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,193,7,0.5);
}

.hero {
  position: relative;
  overflow: hidden;
}

/* SLIDER */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* OVERLAY OSCURO (igual al que tenías) */.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30,58,95,0.6); /* 🔥 color uniforme */
  z-index: 0;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  
  width: 45px;
  height: 45px;

  background: rgba(0,0,0,0.6);
  color: white;

  border: none;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  cursor: pointer;

  z-index: 10;
}
.prev::before,
.next::before {
  content: "";
}

.prev { left: 20px; }
.next { right: 20px; }

.prev { left: 20px; }

.next { right: 20px; }
.hero-stats {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  font-size: 14px;
  opacity: 0.9;
}

.card {
  border-radius: 15px;
  overflow: hidden;
  transition: 0.4s;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
}
/* TEXTO MÁS PRO */
.hero-text h1 span {
  color: #FFC107;
}

/* ESTADÍSTICAS */
.hero-stats {
  display: flex;
  gap: 20px;
  margin: 15px 0 25px;
  font-size: 14px;
  flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 32px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 5px;
  }
}
@media (max-width: 768px) {
  .hero-text {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }
}
.float-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-size: 22px;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: 0.3s;
}

.float-wa:hover {
  transform: scale(1.1);
}
/* 🔥 FIX GENERAL (ELIMINA ESPACIO BLANCO) */
body {
  overflow-x: hidden;
}


/* 📱 HERO RESPONSIVE */
@media (max-width: 768px) {

  .hero {
    padding: 40px 20px; /* antes 60px 50px */
    min-height: auto;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .hero-logo {
    width: 100px;
    margin: 0 auto 15px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 5px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons a {
    width: 100%;
    margin: 0;
  }
}


/* 📱 HEADER RESPONSIVE */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .header-right {
    width: 100%;
    margin-top: 10px;
    justify-content: space-between;
  }

}
/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* MODO MÓVIL */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1E3A5F;
    padding: 15px;
  }

  .nav-menu a {
    margin: 10px 0;
  }

  .nav-menu.active {
    display: flex;
  }

}
/* 🔥 OCULTO POR DEFECTO EN MÓVIL */
@media (max-width: 768px) {

  .nav-container {
    display: none;
    flex-direction: column;
    background: #1E3A5F;
    width: 100%;
    padding: 20px;
  }

  .nav-container.active {
    display: flex;
  }

}
.hero-text {
  position: relative;
  z-index: 2;
}
.slide {
  left: 0;
  top: 0;
}
.logo {
  width: 40px;
  height: auto;
}