/* ESTILOS BASE */
body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  background: transparent;
  color: #222;
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

.glow-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  background: radial-gradient(circle at 50% 60%, #2196f3 0%, #00b0ff 40%, #f7faff 100%);
  filter: blur(60px) brightness(1.1);
  opacity: 0.85;
  pointer-events: none;
}

/* HEADER Y NAVEGACIÓN */
header {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 16px rgba(33,150,243,0.25);
  position: sticky;
  top: 0;
  z-index: 10;
  height: 70px;
  overflow: visible;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%; /* Cambiado de max-width fijo a porcentaje */
  max-width: 1800px; /* Valor máximo aumentado */
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  position: relative;
}

.logo {
  position: relative;
  height: 70px;
}

.logo img {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scale(1.5);
  height: 70px;
  width: auto;
  filter: drop-shadow(0 0 16px rgba(0,176,255,0.5));
  background: transparent;
  border-radius: 12px;
  transition: transform 0.3s;
  pointer-events: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #2196f3;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #00b0ff;
  transition: width 0.3s;
  position: absolute;
  left: 0; bottom: -4px;
}

.nav-links a:hover {
  color: #00b0ff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #2196f3;
  border-radius: 4px;
  transition: all 0.3s;
}

/* HERO SECTION */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.7);
  border-radius: 24px;
  margin: 2rem auto 0 auto;
  width: 90%; /* Cambiado de max-width fijo a porcentaje */
  max-width: 1800px; /* Valor máximo aumentado */
  box-shadow: 0 8px 32px rgba(33,150,243,0.25);
  padding: 3rem 2rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1 1 350px;
  min-width: 300px;
}

.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 1rem;
  color: #2196f3;
  text-shadow: 0 0 16px rgba(0,176,255,0.37);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #222;
}

.cta-btn {
  background: linear-gradient(90deg, #2196f3 0%, #00b0ff 100%);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(0,176,255,0.5);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: inline-block;
}

.cta-btn:hover {
  background: linear-gradient(90deg, #00b0ff 0%, #2196f3 100%);
  color: #222;
  box-shadow: 0 0 32px rgba(0,176,255,0.8);
}

.hero-img {
  flex: 1 1 350px;
  max-width: 400px;
  width: 100%;
  border-radius: 20px;
  margin-left: 2rem;
  box-shadow: 0 8px 32px rgba(33,150,243,0.25);
}

/* SECTIONS */
.section, .section2 {
  width: 90%; /* Cambiado de max-width fijo a porcentaje */
  max-width: 1800px; /* Valor máximo aumentado */
  margin: 2.5rem auto;
  padding: 3rem 2rem;
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(33,150,243,0.12);
  position: relative;
  z-index: 1;
}

.section2 p {
  text-align: justify;
}

.bg-light {
  background: rgba(247,250,255,0.95);
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2196f3;
  text-align: center;
  text-shadow: 0 0 8px rgba(0,176,255,0.18);
}

h4 {
  text-align: center;
  color: #2196f3;
  margin: 1rem 0;
  font-size: 1rem;
}

/* SOLUTIONS GRID */
.solutions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.solution-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(33,150,243,0.12);
  padding: 1.5rem;
  max-width: 320px;
  text-align: center;
  flex: 1 1 250px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.solution-card:hover {
  box-shadow: 0 8px 32px rgba(0,176,255,0.25);
  transform: translateY(-5px);
}

.solution-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(33,150,243,0.12);
}

.solution-card h3 {
  color: #2196f3;
  margin-bottom: 0.5rem;
}

/* CLIENTS */
.clients-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.clients-logos img {
  width: 120px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(33,150,243,0.12);
  transition: transform 0.2s;
}

.clients-logos img:hover {
  transform: scale(1.05);
}

/* ABOUT */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-content img {
  width: 300px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(33,150,243,0.12);
}

.about-content div {
  flex: 1 1 300px;
}

.about-content h3 {
  color: #2196f3;
  margin-bottom: 1rem;
}

/* CONTACT */
.contact-details {
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
  font-size: 1.1rem;
}

.contact-details p {
  margin: 1rem 0;
}

.contact-details a {
  color: #2196f3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-details a:hover {
  color: #00b0ff;
  text-decoration: underline;
}

/* SOCIAL ICONS */
.Social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.Social a {
  font-size: 2.5rem;
  color: #2196f3;
  transition: transform 0.3s, color 0.3s;
}

.Social a:hover {
  transform: scale(1.2);
}

.Social a:first-child:hover {
  color: #ff0000; /* YouTube color */
}

.Social a:last-child:hover {
  color: #0077b5; /* LinkedIn color */
}

/* Estilos para iconos sociales en PNG */
.Social img.social-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
  vertical-align: middle;
}

