/* ======================================================
TABLET (≤ 992px)
====================================================== */
@media (max-width: 992px) {

  /* SMART */
  .smart-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .smart-header h2 {
    font-size: 1.8rem;
  }

  /* CHANNELS */
  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======================================================
MOBILE (≤ 768px)
====================================================== */
@media (max-width: 768px) {

  /* ================= BASE ================= */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  body.menu-open {
  overflow: hidden;
}

/* ================= SECTIONS ================= */
  .section,
  .about-section,
  .presencia,
  #soluciones,
  .data-section,
  .cta-final-section,
  .testimonials-section {
    padding: 72px 0;
  }

/* ================= TYPO ================= */
  h1 {
    font-size: 1.5rem !important;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.6rem !important;
    line-height: 1.2;
  }

  p {
    font-size: 1rem !important; 
    line-height: 1.4;
  }

/* ======================================================
NAVBAR
====================================================== */
.nav {
  height: 64px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  font-size: 28px;
  color: var(--color-secondary);
  cursor: pointer;
}

.nav-links {
  gap: revert;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: var(--color-light);

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 34px 60px;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-align: center;

  transition: opacity .3s ease;
  z-index: 999;
}

.nav-links.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-links li {
  width: 100%;
  border-bottom: 1px solid #cbd5e1;
}

.nav-links a {
  position: unset;
  width: 100%;
  font-weight: 600;
  color: var(--color-primary);
  justify-content: center;
  display: block;
  font-size: 19px;
  padding: 30px 0;
}

.nav-cta .btn {
  display: flex;
  justify-content: center;
  width: 100%;
  font-size: 19px;
  font-weight: 600;
  padding: 16px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 10px;
}

  .nav-cta {
  display: block;
  margin-top: auto;
  border-bottom: none;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;

  padding: 20px 34px 30px;
  background: var(--color-light);

  z-index: 1000;

  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all .3s ease;
  }

  .nav-links.open + .nav-cta {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  }

  /* =========================
  CLIENTES
  ========================= */
  .clientes-section {
    padding: 80px 0;
  }

  .clientes-header {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 50px;
  }

  .clientes-header h2 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .clientes-highlight {
    font-size: 1rem;
  }

  .clientes-intro p {
    font-size: 0.95rem;
  }

  /* GRID → 2 columnas */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-card {
    height: 120px;
    padding: 12px;
  }

  .partner-card img {
    height: 35px;
  }

  .partner-card span {
    font-size: 0.7rem;
  }

/* =========================
TESTIMONIALS
========================= */
  .testimonials-section {
    padding: 80px 0;
  }

  .testimonials-header {
    margin-bottom: 40px;
    padding: 0 10px;
  }

  .testimonials-header h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .testimonials-header p {
    font-size: 0.95rem;
  }

  .testimonials-claim {
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .testimonials-slider {
    overflow: visible;
  }

  .testimonials-steps {
    display: flex;
    gap: 16px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-padding: 20px;

    padding: 20px;
    touch-action: pan-x;
    scroll-behavior: smooth;
  }

  .testimonials-steps::-webkit-scrollbar {
    display: none;
  }

  .testimonials-arrow.right {
    display: none;
}

/* ================= FOOTER ================= */
.footer-container {
  flex-direction: column;
  text-align: center;
  gap: 16px;
}

/* =====================================================
FLOATING CONTACT
===================================================== */
  .floating-contact {
    bottom: 16px;
    right: 16px;
    z-index: 998;
  }

  .contact-toggle {
    width: 54px;
    height: 54px;
    font-size: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  }

  .contact-options {
    gap: 8px;
    margin-bottom: 10px;
    align-items: flex-end;
  }

  .contact-btn {
    font-size: 14px;
    padding: 10px 14px;
    white-space: nowrap;
    max-width: 85vw;
  }

  .contact-btn:hover {
    transform: none;
  }

  .contact-toggle:hover {
    transform: none;
  }

  .floating-contact {
    pointer-events: none;
  }

  .contact-toggle {
    pointer-events: auto;
  }

  .floating-contact.active {
    pointer-events: auto;
  }

}