@media (max-width: 1100px) {
  .hero-right {
    transform: perspective(1000px) rotateY(-1.5deg) rotateX(1deg);
  }
}

@media (max-width: 900px) {
  /* Nav */
  .nav {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 0px 24px 44px;
    min-height: auto;
    gap: 30px;
  }

  .hero-logo {
    height: 320px;
    top: 20px;
    left: -10px;
  }

  .hero-left {
    padding: 0;
    align-self: flex-start;
  }

  .hero-right {
    border-left: none;
    padding: 20px;
    transform: none;
  }

  /* Focus cards stack on mobile */
  .hero-focus-cards {
    flex-direction: column;
    gap: 10px;
  }

  .hero-focus-card {
    flex-direction: row;
    padding: 16px 12px;
  }

  .hero-focus-card .focus-label {
    font-size: 12px;
  }

  .growth-chart {
    height: 150px;
  }

  .hero-bg-circle {
    display: none;
  }

  /* Sections */
  .section-wrap,
  .section-wrap-alt {
    padding: 60px 24px;
  }

  .section-title {
    font-size: 40px;
  }

  /* Services */
  .services-header {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .svc-card {
    border-right: 1px solid var(--border);
  }

  .dashboard-section {
    grid-template-columns: 1fr;
    padding: 60px 24px;
  }

  .dash-body {
    grid-template-columns: 1fr;
  }

  .dash-breakdown {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Process */
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .process-grid::before {
    display: none;
  }

  /* Why strip */
  .why-strip {
    grid-template-columns: 1fr;
    padding: 48px 24px;
  }

  .why-item {
    padding: 28px 0;
    border-right: 1px solid rgba(255,255,255,0.11);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    background: transparent;
  }

  .why-item:first-child {
    padding-left: 0;
    padding-top: 0;
  }

  .why-item:last-child {
    border-bottom: none;
    padding-right: 0;
  }

  /* Form */
  .form-section {
    padding: 56px 20px 64px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Formulario primero, copy después */
  .form-right { order: -1; }

  .contact-form {
    padding: 20px;
  }

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

  /* iOS: 16px mínimo evita el auto-zoom al enfocar el campo */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
    padding: 15px 14px;
  }

  .form-label {
    font-size: 13px;
  }

  .form-textarea {
    resize: none;
    min-height: 100px;
  }

  .form-submit {
    width: 100%;
    align-self: stretch;
    min-height: 52px;
    font-size: 16px;
  }

  .form-note {
    font-size: 14px;
    text-align: center;
  }

  .alt-btn {
    padding: 16px 16px;
  }

  .alt-sub {
    font-size: 13px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer {
    padding: 48px 24px 28px;
  }

  /* Chat */
  .chat-widget {
    bottom: 16px;
    right: 16px;
  }

  .chat-panel {
    width: calc(100vw - 32px);
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  /* Nav mobile pequeño */
  .nav-logo-text {
    font-size: 18px;
  }

  .nav-logo-text > span {
    font-size: 9px;
  }

  .hero-h1 {
    font-size: 40px;
  }

  .section-title {
    font-size: 34px;
  }

  .hero-sub,
  .services-intro,
  .form-lead {
    font-size: 16px;
  }

  /* Form en pantallas muy pequeñas */
  .form-section {
    padding: 48px 16px 56px;
    gap: 32px;
  }

  .contact-form {
    padding: 16px;
    gap: 14px;
    border-radius: 18px;
  }

  .form-submit {
    min-height: 54px;
    font-size: 17px;
  }

  .alt-label {
    font-size: 14px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .stat-num {
    font-size: 32px;
  }

  .stat-label {
    max-width: 150px;
  }

  .growth-card {
    padding: 18px;
  }

  .growth-card-head,
  .stat-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-label {
    text-align: left;
  }

  .channel-row {
    grid-template-columns: 78px 1fr;
  }

  .dash-topline,
  .dash-breakdown {
    grid-template-columns: 1fr;
  }

  .dash-bars {
    min-height: 210px;
    gap: 8px;
    padding-inline: 12px;
  }

}

@media (max-height: 600px) and (max-width: 900px) {
  .chat-messages {
    min-height: 100px;
    max-height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
