/* ═══════════════════════════════════════════════════════════════
   GESAPROV — RESPONSIVE DESIGN
   responsive.css | v1.2.0
   Breakpoints: 1200px / 992px / 768px / 576px / 414px / 375px / 360px
   ═══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   ▸▸ INTERACTIVIDAD M\xD3VIL — componentes flotantes
   - Back-to-top: aparece al scrollear m\xE1s de 600px
   - Mobile CTA bar: barra inferior con cotizar + WhatsApp
   - Header auto-hide: oculta al scrollear hacia abajo
   - Press states: feedback visual inmediato al tap
   ────────────────────────────────────────────────────────────── */

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 92px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,91,255,0.35);
  background: rgba(7,26,51,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-white);
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 998;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bttFadeIn 0.3s ease;
  transition: transform 0.18s, background 0.18s;
}
.back-to-top:hover  { transform: translateY(-2px); background: rgba(0,91,255,0.85); }
.back-to-top:active { transform: translateY(0) scale(0.94); }
.back-to-top[hidden]{ display: none; }

@keyframes bttFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile CTA bar — barra inferior fija */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(4,13,26,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.30);
  z-index: 997;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out, cubic-bezier(0.22,1,0.36,1));
}
.mobile-cta-bar.is-visible { transform: translateY(0); }
.mobile-cta-bar[hidden]    { transform: translateY(100%); display: grid; }

.mobile-cta-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.mobile-cta-bar__btn:active { transform: scale(0.96); }
.mobile-cta-bar__btn i { font-size: 1rem; }
.mobile-cta-bar__btn--primary {
  background: var(--grad-blue);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,91,255,0.32);
}
.mobile-cta-bar__btn--whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(18,140,126,0.32);
}

/* Solo mostrar la barra en m\xF3vil/tablet */
@media (max-width: 768px) {
  .mobile-cta-bar { display: grid; }

  /* Cuando la barra est\xE1 visible, espacio extra al final del body
     para que el footer no quede tapado */
  body.has-mobile-cta-bar { padding-bottom: 72px; }

  /* Subir el back-to-top y el whatsapp-float para no chocar con la barra */
  .back-to-top    { bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 16px); }
  .whatsapp-float { bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 16px); }
}

/* Header auto-hide */
.header {
  transition: transform 0.3s var(--ease-out, cubic-bezier(0.22,1,0.36,1)),
              background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}
.header--hidden { transform: translateY(-100%); }

/* Press states t\xE1ctiles — feedback visual inmediato */
@media (max-width: 992px) {
  .sol-card, .service-card, .use-case-card, .pillar-card,
  .feature-card, .diff-card, .product-benefit, .feature-deep,
  .product-pill, .chip, .showcase-dot, .faq-item__question,
  .product-modal__tab, .product-modal__nav, .product-modal__action-card,
  .benefit-card {
    transition: transform 0.12s ease-out, box-shadow 0.18s, border-color 0.18s, background 0.18s;
  }
  .sol-card:active, .service-card:active, .use-case-card:active,
  .pillar-card:active, .feature-card:active, .diff-card:active,
  .product-benefit:active, .feature-deep:active,
  .product-modal__action-card:active, .benefit-card:active {
    transform: scale(0.985);
  }
  .product-pill:active, .chip:active, .showcase-dot:active,
  .faq-item__question:active, .product-modal__tab:active,
  .product-modal__nav:active {
    transform: scale(0.95);
  }
  .btn:active { transform: scale(0.96) translateY(0); }

  /* Scroll-snap en showcase para que el deslizar quede perfecto */
  .showcase__track { scroll-snap-type: x mandatory; }
  .showcase-slide  { scroll-snap-align: center; }
}

