/* Armendáriz Training: certificado y constancia */
.at-doc { container-type: inline-size; width: 100%; color: #0f2233; }
.at-doc * { box-sizing: border-box; }
.at-doc .at-doc-hoja { position: relative; aspect-ratio: 297 / 210; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #ffffff 0%, #fdfbf5 60%, #f7f1e3 100%); -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Trama de seguridad */
.at-doc .at-doc-trama { position: absolute; left: 50%; top: 50%; width: 92%; height: auto; transform: translate(-50%, -52%); opacity: .07; pointer-events: none; }

/* Marco doble con esquinas */
.at-doc .at-doc-marco { position: absolute; inset: 1.5cqw; border: .55cqw solid #00304f; pointer-events: none; }
.at-doc .at-doc-marco::before { content: ""; position: absolute; inset: .7cqw; border: .14cqw solid #c9962e; }
.at-doc .at-doc-marco::after { content: ""; position: absolute; inset: 1.15cqw; border: .06cqw solid rgba(201, 150, 46, .6); }
.at-doc .at-doc-marco .e { position: absolute; width: 3.4cqw; height: 3.4cqw; border-color: #c9962e; border-style: solid; border-width: 0; }
.at-doc .at-doc-marco .e1 { top: 1.6cqw; left: 1.6cqw; border-top-width: .32cqw; border-left-width: .32cqw; }
.at-doc .at-doc-marco .e2 { top: 1.6cqw; right: 1.6cqw; border-top-width: .32cqw; border-right-width: .32cqw; }
.at-doc .at-doc-marco .e3 { bottom: 1.6cqw; left: 1.6cqw; border-bottom-width: .32cqw; border-left-width: .32cqw; }
.at-doc .at-doc-marco .e4 { bottom: 1.6cqw; right: 1.6cqw; border-bottom-width: .32cqw; border-right-width: .32cqw; }

/* Contenido */
.at-doc .at-doc-contenido { position: absolute; inset: 4.6cqw 6.8cqw 4cqw; display: flex; flex-direction: column; align-items: center; text-align: center; }
.at-doc .at-doc-cab { width: 100%; display: flex; justify-content: center; }
.at-doc .at-doc-logo { height: 5.4cqw; width: auto; display: block; }
.at-doc .at-doc-t1 { margin: 2.6cqw 0 0 !important; font-family: "Cinzel", "Times New Roman", serif !important; font-weight: 700 !important; font-size: 5.6cqw !important; line-height: 1 !important; letter-spacing: .9cqw !important; text-transform: uppercase; color: #00304f !important; padding-left: .9cqw; }
.at-doc .at-doc-t2 { margin: 1cqw 0 0 !important; display: flex; align-items: center; gap: 1.4cqw; font-family: "Montserrat", Arial, sans-serif; font-weight: 700; font-size: 1.35cqw; letter-spacing: .55cqw; text-transform: uppercase; color: #b8862a; }
.at-doc .at-doc-t2::before, .at-doc .at-doc-t2::after { content: ""; width: 7cqw; height: .12cqw; background: linear-gradient(90deg, transparent, #c9962e); }
.at-doc .at-doc-t2::after { background: linear-gradient(90deg, #c9962e, transparent); }
.at-doc .at-doc-otorga { margin: 3.2cqw 0 0 !important; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.85cqw; color: #4a5a6a; }
.at-doc .at-doc-nombre { margin: .6cqw 0 0 !important; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 5.3cqw; line-height: 1.1; color: #0f2233; padding: 0 3cqw .5cqw; min-width: 52%; position: relative; }
.at-doc .at-doc-nombre::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .14cqw; background: linear-gradient(90deg, transparent, #c9962e 15%, #c9962e 85%, transparent); }
.at-doc .at-doc-texto { margin: 2cqw 0 0 !important; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.85cqw; color: #4a5a6a; }
.at-doc .at-doc-curso { margin: .6cqw 0 0 !important; max-width: 78%; font-family: "Montserrat", Arial, sans-serif; font-weight: 800; font-size: 2.35cqw; line-height: 1.25; color: #00304f; }
.at-doc .at-doc-datos { margin: 1.6cqw 0 0 !important; font-family: "Montserrat", Arial, sans-serif; font-weight: 500; font-size: 1.1cqw; letter-spacing: .05cqw; color: #5a6b7b; white-space: pre-wrap; }

/* Pie: firma, sello y verificación */
.at-doc .at-doc-pie { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 2cqw; }
.at-doc .at-doc-firma { display: flex; flex-direction: column; align-items: center; justify-self: start; min-width: 22cqw; font-family: "Montserrat", Arial, sans-serif; font-size: 1cqw; color: #5a6b7b; line-height: 1.45; }
.at-doc .at-doc-firma-img { height: 4.4cqw; display: flex; align-items: flex-end; justify-content: center; }
.at-doc .at-doc-firma-img img { max-height: 4.6cqw; width: auto; margin-bottom: -.8cqw; }
.at-doc .at-doc-linea { display: block; width: 100%; height: .1cqw; background: #0f2233; margin-bottom: .6cqw; }
.at-doc .at-doc-firma strong { font-size: 1.25cqw; color: #0f2233; font-weight: 700; }
.at-doc .at-doc-centro { justify-self: center; }
.at-doc .at-doc-sello { width: 12.5cqw; height: 12.5cqw; display: block; filter: drop-shadow(0 .4cqw .6cqw rgba(0, 0, 0, .18)); }
.at-doc .at-doc-verif { justify-self: end; display: flex; align-items: center; gap: 1.2cqw; }
.at-doc .at-doc-qr { width: 8.4cqw; height: 8.4cqw; padding: .5cqw; background: #fff; border: .1cqw solid #d9cfb8; }
.at-doc .at-doc-qr svg { width: 100%; height: 100%; display: block; }
.at-doc .at-doc-verif-txt { display: flex; flex-direction: column; text-align: left; white-space: nowrap; font-family: "Montserrat", Arial, sans-serif; font-size: .95cqw; color: #5a6b7b; line-height: 1.5; }
.at-doc .at-doc-verif-txt strong { font-size: 1.45cqw; color: #00304f; letter-spacing: .08cqw; }

/* Muestra y revocado */
.at-doc .at-doc-sellomuestra { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-family: "Montserrat", Arial, sans-serif; font-weight: 800; font-size: 11cqw; letter-spacing: 2cqw; text-transform: uppercase; color: rgba(0, 48, 79, .06); pointer-events: none; white-space: nowrap; }
.at-doc .at-doc-sellorev { color: rgba(179, 45, 46, .2); }

/* Página pública del certificado */
.at-cert-body .at-doc { width: min(1100px, calc(100vw - 32px)); margin: 0 auto 40px; box-shadow: 0 20px 60px rgba(0, 30, 50, .18); }

@page { size: A4 landscape; margin: 0; }
@media print {
	.at-cert-body { background: #fff !important; }
	.at-cert-body .at-cert-barra, .at-cert-body .at-cert-pie-pagina { display: none !important; }
	.at-cert-body .at-doc { width: 297mm; margin: 0; box-shadow: none; }
	.at-cert-body .at-doc-hoja { height: 210mm; aspect-ratio: auto; }
}
