html, body {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: #0f2027 url('recursos/fondo-mc.png') no-repeat center center fixed;
  background-size: 500px;
  color: white;
  overflow-x: hidden;
}

.particles-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;  /* 👉 No uses -1 porque los fixed pueden taparlo */
}


/* HEADER FIJO Y RESPONSIVE */
.header {
  position: fixed; /* ✅ Siempre visible */
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 32, 39, 0.85);
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;  /* ✅ Permite adaptarse en móviles */
}

.logo-mini img {
  height: 60px;             
  max-width: 120px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;  
}

.nav-menu a {
  margin-left: 15px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;  
}

.btn-ingresar {
  background: #00c9ff;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
}

/* Espacio para que el contenido no quede tapado por el header fijo */
.main-content {
  margin-top: 100px;
}

/* SECCIONES */
.seccion {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 60px 20px;
  margin: 40px auto;
  max-width: 1000px;
  text-align: center;
}

footer {
  background: #111;
  color: #ccc;
  padding: 12px;
  text-align: center;
  font-size: 0.85em;
}

/* SLIDER */
.slider-container {
  position: relative;
  overflow: hidden;
  max-width: 700px;
  width: 100%;
  margin: auto;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
  max-width: 100%;
}

.slide {
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  flex-shrink: 0;
}

.slide img {
  width: 33%;            /* ✅ Solo un tercio del ancho */
  max-width: 240px;      /* Limita el tamaño máximo */
  height: auto;
  margin-bottom: 15px;
  border-radius: 10px;
}


.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

#soluciones {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  box-sizing: border-box;
}

/* FORMULARIO CONTACTO */
.form-contacto {
  width: 100%;
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: none;
  font-size: 1em;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  backdrop-filter: blur(4px);
}

.form-group textarea {
  resize: none;
  min-height: 120px;
}

.form-group button {
  background: #00c9ff;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-group button:hover {
  background: #007ea7;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
  }

  .nav-menu a {
    margin: 5px 8px;
    font-size: 0.9em;
  }

  .btn-ingresar {
    padding: 6px 12px;
    font-size: 0.85em;
  }

  .logo-mini img {
    height: 50px;
    max-width: 100px;
  }

  .slider-container {
    max-width: 100%;
    border-radius: 0;
  }

  .slide {
    padding: 10px;
  }

  .slide img {
    border-radius: 0;
    width: 100%;
    height: auto;
  }

  .slide h3 {
    font-size: 1.2em;
    word-break: break-word;
  }

  .slide p {
    font-size: 0.9em;
    word-break: break-word;
  }

  .slider-btn {
    font-size: 18px;
    padding: 8px;
  }
}