/* ──────────────────────────────────────────────────────────────
   ▸▸ REGLAS GLOBALES PARA DISPOSITIVOS T\xC1CTILES (todo <=992px)
   Buenas prácticas:
   - font-size ≥ 16px en inputs evita el zoom autom\xE1tico de iOS Safari
   - tap-targets m\xEDnimos 44x44px (Apple HIG / WCAG 2.5.5)
   - anti-overflow horizontal global
   - tap highlight personalizado (no el azul ugly por defecto)
   - text-rendering optimizado para fluidez de scroll
   ────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    -webkit-tap-highlight-color: rgba(0, 91, 255, 0.12);
    text-rendering: optimizeSpeed;
  }

  /* Anti-overflow para imágenes y media */
  img, video, iframe, svg {
    max-width: 100%;
    height: auto;
  }

  /* Anti-zoom de iOS Safari al hacer focus en inputs */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Tap targets mínimos accesibles */
  .btn, .nav__link, .faq-item__question,
  .social-link, .product-pill, .chip,
  .footer__col a, .contact-link,
  .product-modal__close, .product-modal__tab,
  .product-modal__nav, .hamburger,
  .showcase-arrow, .showcase-dot {
    min-height: 44px;
  }
  .showcase-dot { min-width: 28px; }

  /* Reducir efectos costosos en GPU móvil */
  .cursor-spotlight, .cursor-ring, .cursor-dot { display: none !important; }

  /* Backdrop-filter pesado: reducir blur para mejor performance */
  .header,
  .header__nav,
  .glass-card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

  /* Float shapes y partículas decorativas: opacidad reducida */
  .float-shapes { opacity: 0.5; }
  .particle-field { opacity: 0.6; }

  /* Scroll progress bar más delgada */
  .scroll-progress { height: 2px; }
}

/* ──────────────────────────────────────────────────────────────
   1200px — LAPTOP
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  :root { --container-px: 32px; }

  .hero__container   { gap: 48px; }
  .hero__title       { font-size: 2.75rem; }

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

  .process__timeline { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .process__timeline::before { display: none; }

  .security__grid    { grid-template-columns: repeat(4, 1fr); }
  .stats-band__inner { grid-template-columns: repeat(5, 1fr); }
}

/* ──────────────────────────────────────────────────────────────
   992px — TABLET HORIZONTAL
   ────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  :root {
    --section-py: 72px;
    --header-h:   92px;
  }

  /* Header móvil: nav como drawer lateral desde la derecha */
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 340px);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, rgba(7,26,51,0.99) 0%, rgba(4,13,26,0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: calc(var(--header-h) + 16px) 28px 32px;
    border-left: 1px solid rgba(255,255,255,0.08);
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.22,1,0.36,1);
    z-index: 999;
    box-shadow: -20px 0 40px rgba(0,0,0,0.45);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .header__nav.open {
    transform: translateX(0);
    pointer-events: all;
  }

  /* Overlay oscuro detr\xE1s del drawer cuando est\xE1 abierto */
  .header__nav.open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.50);
    z-index: -1;
    animation: drawerOverlayIn 0.32s both;
  }
  @keyframes drawerOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav__link {
    font-size: 1.0625rem;
    font-weight: 600;
    padding: 14px 18px;
    width: 100%;
    border-radius: 12px;
    color: rgba(255,255,255,0.85);
    transition: background 0.18s, color 0.18s, transform 0.12s;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .nav__link:hover {
    background: rgba(0,194,255,0.10);
    color: var(--color-white);
    border-left-color: var(--color-cyan);
  }
  .nav__link.active {
    background: rgba(0,91,255,0.18);
    color: var(--color-white);
    border-left-color: var(--color-blue);
  }
  .nav__link:active { transform: scale(0.98); }

  .hamburger { display: flex; }
  /* Animar hamburger -> X cuando est\xE1 abierto */
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hamburger span { transition: transform 0.25s, opacity 0.2s; transform-origin: center; }

  /* Hero */
  .hero__container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding-top: 32px;
  }
  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero__subtitle { max-width: 100%; }
  .hero__actions { justify-content: center; }

  .hero__cards {
    height: 320px;
    max-width: 400px;
    margin: 0 auto;
  }
  .hero__card--1 { top: 0; left: 10%; }
  .hero__card--2 { top: 25%; right: 5%; }
  .hero__card--3 { top: 50%; left: 5%; }
  .hero__card--4 { bottom: 15%; right: 8%; }
  .hero__card--5 { bottom: 0; left: 20%; }

  /* Stats band */
  .stats-band__inner { grid-template-columns: repeat(3,1fr); }
  .stat-item:nth-child(3) { border-right: none; }
  .stat-item:nth-child(4),
  .stat-item:nth-child(5) { border-top: 1px solid rgba(255,255,255,.05); }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  /* Process */
  .process__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Use cases */
  .use-cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Security */
  .security__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