.Social a:hover img.social-icon {
  transform: scale(1.2);
}

/* MODAL (DIALOG) */
dialog {
  border: none;
  padding: 2rem;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  background: white;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

dialog::backdrop {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-form h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.demo-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 500;
}

.demo-form input,
.demo-form textarea {
  padding: 0.8rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #f7faff;
}

.demo-form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.demo-form-actions button:last-child {
  background: #f5f5f5;
  color: #333;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.demo-form-actions button:last-child:hover {
  background: #e0e0e0;
}

.form-msg {
  color: #4caf50;
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

/* FOOTER */

footer {
  background: rgba(255,255,255,0.95);
  text-align: center;
  padding: 0.8rem 0;
  margin-top: 2rem;
  position: relative;
  z-index: 5;
  border-top: 2px solid #2196f3;
  box-shadow: 0 -4px 15px rgba(33,150,243,0.15);
}

.footer-content {
  max-width: 90%;
  margin: 0 auto;
}

footer p {
  color: #222;
  font-size: 0.9rem;
  margin: 0.2rem 0;
  font-weight: 500;
  line-height: 1.2;
}

.developed-by {
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.developed-by a {
  color: #2196f3;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.developed-by a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

.services-tag {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.2rem;
}

/* Opcional: decoración */
footer::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #2196f3;
  margin: 0 auto 0.5rem auto;
  border-radius: 1px;
}

/* RESPONSIVE STYLES - COMPLETAMENTE REESCRITO */
@media (max-width: 900px) {
  /* Botón hamburguesa */
  .hamburger {
    display: flex;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
  }
  
  /* Animación del hamburguesa */
  .hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  
  /* FIX: Menú desplegable - COMPLETAMENTE OCULTO */
  .nav-links {
    visibility: hidden; /* Completamente oculto */
    opacity: 0;
    position: fixed;
    top: 70px;
    right: -100%; /* Fuera de la pantalla */
    width: 250px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  /* Cuando está abierto */
  .nav-links.open {
    visibility: visible;
    opacity: 1;
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
  }
  
  .nav-links a:hover {
    background: #e3f2fd;
  }
  
  /* Layout adaptado */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  
  .hero-img {
    margin: 2rem 0 0 0;
    max-width: 90%;
  }
  
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  .about-content img {
    max-width: 80%;
    margin: 0 auto;
  }
}

/* Mobile styles */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section, .section2 {
    padding: 2rem 1rem;
    margin: 1.5rem auto;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .solutions-grid {
    gap: 1.5rem;
  }
  
  .solution-card {
    padding: 1.2rem;
  }
  
  /* Mejora para iconos sociales en móvil */
  .Social {
    gap: 1.5rem;
  }
  
  .Social a {
    font-size: 2rem;
  }
  
  /* Modal para móvil */
  dialog {
    width: 90%;
    padding: 1.5rem;
  }
  
  .demo-form-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .demo-form-actions button {
    width: 100%;
  }
}

/* NUEVOS ESTILOS PARA PANTALLAS GRANDES */
@media (min-width: 1400px) {
  /* Mejora la distribución de las tarjetas de soluciones */
  .solutions-grid {
    justify-content: space-around;
  }
  
  .solution-card {
    flex: 0 1 30%;
    max-width: 380px;
  }
  
  /* Aumenta el espacio del hero */
  .hero-img {
    max-width: 500px;
  }
  
  /* Ajusta el contenido para grandes pantallas */
  .contact-details {
    max-width: 800px;
  }
  
  .about-content img {
    width: 400px;
  }
}

/* Para pantallas muy grandes */
@media (min-width: 2100px) {
  /* Limita el ancho máximo para evitar estiramientos extremos */
  .navbar, .hero, .section, .section2 {
    max-width: 2000px;
  }
  
  /* Ajusta el tamaño de fuente para mejor legibilidad */
  body {
    font-size: 18px;
  }
  
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .hero p {
    font-size: 1.4rem;
  }
  
  h2 {
    font-size: 2.4rem;
  }
  
  /* Mejora el grid de soluciones */
  .solutions-grid {
    gap: 3rem;
  }
  
  .solution-card {
    flex: 0 1 23%;
    max-width: 450px;
  }
}


/* Estilos para Login en el menú */
.login-link {
  /* Puedes destacarlo con un color o icono si quieres */
  color: #00b0ff !important;
  font-weight: 700 !important;
}

/* Modal En Proceso */
.process-modal {
  border: none;
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 450px;
  width: 100%;
  background: white;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  text-align: center;
}

.process-modal::backdrop {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
}

.construction-icon {
  margin: 1.5rem 0;
  text-align: center;
}

.gears-gif {
  width: 128px;
  height: 128px;
  display: block;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.process-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}