.py-page{margin:0;color:#17233d;background:#fff;font:1rem/1.6 system-ui,sans-serif}
.py-page *, .py-carousel *{box-sizing:border-box}
.py-wrap{width:min(100% - 2rem,1160px);margin-inline:auto}
.py-hero,.py-footer{background:#101b37;color:#fff}
.py-hero{padding:1.5rem 0 2rem;background:radial-gradient(ellipse at 80% 10%,#273c6a,transparent 62%),#101b37}
.py-hero a{color:#fff}
.py-hero-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:clamp(1rem,4vw,2.5rem)}
.py-hero img{display:block;width:100%;height:auto;border-radius:1rem;border:1px solid #8797b7}
.py-hero h1{font-size:clamp(2rem,5vw,3.6rem);line-height:1.1;margin:.45em 0}
.py-kicker{letter-spacing:.08em;font-weight:800;margin-top:1.25rem;color:#c6dcff}
.py-lead{font-size:1.12rem}
.py-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin:1rem 0}
.py-actions a,.py-cta,.py-controls button,#py-explorer button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.55rem .85rem;border-radius:.5rem;background:#ebf1fb;border:1px solid #6f7f9d;color:#172449;font:inherit;font-weight:750;text-decoration:none}
.py-page a.py-cta{background:#b91c1c;color:#fff;border-color:#b91c1c}
.py-page a.py-cta:hover{background:#991b1b}
.py-skip{position:absolute;left:.75rem;top:.75rem;transform:translateY(-200%);z-index:100;background:#fff;color:#17233d;padding:.5rem}
.py-skip:focus{transform:none}
.py-page :focus-visible,.py-carousel :focus-visible{outline:3px solid #6d28d9;outline-offset:3px}
.py-hero :focus-visible{outline-color:#fff}
.py-footer{padding:1.4rem 0}
.py-block{margin-block:2rem;scroll-margin-top:1rem;min-width:0}
.py-block h2{line-height:1.2;font-size:clamp(1.45rem,3vw,2rem)}
.py-block a,.py-context a{color:#17478f}
.py-context{color:#17233d;background:#eef4ff;border:1px solid #a1b4d1;padding:1rem;border-radius:.6rem;margin-block:1rem}
.py-table{max-width:100%;overflow:auto;border:1px solid #9ca8bb;border-radius:.55rem}
.py-table table{border-collapse:collapse;width:100%;text-align:left}
.py-table th,.py-table td{padding:.65rem;vertical-align:top;overflow-wrap:anywhere}
.py-table th{color:#fff;background:#172852}
.py-table td{border-top:1px solid #aab3c4}
.py-table tbody tr:nth-child(even){background:#f4f7fb}
.py-phases,.py-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}
.py-phases{list-style:none;padding:0;counter-reset:phase}
.py-phases li,.py-grid article{min-width:0;border:1px solid #94a2ba;border-top:4px solid var(--py-phase,#1d4b8e);border-radius:.55rem;padding:1rem;background:var(--py-tint,#f2f6ff)}
.py-phases li{counter-increment:phase}
.py-phases li h3::before{content:counter(phase) ". "}
.py-phases li:nth-child(2){--py-phase:#5b358f;--py-tint:#f7f0ff}
.py-phases li:nth-child(3){--py-phase:#21644d;--py-tint:#eef8f3}
.py-phases li:nth-child(4){--py-phase:#873e24;--py-tint:#fff4ed}
.py-phases li:nth-child(5){--py-phase:#903352;--py-tint:#fff1f7}
.py-phases li:nth-child(6){--py-phase:#1c6474;--py-tint:#edf7fc}
.py-phases li:nth-child(7){--py-phase:#4a5938;--py-tint:#f4f8ef}
.py-phases h3,.py-grid h4{margin-top:0}
.py-phases dt,#py-result dt{font-weight:800}
.py-phases dd,#py-result dd{margin:0 0 .45rem}
.py-steps li{margin-bottom:.65rem}
#py-explorer{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}
#py-explorer[hidden],.py-controls[hidden]{display:none}
#py-explorer select{max-width:100%;min-height:44px;font:inherit;color:#17233d;background:#fff;border:1px solid #64748b;padding:.4rem;border-radius:.4rem}
#py-result:not(:empty){margin-top:1rem;padding:.8rem 1rem;background:#eff4ff;border:1px solid #879bb9;border-radius:.55rem}
#explorador .py-cta{margin-top:1rem}
.py-carousel{margin:0;color:#17233d;background:#edf3fd;padding:1.25rem 0;font:1rem/1.5 system-ui,sans-serif}
.py-carousel h2{font-size:clamp(1.25rem,3vw,1.65rem);margin:0 0 .65rem;color:#17233d}
.py-controls{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:.65rem}
.py-controls button,#py-explorer button{cursor:pointer}
.py-controls button[aria-pressed=true]{background:#172852;color:white}
.py-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 2rem)/3);gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;padding-block:.25rem}
.py-track.py-auto-moving{scroll-snap-type:none;scroll-behavior:auto}
.py-carousel a.py-card{display:block;scroll-snap-align:center;min-width:0;min-height:90px;padding:.85rem 1rem;border-radius:.55rem;background:#17366c;color:#fff;text-decoration:none;overflow-wrap:anywhere}
.py-carousel a.py-card:nth-child(2){background:#52317f}
.py-carousel a.py-card:nth-child(3){background:#185748}
.py-carousel a.py-card:nth-child(4){background:#843b22}
.py-card span,.py-card strong{display:block}
.py-carousel a.py-card[aria-current=page]{outline:3px solid #fbbf24;outline-offset:-4px}
@media(max-width:820px){
 .py-hero-grid{grid-template-columns:minmax(0,1fr)}
 .py-track{grid-auto-columns:100%}
 .py-table table,.py-table tbody,.py-table tr,.py-table td{display:block;width:100%}
 .py-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .py-table td::before{content:attr(data-label);display:block;font-weight:750}
 .py-table tbody tr+tr{border-top:3px solid #64748b}
}
@media(prefers-reduced-motion:reduce){.py-track{scroll-behavior:auto}}

/* Visual aids shared by the four payroll pages. */
.py-visual-home {margin-block:clamp(1rem,3vw,2.5rem);color:#142343}
.py-visual-tiles,.py-week-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.75rem}
.py-visual-tiles a,.py-week-grid li{box-sizing:border-box;display:grid;gap:.25rem;border-radius:.75rem;padding:.9rem 1rem;background:#edf4ff;color:#17356a;text-decoration:none;border:1px solid #a6b7d2}
.py-visual-tiles a:nth-child(2),.py-week-grid li:nth-child(4n+2){background:#eaf8f2;color:#145343;border-color:#a5c7ba}
.py-visual-tiles a:nth-child(3),.py-week-grid li:nth-child(4n+3){background:#f7efff;color:#512c7b;border-color:#c1acd7}
.py-week-grid li:nth-child(4n+4){background:#fff1e8;color:#773c23;border-color:#cbb5a8}
.py-visual-tiles span{font-size:1.5rem;font-weight:800}
.py-visual-tiles small{font-size:.9rem}
.py-visual-tiles a:hover,.py-phase-nav a:hover{box-shadow:0 8px 20px #162a4d26}
.py-visual-tiles a:focus-visible,.py-phase-nav a:focus-visible,.py-chart button:focus-visible,.py-visual-link:focus-visible{outline:3px solid #6d28d9;outline-offset:3px}
.py-visual-card{box-sizing:border-box;margin:1rem 0;padding:clamp(.8rem,3vw,1.4rem);background:#101e3f;color:#fff;border:1px solid #455b83;border-radius:1rem;min-width:0}
.py-visual-card figcaption{font-size:1.2rem;font-weight:800;margin-bottom:.65rem}
.py-bar-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.2rem .7rem;align-items:center;margin-block:.65rem}
.py-bar-row strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.py-bar-track{grid-column:1/-1;display:block;background:#344462;border-radius:999px;height:.68rem;overflow:hidden}
.py-bar-track span{display:block;width:var(--py-width);height:100%;background:#86b6ff;border-radius:inherit}
[data-tone=orange] .py-bar-track span{background:#ffb07e}
[data-tone=green] .py-bar-track span{background:#7aefb2}
[data-tone=violet] .py-bar-track span{background:#d8adff}
.py-chart-note{font-size:.9rem;margin-bottom:0}
.py-chart [hidden]{display:none!important}
.py-chart-choices{display:flex;flex-wrap:wrap;gap:.5rem}
.py-chart-choices button{min-height:44px;padding:.5rem .8rem;border:1px solid #7186ac;border-radius:.45rem;background:#eff4ff;color:#17356a;font:inherit;cursor:pointer}
.py-chart-choices button[aria-pressed=true]{background:#17356a;color:#fff}
.py-phase-nav{display:flex;flex-wrap:wrap;gap:.45rem;margin:1rem 0}
.py-phase-nav a{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;border:1px solid #a8b8d4;background:#edf4ff;padding:.3rem .55rem;border-radius:.5rem;text-decoration:none}
.py-phase-nav a span{display:grid;place-items:center;width:1.45rem;height:1.45rem;border-radius:100%;background:#213f73;color:white;font-weight:800}
.py-phases li:target{outline:3px solid #6d28d9;outline-offset:3px}
.py-cert-visual{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:1rem;align-items:center;margin-block:1rem}
.py-cert-visual img,aside img[src*="payroll-aprendizaje"]{display:block;width:100%;height:auto;border-radius:.75rem;margin-block:.5rem}
.py-week-grid{list-style:none;padding:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr))}
.py-week-grid li span{font-size:.82rem}
.py-visual-card a.py-visual-link{color:#d3e4ff;text-decoration:underline}
@media(max-width:760px){.py-cert-visual{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:no-preference){
 .py-visual-tiles a,.py-phase-nav a{transition:box-shadow .2s ease}
 .py-chart [data-py-chart]:not([hidden]) .py-bar-track span{animation:py-fill .4s ease-out both;transform-origin:left}
 @keyframes py-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
}

.py-cert-visual img{aspect-ratio:4/3;object-fit:cover;object-position:center 38%}

/* Keep the title close to the navigation on all payroll layouts. */
.py-course-hero .hero-grid {
  min-height: 0;
  align-items: start;
  padding-block: clamp(1rem, 2.7vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem);
}
.py-course-hero h1 { margin-block: .55rem .85rem; }
.py-guide-hero.hero {
  align-items: start;
  padding-block: clamp(.8rem, 1.9vw, 1.5rem) clamp(1.15rem, 2.5vw, 2rem);
}
.py-guide-hero .eyebrow { margin-block: 0 .38rem; }
.py-guide-hero h1 { margin-top: .2rem; }
.py-hero { padding-block: .8rem clamp(1.15rem, 2.5vw, 2rem); }
.py-hero-grid { align-items: start; }
.py-hero .py-kicker { margin-block: .6rem .3rem; }
.py-hero h1 { margin-top: .25rem; }
@media(max-width:760px) {
  .py-course-hero .hero-grid { padding-top: .85rem; }
  .py-guide-hero.hero { padding-top: .65rem; }
}

.py-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem;list-style:none;padding:0}
.py-flow li{min-width:0;color:#352451;background:#f6efff;border:1px solid #b9a3d7;border-top:5px solid #63348d;border-radius:.7rem;padding:1rem}
.py-flow li:nth-child(2){color:#164753;background:#eaf8fb;border-color:#2b6978}
.py-flow li:nth-child(3){color:#174633;background:#ebf8ef;border-color:#307451}
.py-flow li h3{margin:.28rem 0 .45rem}
.py-flow li>span{font-size:1.35rem;font-weight:800}
.py-flow p:last-child{margin-bottom:0}
.py-carousel a.py-card:nth-child(5){background:#304a81}
.py-definition summary{cursor:pointer;font-weight:750}
.py-definition details{padding:.6rem 0;border-bottom:1px solid #abb7ca}
.py-definition .py-visual-card{max-width:44rem}

.py-hub .py-hub-hero{align-items:center}
.py-hub-hero img{display:block;width:100%;height:auto;border-radius:.9rem}
.py-hub-hero h1{font-size:clamp(2rem,5vw,3.7rem)}
.py-hub-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.85rem}
.py-hub-actions a,.py-hub a.py-hub-cta,.py-hub-filters button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.55rem .85rem;border:1px solid #7890b4;border-radius:.5rem;background:#edf3fd;color:#132a54;text-decoration:none;font:inherit;font-weight:750}
.py-hub a.py-hub-cta{background:#b91c1c;color:#fff;border-color:#b91c1c}
.py-hub a.py-hub-cta:hover{background:#991b1b;border-color:#991b1b}
.py-hub :focus-visible{outline:3px solid #7c3aed;outline-offset:3px}
.py-hub-section{margin-block:1.8rem;scroll-margin-top:5rem}
.py-hub-grid,.py-hub-map{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem}
.py-hub-grid article,.py-hub-map li{box-sizing:border-box;min-width:0;padding:1rem;border:1px solid #a1afd0;border-top:4px solid #65429b;border-radius:.7rem;background:#f5efff;color:#1d2340}
.py-hub-grid article:nth-child(4n+2),.py-hub-map li:nth-child(2){background:#ecf8fb;border-color:#337a84}
.py-hub-grid article:nth-child(4n+3),.py-hub-map li:nth-child(3){background:#ecf8f1;border-color:#427e5d}
.py-hub-grid article:nth-child(4n+4),.py-hub-map li:nth-child(4){background:#eff5ff;border-color:#536fa2}
.py-hub-map li:nth-child(5){background:#f1f7ee;border-color:#597752}
.py-hub-grid h3,.py-hub-map h3{margin:.4rem 0}
.py-hub-grid a,.py-hub-map a{color:#17478f;font-weight:750;text-decoration:underline}
.py-hub-map{padding:0;list-style:none}
.py-hub-map span{display:inline-block;color:#fff;background:#172852;border-radius:.4rem;padding:.1rem .35rem;font-weight:800}
.py-hub-label,.py-hub-topics{font-size:.88rem}
.py-hub-label{font-weight:800}
#rutas .py-hub-cta{margin-top:1rem}
.py-hub-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));align-items:end;gap:.75rem;background:#101e3f;color:#fff;padding:1rem;border-radius:.7rem}
.py-hub-filters label{display:grid;gap:.3rem;font-weight:750;min-width:0}
.py-hub-filters input,.py-hub-filters select{box-sizing:border-box;max-width:100%;min-width:0;min-height:44px;padding:.45rem;border:1px solid #64748b;border-radius:.4rem;background:#fff;color:#142343;font:inherit}
.py-hub-filters button{cursor:pointer}
.py-hub [hidden]{display:none!important}
#py-hub-count{display:block;margin-block:.75rem;font-weight:750}
.py-carousel a.py-card:nth-child(6){background:#614375}
.py-carousel a.py-card:nth-child(7){background:#355442}
.process-page .process-index{position:static;top:auto}
