body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: #2f2f41;
  background-color: #fff;
}

html {
    scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 190dvh;
  padding: 0 20px;
  margin: 0 auto;
}

.header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav {
    margin-left: auto;
    z-index: 10001;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding-left: 0;
  margin: 0;
}

.nav a {
  color: #181a27;
  font-weight: 600;
  font-size: 20px;
  transition: color 0.3s;
}

.nav a:hover {
  color: #298a53;
}

  .nav.active ul {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    padding: 10px 20px;
    background-color: #fff;
    z-index: 10002;
  }

.btn-primary {
  background-color: #217284;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.3s;
  display: inline-block;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: #00b38a;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.banner_shap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 25px;
  color: #6c6c80;
  margin-bottom: 24px;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  margin-bottom: 40px;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  display: none;
  color: #fff;
}

.nav-cta {
  margin-left: auto;
}

/* === Overrides === */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 20px 0;
  z-index: 10;
}

.hero {
  padding: 120px 0 140px;
}

.hero .banner_shap {
  position: absolute;
  top: 0;
  left: 52%;
  width: auto;
  max-width: none;
  height: 100%;
  z-index: 0;
}

.features {
  padding: 80px 0;
  background-color: #fff;
  text-align: center;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title p {
  font-size: 24px;
  color: #6c6c80;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.feature-item img {
  width: 250px;
  margin-bottom: 20px;
}

.feature-item h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-item p {
  color: #6c6c80;
  font-size: 20px;
}

.faq {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.faq-list {
  display: grid;
  gap: 30px;
}

.faq-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 20px;
  color: #6c6c80;
}

.contact {
  padding: 80px 0;
  background-color: #fff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 90%;
  padding: 14px 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: "Nunito", sans-serif;
  font-size: 20px;
}

.contact-form textarea {
  resize: vertical;
}

.clients {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.clients-logos img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}

.clients-logos img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

.clients-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 40px auto 0;
}

.slider-track {
  display: flex;
  width: calc(300px * 22); /* 11 logos duplicados */
  animation: scrollClients 40s linear infinite;
  gap: 40px;
  align-items: center;
}

.slider-track img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.slider-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scrollClients {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.footer-cta {
  background-color: #181a27;
  color: #fff;
  padding: 60px 20px 30px;
  text-align: center;
}

.footer-cta-box h2 {
  font-size: 32px;
  margin-bottom: 12px;
  font-weight: 900;
}

.footer-cta-box p {
  font-size: 21px;
  margin-bottom: 24px;
  color: #d1d1d1;
}

.footer-cta .btn-primary {
  background-color: #217284;
  padding: 14px 32px;
  font-size: 20px;
}

.footer-social {
  margin: 30px 0 10px;
}

.footer-social a {
  margin: 0 12px;
  display: inline-block;
}

.footer-social img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: invert(100%);
}

.footer-social img:hover {
  opacity: 1;
}

.footer-bottom {
  font-size: 14px;
  color: #a5a5a5;
  margin-top: 20px;
}

.why-novaptix-section {
  padding: 20px 20px;
  background-color: #f0f8f7;
  text-align: center;
}
.why-novaptix-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #385a7f;
}
.why-novaptix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 10px;
  max-width: 95vw;
  margin: 0 auto;
}
.why-novaptix-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
}
.why-novaptix-card h3 {
  color: #385a7f;
  font-size: 1.4rem;
  margin-top: 0;
}
.why-novaptix-card p {
  color: #444;
  font-size: 1.3rem;
  line-height: 1.6;
}

.submit-button {
  background-color: #217284;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
      width: 102%;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.submit-button:hover {
  background-color: #00b38a;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

    .contact-form button {
      background-color: #217284;
      color: #fff;
      padding: 14px 28px;
      border: none;
      border-radius: 6px;
      font-weight: 700;
      cursor: pointer;
      transition: background-color 0.3s;
    }
    .contact-form button:hover {
      background-color: #00b38a;
    }

/* Floating WhatsApp Button */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 10050; /* por encima del header/nav */
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  opacity: 0.98;
}

.whatsapp-fab:focus,
.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  outline: none;
}

/* Mejoras en mobile: mayor área táctil */
@media (max-width: 480px) {
  .whatsapp-fab {
    right: 14px;
    bottom: 14px;
    width: 64px;
    height: 64px;
  }
}    

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
  }

  .nav.active {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-content {
    flex-direction: column-reverse;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text {
    padding: 0 20px;
  }

  .hero .banner_shap {
    position: absolute;
    top: 0;
    left: 20%;
    width: 80%;
    max-width: none;
    height: auto;
    z-index: 0;
  }
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
  }

  .hero-text {
    flex: 1;
    padding-right: 40px;
  }

  .hero-image {
    flex: 1;
  }

  .hero-text h1 {
    font-size: 48px;
  }
}
