/* TapUp · «¿A dónde lo mandamos?» (9 oct 2026). Ver js/envio.js.
   En celular sube desde abajo como una hoja de iOS; en computadora es una
   tarjeta centrada. Campos rellenos, sin borde, de 48 px. */
.envio {
  width: min(520px, 100%);
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: #14113A;
  box-shadow: 0 24px 80px rgba(20, 17, 58, .35);
  overflow: auto;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}
.envio::backdrop { background: rgba(20, 17, 58, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.envio__forma { display: grid; gap: 14px; padding: 24px 22px calc(22px + env(safe-area-inset-bottom)); }
.envio__titulo { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.envio__sub { margin: -8px 0 0; color: #5B5B72; font-size: .95rem; line-height: 1.4; }
.envio__rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.envio__campo { display: grid; gap: 5px; min-width: 0; }
.envio__campo--ancho { grid-column: 1 / -1; }
.envio__etiqueta { font-size: .78rem; font-weight: 600; color: #5B5B72; }
.envio__entrada {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #F2F3F7;
  color: inherit;
  font: inherit;
  font-size: 16px; /* 16 px: Safari no hace zoom al enfocar */
}
.envio__entrada:focus { outline: 0; box-shadow: 0 0 0 3px rgba(37, 99, 235, .35); background: #fff; }
.envio__error { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FDECEC; color: #B42318; font-size: .9rem; }
.envio__pie { display: grid; gap: 8px; margin-top: 4px; }
.envio__seguir {
  min-height: 52px; border: 0; border-radius: 14px; background: #2563EB; color: #fff;
  font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer;
}
.envio__seguir:active { transform: scale(.98); }
.envio__cancelar { min-height: 44px; border: 0; background: none; color: #2563EB; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 600px) {
  .envio {
    box-sizing: border-box;
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 22px 22px 0 0;
    animation: envio-sube .45s cubic-bezier(.32, .72, 0, 1);
  }
  @keyframes envio-sube { from { transform: translateY(100%); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .envio { animation: none !important; } }

/* El botón de continuar siempre a la vista, aunque el formulario se desplace. */
.envio__pie { position: sticky; bottom: 0; margin: 0 -22px calc(-22px - env(safe-area-inset-bottom)); padding: 12px 22px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 18%); }

.envio__nota { margin: 4px 0 0; font-size: .78rem; font-weight: 600; color: #15803D; line-height: 1.3; }
