/* V18 — fichas funcionales detalladas; solo afecta al diálogo de proyectos. */
.project-dialog{width:min(980px,calc(100vw - 22px));max-height:calc(100dvh - 24px);overscroll-behavior:contain;scrollbar-gutter:stable}
.project-dialog .dialog-close{position:sticky;float:right;top:12px;right:12px;z-index:30;margin:12px 12px -58px 0;background:#fff;color:#173650;border:1px solid #d5e4ee;box-shadow:0 7px 22px rgba(18,50,78,.13)}
.project-dialog .dialog-media{height: min(36vh, 320px);background:#f3f8fc}
.project-dialog .dialog-copy{padding:25px clamp(18px,4vw,42px) 34px;color:#133550}
.project-dialog .dialog-copy h2{font-size:clamp(1.55rem,3vw,2.3rem);line-height:1.19;color:#102d49}
.project-dialog .dialog-copy>p{line-height:1.62;max-width:730px}
.project-dialog .dialog-tags{margin-bottom:24px}
.bs-architecture{padding-top:25px;border-top:1px solid #e0eaf1}
.bs-architecture-kicker{font-size:.69rem;letter-spacing:.15em;color:#287295;font-weight:850;margin-bottom:9px}
.bs-architecture-title{font-size:clamp(1.3rem,2.5vw,1.8rem);color:#122d49;line-height:1.26;margin:0 0 18px;letter-spacing:-.035em}
.bs-architecture-audience{background:#f5f9fc;border:1px solid #e0eaf0;padding:15px 18px;border-radius:17px;margin:0 0 27px}
.bs-architecture-audience strong{color:#204e6c;font-size:.82rem}
.bs-architecture-audience p{font-size:.81rem;line-height:1.55;margin:6px 0 0;color:#5f7386}
.bs-architecture-heading{font-size:1.08rem;letter-spacing:-.026em;color:#122f49;margin:26px 0 14px}
.bs-architecture-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.bs-architecture-module{min-width:0;border:1px solid #dfeaf0;border-radius:16px;background:#fff;padding:15px 17px;box-shadow:0 8px 21px rgba(18,54,80,.035)}
.bs-architecture-module h4{display:flex;align-items:start;gap:10px;color:#163b57;letter-spacing:-.02em;font-size:.88rem;line-height:1.37;margin:0 0 8px}
.bs-architecture-num{font-weight:850;color:#247aa2;background:#ecf6fb;border-radius:7px;padding:4px 6px;font-size:.63rem;line-height:1.4;flex-shrink:0}
.bs-architecture-module p{font-size:.76rem;line-height:1.65;color:#667b8b;margin:0}
.bs-architecture-flow{list-style:none;margin:0;padding:0;counter-reset:steps;display:grid;gap:9px}
.bs-architecture-flow li{counter-increment:steps;display:flex;gap:12px;align-items:flex-start;font-size:.83rem;color:#31536c;line-height:1.55;background:#f7fafc;border:1px solid #e2eaf0;border-radius:14px;padding:11px 14px}
.bs-architecture-flow li::before{content:counter(steps);background:#1c6387;color:#fff;border-radius:50%;width:23px;height:23px;flex:0 0 23px;display:grid;place-items:center;font-weight:800;font-size:.68rem}
.bs-architecture-scope{font-size:.75rem;line-height:1.58;color:#718496;margin:18px 0 10px}
.bs-architecture-cta{display:inline-flex;align-items:center;justify-content:center;min-height:43px;text-align:center;background:#163e5e;color:#fff;border:1px solid #163e5e;border-radius:13px;font-size:.81rem;font-weight:800;text-decoration:none;padding:10px 17px;margin-top:17px}
.bs-architecture-cta:hover{background:#236e96;color:#fff}
@media(max-width:780px){.project-dialog{max-height:calc(100dvh - 18px);width:calc(100vw - 16px);border-radius:23px}.project-dialog .dialog-media{height:210px}.project-dialog .dialog-copy{padding:20px 17px 30px}.project-dialog .dialog-close{width:43px;height:43px;top:8px;margin:8px 9px -53px 0}.bs-architecture-grid{grid-template-columns:1fr;gap:9px}.bs-architecture-module{padding:13px 14px}.bs-architecture-module p{font-size:.78rem}.bs-architecture-flow li{font-size:.8rem}.bs-architecture-title{font-size:1.35rem}.bs-architecture{padding-top:20px}.bs-architecture-heading{margin-top:22px}}
@media(max-width:380px){.project-dialog .dialog-media{height:180px}.project-dialog .dialog-copy{padding:18px 14px 27px}}
