:root{
  --qdm-blue:#0693e3;
  --qdm-blue-2:#00b7ff;
  --qdm-navy:#061b34;
  --qdm-deep:#020914;
  --qdm-card:#ffffff;
  --qdm-muted:#667085;
  --qdm-line:#dce6f2;
  --qdm-soft:#eef7ff;
  --qdm-green:#17c3a3;
  --page-w:1120px;
  --page-h:630px;
}
*{box-sizing:border-box}
body{margin:0;font-family:"Segoe UI",Arial,sans-serif;background:#eaf1f8;color:#122033;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-synthesis:none}
.app-shell{display:grid;grid-template-columns:390px 1fr;min-height:100vh}
.panel{background:#07172c;color:#fff;padding:22px;position:sticky;top:0;height:100vh;overflow:auto;box-shadow:8px 0 30px rgba(2,9,20,.18);z-index:5}
.brand-panel{display:flex;gap:14px;align-items:center;margin-bottom:20px;padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.06)}
.brand-panel img{width:64px;max-height:48px;object-fit:contain}.brand-panel strong{display:block;font-size:18px}.brand-panel span{color:#a8c2df;font-size:13px}
.tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:10px 0 16px}.tab{min-width:0;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:#cfe7ff;border-radius:12px;padding:10px 3px;cursor:pointer;font-size:12px;line-height:1.1;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tab.active{background:linear-gradient(135deg,var(--qdm-blue),#0879be);color:#fff;border-color:transparent}
.tab-content{display:none}.tab-content.active{display:block}label{display:block;font-size:13px;color:#cde2fa;margin:0 0 13px}input,textarea,select{width:100%;margin-top:6px;border:1px solid rgba(255,255,255,.16);background:#0d2542;color:#fff;border-radius:12px;padding:11px 12px;font:inherit;outline:none}textarea{resize:vertical;line-height:1.45}input:focus,textarea:focus,select:focus{border-color:var(--qdm-blue-2);box-shadow:0 0 0 3px rgba(0,183,255,.12)}
.actions{display:grid;gap:10px;margin-top:16px}button{border:0;border-radius:13px;padding:12px 14px;font-weight:700;cursor:pointer;background:#d9e8f7;color:#092039}.primary{background:linear-gradient(135deg,var(--qdm-blue),var(--qdm-blue-2));color:#fff}.hint{font-size:12px;color:#a8c2df;line-height:1.4}
.preview-wrap{padding:28px;overflow:auto}.toolbar{display:flex;justify-content:space-between;align-items:center;margin:0 auto 16px;max-width:var(--page-w);color:#4d627a}.toolbar button{padding:9px 12px;background:#fff;border:1px solid #d8e2ef}
.proposal-document{display:flex;flex-direction:column;gap:24px;align-items:center}.slide{width:var(--page-w);min-height:var(--page-h);background:#fff;position:relative;overflow:hidden;border-radius:18px;box-shadow:0 18px 45px rgba(21,45,75,.18);page-break-after:always}.slide-inner{position:relative;z-index:2;height:100%;min-height:var(--page-h);padding:82px 64px 64px}.slide.dark{background:radial-gradient(circle at 78% 18%,rgba(0,183,255,.32),transparent 25%),linear-gradient(135deg,#020914 0%,#061b34 54%,#063c68 100%);color:#fff}.slide.soft{background:linear-gradient(135deg,#f7fbff 0%,#eef7ff 100%)}
.slide::before{content:"";position:absolute;inset:auto -160px -170px auto;width:410px;height:410px;border-radius:50%;background:rgba(0,183,255,.12);filter:blur(2px)}.slide.dark::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,9,20,.45),transparent 60%)}
.slide-header{position:absolute;top:24px;left:64px;right:64px;display:flex;justify-content:space-between;align-items:center;gap:24px;z-index:3;color:inherit;font-size:12px;letter-spacing:.11em;text-transform:uppercase;opacity:.82}.slide-header img{height:34px;object-fit:contain;flex:0 0 auto}.slide-header span{display:block;text-align:right;max-width:calc(100% - 130px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-number{position:absolute;right:44px;bottom:24px;font-size:12px;color:#6c7f94}.dark .page-number{color:#a9c8e7}.watermark{position:absolute;left:44px;bottom:24px;font-size:12px;color:#6c7f94}.dark .watermark{color:#a9c8e7}
h1{font-size:58px;line-height:1.02;margin:0 0 20px;letter-spacing:-.04em}h2{font-size:38px;line-height:1.12;margin:0 0 26px;color:#071b34;letter-spacing:-.025em}.dark h2,.dark h1{color:#fff}h3{font-size:24px;margin:0 0 12px;color:#092644}p{font-size:20px;line-height:1.48;margin:0 0 16px;color:#344860}.dark p{color:#d7eaff}.eyebrow{font-size:15px;letter-spacing:.16em;text-transform:uppercase;color:var(--qdm-blue-2);font-weight:800;margin-bottom:18px}.lead{font-size:25px;max-width:760px}.cover-grid{display:grid;grid-template-columns:1fr 280px;gap:36px;align-items:center;height:100%}.cover-card{border:1px solid rgba(255,255,255,.15);border-radius:28px;padding:26px;background:rgba(255,255,255,.08);backdrop-filter:blur(8px)}.cover-card img{max-width:170px;max-height:90px;object-fit:contain;background:#fff;border-radius:16px;padding:12px;margin-bottom:18px}.date-pill{display:inline-flex;padding:9px 15px;border-radius:999px;background:rgba(0,183,255,.14);border:1px solid rgba(0,183,255,.35);color:#dff5ff;font-weight:800}.chip-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.chip{padding:10px 14px;border-radius:999px;background:#edf7ff;color:#075b95;font-weight:800}.dark .chip{background:rgba(255,255,255,.1);color:#dff5ff;border:1px solid rgba(255,255,255,.12)}
.two-col{display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:center}.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.stat{background:#fff;border:1px solid var(--qdm-line);border-radius:22px;padding:22px;box-shadow:0 10px 25px rgba(6,27,52,.07)}.stat strong{display:block;font-size:34px;color:var(--qdm-blue)}.stat span{display:block;color:#51677f;font-size:15px;line-height:1.35}.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.service-card,.item-card{background:#fff;border:1px solid var(--qdm-line);border-radius:22px;padding:20px;box-shadow:0 10px 22px rgba(6,27,52,.06)}.service-card .icon{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--qdm-blue),var(--qdm-blue-2));color:#fff;display:grid;place-items:center;font-weight:900;margin-bottom:14px}.service-card h3{font-size:18px}.service-card p,.item-card p{font-size:15px;margin:0}.logo-wall{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.logo-box{height:92px;border:1px solid var(--qdm-line);border-radius:20px;background:#fff;display:grid;place-items:center;color:#789;font-weight:800;text-align:center;padding:10px}.model-box{border-radius:28px;background:#061b34;color:#fff;padding:28px;position:relative;overflow:hidden}.model-box:before{content:"";position:absolute;right:-80px;top:-80px;width:210px;height:210px;border-radius:50%;background:rgba(0,183,255,.23)}.flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:12px;align-items:center;margin-top:24px}.node{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);border-radius:18px;padding:18px;text-align:center;font-weight:800}.arrow{color:var(--qdm-blue-2);font-size:24px;font-weight:900}.scope-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:0;padding:0;list-style:none}.scope-list li{background:#fff;border:1px solid var(--qdm-line);border-radius:16px;padding:12px 14px;font-size:16px;line-height:1.3;display:flex;gap:10px}.scope-list li:before{content:"✓";color:var(--qdm-green);font-weight:900}.pricing{display:grid;grid-template-columns:1fr 1fr;gap:20px}.price-card{border-radius:26px;padding:26px;background:#fff;border:1px solid var(--qdm-line);box-shadow:0 12px 28px rgba(6,27,52,.08)}.price-card.featured{background:linear-gradient(135deg,#061b34,#083d69);color:#fff}.price-card h3{color:inherit}.price{font-size:42px;font-weight:900;color:var(--qdm-blue);margin:14px 0}.featured .price{color:#fff}.meta-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}.meta{border-radius:18px;background:#eef7ff;padding:16px}.meta strong{display:block;color:#082745}.support-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}.sla{width:100%;border-collapse:collapse;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 10px 22px rgba(6,27,52,.06)}.sla th,.sla td{padding:14px;border-bottom:1px solid #e4edf7;text-align:left;font-size:15px}.sla th{background:#061b34;color:#fff}.terms{columns:2;column-gap:28px;font-size:16px;line-height:1.35}.terms li{break-inside:avoid;margin:0 0 12px}.thanks{display:grid;place-items:center;text-align:center;height:100%}.thanks h1{font-size:76px}.contact-strip{display:flex;gap:18px;justify-content:center;margin-top:28px;color:#dff5ff}.contact-strip span{padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.1)}
@media(max-width:1100px){.app-shell{grid-template-columns:1fr}.panel{position:relative;height:auto}.preview-wrap{padding:16px}.proposal-document{transform-origin:top center}.slide{width:100%;min-height:auto;border-radius:12px}.slide-inner{min-height:auto}}


/* V1.1 - ajustes de vista previa, exportación y coherencia con la web QDM */
.preview-wrap{overflow:auto;}
.proposal-document{zoom:var(--preview-zoom,1);transition:zoom .18s ease;}
.clean-output{background:#eaf1f8;}
.clean-output .proposal-document{zoom:1!important;}
.clean-preview{padding:28px;}
.clean-toolbar{position:sticky;top:0;z-index:20;padding:12px 20px;background:#eaf1f8;border-bottom:1px solid #d9e6f3;text-align:right;}
.clean-toolbar button{background:linear-gradient(135deg,var(--qdm-blue),var(--qdm-blue-2));color:#fff;}
.panel{width:100%;}
.service-card .icon{background:#fff;border:1px solid var(--qdm-line);box-shadow:0 8px 18px rgba(6,27,52,.08);overflow:hidden;}
.service-card .icon img{width:32px;height:32px;object-fit:contain;display:block;}
.service-card h3{min-height:44px;display:flex;align-items:center;}
.model-slide{padding-top:42px;}
.model-slide h2{font-size:31px;margin-bottom:8px;}
.model-intro{font-size:16px;line-height:1.36;max-width:900px;margin-bottom:10px;}
.model-diagram{height:430px;border:1px solid var(--qdm-line);border-radius:26px;background:#fff;box-shadow:0 10px 25px rgba(6,27,52,.07);overflow:hidden;display:flex;align-items:center;justify-content:center;padding:8px;}
.model-diagram svg{width:100%;height:100%;display:block;}
.model-diagram .appqdm-svg{max-width:100%;max-height:100%;}

@media(max-width:1300px){
  .app-shell{grid-template-columns:350px 1fr;}
  .panel{padding:18px;}
  .preview-wrap{padding:18px;}
}




/* V1.3 - ajustes de PDF, orientación y áreas seguras */
.slide-title-safe .slide-inner{padding-top:88px;}
.services-slide .slide-inner{padding-top:84px;padding-bottom:82px;}
.services-slide .service-grid{gap:14px;}
.services-slide .service-card{padding:16px 16px 15px;min-height:166px;}
.services-slide .service-card .icon{width:36px;height:36px;border-radius:12px;margin-bottom:10px;}
.services-slide .service-card .icon img{width:28px;height:28px;}
.services-slide .service-card h3{font-size:17px;line-height:1.18;min-height:40px;margin-bottom:8px;}
.services-slide .service-card p{font-size:13.6px;line-height:1.36;}
.content-slide .slide-inner{padding-top:84px;padding-bottom:76px;}
.logo-wall{margin-top:10px;}
.watermark,.page-number{z-index:4;}



/* V1.4 - ajuste fino de fuente y salida PDF horizontal */
body,.slide,input,textarea,select,button{font-family:Verdana,Tahoma,Arial,sans-serif;}
.slide{font-synthesis:none;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;}
p,.service-card p,.item-card p,.terms,.sla td,.logo-box,.meta,.scope-list li{font-weight:400;}
h1,h2,h3,.eyebrow,.chip,.price,.stat strong,.logo-box,strong{font-weight:700;}


.print-note{display:inline-block;margin-right:18px;color:#28425e;font-size:13px;vertical-align:middle;}
@media(max-width:900px){.print-note{display:block;margin:0 0 8px;}}


/* V1.5 - Cronograma opcional y logos reales de clientes */
.check-line{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid rgba(255,255,255,.16);background:#0d2542;border-radius:14px;margin-bottom:10px;}
.check-line input{width:auto;margin:0;accent-color:var(--qdm-blue-2);}
.check-line span{font-weight:700;color:#fff;}
.section-help{font-size:12px;color:#a8c2df;margin:0 0 12px;line-height:1.35;}
.secondary-action{width:100%;margin-top:8px;background:#12365b;color:#dff5ff;border:1px solid rgba(255,255,255,.14);}
.schedule-editor{display:grid;gap:12px;}
.schedule-row{display:grid;grid-template-columns:1.5fr .62fr .78fr 1fr auto;gap:8px;align-items:end;padding:10px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(255,255,255,.04);}
.schedule-row label{margin:0;font-size:11px;}
.schedule-row input,.schedule-row select{padding:9px;border-radius:10px;}
.schedule-row-actions{display:flex;gap:5px;padding-bottom:1px;}
.schedule-row-actions button{padding:8px 9px;border-radius:10px;background:#d9e8f7;color:#092039;}
.schedule-row-actions .remove-row{background:#ffe0e0;color:#7c1616;}
.clients-subtitle{max-width:760px;font-size:20px;margin-bottom:24px;color:#3f5369;}
.client-logo-wall{grid-template-columns:repeat(5,1fr);gap:14px;align-items:center;}
.client-logo-card{height:92px;border:1px solid var(--qdm-line);border-radius:20px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px;box-shadow:0 10px 22px rgba(6,27,52,.055);}
.client-logo-card img{max-width:128px;max-height:46px;object-fit:contain;display:block;}
.client-logo-card span{font-size:10px;color:#667085;font-weight:700;text-align:center;line-height:1.1;}
.schedule-slide h2{margin-bottom:14px;}
.schedule-summary{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--qdm-line);border-radius:22px;background:#fff;padding:18px 22px;margin-bottom:18px;box-shadow:0 10px 22px rgba(6,27,52,.06);}
.schedule-summary span{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:#60748a;font-weight:800;}
.schedule-summary strong{font-size:30px;color:var(--qdm-blue);}
.timeline{display:grid;gap:10px;}
.timeline-row{display:grid;grid-template-columns:88px 1fr 330px;gap:14px;align-items:center;background:#fff;border:1px solid var(--qdm-line);border-radius:18px;padding:13px 16px;box-shadow:0 8px 18px rgba(6,27,52,.045);}
.phase-badge{background:linear-gradient(135deg,var(--qdm-blue),var(--qdm-blue-2));color:#fff;border-radius:999px;padding:8px 10px;font-size:12px;font-weight:800;text-align:center;}
.timeline-info strong{display:block;color:#092644;font-size:17px;margin-bottom:3px;}
.timeline-info span{display:block;color:#60748a;font-size:13px;}
.timeline-bar{height:16px;border-radius:999px;background:#e7f2fb;overflow:hidden;border:1px solid #d5e6f4;}
.timeline-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--qdm-blue),var(--qdm-blue-2));}
@media(max-width:1300px){.schedule-row{grid-template-columns:1fr 90px 110px 1fr;}.schedule-row-actions{grid-column:1/-1;}.tabs{grid-template-columns:repeat(5,minmax(0,1fr));}}


/* V1.6 - Ajustes de portada, enlaces, logos y contacto final */
.watermark a, .contact-strip a { color: inherit; text-decoration: none; }
.contact-strip { gap: 18px; }
.client-logo-card img { max-width: 150px; max-height: 78px; }

/* Alcance avanzado: orden estricto, títulos con subitems y paginación lógica */
.scope-slide .slide-inner{padding-top:84px;padding-bottom:76px;}
.scope-slide .scope-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin:0;padding:0;list-style:none;grid-auto-flow:row;}
.scope-slide .scope-list>li{background:#fff;border:1px solid var(--qdm-line);border-radius:16px;padding:10px 12px;font-size:15px;line-height:1.25;break-inside:avoid;page-break-inside:avoid;box-shadow:0 8px 18px rgba(6,27,52,.045);}
.scope-slide .scope-list>li:before{content:none!important;}
.scope-activity{display:flex;align-items:flex-start;gap:10px;}
.scope-index{min-width:24px;height:24px;padding:0 7px;border-radius:8px;background:linear-gradient(135deg,var(--qdm-blue),var(--qdm-blue-2));color:#fff;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 5px 12px rgba(0,153,221,.22);}
.scope-group{display:block;}
.scope-heading{display:flex;align-items:center;gap:10px;margin-bottom:6px;color:var(--qdm-dark);}
.scope-heading strong{font-size:15px;line-height:1.15;}
.scope-group ul{margin:7px 0 0 34px;padding:0;list-style:disc;}
.scope-group ul li{margin:0 0 4px;font-size:13.3px;line-height:1.25;color:#23384f;}
.continuation{display:inline-block;margin-left:6px;color:var(--qdm-blue);font-size:.58em;vertical-align:middle;}



/* V1.8 - encabezado con logo de cliente, titulo en pie y ajustes de contraste */
.slide-header img.qdm-header-logo{height:58px;max-width:150px;object-fit:contain;flex:0 0 auto;}
.slide-header img.client-header-logo{height:52px;max-width:132px;object-fit:contain;background:#fff;border:1px solid var(--qdm-line);border-radius:16px;padding:7px;box-shadow:0 8px 18px rgba(6,27,52,.08);box-sizing:border-box;}
.slide-header .header-empty{display:block;width:150px;height:1px;}
.footer-title{position:absolute;left:210px;right:210px;bottom:24px;text-align:center;font-size:12px;color:#166ca8;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:3;}
.price-card.featured p{color:#dceaf8!important;opacity:1;}
.price-card.featured span{color:#fff;}



/* V1.12 fix - pestañas visibles y funcionales */
.tabs{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin:10px 0 16px!important;
}
.tab{
  min-width:0!important;
  padding:10px 8px!important;
  font-size:13px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  text-align:center!important;
}
@media(max-width:420px){
  .tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

/* V1.13 - Plantillas visuales: Ejecutiva QDM y Moderna QDM */
.template-moderna .slide{
  border-radius:2px;
  box-shadow:0 12px 28px rgba(6,27,52,.16);
  background:#ffffff;
}
.template-moderna .slide.soft{
  background:linear-gradient(135deg,#ffffff 0%,#f7fbff 100%);
}
.template-moderna .slide.dark{
  background:
    radial-gradient(circle at 20% 22%,rgba(0,183,255,.30),transparent 20%),
    radial-gradient(circle at 82% 86%,rgba(180,0,255,.24),transparent 26%),
    linear-gradient(135deg,rgba(2,9,20,.92),rgba(6,27,52,.92)),
    url('../assets/hero-bg.jpg') center/cover no-repeat;
  color:#fff;
}
.template-moderna .slide.dark::before{
  content:"";
  position:absolute;
  left:-70px;
  right:-70px;
  bottom:-110px;
  width:auto;
  height:230px;
  border-radius:50% 50% 0 0;
  background:linear-gradient(90deg,rgba(0,183,255,.25),rgba(180,0,255,.22),rgba(0,183,255,.15));
  filter:blur(1px);
}
.template-moderna .slide.dark::after{
  background:linear-gradient(90deg,rgba(2,9,20,.25),transparent 62%);
}
.template-moderna .slide:not(.dark)::before{
  width:360px;
  height:360px;
  right:-125px;
  bottom:-135px;
  background:rgba(0,183,255,.10);
  filter:none;
}
.template-moderna .slide-header{
  top:26px;
  left:64px;
  right:64px;
  padding-bottom:12px;
  border-bottom:2px solid rgba(6,147,227,.55);
  opacity:1;
}
.template-moderna .slide.dark .slide-header{
  border-bottom:0;
}
.template-moderna .slide-header img.qdm-header-logo{
  height:58px;
  max-width:160px;
}
.template-moderna .slide-header img.client-header-logo{
  height:52px;
  max-width:130px;
  background:#fff;
  border:1px solid #dce6f2;
  border-radius:14px;
  padding:7px;
  box-shadow:none;
}
.template-moderna .slide-inner{
  padding-top:98px;
}
.template-moderna .dark .slide-inner{
  padding-top:82px;
}
.template-moderna h1{
  font-size:56px;
  line-height:1.05;
}
.template-moderna h2{
  font-size:34px;
  color:#061b34;
}
.template-moderna .eyebrow{
  color:#0077c8;
  letter-spacing:.14em;
}
.template-moderna .dark .eyebrow{
  color:#00b7ff;
}
.template-moderna p{
  font-size:17px;
  line-height:1.42;
}
.template-moderna .lead{
  font-size:23px;
}
.template-moderna .chip{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  color:#e8f7ff;
}
.template-moderna .service-card,
.template-moderna .stat,
.template-moderna .client-logo-card,
.template-moderna .price-card,
.template-moderna .scope-slide .scope-list>li,
.template-moderna .timeline-row{
  border-radius:14px;
  box-shadow:none;
}
.template-moderna .service-card .icon{
  background:#fff;
  border:1px solid #dce6f2;
}
.template-moderna .service-card .icon img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.template-moderna .footer-title{
  color:#0077c8;
}
.template-moderna .watermark a{
  color:#0077c8;
  font-weight:700;
}
.template-moderna .pricing{
  gap:14px;
}
.template-moderna .price-card.featured{
  background:#061b34;
}
.template-moderna .price-card.featured p{
  color:#dceaf8!important;
}
.template-moderna .client-logo-wall{
  grid-template-columns:repeat(3,1fr);
  max-width:720px;
}
.template-moderna .client-logo-card{
  height:110px;
}
.template-moderna .client-logo-card img{
  max-width:170px;
  max-height:70px;
}
.template-moderna .clients-subtitle{
  font-size:18px;
  max-width:760px;
}



/* V1.14 - Alcance ejecutivo compacto para títulos con subitems */
.template-ejecutiva .scope-structured-slide .slide-inner{
  padding-top:78px;
  padding-bottom:70px;
}
.template-ejecutiva .scope-structured-list{
  display:block;
  margin:0;
  padding:0;
  list-style:none;
  max-width:860px;
}
.template-ejecutiva .scope-structured-list>li{
  background:transparent;
  border:0;
  box-shadow:none;
  border-radius:0;
  padding:0;
  margin:0 0 18px;
  display:block;
  break-inside:avoid;
  page-break-inside:avoid;
}
.template-ejecutiva .scope-structured-list>li:before{content:none!important;}
.template-ejecutiva .scope-group-compact h3{
  margin:0 0 8px;
  color:#006fd6;
  font-size:20px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:-.01em;
}
.template-ejecutiva .scope-group-compact ul{
  margin:0;
  padding:0;
  list-style:none;
}
.template-ejecutiva .scope-group-compact ul li,
.template-ejecutiva .scope-activity-compact{
  position:relative;
  padding-left:26px;
  margin:0 0 8px;
  color:#142940;
  font-size:15.4px;
  line-height:1.34;
}
.template-ejecutiva .scope-group-compact ul li:before,
.template-ejecutiva .scope-activity-compact:before{
  content:'✓';
  position:absolute;
  left:0;
  top:.08em;
  width:16px;
  height:16px;
  border:1.5px solid #6ab5ff;
  border-radius:999px;
  color:#1b8fe8;
  font-size:10px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}



/* V1.15 - Ajuste visual alcance ejecutivo: subitems sin cajas y viñetas alineadas */
.template-ejecutiva .scope-structured-list .scope-group-compact ul li,
.template-ejecutiva .scope-structured-list .scope-activity-compact{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-top: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 23px !important;
  margin: 0 0 5px !important;
  min-height: 0 !important;
  display: block !important;
}
.template-ejecutiva .scope-structured-list .scope-group-compact{
  margin-bottom: 12px !important;
}
.template-ejecutiva .scope-structured-list .scope-group-compact h3{
  margin-bottom: 5px !important;
}
.template-ejecutiva .scope-structured-list .scope-group-compact ul li:before,
.template-ejecutiva .scope-structured-list .scope-activity-compact:before{
  top: 0.18em !important;
  transform: none !important;
  width: 14px !important;
  height: 14px !important;
  font-size: 8px !important;
  border-width: 1.3px !important;
}



/* V1.16 - Plantillas: Moderna QDM y Ejecutiva QDM Mundo */
.template-moderna{--qdm-blue:#006eb8;--qdm-blue-2:#00a9e8;--qdm-navy:#06213d;}
.template-moderna .slide{background:#fff!important;border:1px solid #e5edf5;border-radius:14px;box-shadow:0 18px 42px rgba(20,43,70,.12);}
.template-moderna .slide::before,.template-moderna .slide.dark::after{display:none!important;}
.template-moderna .slide:after{content:"";position:absolute;left:0;right:0;top:0;height:7px;background:linear-gradient(90deg,#006eb8,#00a9e8);z-index:2;}
.template-moderna .slide.dark{background:#fff!important;color:#071b34!important;}
.template-moderna .dark h1,.template-moderna .dark h2,.template-moderna .dark p{color:#071b34!important;}
.template-moderna h1{color:#061b34;font-size:50px;letter-spacing:-.035em;}
.template-moderna h2{font-size:34px;color:#061b34;}
.template-moderna p{color:#3f5369;}
.template-moderna .eyebrow{color:#006eb8;letter-spacing:.19em;}
.template-moderna .slide-header{left:54px;right:54px;top:22px;border-bottom:1px solid #e6eef6;padding-bottom:12px;color:#46627c;opacity:1;}
.template-moderna .slide-header img.qdm-header-logo{height:48px;max-width:142px;}
.template-moderna .slide-header img.client-header-logo{height:44px;max-width:120px;background:#fff;border:1px solid #e6eef6;border-radius:14px;padding:6px;box-shadow:none;}
.template-moderna .slide-inner{padding:92px 58px 56px;}
.template-moderna .moderna-cover .slide-inner{padding-top:98px;}
.template-moderna .cover-grid{grid-template-columns:1.18fr 260px;gap:38px;}
.template-moderna .cover-card{background:#fff;border:1px solid #dfeaf4;box-shadow:0 14px 34px rgba(6,27,52,.08);}
.template-moderna .cover-card img{border:1px solid #eef3f8;background:#fff;}
.template-moderna .chip{background:#f0f7fc;border:1px solid #d7eaf8;color:#006eb8;}
.template-moderna .service-card,.template-moderna .item-card,.template-moderna .stat,.template-moderna .price-card,.template-moderna .client-logo-card,.template-moderna .timeline-row,.template-moderna .schedule-summary{border:1px solid #e5edf5;border-radius:14px;box-shadow:none;background:#fff;}
.template-moderna .service-card .icon{background:#f0f7fc;border:1px solid #d8ebf8;}
.template-moderna .pricing{gap:16px;}
.template-moderna .price-card.featured{background:#fff;color:#061b34;border-left:7px solid #006eb8;}
.template-moderna .price-card.featured p{color:#3f5369!important;}
.template-moderna .featured .price{color:#006eb8;}
.template-moderna .meta{background:#f7fbff;border:1px solid #e5edf5;}
.template-moderna .watermark,.template-moderna .page-number,.template-moderna .footer-title{color:#60748a;}
.template-moderna .contact-strip a{background:#f0f7fc;color:#006eb8;border:1px solid #d7eaf8;padding:10px 14px;border-radius:999px;}
.template-moderna .terms{color:#1f344a;}
.template-moderna .scope-slide .scope-list>li{box-shadow:none;border-color:#e5edf5;}
.template-moderna .scope-group-compact{border-left:4px solid #006eb8!important;}

.template-mundo .mundo-cover,.template-mundo .mundo-thanks{background-image:linear-gradient(90deg,rgba(2,9,20,.86),rgba(2,9,20,.58),rgba(2,9,20,.28)),url('../assets/banner-qdm-mundo.jpg')!important;background-size:82%!important;background-position:center!important;color:#fff;}
.template-mundo .mundo-cover::before,.template-mundo .mundo-thanks::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 82% 18%,rgba(0,183,255,.24),transparent 30%);z-index:1;}
.template-mundo .mundo-cover::after,.template-mundo .mundo-thanks::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,9,20,.62),rgba(2,9,20,.2));z-index:1;}
.template-mundo .mundo-cover .slide-inner,.template-mundo .mundo-thanks .slide-inner,.template-mundo .mundo-cover .slide-header,.template-mundo .mundo-thanks .slide-header,.template-mundo .mundo-cover .watermark,.template-mundo .mundo-thanks .watermark,.template-mundo .mundo-cover .page-number,.template-mundo .mundo-thanks .page-number{z-index:3;}
.template-mundo .mundo-cover h1{font-size:62px;text-shadow:0 18px 40px rgba(0,0,0,.35);}
.template-mundo .mundo-cover .lead,.template-mundo .mundo-thanks .lead{max-width:720px;color:#e7f5ff;}
.template-mundo .mundo-cover .cover-card{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(10px);box-shadow:0 18px 50px rgba(0,0,0,.25);}
.template-mundo .mundo-cover .cover-card img{background:#fff;border-radius:18px;}
.template-mundo .mundo-cover .chip{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.25);}
.template-mundo .mundo-thanks .thanks h1{text-shadow:0 18px 40px rgba(0,0,0,.35);}
.template-mundo .mundo-thanks .contact-strip a{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);padding:10px 14px;border-radius:999px;color:#dff5ff;}



/* V1.17 - Correccion real Moderna QDM y fondo correcto Ejecutiva QDM Mundo */
.template-moderna{
  --qdm-blue:#006fd6;
  --qdm-blue-2:#00a9e8;
  --qdm-navy:#061b34;
  --qdm-text:#071b34;
  --qdm-muted:#465b70;
  --qdm-line:#dfeaf4;
}
.template-moderna .slide{
  background:#fff!important;
  border:1px solid #dce7f2!important;
  border-radius:4px!important;
  box-shadow:0 12px 30px rgba(15,36,60,.12)!important;
}
.template-moderna .slide:after,
.template-moderna .slide:not(.moderna-cover):after,
.template-moderna .slide::before,
.template-moderna .slide.dark::after{
  display:none!important;
  content:none!important;
}
.template-moderna .slide.soft{
  background:#fff!important;
}
.template-moderna .moderna-cover{
  background:
    linear-gradient(90deg,rgba(3,12,28,.94) 0%,rgba(5,22,48,.84) 52%,rgba(5,32,64,.55) 100%),
    radial-gradient(circle at 24% 25%,rgba(0,174,255,.18),transparent 24%),
    url('../assets/hero-bg.jpg') center/cover no-repeat!important;
  color:#fff!important;
}
.template-moderna .moderna-cover h1,
.template-moderna .moderna-cover h2,
.template-moderna .moderna-cover p{
  color:#fff!important;
}
.template-moderna .moderna-cover .slide-header{
  border-bottom:0!important;
}
.template-moderna .moderna-cover .slide-inner{
  padding:120px 58px 56px!important;
}
.template-moderna .moderna-cover .cover-grid{
  display:block!important;
  max-width:760px!important;
}
.template-moderna .moderna-cover .cover-card{
  display:none!important;
}
.template-moderna .moderna-cover h1{
  font-size:58px!important;
  line-height:1.02!important;
  letter-spacing:-.045em!important;
  max-width:760px!important;
  margin-bottom:22px!important;
}
.template-moderna .moderna-cover .lead{
  font-size:22px!important;
  line-height:1.36!important;
  max-width:690px!important;
  color:#e7f5ff!important;
}
.template-moderna .moderna-cover .chip{
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(0,183,255,.42)!important;
  color:#dff5ff!important;
  box-shadow:0 10px 24px rgba(0,0,0,.18)!important;
}
.template-moderna .slide-header{
  top:24px!important;
  left:56px!important;
  right:56px!important;
  padding-bottom:12px!important;
  border-bottom:2px solid rgba(0,111,214,.55)!important;
  opacity:1!important;
}
.template-moderna .slide-header img.qdm-header-logo{
  height:56px!important;
  max-width:154px!important;
}
.template-moderna .slide-header img.client-header-logo{
  height:50px!important;
  max-width:126px!important;
  background:#fff!important;
  border:1px solid #dfeaf4!important;
  border-radius:14px!important;
  padding:6px!important;
  box-shadow:none!important;
}
.template-moderna .slide-inner{
  padding:104px 58px 52px!important;
}
.template-moderna h1,
.template-moderna h2,
.template-moderna h3{
  color:#061b34!important;
  font-weight:900!important;
}
.template-moderna h2{
  font-size:33px!important;
  line-height:1.12!important;
  margin-bottom:22px!important;
}
.template-moderna .eyebrow{
  color:#006fd6!important;
  letter-spacing:.18em!important;
  font-weight:900!important;
  margin-bottom:14px!important;
}
.template-moderna p,
.template-moderna li{
  color:#102944!important;
  font-size:15.8px!important;
  line-height:1.42!important;
}
.template-moderna .two-col{
  display:block!important;
  max-width:700px!important;
}
.template-moderna .two-col .stat-grid{
  display:none!important;
}
.template-moderna .clients-subtitle{
  max-width:760px!important;
  font-size:17px!important;
  color:#465b70!important;
}
.template-moderna .client-logo-wall{
  grid-template-columns:repeat(3,1fr)!important;
  max-width:760px!important;
  gap:14px!important;
}
.template-moderna .client-logo-card{
  height:106px!important;
  border:1px solid #dfeaf4!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.template-moderna .client-logo-card img{
  max-width:168px!important;
  max-height:66px!important;
}
.template-moderna .service-grid{
  gap:14px!important;
}
.template-moderna .service-card{
  min-height:170px!important;
  padding:18px 16px!important;
  border:1px solid #dfeaf4!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.template-moderna .service-card .icon{
  background:#fff!important;
  border:0!important;
  width:48px!important;
  height:48px!important;
  margin-bottom:12px!important;
}
.template-moderna .service-card .icon img{
  width:44px!important;
  height:44px!important;
  object-fit:contain!important;
}
.template-moderna .service-card h3{
  color:#061b34!important;
  font-size:16px!important;
  line-height:1.16!important;
  text-transform:uppercase!important;
  margin-bottom:8px!important;
}
.template-moderna .service-card p{
  font-size:12.8px!important;
  line-height:1.35!important;
  color:#263d55!important;
}
.template-moderna .model-slide .slide-inner{
  padding-top:104px!important;
}
.template-moderna .model-slide h2{
  font-size:34px!important;
}
.template-moderna .model-diagram{
  border:1px solid #e2ebf4!important;
  border-radius:12px!important;
  background:#fff!important;
}
.template-moderna .scope-slide .slide-inner{
  padding-top:104px!important;
  padding-bottom:52px!important;
}
.template-moderna .scope-slide .scope-list,
.template-moderna .scope-slide .scope-structured-list{
  display:block!important;
  max-width:820px!important;
  margin:0!important;
  padding:0!important;
}
.template-moderna .scope-slide .scope-list>li,
.template-moderna .scope-slide .scope-structured-list>li{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
  margin:0 0 12px!important;
  color:#102944!important;
}
.template-moderna .scope-activity,
.template-moderna .scope-activity-compact{
  position:relative!important;
  display:block!important;
  padding-left:24px!important;
}
.template-moderna .scope-activity:before,
.template-moderna .scope-activity-compact:before{
  content:'✓'!important;
  position:absolute!important;
  left:0!important;
  top:.08em!important;
  width:14px!important;
  height:14px!important;
  border:1.5px solid #006fd6!important;
  border-radius:50%!important;
  color:#006fd6!important;
  display:grid!important;
  place-items:center!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:900!important;
  background:#fff!important;
}
.template-moderna .scope-index{
  display:none!important;
}
.template-moderna .scope-group-compact,
.template-moderna .scope-group{
  border-left:0!important;
}
.template-moderna .scope-group-compact h3,
.template-moderna .scope-heading strong{
  color:#006fd6!important;
  font-size:19px!important;
  font-weight:900!important;
  margin:0 0 8px!important;
}
.template-moderna .scope-group-compact ul,
.template-moderna .scope-group ul{
  margin:0 0 16px!important;
  padding:0!important;
  list-style:none!important;
}
.template-moderna .scope-group-compact ul li,
.template-moderna .scope-group ul li{
  position:relative!important;
  padding-left:24px!important;
  margin:0 0 8px!important;
  color:#102944!important;
  font-size:14.5px!important;
  line-height:1.36!important;
}
.template-moderna .scope-group-compact ul li:before,
.template-moderna .scope-group ul li:before{
  content:'✓'!important;
  position:absolute!important;
  left:0!important;
  top:.11em!important;
  width:14px!important;
  height:14px!important;
  border:1.5px solid #006fd6!important;
  border-radius:50%!important;
  color:#006fd6!important;
  display:grid!important;
  place-items:center!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:900!important;
  background:#fff!important;
}
.template-moderna .pricing{
  display:block!important;
  border:1px solid #dfeaf4!important;
  border-radius:14px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.template-moderna .price-card{
  border:0!important;
  border-bottom:1px solid #dfeaf4!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
  color:#061b34!important;
  padding:18px 22px!important;
}
.template-moderna .price-card.featured{
  border-left:0!important;
  background:#fff!important;
}
.template-moderna .price-card h3{
  font-size:21px!important;
  margin-bottom:7px!important;
}
.template-moderna .price-card p{
  font-size:13.5px!important;
  margin-bottom:8px!important;
}
.template-moderna .price{
  color:#061b34!important;
  font-size:34px!important;
  margin:6px 0!important;
}
.template-moderna .meta-list{
  gap:12px!important;
  margin-top:16px!important;
}
.template-moderna .meta{
  background:#fff!important;
  border:1px solid #dfeaf4!important;
  border-radius:12px!important;
}
.template-moderna .footer-title{
  color:#006fd6!important;
  font-weight:700!important;
}
.template-moderna .watermark a{
  color:#006fd6!important;
  font-weight:700!important;
}
.template-moderna .moderna-thanks{
  background:#fff!important;
  color:#061b34!important;
}
.template-moderna .moderna-thanks .slide-inner{
  display:grid!important;
  place-items:center!important;
  text-align:center!important;
}
.template-moderna .moderna-thanks .contact-strip a{
  background:#f0f7fc!important;
  border:1px solid #d7eaf8!important;
  color:#006fd6!important;
}
.template-mundo .mundo-cover,
.template-mundo .mundo-thanks{
  background-image:linear-gradient(90deg,rgba(2,9,20,.84),rgba(2,9,20,.56),rgba(2,9,20,.18)),url('../assets/banner-qdm-mundo.jpg')!important;
  background-size:cover!important;
  background-position:center center!important;
  color:#fff!important;
}




.scope-sequential-list{
  column-count:2;
  column-gap:28px;
}
.scope-sequential-list > li{
  break-inside:avoid;
  page-break-inside:avoid;
}



/* V1.17.5 - Ejecutiva QDM Mundo hereda alcance compacto y secuencial de Ejecutiva QDM */
.template-mundo .scope-structured-slide .slide-inner{
  padding-top:78px;
  padding-bottom:70px;
}
.template-mundo .scope-structured-list{
  display:block !important;
  margin:0;
  padding:0;
  list-style:none;
  max-width:860px;
}
.template-mundo .scope-sequential-list{
  column-count:2 !important;
  column-gap:28px !important;
}
.template-mundo .scope-structured-list>li{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:0 !important;
  margin:0 0 18px !important;
  display:block !important;
  break-inside:avoid;
  page-break-inside:avoid;
}
.template-mundo .scope-structured-list>li:before{content:none!important;}
.template-mundo .scope-group-compact h3{
  margin:0 0 8px;
  color:#006fd6;
  font-size:20px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:-.01em;
}
.template-mundo .scope-group-compact ul{
  margin:0;
  padding:0;
  list-style:none;
}
.template-mundo .scope-structured-list .scope-group-compact ul li,
.template-mundo .scope-structured-list .scope-activity-compact{
  position:relative;
  color:#142940;
  font-size:15.4px;
  line-height:1.34;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-top: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 23px !important;
  margin: 0 0 5px !important;
  min-height: 0 !important;
  display: block !important;
}
.template-mundo .scope-structured-list .scope-group-compact{
  margin-bottom: 12px !important;
}
.template-mundo .scope-structured-list .scope-group-compact h3{
  margin-bottom: 5px !important;
}
.template-mundo .scope-structured-list .scope-group-compact ul li:before,
.template-mundo .scope-structured-list .scope-activity-compact:before{
  content:'✓';
  position:absolute;
  left:0;
  top: 0.18em !important;
  transform: none !important;
  width: 14px !important;
  height: 14px !important;
  border:1.3px solid #6ab5ff !important;
  border-radius:999px;
  color:#1b8fe8;
  font-size: 8px !important;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}



/* V1.18 - Ajustes QDM: socios, ecosistema tecnológico y soporte compacto */
.ecosystem-slide .slide-inner{padding-top:84px;}
.ecosystem-intro{max-width:950px;font-size:19px;line-height:1.42;margin-bottom:24px;color:#3a526c;}
.ecosystem-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.ecosystem-card{background:#fff;border:1px solid var(--qdm-line);border-radius:22px;padding:20px;box-shadow:0 10px 24px rgba(6,27,52,.06);min-height:124px;}
.ecosystem-card h3{font-size:23px;margin:0 0 14px;color:#082745;}
.ecosystem-tags{display:flex;flex-wrap:wrap;gap:10px;}
.ecosystem-tags span{display:inline-flex;align-items:center;border-radius:999px;background:#eef7ff;border:1px solid #d8ebf8;color:#075b95;font-weight:800;font-size:15px;padding:9px 12px;line-height:1;}
.support-slide .slide-inner{padding-top:84px;padding-bottom:76px;}
.support-layout{display:grid;grid-template-columns:1.04fr 1fr;gap:28px;align-items:start;}
.support-main h2{margin-bottom:16px;}
.support-notes{display:grid;gap:10px;}
.support-note{background:#fff;border:1px solid var(--qdm-line);border-radius:18px;padding:15px 16px;box-shadow:0 8px 18px rgba(6,27,52,.045);}
.support-note h3{font-size:17px;margin:0 0 7px;color:#082745;}
.support-note p{font-size:15.2px;line-height:1.34;margin:0;color:#344860;}
.support-sla-panel{background:#fff;border:1px solid var(--qdm-line);border-radius:22px;padding:18px;box-shadow:0 10px 24px rgba(6,27,52,.06);margin-top:82px;}
.support-sla-panel h3{font-size:22px;margin:0 0 12px;color:#082745;}
.support-sla-panel .sla{box-shadow:none;border-radius:14px;}
.support-sla-panel .sla th,.support-sla-panel .sla td{padding:11px 12px;font-size:14px;line-height:1.25;}
.support-sla-panel .sla td:first-child{font-weight:800;color:#082745;}

.template-moderna .ecosystem-card,.template-moderna .support-note,.template-moderna .support-sla-panel{border-radius:14px;box-shadow:none;}
.template-moderna .ecosystem-tags span{background:#f0f7fc;border-color:#d7eaf8;color:#006eb8;}



/* V1.18.1 - Alineacion final soporte: niveles inicia al nivel de primera tarjeta */
.support-sla-panel{margin-top:122px;}


/* V1.19 - Unificar vista previa PDF con pantalla y proteger encabezados */
/* La vista previa trabaja en formato 16:9 (1120x630). La impresion se fuerza al mismo ratio
   para evitar que Chrome reacomode espacios en A4/Letter y cambie la composicion. */


/* Vista limpia en pantalla: mantener exactamente el mismo formato 16:9 que se imprimira. */
.clean-output .slide{
  width:1120px;
  min-height:630px;
}
.clean-output .scope-slide .slide-inner,
.clean-output .slide-title-safe .slide-inner{
  padding-top:96px;
}
.clean-output .slide-header{
  top:24px;
}

/* V1.20 - Correccion de paginacion PDF: no limitar body/main a una sola pagina.
   Mantiene el ratio 16:9, pero permite que Chrome imprima todas las slides. */


/* V1.21 - Correccion final PDF 16:9 sin reflujo.
   Problema detectado: los bloques 


/* V1.22 - PDF estable: se eliminan los @media print acumulados y se usa una sola regla.
   La salida PDF conserva el mismo layout del preview 16:9. */
@media print{
  @page{size:1120px 630px;margin:0;}
  *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;}
  html,body{margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important;}
  body.clean-output{display:block!important;width:1120px!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;}
  .no-print,.clean-toolbar{display:none!important;}
  .app-shell{display:block!important;min-height:0!important;}
  .preview-wrap,.clean-preview{display:block!important;width:1120px!important;max-width:1120px!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important;}
  .proposal-document{display:block!important;width:1120px!important;max-width:1120px!important;margin:0!important;padding:0!important;gap:0!important;zoom:1!important;transform:none!important;overflow:visible!important;}
  .slide{width:1120px!important;height:630px!important;min-height:630px!important;max-height:630px!important;margin:0!important;padding:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;break-after:page!important;page-break-after:always!important;break-inside:avoid!important;page-break-inside:avoid!important;}
  .slide:last-child{break-after:auto!important;page-break-after:auto!important;}
  .slide-inner{height:100%!important;min-height:630px!important;max-height:630px!important;overflow:hidden!important;}
  .slide-header,.watermark,.page-number,.footer-title{position:absolute!important;}
  img,svg{break-inside:avoid!important;page-break-inside:avoid!important;}
}

/* V1.23 - PDF estable con auto-ajuste por slide.
   Causa real: el preview permitia slides mas altas que la pagina 16:9; al imprimir,
   Chrome cortaba o montaba el contenido sobre el pie. Esta regla conserva 16:9 y
   permite que JS reduzca solo las paginas que se exceden, sin agregar paginas. */
.clean-output .proposal-document{
  gap:0!important;
  align-items:flex-start!important;
}
.clean-output .slide{
  width:1120px!important;
  height:630px!important;
  min-height:630px!important;
  max-height:630px!important;
  margin:0 0 24px 0!important;
  overflow:hidden!important;
}
.clean-output .slide.fit-scaled .slide-inner{
  transform-origin:top left!important;
  max-height:none!important;
  overflow:visible!important;
}
.clean-output .watermark,
.clean-output .footer-title,
.clean-output .page-number{
  z-index:30!important;
}
.clean-output .footer-title{
  background:rgba(255,255,255,.72);
  border-radius:999px;
  padding:2px 8px;
}
.clean-output .slide.dark .footer-title,
.clean-output .slide.dark .watermark,
.clean-output .slide.dark .page-number{
  background:transparent;
}

@media print{
  @page{size:1120px 630px;margin:0;}
  html,body{width:1120px!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important;}
  body.clean-output{width:1120px!important;height:auto!important;overflow:visible!important;}
  .no-print,.clean-toolbar{display:none!important;}
  .preview-wrap,.clean-preview{width:1120px!important;max-width:1120px!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important;}
  .proposal-document{display:block!important;width:1120px!important;max-width:1120px!important;margin:0!important;padding:0!important;gap:0!important;zoom:1!important;transform:none!important;}
  .slide{width:1120px!important;height:630px!important;min-height:630px!important;max-height:630px!important;margin:0!important;padding:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;break-after:page!important;page-break-after:always!important;break-inside:avoid!important;page-break-inside:avoid!important;}
  .slide:last-child{break-after:auto!important;page-break-after:auto!important;}
  .slide-inner{min-height:630px!important;overflow:visible!important;}
  .slide:not(.fit-scaled) .slide-inner{width:1120px!important;height:630px!important;max-height:630px!important;}
  .slide.fit-scaled .slide-inner{max-height:none!important;overflow:visible!important;}
  .slide-header,.watermark,.footer-title,.page-number{position:absolute!important;}
  *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;}
}

/* V1.24 - Area segura definitiva para encabezados.
   Evita que los titulos/eyebrows de paginas internas se solapen con el logo QDM,
   especialmente en Modelo de solucion y en salida PDF 16:9. */
.model-slide{
  padding-top:104px!important;
}
.clean-output .model-slide{
  padding-top:104px!important;
}
@media print{
  .model-slide{
    padding-top:104px!important;
  }
}


/* V1.25 - Area segura global reforzada para encabezados QDM.
   Protege todas las paginas internas contra solape entre logo, eyebrow y titulo. */
.slide-title-safe .slide-inner{
  padding-top:112px!important;
}
.about-slide .slide-inner{
  padding-top:106px!important;
}
.model-section .model-slide{
  padding-top:112px!important;
}
.model-section .model-diagram{
  height:392px!important;
}
.support-slide .support-layout{
  padding-top:104px!important;
}
.clean-output .slide-title-safe .slide-inner{
  padding-top:112px!important;
}
.clean-output .about-slide .slide-inner{
  padding-top:106px!important;
}
.clean-output .model-section .model-slide{
  padding-top:112px!important;
}
.clean-output .model-section .model-diagram{
  height:392px!important;
}
@media print{
  .slide-title-safe .slide-inner{padding-top:112px!important;}
  .about-slide .slide-inner{padding-top:106px!important;}
  .model-section .model-slide{padding-top:112px!important;}
  .model-section .model-diagram{height:392px!important;}
  .support-slide .support-layout{padding-top:104px!important;}
}

/* V1.26 - Optimización de páginas de alcance: mayor aprovechamiento horizontal.
   En Ejecutiva QDM y Ejecutiva QDM Mundo el alcance pasa a 3 columnas, usa todo
   el ancho útil de la slide y mantiene el orden secuencial de lectura. */
.template-ejecutiva .scope-structured-list,
.template-mundo .scope-structured-list{
  max-width:100% !important;
  width:100% !important;
}
.template-ejecutiva .scope-sequential-list,
.template-mundo .scope-sequential-list{
  column-count:3 !important;
  column-gap:34px !important;
  column-fill:balance !important;
}
.template-ejecutiva .scope-structured-list>li,
.template-mundo .scope-structured-list>li{
  margin-bottom:13px !important;
}
.template-ejecutiva .scope-group-compact h3,
.template-mundo .scope-group-compact h3{
  font-size:18px !important;
  line-height:1.12 !important;
  margin-bottom:5px !important;
}
.template-ejecutiva .scope-structured-list .scope-group-compact ul li,
.template-ejecutiva .scope-structured-list .scope-activity-compact,
.template-mundo .scope-structured-list .scope-group-compact ul li,
.template-mundo .scope-structured-list .scope-activity-compact{
  font-size:13.7px !important;
  line-height:1.28 !important;
  margin-bottom:4px !important;
  padding-left:20px !important;
}
.template-ejecutiva .scope-structured-list .scope-group-compact ul li:before,
.template-ejecutiva .scope-structured-list .scope-activity-compact:before,
.template-mundo .scope-structured-list .scope-group-compact ul li:before,
.template-mundo .scope-structured-list .scope-activity-compact:before{
  width:13px !important;
  height:13px !important;
  font-size:7px !important;
}


/* Login QDM */
.login-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  min-height:100vh;
  background:#06172e;
  font-family:inherit;
}
.login-visual{
  flex:1;
  background:linear-gradient(135deg,rgba(4,18,38,.86),rgba(6,34,70,.55)),url('../assets/banner-qdm-mundo.jpg') center/cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px;
  color:#fff;
}
.login-brand-card{
  max-width:520px;
  padding:36px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:26px;
  background:rgba(1,12,28,.42);
  box-shadow:0 30px 80px rgba(0,0,0,.32);
  backdrop-filter:blur(10px);
}
.login-brand-card img{height:74px;margin-bottom:26px;object-fit:contain;}
.login-brand-card h1{margin:0 0 14px;font-size:36px;line-height:1.05;letter-spacing:-.03em;}
.login-brand-card p{margin:0;color:rgba(255,255,255,.82);font-size:17px;line-height:1.6;}
.login-panel{width:440px;display:flex;align-items:center;justify-content:center;padding:34px;background:linear-gradient(180deg,#f8fbff,#eef5ff);}
.login-card{width:100%;max-width:340px;background:#fff;border-radius:24px;padding:32px;box-shadow:0 26px 70px rgba(2,19,45,.18);border:1px solid rgba(21,82,145,.08);}
.login-logo-mobile{display:none;height:54px;margin-bottom:18px;object-fit:contain;}
.login-eyebrow{display:inline-flex;margin-bottom:10px;padding:6px 10px;border-radius:999px;background:#eaf4ff;color:#0b62a3;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.08em;}
.login-card h2{margin:0 0 8px;color:#071d36;font-size:26px;}
.login-help{margin:0 0 22px;color:#5b6b7d;font-size:14px;line-height:1.5;}
.login-card label{display:block;margin:14px 0 0;color:#24364a;font-size:13px;font-weight:700;}
.login-card input{width:100%;box-sizing:border-box;margin-top:7px;padding:13px 14px;border:1px solid #d5e1ed;border-radius:13px;background:#f8fbff;color:#071d36;font-size:15px;outline:none;transition:border-color .18s,box-shadow .18s,background .18s;}
.login-card input:focus{border-color:#1f8bd3;background:#fff;box-shadow:0 0 0 4px rgba(31,139,211,.12);}
.login-card button{width:100%;margin-top:20px;padding:14px 16px;border:0;border-radius:14px;background:linear-gradient(135deg,#0b75bd,#15a7e2);color:#fff;font-weight:800;font-size:15px;cursor:pointer;box-shadow:0 14px 28px rgba(11,117,189,.25);}
.login-card button:hover{filter:brightness(1.02);}
.login-msg{min-height:20px;margin-top:12px;color:#c42034;font-size:13px;font-weight:700;}
.login-card small{display:block;margin-top:14px;color:#8b98a7;text-align:center;}
#currentUser{display:inline-block;margin-right:8px;color:#24364a;font-weight:700;font-size:12px;}
#logoutBtn{border:1px solid #d5e1ed;background:#fff;border-radius:999px;padding:7px 10px;color:#0b62a3;font-weight:700;cursor:pointer;}
@media (max-width: 860px){
  .login-overlay{display:block;overflow:auto;}
  .login-visual{display:none;}
  .login-panel{width:auto;min-height:100vh;padding:24px;}
  .login-logo-mobile{display:block;}
}
