html {
    scroll-behavior: smooth;
  }
  
    /* Resets */
    *, *::before, *::after {
      box-sizing: border-box;
    }
    body {
      margin: 0;
      font-family: 'Poppins', sans-serif;
      background: #f0f4f8;
      color: #222;
    }
    a {
      text-decoration: none;
      color: inherit;
    }
    img {
      max-width: 100%;
      width:100%;
      display: block;
    }
  
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #0b1739 0%, #123263 40%, #0078ff 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  padding: 0 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}
    nav .logo {
      font-weight: 700;
      font-size: 1.5rem;
      color: white;
      letter-spacing: 2px;
      user-select: none;
    }
    nav ul {
      list-style: none;
      display: flex;
      gap: 2rem;
    }
    nav ul li a {
      color: white;
      font-weight: 600;
      font-size: 1rem;
      position: relative;
      transition: color 0.3s;
    }
    nav ul li a::after {
      content: "";
      position: absolute;
      width: 0;
      height: 2px;
      background: white;
      left: 0; bottom: -4px;
      transition: width 0.3s;
    }
    nav ul li a:hover::after,
    nav ul li a:focus::after {
      width: 100%;
    }
    nav ul li a:hover,
    nav ul li a:focus {
      color: #dcefff;
    }
  
    /* Responsive hamburger */
    .hamburger {
      display: none;
      flex-direction: column;
      cursor: pointer;
      gap: 5px;
    }
    .hamburger span {
      width: 25px;
      height: 3px;
      background: white;
      border-radius: 2px;
      transition: all 0.3s ease;
    }
    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 100%;
    right: 0;
    /* 💫 Gradiente moderno que combina con el navbar */
    background: linear-gradient(135deg, rgba(18,50,99,0.95), rgba(32,84,173,0.9), rgba(15,43,89,0.95));
    background-size: 200% 200%;
    animation: moveMobileGradient 10s ease infinite;
    
    flex-direction: column;
    width: 240px;
    height: auto;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease-in-out;
    padding: 1.2rem 1.3rem;
    border-radius: 0 0 0 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
  }

  nav ul.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul li {
    margin-bottom: 1rem;
    text-align: left;
  }

  nav ul li:last-child {
    margin-bottom: 0;
  }

  nav ul li a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: block;
  }

  nav ul li a:hover {
    color: #00bfff;
    transform: translateX(5px);
  }

  /* 🔹 Animación del gradiente */
  @keyframes moveMobileGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  /* 🔹 BOTÓN HAMBURGUESA AJUSTADO */
  .hamburger {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    z-index: 1001;
  }

  /* 🔹 LÍNEAS */
  .hamburger span {
    width: 22px;
    height: 2.5px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* 🔹 ANIMACIÓN AL ACTIVAR */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 5px;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -5px;
  }
}
  
    /* Main Content */
  
    main {
      margin-top: 65px;
      max-width: 1100px;
      padding: 2rem 1rem 5rem;
      margin-left: auto;
      margin-right: auto;
    }
  
    /* Hero Section */
    .hero {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 2rem;
      margin-bottom: 4rem;
    }
    .hero-text {
      flex: 1 1 400px;
    }
    .hero-text h1 {
      font-size: 2.8rem;
      color: #123263;
      margin-bottom: 1rem;
      line-height: 1.1;
    }
    .hero-text p {
      font-weight: 300;
      font-size: 1.2rem;
      margin-bottom: 2rem;
      color: #444;
    }
    .btn-primary {
      background: #123263;
      color: white;
      padding: 0.9rem 2rem;
      border: none;
      border-radius: 35px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.3s ease;
      /* box-shadow: 0 5px 15px rgb(10 116 218 / 0.3); */
    }

    .btn-primary-blog {
      background: #123263;
      color: white;
      padding: 0.9rem 2rem;
      border: none;
      border-radius: 35px
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.3s ease;
    }


    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary-blog:hover,
    .btn-primary-blog:focus {
      background: #095bb5;
    }
    .hero-image {
      flex: 1 1 350px;
      text-align: center;
    }
    .hero-image img {
      max-width: 320px;
      /*border-radius: 12px;*/
      box-shadow: 0 8px 15px rgb(0 0 0 / 0.1);
    }
  .hero-rotator {
    position: relative;
    width: 100%;
    flex: 1 1 500px;
  }

  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
  }

  .hero-slide.active {
    opacity: 1;
    z-index: 1;
  }

  /* Se mantiene tu estilo original */
  .hero-console {
    flex: 1 1 500px;
    background: linear-gradient(135deg, rgba(18, 50, 99, 0.95), rgba(0, 140, 255, 0.8));
    color: #fff;
    font-family: 'Courier New', monospace;
    padding: 1rem;
    /*border-radius: 10px;*/
    min-height: 250px;
    max-height: 300px;
    height:100%;
    overflow-y: auto;
    white-space: normal;
    position: relative;
  }  
  .console-screen::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 5px;
    background: #fff;
    margin-left: -2px;
    margin-bottom: -2px;
    animation: blink 1s steps(2, start) infinite;
  }
  
  @keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
  }
  
  
    /* Servicios Section */
    section#servicios {
      margin-bottom: 5rem;
    }
    section#servicios h2 {
      font-size: 2rem;
      color: #123263;
      margin-bottom: 2rem;
      text-align: center;
      font-weight: 700;
    }
    .servicios-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
      gap: 2rem;
    }
    .servicio-card {
      background: white;
      border-radius: 12px;
      /* padding: 2rem 1.5rem; */
      box-shadow: 0 8px 20px rgb(0 0 0 / 0.05);
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .servicio-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 15px 35px rgb(0 0 0 / 0.1);
    }
    .servicio-icon {
      width: 60px;
      height: 60px;
      margin-bottom: 1rem;
      fill: #123263;
    }
    .servicio-card h3 {
      margin-bottom: 1rem;
      font-weight: 700;
      color: #094d9e;
    }
    .servicio-card p {
      font-weight: 300;
      color: #555;
      line-height: 1.4;
    }
  
    /* Portafolio */
    section#portafolio {
      margin-bottom: 5rem;
    }
    section#portafolio h2 {
      font-size: 2rem;
      color: #123263;
      margin-bottom: 2rem;
      text-align: center;
      font-weight: 700;
    }
    .proyectos-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
      gap: 2rem;
    }
    .proyecto-card {
      background: white;
      border-radius: 12px;
      box-shadow: 0 6px 20px rgb(0 0 0 / 0.07);
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.3s ease;
    }
    .proyecto-card:hover {
      transform: translateY(-6px);
    }
    .proyecto-img {
      width: 100%;
      height: 160px;
      object-fit: cover;
    }
    .proyecto-content {
      padding: 1rem 1.5rem;
    }
    .proyecto-content h3 {
      margin-bottom: 0.5rem;
      color: #123263;
    }
    .proyecto-content p {
      font-weight: 300;
      color: #555;
      font-size: 0.95rem;
    }
  
    /* Testimonios */
    .review {
      border: 1px solid #ddd;
      padding: 1rem 1.5rem;
      margin-bottom: 1.5rem;
      border-radius: 8px;
      background: #f9f9f9;
    }
  
    .stars {
      color: #ffb400; /* Color dorado para estrellas */
      margin-bottom: 0.5rem;
      font-size: 1.2rem;
    }
    
  
    /* Cotizacion */
    section#cotizacion {
      max-width: 500px;
      margin-left: auto;
      margin-right: auto;
    }
    section#cotizacion h2 {
      color: #123263;
      margin-bottom: 1.5rem;
      font-weight: 700;
      text-align: center;
    }
    form {
      background: white;
      padding: 2rem;
      border-radius: 12px;
      box-shadow: 0 10px 25px rgb(0 0 0 / 0.1);
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
    }
    label {
      font-weight: 600;
      color: #094d9e;
    }
    input, textarea {
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      padding: 0.75rem 1rem;
      border: 2px solid #ddd;
      border-radius: 8px;
      resize: vertical;
      transition: border-color 0.3s ease;
    }
    input:focus, textarea:focus {
      outline: none;
      border-color: #123263;
    }

      button[type="submit"],
      button[type="button"] {
      background: #123263;
      border: none;
      padding: 1rem;
      color: white;
      font-weight: 700;
      font-size: 1.1rem;
      border-radius: 35px;
      cursor: pointer;
      /* box-shadow: 0 5px 15px rgb(10 116 218 / 0.3); */
      transition: background 0.3s ease;
    }

  button[type="submit"]:hover,
  button[type="submit"]:focus,
  button[type="button"]:hover,
  button[type="button"]:focus {
  background: #095bb5;
}
 
    #formMessage {
      text-align: center;
      font-weight: 600;
      min-height: 24px;
    }
  
    /* Footer */
    footer {
      text-align: center;
      padding: 1.5rem;
      background: #e1e9f0;
      color: #555;
      font-size: 0.9rem;
      user-select: none;
    }
    
    .whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
  }
  
  .whatsapp-float:hover {
    background-color: #1ebe57;
  }
  
  
  /* Modal */
  .modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  padding: 2rem;
  box-sizing: border-box;
}

