/* ==========================================================================
   CREATIVE HUB — responsive.css
   Breakpoints
     · 1024px  → desktop pequeño / tablet horizontal
     ·  900px  → aparece menú móvil
     ·  760px  → tablet vertical
     ·  520px  → mobile
   ========================================================================== */


/* --------------------------------------------------------------------------
   ≤ 1024px  —  ajustes de grillas amplias
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .pro-grid { grid-template-columns: repeat(2, 1fr); }
  .form-aside { position: static; }
}


/* --------------------------------------------------------------------------
   ≤ 900px  —  navegación colapsable (menú móvil)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }

  /* Panel desplegable */
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 1.2rem var(--gutter) 1.6rem;
    background: rgba(5, 7, 10, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t-med) var(--ease-out),
                opacity var(--t-med) var(--ease-soft),
                visibility var(--t-med);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav__list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
  }
  .nav__link {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--r-md);
    font-size: 1rem;
  }
  .nav__link:hover { background: var(--glass); }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { background: var(--glow-blue-soft); color: var(--blue-bright); }

  /* CTA visible dentro del panel; se oculta el CTA del header */
  .nav__cta { display: inline-flex; margin-top: 0.8rem; }
  .header-cta { display: none; }
}


/* --------------------------------------------------------------------------
   ≤ 760px  —  tablet vertical: apila secciones a 1 columna
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__copy { order: 1; }
  .feature-stack { order: 2; }

  .cats__grid { grid-template-columns: 1fr; }
  .cat-block { min-height: 360px; }

  .pro-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .why__grid { grid-template-columns: 1fr; }

  .form-wrap { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Timeline: pasa a vertical con línea animada al costado */
  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 420px;
    margin-inline: auto;
    padding-left: 20px;
  }
  .steps__line {
    top: 34px;
    bottom: 34px;
    left: 54px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .steps__line::after {
    transform: scaleY(0);
    transform-origin: top;
  }
  .steps.is-in .steps__line::after { transform: scaleY(1); }
  .step { text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
  .step__num { margin: 0 0 1rem; }
  .step p { margin-inline: 0; max-width: none; }
}


/* --------------------------------------------------------------------------
   ≤ 520px  —  mobile
   -------------------------------------------------------------------------- */
@media (max-width: 520px) {
  :root { --gutter: 1.2rem; }

  .brand__by { display: none; }

  .hero { padding-top: 90px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__stats { gap: 1.4rem 2rem; }

  .form-grid { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { width: 100%; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .pro-card__actions { grid-template-columns: 1fr 1fr; }

  .cta-band__inner::before,
  .cta-band__inner::after { display: none; }
}


/* --------------------------------------------------------------------------
   Alturas reducidas (hero en landscape móvil)
   -------------------------------------------------------------------------- */
@media (max-height: 640px) and (min-width: 901px) {
  .scroll-hint { display: none; }
}
