/* ── VAC Public Widget Styles ───────────────────────────────── */
.vac-widget-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
  max-width: 680px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Header ─────────────────────────────────────────────────── */
.vac-widget-header {
  background: #1d4ed8;
  padding: 28px 32px;
}
.vac-widget-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.3;
}
.vac-widget-header p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,.82) !important;
}

/* ── Body ───────────────────────────────────────────────────── */
.vac-widget-body {
  padding: 28px 32px 32px;
}

/* ── Grid ───────────────────────────────────────────────────── */
.vac-pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* ── Field ──────────────────────────────────────────────────── */
.vac-pub-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vac-pub-field--full {
  grid-column: 1 / -1;
}
.vac-pub-field label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}
.vac-pub-req {
  color: #dc2626;
  margin-left: 2px;
}
.vac-pub-field input[type="text"],
.vac-pub-field input[type="email"] {
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  background: #f9fafb;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}
.vac-pub-field input:focus {
  border-color: #1d4ed8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}

/* ── Footer / Button ─────────────────────────────────────────── */
.vac-pub-footer {
  display: flex;
  justify-content: flex-end;
}
.vac-widget-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .18s, transform .12s, box-shadow .18s;
  box-shadow: 0 4px 14px rgba(29,78,216,.30);
  letter-spacing: .01em;
}
.vac-widget-submit:hover {
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29,78,216,.38);
}
.vac-widget-submit:active {
  transform: translateY(0);
}
.vac-widget-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* ── Messages ────────────────────────────────────────────────── */
.vac-pub-msg {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.vac-pub-msg.ok  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.vac-pub-msg.err { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }

/* ── Success screen ──────────────────────────────────────────── */
.vac-widget-success {
  padding: 48px 32px;
  text-align: center;
}
.vac-success-icon {
  font-size: 56px;
  margin-bottom: 12px;
  animation: vac-pop .4s ease;
}
.vac-widget-success h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.vac-widget-success p {
  margin: 0 0 20px;
  color: #6b7280;
  font-size: 14px;
}
.vac-success-detail {
  display: inline-block;
  background: #f0f4ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  color: #1e40af;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: .05em;
}
.vac-btn-nuevo {
  background: #059669 !important;
  box-shadow: 0 4px 14px rgba(5,150,105,.28) !important;
}

@keyframes vac-pop {
  0%   { transform: scale(.5); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .vac-widget-header,
  .vac-widget-body { padding: 20px; }
  .vac-pub-grid    { grid-template-columns: 1fr; }
  .vac-pub-footer  { justify-content: stretch; }
  .vac-widget-submit { width: 100%; justify-content: center; }
}