/* ──────────────────────────────────────────────────────────────
   768px — TABLET PORTRAIT / M\xD3VIL LANDSCAPE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-py:    60px;
    --container-px:  20px;
    --header-h:      80px;
  }

  /* Header */
  .header__container { padding: 10px var(--container-px); }
  .header__actions .btn--primary { display: none; }
  .header__logo img { height: 60px; }
  .footer__logo img { height: 60px; }
  .hamburger { width: 44px; height: 44px; }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 64px;
  }
  .hero__title { font-size: 2.25rem; }
  .hero__subtitle { font-size: 0.9375rem; }

  .hero__cards {
    height: 260px;
    max-width: 360px;
  }
  .hero__card { font-size: 0.75rem; padding: 10px 14px; }

  /* Stats band */
  .stats-band__inner { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.05); }
  .stat-item:last-child,
  .stat-item:nth-last-child(2) { border-bottom: none; }

  /* Section header */
  .section-header { margin-bottom: 48px; }
  .section-title { font-size: 1.875rem; }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Solutions */
  .solutions__grid {
    grid-template-columns: 1fr;
  }

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

  /* Differentials */
  .diff__grid {
    grid-template-columns: 1fr;
  }

  /* Process */
  .process__timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .process-step {
    flex-direction: row;
    text-align: left;
    gap: 16px;
    align-items: flex-start;
  }
  .process-step__num {
    flex-shrink: 0;
    margin-top: 4px;
  }
  .process-step__content { flex: 1; }

  /* Portfolio */
  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  /* Use cases */
  .use-cases__grid {
    grid-template-columns: 1fr;
  }

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

  /* CTA */
  .cta-box {
    padding: 48px 28px;
  }
  .cta-box h2 { font-size: 1.75rem; }

  /* Form rows single column */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form { padding: 28px 24px; }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__desc { max-width: 100%; }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Showcase rotativo — base m\xF3vil */
  .showcase-slide {
    grid-template-columns: 1fr;
    padding: 36px 24px 28px;
    min-height: 0;
    text-align: left;
  }
  .showcase-slide__visual { order: -1; margin-bottom: 4px; }
  .showcase-visual { width: 150px; height: 150px; }
  .showcase-visual__main { font-size: 3.25rem; }
  .showcase-visual__chip { width: 36px; height: 36px; font-size: 0.85rem; }
  .showcase-slide__features { grid-template-columns: 1fr; }
  .showcase-arrow { display: none; }
  .showcase__viewport { border-radius: 18px; }

  /* Toolbar filtros + b\xFAsqueda */
  .solutions__toolbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "chips"
      "count";
    padding: 16px;
  }
  .solutions__chips {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .solutions__chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }

  /* Modal de productos — base m\xF3vil */
  .product-modal__dialog { max-height: 96vh; border-radius: 18px; }
  .product-modal__header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 32px 24px 22px;
    gap: 14px;
  }
  .product-modal__nav { padding: 12px 14px; }
  .product-modal__nav--prev { order: 2; }
  .product-modal__heading { order: 1; align-items: flex-start; }
  .product-modal__nav--next { order: 3; }
  .product-modal__counter,
  .product-modal__tabs,
  .product-modal__panels,
  .product-modal__hint { padding-left: 24px; padding-right: 24px; }
  .product-modal__action-grid { grid-template-columns: 1fr; }

  /* Page de producto (productos/*.html) */
  .product-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .product-hero__visual { order: -1; }
  .product-orb { width: 200px; height: 200px; }
  .product-orb__main { font-size: 4.5rem; }
  .product-orb__chip { width: 42px; height: 42px; font-size: 1rem; }
  .features-deep__list { grid-template-columns: 1fr; }
  .feature-deep { padding: 24px 24px 24px 80px; }
  .product-benefits__grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .diffs-grid { grid-template-columns: 1fr; }
  .product-problem__grid { grid-template-columns: 1fr; gap: 32px; }
  .problem-card { flex: 0 1 100%; }
  .product-ideal__grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────
   576px — MÓVIL GRANDE (refinamiento pulido y compacto)
   ────────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  :root {
    --section-py:    56px;
    --container-px:  16px;
    --header-h:      72px;
  }

  /* Header más compacto */
  .header__logo img { height: 48px; }
  .footer__logo img { height: 52px; }

  /* Hero */
  .hero__title { font-size: 1.875rem; line-height: 1.15; }
  .hero__subtitle { font-size: 0.9375rem; line-height: 1.55; }
  .hero__badge { font-size: 0.6875rem; padding: 5px 12px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__actions .btn { width: 100%; }

  /* Hero stats compactos */
  .hero-stats { gap: 18px; margin: 24px 0; }
  .hero-stat__num { font-size: 1.5rem; }
  .hero-stat__label { font-size: 0.6875rem; }

  /* Pills de productos del hero — scroll horizontal en móvil */
  .hero__products-strip {
    gap: 8px;
    padding-bottom: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero__products-strip::-webkit-scrollbar { display: none; }
  .product-pill { padding: 7px 12px; font-size: 0.75rem; flex-shrink: 0; }

  /* Cards visuales del hero ocultas en móvil pequeño */
  .hero__cards { display: none; }
  .hero__container { grid-template-columns: 1fr; }

  /* Stats band */
  .stats-band__inner { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.05); padding: 24px 16px; }
  .stat-item:last-child { border-bottom: none; }
  .marquee-band { display: none; }

  /* Section header más compacto */
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 1.5rem; line-height: 1.2; }
  .section-desc { font-size: 0.9375rem; }
  .section-tag { font-size: 0.6875rem; padding: 5px 11px; letter-spacing: 0.15em; }

  /* Service cards — mucho más compactas en móvil */
  .service-card { padding: 24px 20px; }
  .service-card__icon {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
    margin-bottom: 16px;
    border-radius: 14px;
  }
  .service-card h3 { font-size: 1.0625rem; margin-bottom: 8px; letter-spacing: -0.01em; }
  .service-card p { font-size: 0.875rem; line-height: 1.55; }

  /* Solution cards — más compactas y elegantes */
  .sol-card { padding: 22px 20px; }
  .sol-card__header { gap: 12px; margin-bottom: 14px; }
  .sol-card__icon { width: 44px; height: 44px; font-size: 1.125rem; flex-shrink: 0; }
  .sol-card__name { font-size: 1.0625rem; letter-spacing: -0.01em; }
  .sol-card__category { font-size: 0.6875rem; }
  .sol-card__status { font-size: 0.625rem; padding: 4px 9px; }
  .sol-card__desc { font-size: 0.875rem; line-height: 1.55; margin-bottom: 14px; }
  .sol-card__features { gap: 6px; margin-bottom: 16px; }
  .sol-card__features li { font-size: 0.8125rem; line-height: 1.5; }
  .sol-card__features li i { font-size: 0.75rem; }
  .sol-card__features li:nth-child(n+5) { display: none; }

  /* Showcase rotativo — adaptado a móvil */
  .showcase__head { gap: 8px; }
  .showcase__label { font-size: 0.625rem; padding: 5px 11px; }
  .showcase-slide { padding: 28px 22px 24px; gap: 20px; min-height: 0; }
  .showcase-slide__category { font-size: 0.625rem; }
  .showcase-slide__title { font-size: 1.5rem; line-height: 1.15; }
  .showcase-slide__tagline { font-size: 0.875rem; line-height: 1.55; margin-bottom: 14px; }
  .showcase-slide__features { gap: 6px 12px; margin-bottom: 18px; }
  .showcase-slide__features li { font-size: 0.75rem; }
  .showcase-slide__actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .showcase-slide__actions .btn { width: 100%; }
  .showcase__viewport { border-radius: 18px; }
  .showcase-visual { width: 130px; height: 130px; }
  .showcase-visual__main { font-size: 2.75rem; }
  .showcase-visual__chip { width: 32px; height: 32px; font-size: 0.75rem; }
  .showcase-dot { width: 22px; height: 3px; }
  .showcase-dot.is-active { width: 32px; }

  /* Filtros toolbar — más compacto */
  .solutions__toolbar { padding: 14px; gap: 14px; }
  .solutions__search-input { padding: 10px 40px 10px 40px; font-size: 0.875rem; }
  .solutions__search-icon { left: 14px; font-size: 0.875rem; }
  .chip { padding: 7px 13px; font-size: 0.75rem; }
  .chip__count { min-width: 18px; height: 18px; font-size: 0.625rem; padding: 0 4px; }
  .solutions__count { font-size: 0.75rem; }

  /* Use case cards */
  .use-case-card { padding: 24px 20px; }
  .use-case-card h3 { font-size: 1rem; line-height: 1.3; }
  .use-case-card p { font-size: 0.875rem; line-height: 1.55; }
  .use-case-card__num { font-size: 1.875rem; }
  .use-case-card__icon { font-size: 1.5rem; }
  .use-case-tag { font-size: 0.6875rem; padding: 5px 11px; }

  /* Sectors */
  .sectors__grid { grid-template-columns: 1fr; gap: 12px; }
  .sector-item { padding: 18px 20px; }
  .sector-item i { font-size: 1.5rem; }
  .sector-item h4 { font-size: 0.9375rem; }
  .sector-item p { font-size: 0.8125rem; }

  /* Security & differentials */
  .security__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .security-item { padding: 16px 14px; font-size: 0.8125rem; gap: 10px; }
  .security-item i { font-size: 1.125rem; }
  .diff-card { padding: 22px 20px; }
  .diff-card h3 { font-size: 1rem; }
  .diff-card p { font-size: 0.875rem; }

  /* FAQ */
  .faq-item__question { font-size: 0.9375rem; padding: 16px 18px; line-height: 1.4; }
  .faq-item__answer   { padding: 0 18px 16px; font-size: 0.875rem; line-height: 1.6; }

  /* Pillars (about) */
  .pillar-card { padding: 24px 20px; }
  .pillar-card__icon { width: 44px; height: 44px; font-size: 1.125rem; margin-bottom: 14px; }
  .pillar-card h3 { font-size: 1.0625rem; }
  .pillar-card p { font-size: 0.875rem; line-height: 1.55; }

  /* WhatsApp flotante */
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
  .whatsapp-float__tooltip { display: none; }

  /* Tech badges */
  .tech-badge { font-size: 0.75rem; padding: 7px 12px; }

  /* Botones genéricos */
  .btn--lg { padding: 12px 22px; font-size: 0.9375rem; }
  .btn--sm { padding: 9px 16px; font-size: 0.8125rem; }

  /* CTA box */
  .cta-box { padding: 36px 22px; border-radius: 20px; }
  .cta-box h2 { font-size: 1.5rem; line-height: 1.2; }
  .cta-box p { font-size: 0.9375rem; }
  .cta-box__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-box__actions .btn { width: 100%; }

  /* Form */
  .contact-form { padding: 24px 20px; border-radius: 18px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 11px 14px; font-size: 0.9375rem; }
  .form-group label { font-size: 0.8125rem; }

  /* Contact info items */
  .contact-info-item { padding: 14px 16px; }
  .contact-info-item__icon { width: 38px; height: 38px; font-size: 1rem; }
  .contact-info-item span { font-size: 0.75rem; }
  .contact-info-item a, .contact-info-item p { font-size: 0.9375rem; }

  /* Modal de productos — más legible en móvil */
  .product-modal__panels { padding: 22px 18px 20px; min-height: 0; }
  .product-modal__tabs { padding: 14px 18px 0; gap: 2px; }
  .product-modal__tab { padding: 10px 12px; font-size: 0.8125rem; }
  .product-modal__tab span { display: none; }     /* solo íconos en móvil */
  .product-modal__tab.is-active span { display: inline; }
  .product-modal__counter { padding: 10px 18px 4px; }
  .product-modal__counter > span { font-size: 0.6875rem; }
  .feature-item { padding: 12px 14px; }
  .feature-item__name { font-size: 0.875rem; }
  .feature-item__desc { font-size: 0.75rem; padding-left: 24px; }
  .product-modal__hint { padding: 0 18px 16px; font-size: 0.6875rem; }
}

