/* ===== reports/layout.css ===== */
/* Shared wine and CRM report layout. Centralized KIVO CSS, migrated from source ZIP (23). */

/* Source: report-shell.css */
/* Shared editorial shell for both portfolio reports. */
:root{
  --report-header-h:76px;
  --report-intro-h:62px;
  --report-index-h:54px;
  --report-width:min(1180px,calc(100% - 48px));
}

body{background:#EDF5F2}
.project-shell,.report-shell{overflow:visible;background:#EDF5F2}

/* Main portfolio header remains identical and visible in the reports. */












/* Persistent report context and reading progress. */
.project-intro{
  position:relative;
  top:auto;
  z-index:1;
  min-height:var(--report-intro-h);
  padding:10px 0;
  background:#EDF5F2;
  border-bottom:1px solid rgba(17,18,20,.12);
  box-shadow:0 6px 18px rgba(17,18,20,.035);
}
.project-intro .container{width:var(--report-width);min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.project-back{display:inline-flex;align-items:center;gap:.5rem;color:#122B3A;font-size:.82rem;font-weight:800;text-decoration:none}
.project-label{color:#656a70;font-size:.66rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}

.report-index{
  position:sticky;
  top:var(--report-header-h);
  z-index:3200;
  min-height:var(--report-index-h);
  background:rgba(237,245,242,.97);
  border-top:0;
  border-bottom:1px solid rgba(17,18,20,.12);
  box-shadow:0 8px 24px rgba(17,18,20,.05);
  backdrop-filter:blur(16px);
}
.report-index-inner{width:var(--report-width);min-height:52px;margin:auto;display:flex;align-items:center;gap:6px;overflow-x:auto;padding:7px 0;scrollbar-width:none}
.report-index-inner::-webkit-scrollbar{display:none}
.report-index a{position:relative;flex:none;padding:8px 12px;border-radius:999px;color:#5a6064;font-size:11px;font-weight:750;letter-spacing:.04em;text-decoration:none;white-space:nowrap;transition:color .2s,background .2s}
.report-index a:hover,.report-index a:focus-visible{color:#122B3A;background:#dbe9e4;outline:none}
.report-index a.active{color:#122B3A;background:#43C6A5}
.report-progress{position:absolute;left:0;right:0;bottom:-1px;height:3px;background:rgba(17,18,20,.08)}
.report-progress i{display:block;width:0;height:100%;background:#43C6A5;box-shadow:0 0 10px rgba(67,198,165,.55);transition:width .12s linear}

.section[id],.report-section[id]{scroll-margin-top:calc(var(--report-header-h) + var(--report-index-h) + 14px)}
.case-disclaimer{max-width:760px;margin:18px 0;padding:13px 15px;border-left:3px solid #43C6A5;background:rgba(67,198,165,.12);color:inherit;font-size:.78rem}

/* Balanced light/dark rhythm: preserve intentional dark sections. */
.section-light,.section-stone{color:#122B3A}
.section-light p,.section-light li,.section-stone p,.section-stone li{color:#565c61}
.section-light h1,.section-light h2,.section-light h3,.section-light h4,.section-light strong,.section-light b,.section-stone h1,.section-stone h2,.section-stone h3,.section-stone h4,.section-stone strong,.section-stone b{color:#122B3A}
.section-light .kicker,.section-stone .kicker,.section-light .eyebrow,.section-stone .eyebrow,.section-light .section-kicker,.section-stone .section-kicker{color:#122B3A}
.section-dark{background-color:#122B3A;color:#EDF5F2}
.section-dark p,.section-dark li{color:rgba(247,245,238,.76)}
.section-dark h1,.section-dark h2,.section-dark h3,.section-dark h4,.section-dark strong,.section-dark b{color:#EDF5F2}
.section-dark .kicker,.section-dark .eyebrow,.section-dark .section-kicker{color:#b2cf4c}

/* Dark surfaces nested inside light sections retain their own contrast. */
.section-light :is(.disclaimer-card,.brand-board,.eg-panel,.dark-card),
.section-stone :is(.disclaimer-card,.brand-board,.eg-panel,.dark-card){color:#EDF5F2}
.section-light :is(.disclaimer-card,.brand-board,.eg-panel,.dark-card) :is(h2,h3,h4,strong,b),
.section-stone :is(.disclaimer-card,.brand-board,.eg-panel,.dark-card) :is(h2,h3,h4,strong,b){color:#EDF5F2}
.section-light :is(.disclaimer-card,.brand-board,.eg-panel,.dark-card) :is(p,li,span,small),
.section-stone :is(.disclaimer-card,.brand-board,.eg-panel,.dark-card) :is(p,li,span,small){color:rgba(247,245,238,.74)}
.section-light .brand-board .nualira-wordmark,.section-stone .brand-board .nualira-wordmark{color:#EDF5F2}
.section-light .brand-board .brand-values span,.section-stone .brand-board .brand-values span{color:#EDF5F2;border-color:rgba(255,255,255,.18)}

/* Light widgets never inherit white text from a parent section. */
.eg-light-saas,.eg-ai-light-widget,.section-light .eg-widget,.section-stone .eg-widget{color:#122B3A;background:#EDF5F2}
.eg-light-saas :is(p,small,span),.eg-ai-light-widget :is(p,small,span),.section-light .eg-widget :is(p,small,span),.section-stone .eg-widget :is(p,small,span){color:#565c61;text-shadow:none}
.eg-light-saas :is(h3,h4,strong,b),.eg-ai-light-widget :is(h3,h4,strong,b),.section-light .eg-widget :is(h3,h4,strong,b),.section-stone .eg-widget :is(h3,h4,strong,b){color:#122B3A}
.section-dark .eg-widget :is(p,small,span){color:rgba(247,245,238,.72)}
.section-dark .eg-widget :is(h3,h4,strong,b){color:#EDF5F2}

/* Consistent vertical rhythm and title safety. */
.report-section,.report-root>.section{padding-top:82px;padding-bottom:82px}
.hero h1,.section-heading h2,.section h2,.report-section h2{line-height:1;overflow:visible;padding-bottom:.08em}
.hero-copy,.section-heading,.section-head{overflow:visible}

/* CRM report: neutralise home hero rules inherited through the global stylesheet. */
.report-shell>.hero{min-height:calc(100vh - var(--report-header-h) - var(--report-intro-h) - var(--report-index-h));padding:72px 0 82px}
.report-shell>.hero .hero-grid{position:relative;grid-template-columns:1.08fr .92fr;gap:72px;align-items:center;min-height:0}
.report-shell>.hero .hero-copy{width:auto;padding-block:0}

/* Wine report: one alignment axis for every editorial block and widget. */
.report-root :is(.section-head,.connect-grid,.feature-matrix,.crm-grid,.role-grid,.tool-grid,.split,.profile-wrap,.journey-line,.checkout-wrap,.roadmap-gallery,.workflow,.wide-image-placeholder,.closing-card,.legal-footer){width:var(--report-width);max-width:1180px;margin-left:auto;margin-right:auto}
.report-root .image-section{width:100%;max-width:none;margin:0;padding-left:max(24px,calc((100vw - 1180px)/2));padding-right:max(24px,calc((100vw - 1180px)/2))}
.report-root .section-head{margin-bottom:36px}
.report-root .desktop-widget,.report-root .mobile-widget-summary,.report-root .hover-gallery{max-width:1180px;margin-inline:auto}

/* Contexto digital: el argumento abre la sección y las tres claves ocupan una segunda fila. */
.report-root #contexto-digital .split{display:grid;grid-template-columns:1fr;gap:34px}
.report-root #contexto-digital .section-head{width:100%;max-width:920px;margin:0}
.report-root #contexto-digital .kpi-row{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}

/* Los componentes claros conservan contraste aunque estén dentro de una sección oscura. */
.report-root .section-dark .eg-widget.eg-light-saas,
.report-root .section-dark .eg-widget.eg-ai-light-widget{background:#EDF5F2;color:#122B3A}
.report-root .section-dark .eg-widget.eg-light-saas :is(h3,h4,strong,b),
.report-root .section-dark .eg-widget.eg-ai-light-widget :is(h3,h4,strong,b){color:#122B3A}
.report-root .section-dark .eg-widget.eg-light-saas :is(p,small,span),
.report-root .section-dark .eg-widget.eg-ai-light-widget :is(p,small,span){color:#565c61;text-shadow:none}
.report-root .eg-product-ux-widget .eg-pux-story{color:#4b5156;text-shadow:none}
.report-root #crm .crm-grid article{background:#EDF5F2;color:#122B3A}
.report-root #crm .crm-grid article :is(h3,h4,strong,b){color:#122B3A}
.report-root #crm .crm-grid article :is(p,small,span){color:#565c61}

/* Related content: shared, isolated navigation between the three long-form pieces. */
.report-related{padding:76px 0;background:#EDF5F2;color:#122B3A}
.report-related[id]{scroll-margin-top:calc(var(--report-header-h) + var(--report-index-h) + 14px)}
.report-related__inner{width:var(--report-width);max-width:1180px;margin:auto}
.report-related__eyebrow{margin:0 0 12px;color:#122B3A;font-size:.7rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.report-related h2{max-width:760px;margin:0 0 28px;font-size:clamp(2rem,4vw,3.5rem);line-height:1;letter-spacing:-.05em}
.report-related__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.report-related__grid a{padding:24px;border:1px solid rgba(17,18,20,.13);border-radius:16px;background:#EDF5F2;color:#122B3A;text-decoration:none;transition:border-color .2s,transform .2s}
.report-related__grid a:hover,.report-related__grid a:focus-visible{border-color:#122B3A;transform:translateY(-2px)}
.report-related__grid strong,.report-related__grid span{display:block}
.report-related__grid strong{font-size:1rem}
.report-related__grid span{margin-top:8px;color:#656a70;font-size:.82rem}

/* Superficies oscuras anidadas en bloques claros y comparación destacada del informe CRM. */
.section-light .compare-grid .featured :is(h3,h4,strong,b,li),
.section-stone .compare-grid .featured :is(h3,h4,strong,b,li){color:#EDF5F2}

/* Wine hero: no vertical translation, no clipping and a readable compact composition. */
.report-root .hero.section-dark.print-page{position:relative;min-height:600px;max-height:none;height:auto;padding:0;display:flex;align-items:center}
.report-root .hero.section-dark.print-page .hero-inner{width:var(--report-width);max-width:1180px;min-height:600px;margin:auto;padding:64px 0;align-items:center}
.report-root .hero.section-dark.print-page .hero-copy{max-width:680px;transform:none}
.report-root .hero.section-dark.print-page .hero-copy h1{max-width:680px;margin:0 0 16px;padding:.06em 0 .12em;font-size:clamp(4rem,7vw,7.25rem);line-height:.92;letter-spacing:-.065em}
.report-root .hero.section-dark.print-page .lead{margin-top:14px;font-size:clamp(20px,1.9vw,28px);line-height:1.28}
.report-root .hero.section-dark.print-page .hero-support{margin-top:16px}
.report-root #resumen.section.section-dark.compact{padding-top:72px}
.report-root #resumen.section.section-dark.compact{background:#EDF5F2;color:#122B3A}
.report-root #resumen.section.section-dark.compact :is(h2,h3,strong,b){color:#122B3A}
.report-root #resumen.section.section-dark.compact p{color:#565c61}
.report-root #resumen .pulse-card{background:#EDF5F2;border-color:rgba(17,18,20,.13);box-shadow:0 12px 32px rgba(17,18,20,.045)}
.report-root #resumen .pulse-card span{color:#122B3A}

body>.footer{padding:24px 0;background:#122B3A;color:rgba(255,255,255,.58);border-top:1px solid rgba(255,255,255,.1)}
body>.footer .container{display:flex;justify-content:space-between;align-items:center;gap:20px}
body>.footer p{margin:0;font-size:.76rem}
body>.footer .footer-links{display:flex;gap:17px;align-items:center;flex-wrap:wrap}
body>.footer a,body>.footer button{padding:0;border:0;background:none;color:inherit;font-size:.75rem;text-decoration:none}



@media(max-width:900px){
  .report-shell>.hero .hero-grid{grid-template-columns:1fr;gap:46px}
  .report-root #contexto-digital .kpi-row{grid-template-columns:1fr}
}

@media(max-width:720px){
  :root{--report-header-h:68px;--report-intro-h:58px;--report-index-h:54px;--report-width:min(100% - 30px,1180px)}
  
  
  
  
  .project-intro{padding:7px 0}
  .project-intro .container{min-height:44px;flex-direction:row;align-items:center;gap:12px}
  .project-label{max-width:48%;font-size:.6rem;text-align:right}
  .report-index-inner{width:100%;padding-inline:15px}
  .report-section,.report-root>.section{padding-top:64px;padding-bottom:64px}
  .report-shell>.hero{padding:58px 0 64px}
  .report-shell>.hero .hero-grid{grid-template-columns:1fr;gap:42px}
  .report-root .hero.section-dark.print-page,.report-root .hero.section-dark.print-page .hero-inner{min-height:520px}
  .report-root .hero.section-dark.print-page .hero-inner{padding:80px 0 48px}
  .report-root .hero.section-dark.print-page .hero-copy h1{font-size:clamp(3.35rem,15vw,5rem)}
  .report-root #resumen.section.section-dark.compact{padding-top:58px}
  .report-root .image-section{padding-left:15px;padding-right:15px}
  body>.footer .container{align-items:flex-start;flex-direction:column}
  .report-related{padding:58px 0}
  .report-related__grid{grid-template-columns:1fr}
}

@media print{
  .project-intro, .report-index{display:none}
}

/* KIVO / Apple Design Review — scoped report refinements */


.report-index a:focus-visible{outline:3px solid #122B3A;outline-offset:3px}

.report-index a{font-size:13px;min-height:40px;display:inline-flex;align-items:center}
.report-index-inner{scrollbar-width:thin;scrollbar-color:#b8bdad transparent}
.project-intro .container{flex-wrap:wrap}
.report-root :is(h1,h2,h3),.report-shell :is(h1,h2,h3){overflow-wrap:normal;text-wrap:balance}
@media(max-width:720px){
  .project-intro{position:relative;top:auto;z-index:1}
  .report-index{top:var(--report-header-h)}
  .section[id],.report-section[id],.report-related[id]{scroll-margin-top:calc(var(--report-header-h) + var(--report-index-h) + 14px)}
  .report-index-inner{min-height:52px}
  .project-label{font-size:.72rem;letter-spacing:.06em}
  
  
  .report-root :is(h2,h3),.report-shell :is(h2,h3){text-wrap:balance}
}
@media(prefers-reduced-motion:reduce){.report-index a,.report-progress i{transition:none}}

/* ===== reports/report-shell.css ===== */
/* Shared shell for long-form portfolio reports. No chart, product or image styling here. */
.kivo-report-sidebar .project-intro {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--eg-line, #c9d5d1);
}
.kivo-report-sidebar .project-intro .container {
  display: flex;
  align-items: center;
  min-height: 54px;
  gap: 24px;
}
.kivo-report-sidebar .project-back {
  color: var(--eg-accent-strong, #1f9b7c);
  font: 700 .78rem/1.25 var(--eg-heading, system-ui, sans-serif);
  text-decoration: none;
}
.kivo-report-sidebar .project-label {
  margin-left: auto;
  font: 700 .68rem/1.2 var(--eg-heading, system-ui, sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kivo-report-sidebar .report-index {
  position: sticky;
  top: var(--kivo-header-h, 76px);
  z-index: 100;
  float: none;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--eg-line, #c9d5d1);
  background: rgba(237,245,242,.96);
  backdrop-filter: blur(10px);
}
.kivo-report-sidebar .report-index-inner {
  display: flex;
  width: min(1240px, calc(100% - 56px));
  min-height: 48px;
  margin: auto;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.kivo-report-sidebar .report-index-inner::-webkit-scrollbar { display: none; }
.kivo-report-sidebar .report-index-inner a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--eg-muted, #53636b);
  font: 700 .76rem/1.2 var(--eg-heading, system-ui, sans-serif);
  text-decoration: none;
}
.kivo-report-sidebar .report-progress { display: none; }
@media (max-width: 680px) {
  .kivo-report-sidebar .project-intro .container { min-height: 48px; gap: 16px; }
  .kivo-report-sidebar .project-label { display: none; }
  .kivo-report-sidebar .report-index-inner { width: calc(100% - 28px); }
}

/* Report navigation: visible horizontal continuation and keyboard support. */
body.eg-editorial.kivo-report-sidebar .section-dark .section-head > p{color:#C9D5D1}
body.eg-editorial.kivo-report-sidebar #resumen .section-kicker{color:#122B3A}
.report-root .section-dark .eg-widget.eg-ai-light-widget .eg-ai-metrics :is(b,span){color:#EDF5F2}
.report-root .eg-product-ux-dark .eg-pux-title button{background:#EDF5F2;color:#122B3A;border-color:#53636B}
.report-root .mobile-widget-summary-dark{background:#122B3A;color:#EDF5F2}
.report-root .mobile-widget-summary-dark :is(strong,b){color:#EDF5F2}
.report-root .mobile-widget-summary-dark > span{color:#43C6A5}
.report-root .mobile-widget-summary-dark :is(p,li){color:#C9D5D1}
.report-index-inner {
  overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
}
.report-index-inner a { scroll-snap-align:start; }
@media(max-width:760px){
  .report-index-inner {
    padding-right:34px;
    -webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 36px),transparent 100%);
    mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 36px),transparent 100%);
  }
}
