/* MAGIC MEDIA - v1.37 - capa de telefono (<= 700 px). Cargada despues de refine-v136.css.
   Cada bloque esta numerado y se puede borrar por separado. Nada aqui afecta a escritorio. */

@media (max-width: 700px) {

  /* 1. UN SOLO MARGEN DE PAGINA: 20 px en todas las secciones.
        Estrenos y Sessions iban a 16; la galeria de fotografia a 12; la barra del reel a 16. */
  .mm-release-section > .wrap { padding-left: 20px !important; padding-right: 20px !important; }
  #portfolio-photography { margin-left: 20px !important; margin-right: 20px !important; }
  #portfolio-photography .portfolio-collage-heading { padding-left: 0 !important; padding-right: 0 !important; }
  #hero .mm-user-bar { padding-left: 20px !important; padding-right: 20px !important; }
  #portfolio-catalog .mm-cat-content { padding-left: 0 !important; padding-right: 0 !important; }
  .mm-release-archive > summary { padding-left: 0 !important; padding-right: 0 !important; }

  /* 2. SERVICIOS: la columna del numero robaba 40 px de un ancho de 350. El numero va arriba
        del titulo y el boton de cada fila ocupa todo el ancho (llenaba la mitad). */
  .svc-card { display: block !important; }
  .svc-num { width: auto !important; margin: 0 0 8px !important; font-size: 12px !important; letter-spacing: .18em; }
  .svc-title { display: inline-block !important; margin-bottom: 10px !important; }
  .svc-desc { font-size: 16px !important; line-height: 1.55 !important; }
  .svc-tag { font-size: 12px !important; }
  .svc-desc { margin-bottom: 12px !important; }
  .svc-card .svc-tags { margin: 0 0 16px !important; }
  .svc-card .mm-request-card-button,
  .svc-card .mm-service-detail .btn { width: 100% !important; display: flex !important; justify-content: center !important; }
  .suite-tab { font-size: 14px !important; }
  #servicios .btn { width: 100% !important; display: flex !important; justify-content: center !important; }

  /* 3. PROCESO: mismo arreglo que servicios (numero arriba, texto desde el margen). */
  .proceso-step { grid-template-columns: minmax(0, 1fr) !important; column-gap: 0 !important; }
  .proceso-step > * { grid-column: 1 !important; grid-row: auto !important; }
  .proceso-step-num { width: auto !important; margin-bottom: 6px !important; white-space: nowrap; }
  .proceso-title { margin: 0 0 8px !important; }
  .proceso-ico { display: none !important; }
  .proceso-desc { font-size: 16px !important; }

  /* 4. BOTONES A TODO EL ANCHO, apilados, como los dos bajo el h1. */
  #proceso .wrap > div[style*="text-align:center"] { display: grid; gap: 10px; text-align: left; }
  #proceso .wrap > div[style*="text-align:center"] > .btn { width: 100% !important; margin: 0 !important; display: flex !important; justify-content: center !important; }
  #contacto .cta-left .btn { width: 100% !important; display: flex !important; justify-content: center !important; }
  .mm-work-pagination-actions > .btn { width: 100% !important; justify-content: center !important; }
  .mm-request-actions > .btn { width: 100% !important; justify-content: center !important; }

  /* 5. INSTAGRAM: el script arma filas justificadas que en telefono quedaban escalonadas
        (una fila corrida 80 px, otra con un hueco a la derecha). Rejilla pareja de dos columnas. */
  #instagram .ig-grid, #instagram .ig-grid[data-justified], #instagram .ig-grid[data-social-variant] {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; align-items: stretch !important;
  }
  #instagram .ig-grid > .mm-social-row { display: contents !important; }
  #instagram .ig-item { width: auto !important; max-width: none !important; flex: none !important; margin: 0 !important; aspect-ratio: 4 / 5 !important; overflow: hidden; }
  #instagram .ig-item-bg { aspect-ratio: auto !important; height: 100% !important; width: 100% !important; }
  html[data-mm-integral] body #instagram .ig-grid[data-social-variant] .ig-item-bg img,
  html body #instagram .ig-grid .ig-item-bg img { aspect-ratio: auto !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
  #instagram .ig-header p { font-size: 14px !important; letter-spacing: .04em; }

  /* 6. RITMO ENTRE SECCIONES: huecos de 37-40 px junto a otros de 136. Todos a 64-72. */
  #estrenos { padding-bottom: 56px !important; }
  #proceso { padding-bottom: 72px !important; }
  #faq { padding-top: 72px !important; }
  #portfolio-support { margin-top: 0 !important; }
  #portfolio-catalog { margin-top: 40px !important; }
  .mm-diverse-strip { padding-top: 48px !important; margin-top: 0 !important; }
  #instagram { padding-top: 56px !important; padding-bottom: 56px !important; }
  #contacto { padding-bottom: 72px !important; }

  /* 7. TEXTO: cuerpo nunca bajo 16 px. */
  .mm-reel-about-copy > p { font-size: 16px !important; line-height: 1.55 !important; }
  .mm-release-intro { font-size: 16px !important; }
  .footer-desc, .footer p.footer-tagline { font-size: 16px !important; }

  /* 8. CONTACTO: en pantallas angostas las dos columnas dejaban un hueco; una sola columna. */
  #contacto .cta-contact-items { gap: 20px; }

  /* 9. "TODO SE HACE EN CASA": mas sombra arriba para que el titulo lea sobre la foto. */
  .mm-house-scrim { background: linear-gradient(180deg, rgba(0,0,0,.90) 0%, rgba(0,0,0,.62) 26%, rgba(0,0,0,.70) 55%, rgba(0,0,0,.95) 100%) !important; }

  /* 10. BARRA: el logo es un destino tactil de 44 px. */
  .nav-logo { min-height: 44px; display: inline-flex !important; align-items: center; }
}

@media (max-width: 400px) {
  html body #contacto .cta-contact-items { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 18px !important; }
  html body #contacto .cta-contact-item { width: 100% !important; max-width: none !important; }
}

@media (max-width: 360px) {
  /* "CONVERSEMOS" no cabe en 280 px a 40 px: se parte la palabra. */
  html body #contacto .cta-left h2, html body #contacto h2 { font-size: 34px !important; }
  .nav-inner { padding-left: 14px !important; padding-right: 14px !important; }
}
