/* ===========================
   WaPa Construcciones — style
   Dark theme (navy) + accents
   =========================== */

/* --- Reset / base --- */
* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }
html,body { height: 100%; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #e9f0f7; /* texto claro */
  background: #f5f7fa; /* gris claro */
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  font-size: 1rem;
}

/* --- contenedor central --- */
.container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* --- HEADER / NAV --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  z-index: 1200;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { height: 42px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)); }
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 600; color: #000000; letter-spacing: .3px; }

/* --- NAV LINKS con separadores centrados --- */
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  margin: 0 1.2rem; /* espacio externo */
}

.nav-links li::before {
  content: "";
  position: absolute;
  left: -1.2rem;
  height: 60%;
  width: 2px;
  background: rgba(0, 0, 0, 0.4);
}

.nav-links li:first-child::before {
  display: none; /* no línea antes del primero */
}

.nav-links a {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: inline-block;
  padding-bottom: 4px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg,#0080ff,#003366);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #003366;
}

.nav-links a:hover::after {
  width: 100%;
}

/* --- HERO (slider) --- */
.hero { 
  position: relative; 
  height: 100vh;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden; 
}
.main-swiper { 
  width: 100%; 
  height: 100%; 
}

/* Evita superposición entre slides */
.swiper-slide {
  transition: opacity 1s ease;
}

.swiper-slide { 
  position: relative; 
  width: 100%; 
  height: 100%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-attachment: fixed; /* parallax-like */
  filter: brightness(0.45);
  transform: translateZ(0);
}

/* overlay para mejorar contraste */
.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.slide-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 1rem;
}
.slide-content h1 { 
  font-family: 'Poppins', 
  sans-serif; 
  font-size: 2.2rem; 
  margin-bottom: .6rem; 
}
.slide-content p { 
  font-size: 1.1rem; 
  margin-bottom: 1rem; 
  color: rgba(255,255,255,0.9); 
}

.btn {
  display: inline-block;
  background: linear-gradient(90deg,#0080ff,#003366);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,170,255,0.12);
  transition: background 0.9s;
}
.btn-ghost {
  background: transparent; 
  color: #fff; 
  border: 1px linear-gradient(90deg,#0080ff,#003366); 
}

.btn:hover {
  background: #003366;
}

/* Swiper controls color */
.swiper-button-next, .swiper-button-prev { 
  color: #fff; opacity: 0.9; 
}
.swiper-pagination-bullet { 
  background: rgba(255,255,255,0.5); 
}

/* --- SECTIONS --- */
.section { 
  padding: 6rem 0; 
}
.section h2 { 
  text-align: center; 
  font-family: 'Poppins', sans-serif; 
  font-size: 2.2rem; 
  margin-bottom: 0.6rem; 
  color: #333333; 
}
.section .lead { 
  text-align: center; 
  color: rgba(51,51,51,0.85); 
  max-width: 900px; 
  margin: 0 auto 1.6rem; 
}

/* alternating backgrounds for readability */
.section-dark { 
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(255,255,255,0.00)); 
}
.section-dark-alt { 
  background: rgba(0,0,0,0.03); 
}

/* --- SOBRE NOSOTROS / TEAM --- */
.team { 
  display: flex; 
  justify-content: center; 
  gap: 2.2rem; 
  flex-wrap: wrap; 
  margin-top: 1.4rem;
}
.member { 
  width: 180px; 
  text-align: center; 
}
.member img { 
  width: 180px; 
  height: 180px; 
  object-fit: cover; 
  border-radius: 50%; 
  border: 3px solid rgba(255,255,255,0.06); 
  box-shadow: 0 6px 22px rgba(0,0,0,0.6); 
}
.member h4 { 
  margin-top: .6rem; 
  font-size: 1.05rem; 
  color: #333333; 
  font-weight: 600; 
}
.member p { 
  color: rgba(51,51,51,0.75); 
  font-size: .95rem; 
}

/* add space between paragraph and team */
.section .lead + .team { margin-top: 2rem; }

/* --- SERVICIOS (alternados) --- */
.service { 
  display: flex; 
  align-items: center; 
  gap: 2rem; 
  margin: 2.4rem 0; 
  justify-content: space-between;
}
.service-image { 
  flex: 0 0 48%; 
}
.service-image img { 
  width: 100%; 
  height: 320px; 
  object-fit: cover; 
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6); 
}
.service-content { 
  flex: 1;
  padding: 0 1.2rem;
  color: rgba(233,240,247,0.95);
  text-align: left; 
}
.service-content h3 { 
  margin-bottom: .6rem; 
  font-size: 1.5rem; 
  color: #333333; 
}
.service-content ul {
  margin-left: 1.5rem;
  line-height: 1.8;
  color: rgba(51,51,51,0.9);
}


/* --- PROYECTOS (slider compacto) --- */
.projects-slider { 
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0; 
}
.project {
  min-width: 280px;
  flex: 0 0 auto; 
  border-radius: 8px; 
  overflow: hidden; 
  box-shadow: 0 6px 22px rgba(0,0,0,0.6);
}
.project img { 
  width: 100%; 
  height: 200px; 
  object-fit: cover; 
  display: block; 
}

/* --- CONTACTO --- */
.contact-info { 
  list-style: none; 
  color: rgba(51,51,51,0.95); 
  text-align: center; 
  margin-bottom: 1rem; 
}
.contact-info li { 
  margin: .45rem 0; 
}
.contact-actions {
  text-align: center;
}

/* --- FOOTER --- */
.site-footer { 
  border-top: 1px solid rgba(51,51,51,0.03); 
  padding: 1.4rem 0; 
  text-align: center; 
  color: rgba(255,255,255,0.9); 
  background: rgba(0, 51, 102, 0.9); 
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .slide-content h1 { font-size: 1.9rem; }
  .service { flex-direction: column; }
  .service-image img { height: 220px; }
  .service-content { padding: 0; }
  .nav-links { display: none; } /* simplificamos en móvil; puedes implementar menú hamburguesa luego */
  .brand-name { display: none; }
}

@media (max-width: 480px) {
  .member img { width: 140px; height: 140px; }
  .slide-content p { font-size: .95rem; }
}

/* === Menú móvil === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background: rgba(0, 18, 43, 0.95);
    width: 100%;
    text-align: center;
    gap: 0;
    display: none;
  }
  .nav-links li {
    border: none;
    padding: 1rem 0;
  }
  .nav-links a {
  display: block;
  font-size: 1.1rem;
  color: #ffffff; /* 🔥 fuerza texto blanco en móvil */
  }
  .nav-links.show {
    display: flex;
    animation: fadeInMenu 0.3s ease;
  }

/* 🔥 Arreglar menú móvil */
.nav-links {
  align-items: center;
}

.nav-links li {
  margin: 0;
  min-width: auto;
  width: 100%;
  justify-content: center;
}

.nav-links li::before {
  display: none; /* elimina las líneas verticales */
}

.nav-links a {
  color: #ffffff;
  text-align: center;
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
