/* ======================================================
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 {
  display: block;
  margin-top: auto;
  border-bottom: none;
}

.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;
}

/* ======================================================
SOLUCIONES
====================================================== */
.section-soluciones{
  padding:0px 0 !important;
}

.soluciones-layout{
  grid-template-columns:1fr;
  gap:28px;
  margin-bottom: 80px;
}

.solution-display{
  height:auto;
  padding:30px;
  border-radius:14px;
}

.solution-display h3{
  font-size: 20px;
}

.solution-display li {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--color-secondary);
}

.solutions-menu{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.solution-btn{
  padding: 12px;
  font-size: 16px;
  text-align: center;
  border-radius: 8px;
}


/* ======================================================
CLIENTES SLIDER
====================================================== */

.logos-track{
  gap:20px;
}

.logos-track {
  display: flex;
  gap: 30px;
  animation: scrollLogos 10s linear infinite;
}

.logos-track img{
  height: 40px;
  opacity: .75;
  transition: var(--transition);
}

/* ================= 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;
  }
}