/* Contenido modal común */
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;  /* unificado a 500px */
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
  box-sizing: border-box;
}
  .modal-content-login {
    background-color: #fff;
    margin: auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Botón cerrar */
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}

.close:hover {
  color: #000;
}  
  .productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .logo {
    cursor: pointer;
  }

  /*Mensage de error lgion*/
  
    .error-message {
    color: red;
    font-size: 0.875rem;
    margin-top: -0.5rem;
  }

  .phone-field {
  display: flex;
  align-items: center;
  background-color: #123263;
  border-radius: 8px;
  overflow: hidden;
  max-width: 320px;
  border: 1px solid #0e254a;
}

.prefix-select select {
  border: none;
  background-color: #0e254a;
  color: white;
  padding: 0.6em 0.8em;
  font-size: 14px;
  height: 100%;
  cursor: pointer;
  appearance: none;
  outline: none;
}

.prefix-select {
  display: flex;
  align-items: center;
  border-right: 1px solid #123263;
}

.phone-field input {
  border: none;
  padding: 0.6em 0.8em;
  flex: 1;
  font-size: 14px;
  background-color: transparent;
  color: white;
  outline: none;
}

.phone-field:focus-within {
  border-color: #2b4e8a;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.phone-field select option {
  color: black; /* color dentro del dropdown */
}


