
.ap-overlay{position:fixed;inset:0;z-index:70;display:none;align-items:flex-start;justify-content:center;padding:12px;overflow-y:auto;background:rgba(15,23,42,.62);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);font-family:'Inter',system-ui,sans-serif}
.ap-overlay.open{display:flex}
.ap-card{position:relative;width:100%;max-width:520px;margin:auto;background:#fff;border-radius:18px;padding:22px 18px 18px;box-shadow:0 30px 60px -20px rgba(15,23,42,.5);color:#0f172a}
@media(min-width:640px){.ap-card{padding:28px}}
.ap-x{position:absolute;top:10px;right:12px;width:38px;height:38px;border:0;background:transparent;font-size:26px;line-height:1;color:#94a3b8;cursor:pointer;border-radius:10px}
.ap-x:hover{background:#f1f5f9;color:#475569}
.ap-card h2{font-size:1.2rem;font-weight:900;margin:0 38px 4px 0;letter-spacing:-.01em}
.ap-sub{font-size:.8rem;color:#64748b;line-height:1.5;margin:0 0 16px}
.ap-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.ap-full{grid-column:1/-1}
@media(max-width:520px){.ap-grid{grid-template-columns:1fr}}
.ap-f{margin-bottom:12px}
.ap-f label{display:block;font-size:.72rem;font-weight:700;color:#475569;margin-bottom:5px}
.ap-f .req{color:#dc2626}
.ap-f input,.ap-f select,.ap-f textarea{width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#0f172a;font:inherit;font-size:.85rem}
.ap-f input:focus,.ap-f select:focus,.ap-f textarea:focus{outline:none;border-color:#003da5;box-shadow:0 0 0 3px #dbeafe}
.ap-info{display:flex;gap:10px;align-items:flex-start;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;border-radius:12px;padding:10px 12px;font-size:.75rem;line-height:1.5;margin-bottom:14px}
.ap-info i{margin-top:2px;color:#003da5}
.ap-check{display:flex;gap:10px;align-items:flex-start;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;font-size:.74rem;line-height:1.5;color:#334155;cursor:pointer}
.ap-check input{margin-top:2px;width:16px;height:16px;flex-shrink:0;accent-color:#003da5}
.ap-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:11px 16px;font:inherit;font-size:.85rem;font-weight:800;cursor:pointer;transition:background .15s,transform .05s}
.ap-btn:active{transform:translateY(1px)}
.ap-btn.pri{background:#003da5;color:#fff;box-shadow:0 8px 20px -8px rgba(0,61,165,.6)}
.ap-btn.pri:hover{background:#0052cc}
.ap-btn.sec{background:#fff;color:#003da5;border:1.5px solid #003da5}
.ap-btn.sec:hover{background:#eff6ff}
.ap-btn.ok{background:#16a34a;color:#fff}
.ap-btn.ok:hover{background:#15803d}
.ap-btn.gray{background:#f1f5f9;color:#334155}
.ap-btn.gray:hover{background:#e2e8f0}
.ap-btn.block{width:100%}
.ap-btn:disabled{opacity:.55;cursor:not-allowed}
.ap-share{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:8px 10px}
.ap-share b{font-size:.7rem;color:#475569;width:100%}
.ap-share input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:.72rem;color:#334155;outline:none}
.ap-share .ap-btn{padding:7px 12px;font-size:.74rem;border-radius:10px;text-decoration:none}
.ap-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:8px;padding:9px 12px;border-radius:10px;border:1.5px solid #003da5;background:#fff;color:#003da5;font:inherit;font-size:.75rem;font-weight:800;cursor:pointer}
.ap-cta:hover{background:#eff6ff}
.ap-err{display:none;margin-top:12px;padding:10px 12px;border-radius:12px;font-size:.78rem;line-height:1.5;background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.ap-warn{background:#fffbeb;color:#92400e;border-color:#fde68a}
.ap-done{display:none;text-align:center;padding:6px 0 2px}
.ap-done .big{font-size:3rem;color:#16a34a;line-height:1}
.ap-done h2{margin:10px 0 4px}
.ap-done p{font-size:.82rem;color:#475569;line-height:1.55;margin:0 auto 10px;max-width:420px}
.ap-ref{display:inline-block;margin:4px 0 10px;padding:6px 14px;background:#eaf2ff;border:1px solid #bfdbfe;border-radius:10px;font-weight:800;font-size:.85rem;color:#003da5;letter-spacing:.02em}
.ap-sum{list-style:none;margin:0 auto 14px;padding:0;max-width:420px;text-align:left;font-size:.8rem;line-height:1.8;color:#334155}
.ap-sum b{color:#0f172a}
.ap-stack{display:flex;flex-direction:column;gap:8px}
/* ---- Admin: pestaña Citas ---- */
.ct-bar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.ct-in{padding:8px 12px;border:1px solid #cbd5e1;border-radius:10px;font-size:.75rem;background:#fff;color:#0f172a;font-family:inherit}
.ct-in.grow{flex:1;min-width:200px}
.ct-btn{padding:8px 12px;border:0;border-radius:10px;background:#f1f5f9;color:#0f172a;font:inherit;font-size:.75rem;font-weight:800;cursor:pointer}
.ct-btn:hover{background:#e2e8f0}
.ct-btn.blue{background:#003da5;color:#fff}.ct-btn.blue:hover{background:#0052cc}
.ct-btn.green{background:#16a34a;color:#fff}.ct-btn.green:hover{background:#15803d}
.ct-btn.rose{background:#fff1f2;color:#e11d48}.ct-btn.rose:hover{background:#ffe4e6}
.ct-card{border:1px solid #e2e8f0;border-radius:14px;padding:14px;margin-bottom:10px;background:#fff;font-size:.78rem;color:#334155}
.ct-card.is-pend{border-left:4px solid #f59e0b}
.ct-card.is-ok{border-left:4px solid #16a34a}
.ct-card.is-off{border-left:4px solid #94a3b8;opacity:.75}
.ct-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px}
.ct-name{font-weight:900;font-size:.9rem;color:#0f172a}
.ct-tag{font-size:.65rem;font-weight:800;padding:2px 8px;border-radius:999px}
.ct-tag.pend{background:#fef3c7;color:#92400e}.ct-tag.ok{background:#dcfce7;color:#166534}.ct-tag.off{background:#e2e8f0;color:#475569}.ct-tag.sent{background:#dbeafe;color:#1e40af}
.ct-when{margin-left:auto;font-size:.65rem;color:#94a3b8}
.ct-prop{font-weight:800;color:#003da5;margin-bottom:2px}
.ct-meta{color:#475569;line-height:1.65}
.ct-meta i{width:16px;text-align:center;color:#94a3b8;margin-right:4px}
.ct-code{display:inline-block;margin-top:8px;padding:6px 10px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;color:#166534;font-weight:800}
.ct-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.ct-empty{text-align:center;border:1px dashed #cbd5e1;border-radius:14px;padding:32px 16px;color:#64748b;font-size:.85rem}
.ct-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;font-size:.78rem;line-height:1.7;color:#334155;margin-bottom:12px}
.ct-file{display:flex;align-items:center;gap:10px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:10px 12px;font-size:.78rem;color:#166534;font-weight:700;margin-bottom:12px}
.ct-file.bad{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.ct-file.wait{background:#f8fafc;border-color:#e2e8f0;color:#475569}
.ct-money{position:relative}
.ct-money span{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-weight:800;color:#64748b}
.ct-money input{padding-left:28px!important;font-weight:800;font-size:1.05rem!important}
@media (prefers-reduced-motion:reduce){.ap-btn{transition:none}}
