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

/* ======================================================
HERO 
====================================================== */
.hero{
  padding:0;
}

.hero-media{
  position:relative;
  height:603px;
  border-radius:0;
  overflow:hidden;
}

.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:1;
}

.hero-content{
  position:relative;
  z-index:2;

  top:auto;
  left:auto;
  transform:none;

  display:flex;
  flex-direction:column;
  justify-content:center;

  height:620px;
  padding:0 24px;
  text-align:left;
}

.hero-content h1{
  line-height:1.2;
  margin-bottom: 20px
}

.hero-content p{
  margin-bottom:80px;
}

.hero-actions{
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.hero-actions .btn{
  width:100%;
  text-align:center;
}

/* ======================================================
QUIÉNES SOMOS 
====================================================== */
.about-section{
  padding:70px 0;
}

.about-header{
  margin-bottom:40px;
}

.about-buttons{
  gap:14px;
  margin-bottom:30px;
  flex-wrap:wrap;
}

.about-btn{
  font-size: 16px;
  padding:8px 0;
}

.about-content{
  grid-template-columns:1fr;
  gap:24px;
}

.about-image{
  order:-1;
}

.about-image img{
  border-radius:14px;
}

.about-text h3{
  font-size:20px;
  margin-bottom:12px;
}

.about-text li{
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 1px;
}

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

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

.section {
  padding: 70px 0;
}

.smart-header {
  margin-bottom: 50px;
}

.smart-steps {
  grid-template-columns: 1fr;
  gap: 22px;
}

.smart-step {
  padding: 24px;
}

/* ======================================================
DATA SECTION 
====================================================== */
.data-section{
  padding:70px 0;
}

.data-wrapper{
  grid-template-columns:1fr;
  gap:30px;
  margin-bottom:30px;
}

.data-title{
  order:-1;
}

.data-title h2{
  text-align: center;
}

.data-metrics{
  grid-template-columns:repeat(2,1fr);
  border-radius:10px;
}

.metric{
  padding:20px;
  border-right:1px solid rgba(255,255,255,.15);
  border-bottom:1px solid rgba(255,255,255,.15);
}

.metric:nth-child(2n){
  border-right:none;
}

.metric:nth-last-child(-n+2){
  border-bottom:none;
}

.metric strong{
  font-size:24px;
}

.metric span{
  font-size: 13px;
}

.data-image{
  margin-top:10px;
}

.data-image img{
  border-radius:12px;
}

/* ======================================================
TECH SECTION
====================================================== */
.tech-section{
  padding: 20px 0;
}

.tech-header{
  margin-bottom:40px;
}

.tech-columns{
  grid-template-columns:1fr;
  gap:28px;
  border-top:none;
  padding-top:0;
}

.tech-col{
  text-align: center;
  background:white;
  padding:20px;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}

.tech-col i{
  font-size:24px;
  margin-bottom:8px;
  align-items: center;
}

.tech-col h4{
  font-size:16px;
  text-align: center;
}

.tech-col p {
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1.5;
  text-align: center;
  }

/* ================= CHANNELS ================= */
.channels-section {
  display: block;
}

.channels-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ======================================================
TALENTO 
====================================================== */
.talento-section{
  grid-template-columns:1fr;
  min-height:auto;
}

.talento-img{
  order:-1;
}

.talento-img img{
  height:260px;
  object-fit:cover;
}

.talento-texto{
  padding:40px 24px;
}

.talento-content h2{
  font-size:26px;
  margin-bottom:18px;
}

.talento-content p{
  font-size:14px;
  line-height:1.6;
}

/* ================= CTA ================= */
.cta-section{
  padding:50px 0;
}

.cta-wrapper{
  grid-template-columns:1fr;
  gap:24px;
  text-align:center;
}

.cta-text h2{
  font-size:24px;
  margin:0 auto;
}

.cta-actions{
  justify-content:center;
  flex-direction:column;
  gap:12px;
}

.cta-actions .btn{
  width:100%;
  text-align:center;
}

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

/* ======================================================
CTA FINAL
====================================================== */
.cta-final-section{
  padding:80px 0;
  padding-bottom: unset;
}

.cta-final-grid{
  grid-template-columns:1fr;
  gap:40px;
}

.cta-final-content{
  max-width:100%;
}

.cta-final-content h2{
  text-align: center;
}

.cta-final-content p{
  text-align: center;
}

.cta-contact-box{
  padding:14px;
}

.cta-contact-box i{
  width:36px;
  height:36px;
  font-size:1rem;
}

.cta-form-card{
  padding:24px;
  border-radius:12px;
}

.cta-form .form-row{
  grid-template-columns:1fr;
  gap:16px;
}

.cta-form input,
.cta-form textarea{
  font-size:14px;
  padding:11px 12px;
}

.cta-form .btn-primary{
  width:100%;
  text-align:center;
}

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

}