/* Armendáriz Training */
:root {
	--at-azul: #0b3a5b;
	--at-azul-2: #155e8f;
	--at-texto: #1f2a37;
	--at-gris: #6b7280;
	--at-borde: #e5e7eb;
	--at-fondo: #f4f5f7;
	--at-ok: #15803d;
	--at-mal: #b32d2e;
	--at-franja: linear-gradient(90deg, #c0392b, #e67e22, #f1c40f, #27ae60, #2980b9);
}

/* Botones y bloques */
.at-btn { display: inline-block; background: var(--at-azul); color: #fff !important; border: 0; border-radius: 6px; padding: 8px 14px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 14px; line-height: 1.3; }
.at-btn:hover { background: var(--at-azul-2); }
.at-bloque { margin: 28px 0; padding: 20px; border: 1px solid var(--at-borde); border-radius: 12px; background: #fff; color: var(--at-texto); }
.at-bloque p, .at-bloque li, .at-bloque span, .at-bloque strong, .at-bloque label, .at-bloque small { color: inherit !important; }
.at-bloque small, .at-bloque .at-tarjeta-ver { color: var(--at-gris) !important; }
.at-bloque .at-tarjeta-precio, .at-bloque h3 { color: var(--at-azul) !important; }
.at-bloque input[type="text"] { background: #fff !important; color: var(--at-texto) !important; }
.at-bloque h3 { margin: 0 0 14px; font-size: 18px; color: var(--at-azul); }
.at-ok { color: var(--at-ok); font-weight: 600; }
.at-aviso { padding: 10px 14px; background: #fff7e6; border-left: 4px solid #e67e22; }

/* Mis certificados */
.at-lista-certs { list-style: none; margin: 0 0 16px; padding: 0; }
.at-lista-certs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--at-borde); }
.at-lista-certs small { color: var(--at-gris); }
.at-form-nombre label { display: block; font-weight: 600; margin: 10px 0 6px; font-size: 14px; }
.at-form-nombre div { display: flex; gap: 8px; flex-wrap: wrap; }
.at-form-nombre input[type="text"] { flex: 1 1 260px; padding: 8px 10px; border: 1px solid var(--at-borde); border-radius: 6px; }

/* Más cursos */
.at-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.at-tarjeta { display: flex; flex-direction: column; border: 1px solid var(--at-borde); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--at-texto); background: #fff; transition: box-shadow .15s; }
.at-tarjeta:hover { box-shadow: 0 6px 18px rgba(11, 58, 91, .12); }
.at-tarjeta img, .at-tarjeta-sinimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--at-fondo); }
.at-tarjeta-sinimg { background: var(--at-franja); opacity: .25; }
.at-tarjeta-cuerpo { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.at-tarjeta-cuerpo strong { font-size: 15px; line-height: 1.35; }
.at-tarjeta-precio { color: var(--at-azul); font-weight: 700; }
.at-tarjeta-ver { color: var(--at-azul-2); font-size: 13px; font-weight: 600; }

/* Video */
.at-video { margin: 0 0 16px; }
.at-video-marco { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 10px; overflow: hidden; }
.at-video-marco iframe, .at-video-marco video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.at-video-marco:fullscreen { padding-top: 0; border-radius: 0; }
.at-video-marco:-webkit-full-screen { padding-top: 0; border-radius: 0; }
.at-marca { position: absolute; top: 12%; left: 8%; pointer-events: none; user-select: none; color: rgba(255, 255, 255, .38); font: 600 13px/1.2 Arial, sans-serif; text-shadow: 0 0 2px rgba(0, 0, 0, .55); white-space: nowrap; transition: top 1.2s ease, left 1.2s ease; z-index: 2; }
.at-video-pc { position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 18px; line-height: 34px; cursor: pointer; padding: 0; }
.at-video-pc:hover { background: rgba(0, 0, 0, .7); }
.at-video-estado { margin-top: 8px; font-size: 13px; color: var(--at-gris); min-height: 1em; }
.at-video-bloqueado { padding: 40px 20px; text-align: center; background: var(--at-fondo); border-radius: 10px; color: var(--at-gris); }

/* Verificación */
.at-verif-body, .at-cert-body { margin: 0; background: var(--at-fondo); font-family: Arial, Helvetica, sans-serif; color: var(--at-texto); }
.at-verif { max-width: 520px; margin: 60px auto; padding: 32px; background: #fff; border-radius: 12px; text-align: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.at-verif-logo { height: 52px; width: auto; margin-bottom: 12px; }
.at-verif h1 { color: var(--at-azul); font-size: 24px; }
.at-verif form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.at-verif input { padding: 10px 12px; border: 1px solid var(--at-borde); border-radius: 6px; font-size: 16px; text-transform: uppercase; min-width: 220px; }
.at-verif button { background: var(--at-azul); color: #fff; border: 0; border-radius: 6px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.at-verif-error { color: var(--at-mal); }

/* Certificado */
.at-cert-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 14px 16px; }
.at-cert-barra button, .at-cert-barra a { background: var(--at-azul); color: #fff; border: 0; border-radius: 6px; padding: 9px 14px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.at-estado { padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.at-estado-ok { background: #e7f6ec; color: var(--at-ok); }
.at-estado-mal { background: #fde8e8; color: var(--at-mal); }
.at-cert { position: relative; box-sizing: border-box; width: min(1050px, calc(100vw - 32px)); aspect-ratio: 297 / 210; margin: 0 auto 40px; background: #fff; padding: 4.2% 6% 3%; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); display: flex; flex-direction: column; text-align: center; overflow: hidden; }
.at-cert-franja { position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--at-franja); }
.at-cert-revocado::after { content: "REVOCADO"; position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-size: 110px; font-weight: 900; color: rgba(179, 45, 46, .18); letter-spacing: 8px; }
.at-cert-cab { display: flex; justify-content: space-between; align-items: center; }
.at-cert-logo { height: 58px; width: auto; }
.at-cert-folio { font-size: 13px; color: var(--at-gris); }
.at-cert-titulo { margin: 3.5% 0 0; font-size: clamp(22px, 3.4vw, 38px); letter-spacing: 3px; text-transform: uppercase; color: var(--at-azul); }
.at-cert-otorga { margin: 2.2% 0 0; color: var(--at-gris); font-size: clamp(13px, 1.5vw, 16px); }
.at-cert-nombre { margin: 1.2% 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 4.4vw, 50px); color: var(--at-texto); border-bottom: 1px solid var(--at-borde); padding-bottom: 1%; align-self: center; min-width: 60%; }
.at-cert-texto { margin: 1.6% 0 0; color: var(--at-gris); font-size: clamp(13px, 1.5vw, 16px); }
.at-cert-curso { margin: .8% 0 0; font-size: clamp(17px, 2.4vw, 26px); font-weight: 700; color: var(--at-azul); }
.at-cert-datos { margin: 1.2% 0 0; color: var(--at-gris); font-size: clamp(12px, 1.3vw, 14px); }
.at-cert-pie { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.at-cert-firma { display: flex; flex-direction: column; align-items: center; min-width: 260px; font-size: 13px; color: var(--at-gris); }
.at-cert-firma img { max-height: 60px; width: auto; margin-bottom: -6px; }
.at-cert-firma strong { color: var(--at-texto); font-size: 14px; }
.at-cert-linea { display: block; width: 100%; border-top: 1px solid var(--at-texto); margin: 6px 0; }
.at-cert-qr { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--at-gris); }
.at-cert-qr #at-qr { width: 96px; height: 96px; }
.at-cert-qr svg { width: 100%; height: 100%; }
.at-cert-verifica { margin: 1.2% 0 0; font-size: 11px; color: var(--at-gris); }

@media (max-width: 640px) {
	.at-cert { aspect-ratio: auto; min-height: 120vw; padding: 28px 18px 20px; }
	.at-cert-pie { flex-direction: column; align-items: center; gap: 16px; margin-top: 24px; }
	.at-lista-certs li { flex-direction: column; align-items: flex-start; }
}

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