.phone-field input::placeholder {
  text-transform: capitalize;
}

.prefix-select select {
  border: none;
  background-color: #0e254a;
  color: white;
  padding: 0.6em 0.8em;
  font-size: 14px;
  height: 100%;
  cursor: pointer;
  appearance: none;
  outline: none;
}

#console-output {
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 16px;
  line-height: 1.5;
}


/* Calificación */

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 👈 esto separa izquierda y derecha */
  padding: 1rem;
  background-color: #f1f4f9;
  cursor: pointer;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem;
  background-color: #f1f4f9;
  cursor: pointer;
}

.review-header:hover {
  background-color: #e8edf5;
}

.toggle-btn {
  font-weight: bold;
  font-size: 1.2rem;
  color: #123263;
  width: 20px;
  text-align: center;
}

.client-name {
  color: #123263;
}

.review-body {
  padding: 1rem;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.stars {
  font-size: 1.2rem;
  color: gold;
  display: inline-block;
  position: relative;
  line-height: 1;
}

.stars::before {
  content: '★★★★★';
  letter-spacing: 2px;
  background: linear-gradient(90deg, gold calc(var(--rating) * 20%), #ddd calc(var(--rating) * 20%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stars[data-rating="5"] { --rating: 5; }
.stars[data-rating="4"] { --rating: 4; }
.stars[data-rating="3"] { --rating: 3; }
.stars[data-rating="2"] { --rating: 2; }
.stars[data-rating="1"] { --rating: 1; }

.review-page {
  display: none;
}

.review-page.active {
  display: block;
}

.page-btn {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 0.4rem 0.8rem;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  color: #123263;
  font-weight: bold;
  transition: 0.2s;
}

.page-btn:hover,
.page-btn.active {
  background-color: #123263;
  color: #fff;
}

/* Vision, Mision*/

#vision-mision div:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  cursor: default;
}

/* === LOADER INTERACTIVO FUNCIONAL === */
#page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(18, 50, 99, 0.95), rgba(0, 140, 255, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Cuando se oculta */
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Circulo giratorio */
.loader-spinner {
  width: 80px;
  height: 80px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: loaderRotate 1s linear infinite;
}

@keyframes loaderRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mensaje animado */
.loader-message {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.2rem;
  color: white;
  opacity: 0;
  animation: fadeInOut 3s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  font-weight: 600;
  user-select: none;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0;
    transform: translateY(5px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Asegura que todos los ítems del menú estén centrados verticalmente */
nav ul {
  display: flex;
  align-items: center;
}

/* Asegura que cada ítem esté alineado correctamente */
nav ul li {
  display: flex;
  align-items: center;
}

/* Ajusta el contenedor del avatar */
.nav-user {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Imagen del avatar: círculo perfecto */
.nav-user .user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: block;
  margin: 0;
  padding: 0;
}


@media (max-width: 768px) {
  .user-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    position: absolute !important;
    background: #fff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    /* cualquier otro estilo que quieras mantener */
  }
}
nav.scrolled {
  background: linear-gradient(135deg, rgba(18, 50, 99, 0.95), rgba(0, 140, 255, 0.8));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