/* ──────────────────────────────────────────────────────────────
   414px — iPhone Plus / Galaxy regular
   ────────────────────────────────────────────────────────────── */
@media (max-width: 414px) {
  :root { --container-px: 15px; }

  /* Header: logo m\xE1s peque\xF1o, hamburguesa compacta */
  .header__logo img { height: 44px; }
  .hamburger { width: 40px; height: 40px; }
  .hamburger span { width: 22px; }

  /* Hero refinado */
  .hero__title { font-size: 1.75rem; line-height: 1.18; }
  .hero__subtitle { font-size: 0.875rem; }
  .hero__products-strip { padding-top: 8px; }
  .product-pill { padding: 6px 11px; font-size: 0.6875rem; }
  .product-pill__icon { width: 18px; height: 18px; font-size: 0.7rem; }

  /* Stats m\xE1s compactas */
  .hero-stats { gap: 12px; }
  .hero-stat__num { font-size: 1.375rem; }
  .hero-stat__label { font-size: 0.625rem; }

  /* Service cards */
  .service-card { padding: 22px 18px; }
  .service-card__icon { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: 14px; }
  .service-card h3 { font-size: 1rem; }

  /* Solution cards y showcase */
  .sol-card { padding: 20px 18px; }
  .sol-card__icon { width: 40px; height: 40px; font-size: 1rem; }
  .sol-card__name { font-size: 1rem; }
  .showcase-slide { padding: 24px 20px 20px; }
  .showcase-slide__title { font-size: 1.375rem; }
  .showcase-visual { width: 120px; height: 120px; }
  .showcase-visual__main { font-size: 2.5rem; }

  /* Use case, pillar, diff cards */
  .use-case-card { padding: 22px 18px; }
  .pillar-card { padding: 22px 18px; }
  .diff-card { padding: 22px 18px; }

  /* Sectores */
  .sector-item { padding: 16px 18px; }

  /* CTA */
  .cta-box { padding: 32px 20px; }
  .cta-box h2 { font-size: 1.375rem; }

  /* Form */
  .contact-form { padding: 22px 18px; }

  /* Modal */
  .product-modal__panels { padding: 18px 16px; }
  .product-modal__tabs { padding: 12px 16px 0; }
  .product-modal__tab { padding: 10px 8px; font-size: 0.75rem; }
}

