/* Ad Center - Cotización PDF · UI estilo moderno (shadcn/Tailwind) */
:root { --acqpdf-accent: #1a3b5d; }

.acqpdf-trigger-wrap { margin: 0 0 22px; }

.acqpdf-trigger {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	cursor: pointer;
	background: var(--acqpdf-accent); color: #fff;
	border: none; border-radius: 12px;
	padding: 12px 20px;
	font-size: 14.5px; font-weight: 600; line-height: 1;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-shadow: 0 1px 2px rgba(16,24,40,.08);
	transition: filter .15s ease, transform .12s ease, box-shadow .15s ease;
}
.acqpdf-trigger:hover { filter: brightness(1.08); box-shadow: 0 4px 12px -2px rgba(16,24,40,.22); }
.acqpdf-trigger:active { transform: translateY(1px); }
.acqpdf-trigger svg { width: 17px; height: 17px; }

/* ---------- Overlay ---------- */
.acqpdf-overlay {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, .45);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	opacity: 0; transition: opacity .18s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.acqpdf-overlay.is-open { opacity: 1; }

/* ---------- Tarjeta ---------- */
.acqpdf-modal {
	width: 100%; max-width: 420px;
	background: #fff;
	border: 1px solid rgba(15,23,42,.06);
	border-radius: 16px;
	box-shadow: 0 20px 50px -12px rgba(16,24,40,.28), 0 4px 12px -4px rgba(16,24,40,.12);
	padding: 24px;
	transform: translateY(10px) scale(.985); opacity: 0;
	transition: transform .22s cubic-bezier(.16,1,.3,1), opacity .2s ease;
}
.acqpdf-overlay.is-open .acqpdf-modal { transform: translateY(0) scale(1); opacity: 1; }

/* ---------- Encabezado ---------- */
.acqpdf-head { position: relative; margin-bottom: 20px; padding-right: 28px; }
.acqpdf-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: #0f172a; letter-spacing: -.01em; }
.acqpdf-head p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.45; color: #64748b; }
.acqpdf-close {
	position: absolute; top: -4px; right: -4px;
	width: 30px; height: 30px; border: none; border-radius: 8px;
	background: transparent; color: #94a3b8; cursor: pointer;
	font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
	transition: background .15s ease, color .15s ease;
}
.acqpdf-close:hover { background: #f1f5f9; color: #475569; }

/* ---------- Campos ---------- */
.acqpdf-field { margin-bottom: 14px; }
.acqpdf-field label {
	display: block; font-size: 13px; font-weight: 500; color: #334155; margin-bottom: 6px;
}
.acqpdf-field input {
	width: 100%; box-sizing: border-box;
	padding: 10px 12px; font-size: 14px; line-height: 1.4;
	color: #0f172a; background: #fff;
	border: 1px solid #e2e8f0; border-radius: 9px;
	transition: border-color .15s ease, box-shadow .15s ease;
	font-family: inherit;
}
.acqpdf-field input::placeholder { color: #94a3b8; }
.acqpdf-field input:focus {
	outline: none;
	border-color: var(--acqpdf-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--acqpdf-accent) 16%, transparent);
}

/* ---------- Botón primario ---------- */
.acqpdf-submit {
	width: 100%; cursor: pointer; margin-top: 6px;
	background: var(--acqpdf-accent); color: #fff;
	border: none; border-radius: 10px;
	padding: 11px 18px; font-size: 14.5px; font-weight: 600;
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	transition: filter .15s ease, transform .12s ease;
	font-family: inherit;
}
.acqpdf-submit:hover { filter: brightness(1.08); }
.acqpdf-submit:active { transform: translateY(1px); }
.acqpdf-submit:disabled { opacity: .7; cursor: default; }

/* ---------- Spinner ---------- */
.acqpdf-spinner {
	width: 18px; height: 18px; border-radius: 50%;
	border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff;
	animation: acqpdf-spin .65s linear infinite;
}
@keyframes acqpdf-spin { to { transform: rotate(360deg); } }

/* ---------- Estado generando ---------- */
.acqpdf-loading { text-align: center; padding: 30px 10px 18px; }
.acqpdf-loading .acqpdf-spinner {
	width: 40px; height: 40px; border-width: 3.5px;
	border-color: #eef2f7; border-top-color: var(--acqpdf-accent);
	margin: 0 auto 18px;
}
.acqpdf-loading p { margin: 0; font-size: 15px; font-weight: 600; color: #0f172a; }
.acqpdf-loading span { display: block; margin-top: 5px; font-size: 13px; color: #94a3b8; }

/* ---------- Estado listo ---------- */
.acqpdf-done { text-align: center; padding: 14px 4px 4px; }
.acqpdf-check {
	width: 54px; height: 54px; margin: 0 auto 16px;
	border-radius: 50%;
	background: #ecfdf5; color: #059669;
	display: flex; align-items: center; justify-content: center;
	animation: acqpdf-pop .32s cubic-bezier(.18,.9,.32,1.4);
}
@keyframes acqpdf-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.acqpdf-done h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: #0f172a; }
.acqpdf-done > p { margin: 0 0 22px; font-size: 13px; color: #94a3b8; }

.acqpdf-actions { display: flex; gap: 10px; }
.acqpdf-actions a {
	flex: 1; text-decoration: none; text-align: center;
	padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	transition: filter .15s ease, transform .12s ease, background .15s ease, border-color .15s ease;
	box-sizing: border-box;
}
.acqpdf-actions a:active { transform: translateY(1px); }
.acqpdf-actions svg { width: 16px; height: 16px; }
.acqpdf-btn-view { background: #fff; color: #334155; border: 1px solid #e2e8f0; }
.acqpdf-btn-view:hover { background: #f8fafc; border-color: #cbd5e1; }
.acqpdf-btn-download { background: var(--acqpdf-accent); color: #fff; border: 1px solid transparent; }
.acqpdf-btn-download:hover { filter: brightness(1.08); }

.acqpdf-again {
	margin-top: 16px; background: none; border: none;
	color: #94a3b8; font-size: 13px; cursor: pointer; font-family: inherit;
	transition: color .15s ease;
}
.acqpdf-again:hover { color: #475569; }

.acqpdf-hidden { display: none !important; }
