/* ==================================================================
   CONEXIA TECHNOLOGIES S.A. - ESTILOS MÓVILES (Todas las páginas)
   CORREGIDO: Footer ahora es IDÉNTICO al del index original
   ================================================================== */

@media (max-width: 992px) {
  /* Ajustes generales */
  .container { width: calc(100% - 32px); margin: 0 auto; padding: 0 16px; }
}

@media (max-width: 768px) {

  /* --- HEADER Y NAVEGACIÓN --- */
  .brandLogo { height: 38px; }
  .headerBar { padding: 10px 16px; }
  .navLinks, .navWrapper { display: none !important; }
  .menuBtn { display: flex !important; width: 40px; height: 40px; }
  .headerActions { gap: 8px; }
  .headerSocial { display: flex !important; gap: 6px; }
  .headerSocial .socBtnHeader { width: 34px; height: 34px; }
  .headerSocial .socBtnHeader svg { width: 16px; height: 16px; }
  .search-btn { width: 34px; height: 34px; }
  .search-btn svg { width: 16px; height: 16px; }
  .navDropdown { top: 60px; right: 10px; width: 260px; }
  .navDropdown .items a small { display: none !important; }
  .navDropdown .items a { justify-content: center !important; text-align: center !important; }
  .navDropdown .items a span { font-size: 15px; font-weight: 600; }

  /* ========== PÁGINA PRODUCTOS ========== */
  body[data-page="productos"] .catalog-intro-hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 5% 60px;
  }
  body[data-page="productos"] .catalog-intro-visual {
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    width: 100%;
    height: 250px;
    margin-top: 40px;
  }
  body[data-page="productos"] .sweeping-item {
    max-width: 180px;
  }
  body[data-page="productos"] .hero-main-title {
    font-size: 32px;
  }
  body[data-page="productos"] .hero-main-subtitle {
    font-size: 14px;
  }
  body[data-page="productos"] .brand-videos-grid {
    gap: 15px;
  }
  body[data-page="productos"] .brand-video-card {
    width: 110px;
    height: 110px;
  }
  body[data-page="productos"] .secondary-filters h4,
  body[data-page="productos"] .partners-section h2 {
    font-size: 1.6rem;
  }
  body[data-page="productos"] .brand-btn {
    padding: 6px 14px;
    font-size: 0.7rem;
  }
  body[data-page="productos"] .category-tabs {
    gap: 6px;
  }
  body[data-page="productos"] .cat-tab {
    font-size: 0.65rem;
    padding: 5px 10px;
  }
  body[data-page="productos"] .products-grid {
    gap: 15px;
  }
  body[data-page="productos"] .product-image {
    height: 160px;
    padding: 12px;
  }
  body[data-page="productos"] .product-image img {
    max-height: 120px;
  }
  body[data-page="productos"] .product-info {
    padding: 14px;
  }
  body[data-page="productos"] .product-title {
    font-size: 1rem;
  }
  body[data-page="productos"] .infra-grid {
    gap: 15px;
  }

  /* ========== PÁGINA SERVICIOS ========== */
  body[data-page="servicios"] .hero-flow {
    height: auto;
    min-height: 80vh;
    padding: 120px 5% 60px;
    text-align: center;
    justify-content: center;
  }
  body[data-page="servicios"] .floating-server-wrap {
    position: relative;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 200px;
    margin-top: 40px;
    opacity: 0.5;
  }
  body[data-page="servicios"] .floating-server-wrap img {
    width: 80%;
    margin: 0 auto;
    display: block;
    object-fit: contain;
  }
  body[data-page="servicios"] .heroNewTitle .line-big {
    font-size: 32px !important;
  }
  body[data-page="servicios"] .heroNewTitle .line-sub {
    font-size: 14px !important;
    white-space: normal;
  }
  body[data-page="servicios"] .division-section {
    padding: 60px 0;
  }
  body[data-page="servicios"] .center-header {
    margin-bottom: 40px;
  }
  body[data-page="servicios"] .h2-sector {
    font-size: 28px;
  }
  body[data-page="servicios"] .service-card-v2 {
    width: 90%;
    margin: 0 auto;
  }
  body[data-page="servicios"] .card-image {
    height: 180px;
  }
  body[data-page="servicios"] .card-body {
    padding: 25px;
  }
  body[data-page="servicios"] .btn-link-glow {
    padding: 8px 20px;
    font-size: 10px;
  }
  body[data-page="servicios"] .service-grid-center {
    gap: 20px !important;
    margin: 40px 0 !important;
  }

  /* ========== PÁGINA CONTACTO ========== */
  body[data-page="contacto"] .hero-about {
    height: auto;
    min-height: 70vh;
    padding: 120px 5% 60px;
    text-align: center;
    justify-content: center;
  }
  body[data-page="contacto"] .hero-about-title {
    font-size: 32px;
  }
  body[data-page="contacto"] .hero-about-subtitle {
    font-size: 13px;
    letter-spacing: 2px;
  }
  body[data-page="contacto"] .about-grid-section,
  body[data-page="contacto"] .contact-section {
    padding: 60px 5%;
  }
  body[data-page="contacto"] .section-title {
    font-size: 28px;
  }
  body[data-page="contacto"] .about-card-text {
    padding: 25px;
  }
  body[data-page="contacto"] .about-card h3 {
    font-size: 20px;
  }
  body[data-page="contacto"] .contact-info-item {
    gap: 12px;
  }
  body[data-page="contacto"] .contact-info-item .icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  body[data-page="contacto"] .premium-form {
    padding: 25px;
  }
  body[data-page="contacto"] .btn-submit-premium {
    padding: 14px;
  }
  body[data-page="contacto"] .contact-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 35px !important;
  }
/* ========== FOOTER UNIFICADO (igual al index) ========== */
@media (max-width: 768px) {
  .footerInner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 25px !important;
    justify-content: space-between !important;
    padding: 30px 5% !important;
  }
  .footerCol:first-child {
    width: 100% !important;
    text-align: left !important;
  }
  .footerCol:nth-child(2),
  .footerCol:nth-child(3) {
    width: calc(50% - 12.5px) !important;
    text-align: center !important;
  }
  .footerCol:first-child .muted {
    text-align: justify !important;
  }
  .footerBottom {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center !important;
  }
  /* Anular los estilos viejos de mobile.css */
  .footerBrandRow {
    justify-content: flex-start !important;
  }
  .footerCol h4::after {
    display: none !important;
  }
  .footerLinks, .footerContactList {
    align-items: center !important;
  }
  .footerLine {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
}
.footerLine .footerKey {
  width: auto !important;
  text-align: center !important;
}
.footerLine a {
  display: block !important;
}
}

  /* ========== BOTONES FLOTANTES ========== */
  .scroll-top-btn { width: 42px !important; height: 42px !important; bottom: 20px !important; right: 20px !important; }
  .whatsapp-btn { width: 48px !important; height: 48px !important; bottom: 20px !important; left: 20px !important; }
  .whatsapp-btn img { width: 26px !important; height: 26px !important; }

  /* ========== SEARCH MODAL ========== */
  .search-modal-content { width: 92% !important; padding: 25px 20px !important; }
  .search-modal-input { padding: 12px 18px !important; font-size: 14px !important; }
  .search-modal-close { top: 15px !important; right: 15px !important; width: 35px !important; height: 35px !important; }
}

/* ========== MÓVILES MUY PEQUEÑOS (< 480px) ========== */
@media (max-width: 480px) {
  .whatsapp-btn { width: 48px !important; height: 48px !important; }
  .footer { padding-bottom: 80px !important; }
}