/* Pulso HR: mismos tokens y colores del sitio, con espacio para leer los datos. */
.ph-report { overflow-x: clip; }
.ph-report [hidden] { display: none !important; }
.ph-report .ph-hero { padding: 8rem 0 3rem; }
.ph-report .ph-hero-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ph-report .ph-hero .section-label { letter-spacing: .1em; font-size: .7rem; }
.ph-report .ph-hero h1 { font-size: clamp(2.5rem, 3.6vw, 3.45rem); line-height: 1.12; letter-spacing: -.045em; margin: .4rem 0 1.2rem; text-wrap: balance; }
.ph-report .ph-hero-desc { font-size: .96rem; line-height: 1.8; max-width: 60ch; }
.ph-report .ph-hero-actions { gap: .65rem; margin-top: 1.6rem; }
.ph-report .ph-hero-actions a { font-size: .82rem; padding: .8rem 1.1rem; }
.ph-report .ph-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.3rem; color: var(--muted); font-size: .73rem; margin-top: 1.35rem; }
.ph-report .ph-hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.ph-report .ph-hero-meta i { color: var(--pink); }
.ph-report .ph-badges { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.08); gap: .55rem; }
.ph-report .ph-badge { font-size: .72rem; font-weight: 600; padding: .45rem .8rem; }
.ph-report .ph-overview { background: var(--bg3); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 1.65rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ph-report .ph-overview::before { content: ''; position: absolute; left: 1.65rem; right: 1.65rem; top: 0; height: 2px; background: linear-gradient(90deg, var(--green), var(--cyan)); }
.ph-report .ph-overview-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; font-size: .68rem; font-weight: 700; color: var(--text2); letter-spacing: .07em; text-transform: uppercase; }
.ph-report .ph-overview-head span { color: var(--green); background: rgba(0,230,118,.08); border: 1px solid rgba(0,230,118,.2); border-radius: 50px; padding: .3rem .6rem; font-size: .6rem; letter-spacing: .03em; }
.ph-report #kpisHero { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; margin: 1.2rem 0 0; }
.ph-report #kpisHero > .ph-kpi { grid-column: auto; background: none; border: 0; border-radius: 0; padding: 1.15rem .7rem 0; overflow: visible; min-width: 0; }
.ph-report #kpisHero > .ph-kpi::after { display: none; }
.ph-report #kpisHero > .ph-kpi:first-child { grid-column: 1 / -1; padding: 0 0 1.2rem; }
.ph-report #kpisHero > .ph-kpi:nth-child(2) { grid-column: 1 / -1; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
.ph-report #kpisHero > .ph-kpi:nth-child(3) { padding-left: 0; }
.ph-report #kpisHero > .ph-kpi:last-child { padding-right: 0; }
.ph-report #kpisHero .ph-kpi-v { font-size: 1.65rem; color: var(--kpi); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.ph-report #kpisHero > .ph-kpi:first-child .ph-kpi-v { color: var(--white); font-size: clamp(2.9rem, 4vw, 3.65rem); margin: .45rem 0; }
.ph-report #kpisHero > .ph-kpi:nth-child(2) .ph-kpi-v { color: var(--cyan); font-size: 1.5rem; }
.ph-report #kpisHero .ph-kpi-l { font-size: .66rem; line-height: 1.55; letter-spacing: .045em; text-transform: none; color: var(--text2); }
.ph-report #kpisHero > .ph-kpi:first-child .ph-kpi-l { text-transform: uppercase; font-size: .64rem; font-weight: 700; letter-spacing: .1em; margin: 0; }
.ph-report #kpisHero .ph-kpi-s { font-size: .67rem; color: var(--muted); line-height: 1.6; margin-top: .35rem; }
.ph-report .ph-summary-note { color: var(--muted); line-height: 1.6; font-size: .71rem; margin: 1.2rem 0 0; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.08); }
.ph-report .ph-section { padding: 4.5rem 0; }
.ph-report .ph-section, .ph-report .ph-hero { scroll-margin-top: calc(var(--ph-nav, 76px) + var(--ph-filters-height, 160px) + 20px); }
.ph-report .ph-sec-head { max-width: 850px; margin-bottom: 2rem; }
.ph-report .ph-sec-head .section-label { margin-bottom: .7rem; font-size: .68rem; letter-spacing: .12em; }
.ph-report .ph-sec-head .section-title { font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
.ph-report .ph-sec-head p { font-size: .9rem; line-height: 1.8; max-width: 82ch; }
.ph-report .ph-findings { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.ph-report .ph-finding { display: flex; flex-direction: column; padding: 1.65rem; border-radius: 18px; transition: border-color .2s; }
.ph-report .ph-finding:hover { transform: none; }
.ph-report .ph-finding::before { display: none; }
.ph-report .ph-finding .num { font-size: clamp(1.6rem, 2.25vw, 2.25rem); letter-spacing: -.045em; line-height: 1.15; }
.ph-report .ph-finding h3 { font-size: 1rem; line-height: 1.4; margin: .8rem 0 .7rem; letter-spacing: -.01em; text-wrap: balance; }
.ph-report .ph-finding p { font-size: .8rem; line-height: 1.85; margin-bottom: 1.2rem; }
.ph-report .ph-finding .tag { margin-top: auto; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .61rem; letter-spacing: .05em; display: flex; align-items: center; justify-content: space-between; gap: .6rem; text-decoration: none; line-height: 1.5; }
.ph-report .ph-finding .tag:hover { color: var(--green); }
.ph-report .ph-finding .tag i { color: var(--green); }
.ph-report .ph-filter-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .95rem; }
.ph-report .ph-filter-heading { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .5rem; }
.ph-report .ph-filter-heading i { color: var(--green); font-size: .75rem; }
.ph-report .ph-count { font-size: .73rem; margin-left: auto; }
.ph-report .ph-count b { font-size: .84rem; font-variant-numeric: tabular-nums; }
.ph-report .ph-filter-toggle { display: none; align-items: center; gap: .5rem; border: 1px solid rgba(0,230,118,.3); border-radius: 10px; background: rgba(0,230,118,.08); color: var(--green); padding: .55rem .75rem; min-height: 44px; font-size: .74rem; font-weight: 700; font-family: var(--font-body); cursor: pointer; }
.ph-report .ph-filter-total { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; background: var(--green); color: var(--bg); border-radius: 50%; font-size: .65rem; }
.ph-report .ph-filters-inner { padding: .8rem 0; gap: .5rem; }
.ph-report .ph-filters-title { display: none; }
.ph-report .ph-dd { min-width: 0; }
.ph-report .ph-dd-btn { min-height: 40px; font-size: .72rem; padding: .6rem .75rem; gap: .35rem; max-width: 205px; }
.ph-report .ph-dd-btn .val { max-width: 110px; }
.ph-report .ph-dd-btn .lab { color: var(--text2); }
.ph-report .ph-dd-btn > i { margin-left: auto; }
.ph-report .ph-btn-ghost { min-height: 40px; border-style: solid; font-size: .72rem; padding: .6rem .85rem; }
.ph-report .ph-dd-panel { padding: .65rem; border-radius: 16px; background: var(--bg2); max-height: 350px; }
.ph-report .ph-dd-panel label { min-height: 42px; padding: .65rem .55rem; font-size: .8rem; line-height: 1.4; align-items: flex-start; }
.ph-report .ph-dd-panel input { width: 16px; height: 16px; margin-top: .1rem; }
.ph-report .ph-dd-panel label small { padding-top: .1rem; }
.ph-report .ph-dd-foot button { min-height: 36px; }
.ph-report .ph-nav { flex-wrap: nowrap; gap: .25rem; padding: .1rem 0 .7rem; overflow-x: auto; scrollbar-width: thin; border-top: 1px solid rgba(255,255,255,.06); }
.ph-report .ph-nav a { white-space: nowrap; flex: 0 0 auto; border-radius: 8px; font-size: .73rem; font-weight: 600; letter-spacing: 0; text-transform: none; padding: .65rem .85rem; margin-top: .5rem; position: relative; }
.ph-report .ph-nav a.cur { color: var(--green); border-color: rgba(0,230,118,.2); background: rgba(0,230,118,.07); }
.ph-report .ph-hint { background: transparent; border: 0; border-left: 2px solid var(--green); border-radius: 0; font-size: .81rem; padding: .2rem 0 .2rem .85rem; }
.ph-report .ph-chips { gap: .5rem; }
.ph-report .ph-chip { min-height: 36px; border-radius: 8px; font-size: .7rem; max-width: 100%; white-space: normal; text-align: left; }
.ph-report .ph-grid, .ph-report .ph-grid.three { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; align-items: start; }
.ph-report .ph-grid > .wide, .ph-report .ph-grid.three > .wide { grid-column: 1 / -1; }
.ph-report .ph-card { padding: 1.65rem; border-radius: 18px; }
.ph-report .ph-card h3 { position: relative; font-size: 1.02rem; line-height: 1.45; letter-spacing: -.015em; align-items: flex-start; padding-right: 65px; }
.ph-report .ph-card h3 > i { width: 18px; flex-shrink: 0; margin-top: .25rem; }
.ph-report .ph-card .ph-n { position: absolute; right: 0; top: .1rem; background: rgba(255,255,255,.04); padding: .2rem .45rem; border-radius: 6px; font-size: .59rem; letter-spacing: 0; white-space: nowrap; }
.ph-report .ph-card .ph-sub { font-size: .76rem; line-height: 1.75; margin: .5rem 0 1.35rem; }
.ph-report .ph-paises { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.ph-report .ph-pais { padding: 1rem; gap: .55rem; }
.ph-report .ph-pais-fl { font-size: 1.45rem; }
.ph-report .ph-pais-n { font-size: .8rem; }
.ph-report .ph-pais-m { grid-column: 2 / -1; text-align: left; font-size: 1.4rem; margin-top: .3rem; }
.ph-report .ph-pais-m small { text-align: left; font-size: .61rem; }
.ph-report .ph-bars { gap: .2rem; }
.ph-report .ph-bar { grid-template-columns: minmax(0, 44%) minmax(0,1fr) auto; gap: .65rem; padding: .55rem .35rem; min-height: 44px; align-items: center; }
.ph-report .ph-bar + .ph-bar { border-top: 1px solid rgba(255,255,255,.04); }
.ph-report .ph-bar-l { display: block; overflow: visible; font-size: .76rem; line-height: 1.6; overflow-wrap: anywhere; }
.ph-report .ph-bar-t { height: 8px; }
.ph-report .ph-bar-v { min-width: 52px; font-size: .76rem; }
.ph-report .ph-bar-v small { display: block; font-size: .63rem; margin-top: .12rem; }
.ph-report .ph-box-wrap { gap: .2rem; }
.ph-report .ph-box { grid-template-columns: minmax(0, 34%) minmax(0,1fr) auto; gap: .7rem; padding: .65rem .35rem; min-height: 52px; }
.ph-report .ph-box + .ph-box { border-top: 1px solid rgba(255,255,255,.04); }
.ph-report .ph-box-l { font-size: .76rem; line-height: 1.6; overflow-wrap: anywhere; }
.ph-report .ph-box-l small, .ph-report .ph-box-v small { font-size: .62rem; margin-top: .2rem; }
.ph-report .ph-box-v { min-width: 85px; font-size: .76rem; }
.ph-report .ph-legend { font-size: .67rem; line-height: 1.6; margin-top: 1.25rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.06); }
.ph-report .ph-stack { gap: .75rem; }
.ph-report .ph-stack-l { font-size: .76rem; line-height: 1.6; }
.ph-report .ph-stack-t { height: 22px; }
.ph-report .ph-donut-wrap { grid-template-columns: 132px minmax(0,1fr); gap: 1.2rem; }
.ph-report .ph-donut svg { width: 132px; height: 132px; }
.ph-report .ph-donut-li { min-height: 40px; font-size: .76rem; padding: .5rem; }
.ph-report .ph-donut-li span { white-space: normal; overflow: visible; line-height: 1.6; }
.ph-report .ph-donut-c small { font-size: .63rem; }
.ph-report .ph-hist-svg { height: 200px; }
.ph-report .ph-esc-svg { height: 190px; }
.ph-report .ph-esc-t { min-height: 58px; padding-top: .6rem; }
.ph-report .ph-esc-t span { font-size: .65rem; line-height: 1.5; }
.ph-report .ph-dumb-row { padding: .55rem 0; }
.ph-report .ph-dumb-l { line-height: 1.6; }
.ph-report .ph-heat { gap: 5px; }
.ph-report .ph-heat-ch { font-size: .7rem; line-height: 1.5; padding-bottom: .65rem; }
.ph-report .ph-heat-rh { font-size: .76rem; line-height: 1.6; }
.ph-report .ph-heat-c { min-height: 44px; font-size: .76rem; }
.ph-report .ph-table { font-size: .8rem; }
.ph-report .ph-table th { background: var(--bg2); font-size: .65rem; }
.ph-report .ph-table th, .ph-report .ph-table td { padding: .95rem .8rem; line-height: 1.6; }
.ph-report .ph-table tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.ph-report .ph-table tr.on td { background: rgba(0,230,118,.08); }
.ph-report .ph-table-wrap, .ph-report .ph-heat-wrap { border-radius: 10px; scrollbar-width: thin; }
.ph-report .ph-exp-bar { gap: 1rem; }
.ph-report .ph-exp-bar label { min-width: 0; flex: 1 1 200px; color: var(--text2); text-transform: none; font-size: .75rem; letter-spacing: 0; gap: .5rem; }
.ph-report .ph-exp-bar .ph-sel { min-height: 46px; border-radius: 10px; font-size: .82rem; }
.ph-report #kpisComp { grid-template-columns: repeat(5,minmax(0,1fr)); gap: .75rem; }
.ph-report #kpisComp > .ph-kpi { grid-column: auto; padding: 1.2rem 1rem; }
.ph-report #kpisComp .ph-kpi-v { font-size: clamp(1.25rem, 1.8vw, 1.8rem); font-variant-numeric: tabular-nums; }
.ph-report #kpisComp .ph-kpi-l { text-transform: none; letter-spacing: 0; font-size: .75rem; color: var(--text2); }
.ph-report #kpisComp .ph-kpi-s { font-size: .68rem; line-height: 1.6; }
.ph-report .ph-meth { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.ph-report .ph-meth dl, .ph-report .ph-list { font-size: .82rem; line-height: 1.8; }
.ph-report .ph-meth dd { line-height: 1.8; }
.ph-report .ph-list li { margin-bottom: .65rem; }
.ph-report .ph-fx-row { padding: 1rem; }
.ph-report .ph-fx-note { line-height: 1.7; }
.ph-report .ph-gate { gap: 2.5rem; padding: 2.5rem; border-radius: 24px; }
.ph-report .ph-gate-form label { text-transform: none; letter-spacing: 0; font-size: .76rem; color: var(--text2); }
.ph-report .ph-gate-form .ph-input { min-width: 0; min-height: 48px; }
.ph-report .ph-check input { flex-shrink: 0; }
.ph-report :is(.ph-hero, #phMain) :is(a, button, input, select):focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.ph-report .ph-dd-panel input:focus-visible { outline-offset: 2px; }

@media (max-width: 1100px) {
  .ph-report .ph-hero-layout { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 2rem; }
  .ph-report .ph-hero h1 { font-size: 2.8rem; }
  .ph-report .ph-findings { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ph-report .ph-paises { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .ph-report .ph-hero { padding-top: 7rem; }
  .ph-report .ph-hero-layout { grid-template-columns: 1fr; gap: 2rem; }
  .ph-report .ph-hero h1 { font-size: clamp(2.3rem, 6vw, 3.3rem); max-width: 650px; }
  .ph-report .ph-overview { max-width: 650px; width: 100%; }
  .ph-report .ph-filters { position: sticky; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .ph-report .ph-filter-top { flex-wrap: wrap; gap: .5rem; padding: .75rem 0; }
  .ph-report .ph-filter-toggle { display: inline-flex; }
  .ph-report .ph-count { width: auto; order: 3; flex-basis: 100%; margin: 0; font-size: .7rem; }
  .ph-report .ph-filter-controls:not(.is-open) :is(.ph-filters-inner, .ph-more) { display: none; }
  .ph-report .ph-filter-controls.is-open .ph-filters-inner { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; border-top: 1px solid rgba(255,255,255,.08); }
  .ph-report .ph-filter-controls.is-open .ph-more.open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
  .ph-report .ph-filter-controls.is-open { max-height: 55vh; overflow-y: auto; overscroll-behavior: contain; }
  .ph-report .ph-dd-btn { width: 100%; max-width: none; min-height: 44px; }
  .ph-report .ph-dd-panel { position: fixed; left: 1rem; right: 1rem; bottom: calc(96px + env(safe-area-inset-bottom)); top: auto; max-width: none; max-height: min(55vh, calc(100dvh - var(--ph-nav, 76px) - 120px)); box-shadow: var(--shadow-xl); }
  .ph-report .ph-nav { padding-bottom: .4rem; }
  .ph-report .ph-nav a { margin-top: .35rem; padding: .65rem .75rem; min-height: 42px; }
  .ph-report .ph-grid, .ph-report .ph-grid.three { grid-template-columns: minmax(0,1fr); }
  .ph-report .ph-meth { grid-template-columns: minmax(0,1fr); }
  .ph-report #kpisComp { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ph-report #kpisComp > .ph-kpi:nth-child(4) { grid-column: span 2; }
  .ph-report .ph-gate { grid-template-columns: minmax(0,1fr); padding: 1.5rem; }
}
@media (max-width: 560px) {
  .ph-report .ph-hero { padding: 6rem 0 2rem; }
  .ph-report .ph-hero h1 { font-size: clamp(2rem, 7.8vw, 2.75rem); }
  .ph-report .ph-hero-desc { font-size: .9rem; }
  .ph-report .ph-hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ph-report .ph-hero-actions a { justify-content: center; padding: .8rem .55rem; font-size: .72rem; }
  .ph-report .ph-hero-actions a:first-child { grid-column: 1 / -1; }
  .ph-report .ph-overview { border-radius: 20px; padding: 1.3rem; }
  .ph-report #kpisHero > .ph-kpi { padding-left: .4rem; padding-right: .4rem; }
  .ph-report #kpisHero .ph-kpi-v { font-size: 1.5rem; }
  .ph-report #kpisHero .ph-kpi-l { font-size: .65rem; }
  .ph-report #kpisHero .ph-kpi-s { font-size: .62rem; }
  .ph-report .ph-badges { gap: .45rem; margin-top: 1.5rem; }
  .ph-report .ph-badge { padding: .4rem .6rem; font-size: .66rem; }
  .ph-report .ph-section { padding: 3rem 0; }
  .ph-report .ph-sec-head { margin-bottom: 1.4rem; }
  .ph-report .ph-sec-head p { font-size: .84rem; }
  .ph-report .ph-findings { grid-template-columns: minmax(0,1fr); }
  .ph-report .ph-finding { padding: 1.4rem; }
  .ph-report .ph-finding .num { font-size: 2rem; }
  .ph-report .ph-finding p { font-size: .83rem; }
  .ph-report .ph-card { padding: 1.25rem; }
  .ph-report .ph-card h3 { font-size: .94rem; padding-right: 56px; gap: .35rem; }
  .ph-report .ph-card .ph-sub { font-size: .73rem; }
  .ph-report .ph-paises { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
  .ph-report .ph-pais { padding: .8rem; }
  .ph-report .ph-pais:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ph-report .ph-pais-m { font-size: 1.25rem; }
  .ph-report .ph-bar { grid-template-columns: minmax(0,1fr) auto; gap: .35rem .6rem; padding: .65rem .2rem; }
  .ph-report .ph-bar-l { grid-row: 1; grid-column: 1; font-size: .78rem; }
  .ph-report .ph-bar-v { grid-row: 1; grid-column: 2; font-size: .78rem; }
  .ph-report .ph-bar-t { grid-row: 2; grid-column: 1 / -1; height: 7px; }
  .ph-report .ph-bar-v small { display: inline; margin: 0; }
  .ph-report .ph-box { grid-template-columns: minmax(0,1fr) auto; gap: .4rem .7rem; padding: .7rem .2rem; }
  .ph-report .ph-box-l { grid-row: 1; grid-column: 1; }
  .ph-report .ph-box-v { grid-row: 1; grid-column: 2; }
  .ph-report .ph-box svg { grid-row: 2; grid-column: 1 / -1; height: 28px; }
  .ph-report .ph-stack-row { grid-template-columns: minmax(0,1fr); gap: .5rem; }
  .ph-report .ph-donut-wrap { grid-template-columns: minmax(0,1fr); justify-items: center; }
  .ph-report .ph-donut svg { width: 148px; height: 148px; }
  .ph-report .ph-donut-leg { width: 100%; }
  .ph-report .ph-dumb-v { grid-column: 2; grid-row: 1; }
  .ph-report .ph-waffle { grid-template-columns: 116px minmax(0,1fr); gap: 1rem; }
  .ph-report .ph-waffle-g { width: 116px; gap: 3px; }
  .ph-report .ph-waffle-t b { font-size: 2rem; }
  .ph-report .ph-waffle-t span { font-size: .78rem; }
  .ph-report .ph-waffle-t em { font-size: .64rem; }
  .ph-report #kpisComp { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ph-report #kpisComp > .ph-kpi:nth-child(4) { grid-column: auto; }
  .ph-report #kpisComp > .ph-kpi:last-child { grid-column: 1 / -1; }
  .ph-report #kpisComp .ph-kpi-v { font-size: 1.65rem; }
  .ph-report .ph-table { min-width: 550px; }
  .ph-report .ph-table th, .ph-report .ph-table td { padding: .85rem .6rem; }
  .ph-report .ph-table :is(th,td):first-child { min-width: 170px; }
  .ph-report .ph-exp-bar { flex-direction: column; }
  .ph-report .ph-exp-bar label { flex: auto; }
  .ph-report .ph-fx-row { grid-template-columns: 64px minmax(0,1fr); gap: .5rem; padding: .9rem .75rem; }
  .ph-report .ph-fx-note { grid-column: 1 / -1; margin-top: .35rem; }
  .ph-report .ph-gate { padding: 1.25rem; gap: 1.5rem; }
  .ph-report .ph-gate-form { padding: 1rem; }
  .ph-report .ph-next-form .ph-input { min-width: 0; flex-basis: 100%; }
  .ph-report .ph-next-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-report :is(.ph-bar, .ph-box, .ph-pais, .ph-finding, .ph-nav a) { transition: none; }
}
/* ── WhatsApp fuera de la zona de datos ──
   El JS de la página pone body.ph-wa-oculto (e inert) mientras #datos ocupa el centro
   de la pantalla. El flotante de escritorio se desvanece; la barra del celular baja. */
.ph-report.ph-wa-oculto .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }
.ph-report.ph-wa-oculto .mobile-sticky-cta { transform: translateY(110%); visibility: hidden; transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s linear .35s; }
.ph-report .mobile-sticky-cta { transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  .ph-report .wa-float, .ph-report .mobile-sticky-cta, .ph-report.ph-wa-oculto .mobile-sticky-cta { transition: none; }
}

/* ── Guardar como PDF ── */
.ph-report .ph-pdf-btn { cursor: pointer; font-family: var(--font-body); }
/* En el hero va con los datos del corte: es una utilidad, no compite con las tres acciones. */
.ph-report .ph-pdf-meta { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem; border: 1px solid rgba(255,255,255,.16); border-radius: 50px; background: rgba(255,255,255,.04); color: var(--text); font-size: .73rem; font-weight: 700; transition: border-color .2s, color .2s; }
.ph-report .ph-pdf-meta i { color: var(--pink); }
.ph-report .ph-pdf-meta:hover { border-color: var(--green); color: var(--green); }
/* Menú con las dos opciones (completo / resumen). Abre hacia abajo; el JS lo da vuelta
   (.arriba) si el hero o la barra del celular lo taparían, y lo corre de costado si se sale de la pantalla. */
.ph-report .ph-pdf { position: relative; display: inline-flex; }
.ph-report .ph-pdf-car { font-size: .6em; color: inherit !important; transition: transform .2s; }
.ph-report .ph-pdf-btn[aria-expanded="true"] .ph-pdf-car { transform: rotate(180deg); }
.ph-report .ph-pdf-list { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: max-content; max-width: min(300px, calc(100vw - 2rem)); display: grid; gap: .2rem; padding: .4rem; background: var(--bg2); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; box-shadow: var(--shadow-lg); text-align: left; }
.ph-report .ph-pdf.arriba .ph-pdf-list { top: auto; bottom: calc(100% + 6px); }
.ph-report .ph-pdf-list button { display: grid; gap: .2rem; justify-items: start; width: 100%; min-height: 48px; padding: .6rem .8rem; border: 0; border-radius: 10px; background: none; color: var(--white); font: 700 .8rem/1.3 var(--font-body); text-align: left; cursor: pointer; transform: none; }
.ph-report .ph-pdf-list button small { font-weight: 500; font-size: .7rem; line-height: 1.4; color: var(--text2); }
.ph-report .ph-pdf-list button:hover, .ph-report .ph-pdf-list button:focus-visible { background: rgba(0,230,118,.09); color: var(--green); border: 0; transform: none; }
.ph-report .ph-pdf-list button:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.ph-print-cover, .ph-print-fin, .ph-pc-modo { display: none; }
@media (prefers-reduced-motion: reduce) { .ph-report .ph-pdf-car { transition: none; } }

/* ── Impresión ──
   A4 en paleta clara: fondo blanco, texto oscuro y los acentos del sitio un tono más
   profundos para que se lean en papel. Los gráficos llevan print-color-adjust: exact
   para que las barras salgan aunque el diálogo no imprima fondos. */
@page {
  size: A4;
  margin: 13mm 12mm 15mm;
  @bottom-left { content: "Pulso HR 2026 · nicolasnicolaide.com/pulso-hr-informe"; font: 7pt/1.2 Arial, sans-serif; color: #5b6678; }
  @bottom-right { content: "Página " counter(page) " de " counter(pages); font: 7pt/1.2 Arial, sans-serif; color: #5b6678; }
}
@page :first {
  @bottom-left { content: none; }
  @bottom-right { content: none; }
}
@media print {
  /* Indicaciones de interacción ("clic en una fila para filtrar") no van en el papel. */
  .ph-solo-pantalla { display: none !important; }
  html { font-size: 13px; scroll-behavior: auto; }
  .ph-report {
    --bg: #fff; --bg2: #fff; --bg3: #fff;
    --white: #0b1220; --text: #1b2433; --text2: #334155; --muted: #556275;
    --green: #00975a; --cyan: #0277b6; --pink: #c2255c; --gold: #a16207; --purple: #6741d9; --orange: #c2410c;
    background: #fff !important; color: var(--text); padding: 0 !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .ph-report *, .ph-report *::before, .ph-report *::after { animation: none !important; transition: none !important; box-shadow: none !important; text-shadow: none !important; }
  .ph-report .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }

  /* Lo que no va en papel: navegación, controles, formularios, flotantes y el cierre comercial. */
  .ph-report :is(.navbar, .ph-filters, .wa-float, .mobile-sticky-cta, #nn-consent, #nn-intro, footer, .ph-loading, .ph-hint,
    .ph-hero-intro, .ph-badges, #explorador, #descarga, #proxima-edicion, .ph-cierre, .ph-dl, .mm-bg-doodle, .ph-finding .tag i,
    .skip-link, .nn-top, .nn-progress, .metrics-ticker, .fx-aurora, #nn-particles, .tilt-glare, .nav-overlay, .ph-pdf-btn, .ph-pdf) { display: none !important; }
  .ph-report .ph-data > .container:first-of-type { display: none; }

  /* Portada */
  .ph-report .ph-print-cover { display: block; padding: 14mm 0 8mm; border-top: 3px solid var(--green); }
  .ph-pc-kicker { font: 700 .8rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin: 0 0 .6rem; }
  .ph-pc-title { font: 900 2.6rem/1.08 var(--font-head); letter-spacing: -.035em; color: var(--white); margin: 0 0 .6rem; }
  .ph-pc-sub { font-size: 1.05rem; line-height: 1.5; color: var(--text2); margin: 0 0 7mm; max-width: 60ch; }
  .ph-pc-meta { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border-top: 1px solid #d6dde6; }
  .ph-pc-meta > div { display: grid; grid-template-columns: 30mm 1fr; gap: 4mm; padding: 2.2mm 0; border-bottom: 1px solid #d6dde6; break-inside: avoid; }
  .ph-pc-meta dt { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .ph-pc-meta dd { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--text); }
  .ph-report .ph-hero { padding: 0 0 4mm; background: none; border: 0; overflow: visible; break-after: page; }
  .ph-report .ph-hero::before { display: none; }
  .ph-report .ph-hero-layout { display: block; }
  .ph-report .ph-overview { max-width: none; border: 1px solid #d6dde6; border-radius: 4mm; padding: 5mm 6mm; }
  .ph-report .ph-overview-head span { background: none; }
  .ph-report #kpisHero > .ph-kpi:nth-child(2) { border-color: #d6dde6; }
  .ph-report .ph-summary-note { border-color: #d6dde6; }

  /* Secciones: cada una abre página; los títulos no quedan huérfanos al pie. */
  .ph-report .container { max-width: none; width: auto; padding-left: 0; padding-right: 0; }
  /* Sin relleno al pie: si una sección termina justo al final de la hoja, el relleno abría una página en blanco. */
  .ph-report .ph-section, .ph-report .ph-section.alt { padding: 0; background: none; break-inside: auto; }
  .ph-report .ph-section + .ph-section, .ph-report .ph-data > .ph-section:first-of-type { padding-top: 5mm; }
  .ph-report :is(.ph-grid, .ph-meth) > .ph-card:last-child { margin-bottom: 0; }
  /* Chrome pinta un hilo del borde de la tarjeta que pasa a la hoja siguiente sobre el margen inferior de la anterior: el recorte por fragmento lo saca. */
  .ph-report :is(.ph-grid, .ph-findings, .ph-meth, .ph-paises) { overflow: clip; }
  .ph-report :is(#compensaciones, #trabajo, #ia, #reclutamiento, #metodologia) { break-before: page; }
  .ph-report .ph-sec-head { max-width: none; margin-bottom: 4mm; break-after: avoid; break-inside: avoid; }
  .ph-report .ph-sec-head .section-label { margin-bottom: .3rem; }
  .ph-report .ph-sec-head .section-title { font-size: 1.9rem; margin: 0; }
  .ph-report .ph-sec-head p { font-size: .82rem; line-height: 1.55; margin-top: .4rem; }
  .ph-report :is(.section-title span, .ph-finding .num) { background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--green); }
  .ph-report .ph-finding.pink .num { color: var(--pink); }
  .ph-report .ph-finding.gold .num { color: var(--gold); }
  .ph-report .ph-finding.purple .num { color: var(--purple); }
  .ph-report :is(h1, h2, h3) { break-after: avoid; }

  /* Hallazgos en tres columnas */
  .ph-report .ph-findings { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3mm; }
  .ph-report .ph-finding { padding: 3mm 3.5mm; border: 1px solid #d6dde6; border-radius: 3mm; break-inside: avoid; background: #fff; }
  .ph-report .ph-finding .num { font-size: 1.45rem; }
  .ph-report .ph-finding h3 { font-size: .86rem; line-height: 1.3; margin: .35rem 0 .3rem; }
  .ph-report .ph-finding p { font-size: .72rem; line-height: 1.45; margin-bottom: .4rem; }
  .ph-report .ph-finding .tag { min-height: 0; padding: .4rem 0 0; background: none; border: 0; border-top: 1px solid #e2e8f0; border-radius: 0; font-size: .6rem; color: var(--muted); }

  /* Tarjetas en dos columnas, sin cortes entre páginas */
  /* En columnas (no en grilla): una fila de grilla que no entra se va entera a la página
     siguiente y deja media hoja en blanco; las columnas reparten las tarjetas como en un diario. */
  .ph-report :is(.ph-grid, .ph-grid.three) { display: block; column-count: 2; column-gap: 3.5mm; }
  .ph-report .ph-grid > .ph-card { display: block; width: auto; margin: 0 0 3.5mm; justify-self: auto; }
  .ph-report .ph-grid > .ph-card.wide { column-span: all; }
  .ph-report .ph-grid > .ph-card.wide:not(:first-child) { margin-top: 3.5mm; }
  .ph-report :is(.ph-card, .ph-kpi, .ph-pais, .ph-fx-row, .ph-note, .ph-overview, .ph-table tr) { break-inside: avoid; }
  .ph-report .ph-card { padding: 3.5mm 4mm; border: 1px solid #d6dde6; border-radius: 3mm; background: #fff; }
  .ph-report .ph-card h3 { font-size: .92rem; padding-right: 52px; }
  .ph-report .ph-card .ph-n { background: #eef2f6; color: var(--muted); }
  .ph-report .ph-card .ph-sub { font-size: .7rem; line-height: 1.45; margin: .25rem 0 .6rem; }
  .ph-report #kpisComp { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5mm; margin-bottom: 3.5mm !important; }
  .ph-report #kpisComp > .ph-kpi { grid-column: auto !important; padding: 3mm; }
  .ph-report .ph-kpi { background: #fff; border: 1px solid #d6dde6; }
  .ph-report .ph-grid[style*="margin-bottom"] { margin-bottom: 3.5mm !important; }
  .ph-report .ph-sec-head[style*="margin-top"] { margin-top: 6mm !important; }

  /* Gráficos: filas compactas y trazos visibles en blanco */
  .ph-report .ph-bar { min-height: 0; padding: .18rem .1rem; gap: .5rem; }
  .ph-report .ph-bar + .ph-bar, .ph-report .ph-box + .ph-box { border-color: #edf1f5; }
  .ph-report :is(.ph-bar-l, .ph-bar-v, .ph-box-l, .ph-box-v) { font-size: .7rem; line-height: 1.3; }
  .ph-report .ph-bar-v small { display: inline; margin: 0; }
  .ph-report .ph-bar-t, .ph-report .ph-stack-t { background: #e8edf3; }
  .ph-report .ph-box { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .6rem; padding: .3rem .1rem; min-height: 0; }
  .ph-report .ph-box-l { grid-row: 1; grid-column: 1; }
  .ph-report .ph-box-v { grid-row: 1; grid-column: 2; min-width: 0; }
  .ph-report .ph-box-l small, .ph-report .ph-box-v small { display: inline; margin: 0 0 0 .35rem; }
  .ph-report .ph-box svg { grid-row: 2; grid-column: 1 / -1; height: 18px; }
  .ph-report .ph-box-axis { display: none; }
  .ph-report .ph-legend { margin-top: .5rem; padding-top: .4rem; border-color: #e2e8f0; font-size: .64rem; }
  .ph-report .ph-stack-t i b { color: #0b1220; }
  .ph-report .ph-stack-t i + i { box-shadow: inset 2px 0 0 #fff !important; }
  .ph-report .ph-heat-wrap, .ph-report .ph-table-wrap { overflow: visible; }
  .ph-report .ph-heat { min-width: 0; }
  .ph-report .ph-heat :is(.ph-heat-c, .ph-heat-c.fuerte) { color: #0b1220; min-height: 34px; }
  .ph-report .ph-heat-c.vacia { background: repeating-linear-gradient(45deg, #eef2f6 0 4px, #fff 4px 8px); }
  .ph-report .ph-heat :is(.ph-heat-rh, .ph-heat-corner) { position: static; background: none; }
  .ph-report .ph-waffle-g i { background: #e5e9f0; }
  .ph-report .ph-waffle-g i.on { background: linear-gradient(135deg, var(--green), var(--cyan)); }
  .ph-report .ph-pais { background: #fff; border-color: #d6dde6; }
  .ph-report .ph-pais-bar { background: #e8edf3; }
  .ph-report .ph-esc-t { border-color: #e2e8f0; }
  .ph-report .ph-table th { background: #f1f5f9; }
  .ph-report :is(.ph-table th, .ph-table td) { border-color: #e2e8f0; padding: .4rem .5rem; }
  .ph-report .ph-table tr:nth-child(even) td { background: #f8fafc; }
  .ph-report .ph-fx-row { background: #fff; border-color: #d6dde6; }
  .ph-report .ph-note { background: #fffbeb; }
  .ph-report svg [stroke="rgba(255,255,255,.35)"] { stroke: #64748b; }
  .ph-report svg [stroke="rgba(255,255,255,.22)"] { stroke: #94a3b8; }
  .ph-report svg :is([stroke="rgba(255,255,255,.08)"], [stroke="rgba(255,255,255,.06)"]) { stroke: #e2e8f0; }
  .ph-report svg [stroke="#f0f6ff"] { stroke: #0b1220; }
  .ph-report svg [fill="#f0f6ff"] { fill: #0b1220; }
  .ph-report svg [stroke="#080e1a"] { stroke: #fff; }
  .ph-report svg [stroke="#00e676"] { stroke: #00975a; }
  .ph-report svg [fill="#00e676"] { fill: #00975a; }
  .ph-report svg [stroke="#00d4ff"] { stroke: #0277b6; }

  /* Metodología */
  .ph-report .ph-meth { display: block; column-count: 2; column-gap: 3.5mm; }
  .ph-report .ph-meth > .ph-card { margin: 0 0 3.5mm; }
  .ph-report .ph-meth > .ph-card:has(#tablaFx) { break-inside: auto; }
  .ph-report :is(.ph-meth dl, .ph-list) { font-size: .74rem; line-height: 1.55; }
  .ph-report .ph-list li { margin-bottom: .3rem; }
  .ph-report a { color: inherit; text-decoration: none; }

  /* ── PDF resumido (html.ph-print-resumen, lo pone prepararPdf('resumen')) ──
     Portada, resumen ejecutivo con los hallazgos, y los sueldos por rol y seniority
     (las tarjetas con data-resumen). Todo lo demás queda afuera. */
  .ph-print-resumen .ph-pc-modo { display: inline; }
  .ph-print-resumen .ph-report :is(#perfil, #trabajo, #ia, #reclutamiento, #metodologia) { display: none !important; }
  .ph-print-resumen .ph-report #compensaciones .ph-card:not([data-resumen]),
  .ph-print-resumen .ph-report #compensaciones .ph-grid:not(:has([data-resumen])),
  .ph-print-resumen .ph-report #compensaciones .ph-sec-head ~ .ph-sec-head { display: none !important; }
  /* Sin salto antes de sueldos: los 12 hallazgos ocupan hoja y cuarto, y el salto dejaba una hoja casi vacía. */
  .ph-print-resumen .ph-report #compensaciones { break-before: auto; padding-top: 7mm; }
  .ph-print-resumen .ph-report .ph-print-fin { display: block; margin: 5mm 0 0; padding: 3mm 0 0; border-top: 1px solid #d6dde6; font-size: .78rem; line-height: 1.5; color: var(--text2); break-inside: avoid; }
  .ph-print-resumen .ph-report .ph-print-fin a { color: var(--green); font-weight: 700; text-decoration: underline; }
}