/* ──────────────────────────────────────────────────────────────
   375px — iPhone SE / m\xF3vil peque\xF1o
   ────────────────────────────────────────────────────────────── */
@media (max-width: 375px) {
  :root { --container-px: 14px; }

  .logo-text { font-size: 1rem; }
  .header__logo img { height: 40px; }

  /* Hero */
  .hero__title { font-size: 1.5rem; line-height: 1.2; }
  .hero__subtitle { font-size: 0.8125rem; }
  .hero__badge { font-size: 0.625rem; padding: 4px 10px; }
  .hero-stats { gap: 10px; }
  .hero-stat { padding: 8px; }
  .hero-stat__num { font-size: 1.25rem; }

  /* Section titles */
  .section-title { font-size: 1.375rem; line-height: 1.25; }
  .section-desc { font-size: 0.875rem; }

  /* Service cards a\xFAn m\xE1s compactas */
  .service-card { padding: 20px 16px; }
  .service-card__icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .service-card h3 { font-size: 0.9375rem; }
  .service-card p { font-size: 0.8125rem; }

  /* Cards diversas */
  .sol-card { padding: 18px 16px; }
  .pillar-card { padding: 20px 16px; }
  .diff-card { padding: 20px 16px; }
  .contact-form { padding: 20px 16px; }
  .use-case-card { padding: 20px 16px; }
  .feature-card { padding: 20px 16px; }
  .product-benefit { padding: 22px 18px; }

  /* Footer */
  .footer__social { flex-wrap: wrap; gap: 8px; }
  .social-link { width: 38px; height: 38px; font-size: 0.95rem; }

  /* Botones */
  .btn--lg { padding: 12px 20px; font-size: 0.875rem; }
  .btn--sm { padding: 8px 14px; font-size: 0.75rem; }
  .btn { gap: 7px; }

  /* WhatsApp flotante */
  .whatsapp-float { width: 48px; height: 48px; bottom: 16px; right: 16px; font-size: 1.25rem; }
}

/* ──────────────────────────────────────────────────────────────
   360px — Android base / pantallas muy estrechas
   ────────────────────────────────────────────────────────────── */
@media (max-width: 360px) {
  :root { --container-px: 12px; }

  .hero__title { font-size: 1.4rem; }
  .section-title { font-size: 1.25rem; }
  .product-pill { padding: 5px 9px; font-size: 0.625rem; }
  .product-pill__icon { width: 14px; height: 14px; font-size: 0.625rem; }
  .hero__actions .btn { padding: 11px 16px; font-size: 0.8125rem; }
  .sol-card__features li:nth-child(n+4) { display: none; }
  .showcase-slide__features li:nth-child(n+4) { display: none; }
}

/* ──────────────────────────────────────────────────────────────
   PRINT STYLES (básico)
   ────────────────────────────────────────────────────────────── */
@media print {
  .header,
  .whatsapp-float,
  .hero__bg,
  .hero__cards,
  .cta-section,
  .hero__scroll { display: none !important; }

  body { background: white; color: black; }
  .section--dark { background: #eee; color: black; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.7em; }
}
