/* Reset */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}
body { 
  font-family: 'Montserrat', sans-serif; 
  color: #fff; /* texto en blanco */
  line-height: 1.6; 
  background: #292929; /* fondo oscuro */
}
a { 
  text-decoration: none; 
  color: inherit; 
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: #ffffff; /* oscuro */
  transition: transform 0.3s ease-in-out;
}

header.hide {
  transform: translateY(-100%); 
}
.nav-container {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 1rem 2rem;
}
.logo { 
  height: 40px; 
}
nav a { 
  margin: 0 15px; 
  font-weight: 500; 
  color: #000; /* letras negras */
}
nav a:hover { 
  color: #525252; /* gris oscuro al pasar el mouse */
}

.btn-nav {
  background: #292929;  /* negro */
  color: #fff;          /* letras blancas */
  padding: 8px 16px; 
  border-radius: 5px;
}
.btn-nav:hover { 
  background: #525252; 
}

/* Hero */
.hero-wrapper {
  height: 170vh; 
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #292929;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#stars {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
}

.btn {
  background: #fff; 
  color: #292929; 
  padding: 12px 24px;
  border-radius: 5px; 
  font-weight: bold;
  transition: background 0.3s ease;
}
.btn:hover { 
  background: #ccc; 
}

/* Section */
.section { 
  padding: 3rem 2rem; 
  text-align: center; 
}
.section h2 { 
  font-size: 2rem; 
  margin-bottom: 2rem; 
  color: #fff; 
}
.bg-light { 
  background: #1e1e1e; /* tono más claro pero oscuro */
}

/* Grid y Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #1e1e1e; /* oscuro para cards */
  padding: 2rem; 
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  transition: transform 0.3s ease;
  color: #fff;
}
.card:hover { 
  transform: translateY(-5px); 
}
.card img { 
  width: 100%; 
  border-radius: 10px; 
  margin-bottom: 1rem; 
  background: #fff; /* para que logos no se vean mal */
}

/* Testimonios */
.testimonial {
  background: #1e1e1e; 
  padding: 2rem; 
  border-radius: 10px;
  max-width: 600px; 
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.testimonial p { 
  font-style: italic; 
  margin-bottom: 1rem; 
  color: #ccc;
}
.testimonial span { 
  font-weight: bold; 
  color: #fff; 
}

/* Contacto */
.contact-form {
  max-width: 600px; 
  margin: 0 auto; 
  display: flex; 
  flex-direction: column; 
  gap: 15px;
}
.contact-form input, 
.contact-form textarea {
  padding: 12px; 
  border: 1px solid #444; 
  border-radius: 5px;
  font-size: 1rem; 
  font-family: inherit;
  background: #292929;
  color: #fff;
}
.contact-form button { 
  align-self: center; 
}

/* Contacto */
#contacto ul li {
  margin: .5rem 0;
  font-size: 1.1rem;
  color: #fff;
}
#contacto i { 
  margin-right: 8px; 
  color: #fff; 
}

/* Footer */
footer {
  background: #1e1e1e; 
  color: #fff; 
  padding: 2rem;
}
.footer-container {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  flex-wrap: wrap; 
  gap: 1rem;
}
footer nav a { 
  color: #ccc; 
  margin: 0 10px; 
}
footer nav a:hover { 
  color: #fff; 
}

/* Íconos */
.icon {
  font-size: 2rem; 
  color: #fff; /* íconos blancos */
  margin-bottom: 1rem;
}

/* Clientes */
.client-logo {
  max-height: 60px;
  margin-bottom: 1rem;
  object-fit: contain;
  background: #fff; /* mantiene contraste en logos */
  border-radius: 6px;
}

/* Swiper Proyectos */
.proyectosSwiper .swiper-slide.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  height: auto;         
  min-height: 350px;    
}

.proyectosSwiper img {
  width: 100%;
  height: 220px;         
  object-fit: contain;   
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #fff;   
}

.proyectosSwiper h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  flex-shrink: 0; 
  color: #fff;
}

.proyectosSwiper p {
  font-size: 0.95rem;
  color: #ccc;
  margin-top: auto; 
}

.proyectosSwiper .swiper-button-next,
.proyectosSwiper .swiper-button-prev { color:#fff !important; }
.proyectosSwiper .swiper-pagination-bullet { background:#fff !important; opacity:.4; }
.proyectosSwiper .swiper-pagination-bullet-active { background:#fff !important; opacity:1; }
.proyectosSwiper .swiper-slide.card {
  position: relative;
  padding-bottom: 4rem; /* espacio para los bullets */
}

/* Paginación dentro de la card */
.proyectosSwiper .swiper-pagination {
  bottom: 10px !important; /* dentro de la card */
}
#orionCanvas {
  width: 100vw;
  height: 100vh;
}

/* Menú en desktop */
.nav-menu {
  display: flex;
  gap: 20px;
  margin-left: auto;
  align-items: center;
}

/* Acciones (hamburger + botón solo móvil) */
.nav-actions {
  display: none; 
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #000; /* icono hamburguesa negro */
  cursor: pointer;
}

/* En móvil */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 10px;
    background: #ffffff; /* fondo blanco */
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 1500;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu a {
    color: #000 !important; /* enlaces negros */
    padding: 10px 15px;
    border-radius: 4px;
    text-align: left;
  }

  .nav-menu a:hover {
    background: #f2f2f2; /* fondo gris claro al pasar */
    color: #000;
  }

  .nav-actions {
    display: flex;
  }

  .btn-nav.mobile-only {
    display: block;
    background: #292929; /* botón oscuro */
    color: #fff;
  }

  .nav-menu .btn-nav {
    display: none;
  }
}

