/* Text contrast for the public Pagovision pages and their illustrated interfaces.
   Component declarations take priority over the legacy per-page !important theme. */
@layer pv-legibilidad {
  /* Preserve the changing brand colours, using darker stops on the pale surfaces. */
  .hero h1 .o, .ah h1 .o, .p2h h1 .o, .p2 h2 .o, .sx h1 .xo, .sx h2 .xo,
  .sec.tight h2 .o, .pzx h2 .o, .ab0 h1 em, .prh h1 em,
  .pen h2 em, .pef h2 em, .ru h2 em, .bxw h2 em, .ix h2 em,
  .hpx h2 em, .fx h2 em, .bzlib h2 em, .wq h1 em, .wqsec h2 em, .wqpx h2 em {
    color: #862b54 !important;
    background-image: linear-gradient(92deg,#9d440c 0%,#a02d3d 34%,#9a275c 62%,#60368d 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }
  /* Orange, pink and violet call-to-action bands retain their existing artwork. */
  .band h2, .band h2 .serif, .band p, .nx h2, .nx h2 .it3, .nx small, .nx p,
  .cta5 h2, .cta5 h2 .o, .cta5 p, .cxend h2, .sxend h2, .sxend p,
  .wqend .wqk, .wqend h2, .wqend h2 em, .wqend p,
  .cons h2, .cons p.ld, .cons .ey, .cons .pts span, .nl h2, .nl h2 .it2,
  .nl .ey, .nl .wrap > div > p, .nl .wrap > div > p a {
    color: #17132b !important;
    -webkit-text-fill-color: currentColor !important;
  }
  .band .btn.ghost, .nx a.lk, .cta5 a.ol, .cxend .cxbt.w,
  .sxend .sxbt.g, .wqend .wqbt.wqo {
    color: #17132b !important;
    border-color: #36243d !important;
  }
  .band .btn.ghost:hover, .cta5 a.ol:hover, .cxend .cxbt.w:hover,
  .sxend .sxbt.g:hover, .wqend .wqbt.wqo:hover {
    background: #23192a !important;
    color: #fff !important;
  }
  /* Metadata on the light editorial backgrounds and product sections. */
  .cls .lb3, .wqint p, .wqmq span, .bh .crumb, .bh .stats,
  .gcard .ft3 span, .agh .crumb, .prep .prepgr em, .ti .yr, .gcard .ft3 small,
  .ab0 .crumb, .ab0 .sub, .ab0 .tx3, .ah .crumb {
    color: #525663 !important;
  }
  .cls .tr4 span[style*="6db33f" i] {color:#38621e !important}
  .kq.sec.light .ey, .hero .ey, .ah .ey, .prk, .prs .prl, .prmore,
  .gcard .ft3 button, .bh .xp, .ag .ey2, .rc small, .hpx .zhd a, .hpc .zgo,
  .hab .yrs b, .hab .hl small, .card li em, .sxk, .wqk, .pek, .hd5 .k,
  .pvsec .pvh span, .pflow em, .wqchap span b, .pvsec .wqchap span b {
    color: #833c12 !important;
  }
  .cxbt.p, .wqbt.wqf, .sxbt.xf, .ixprice .zrk, .ixprice > a,
  .wqvid .wqvl, .pzc .rk, .sxig .c3 .xcp span, .sxfm .xac span.p,
  .sxm.xb, .sxig .c3 .xtl .xo2, .sxig .c3 .xtl .xo2 small, .sxil div, .sxil b {
    color: #22160d !important;
  }
  .cxbt.p:hover, .wqbt.wqf:hover, .sxbt.xf:hover {color:#22160d !important}
  /* Each chapter has a pale surface, including the small timestamp beside its name. */
  .wqchap span, .pvsec .wqchap span {background:#fff7f2 !important;color:#343344 !important}
  .wqchap span b {color:#873b0d !important}
  .wqfs > span > b {background:#0f6258 !important;color:#fff !important}
  .wqint .wqmq span {color:#333649 !important}
  .pzc li.no, .pzrg .tk span, .nd .xhd small, .nd .xft, .sxig .c1 h6,
  .sxig .c2 b small, .sxig .c3 .xcp {color:#555c69 !important}
  .pzsw button.pzon {background:#272338 !important;color:#fff !important}
  .pzsw button:not(.pzon) {background:#fff !important;color:#352d41 !important}
  .sxfm .ms b, .sxfm .xin .xch {color:#873d10 !important}
  /* Coloured labels keep their original fills. */
  .hpc .ztg, .cxfl .cxt, .fxst a i {color:#101422 !important}
  .hpc .ztg[style*="1a1" i], .cxfl .cxt[style*="#111" i], .cxfl .cxt[style*="#121" i],
  .fxst a i[style*="#111" i], .fxst a i[style*="#121" i] {color:#fff !important}
  .card .za-ai, .card .za-d small, .hx-st .hx-sl.on {color:#2d1b0c !important}
  .card .zb-days, .card .zb-days span, .card .za-tm, .card .za-who small, .card .zb-h small {
    color:#e3d9e6 !important;
  }
  .hx-lab, .hx-chip small, .card .zc-u {color:#595249 !important}
}

@layer pv-legibilidad {
  .hero .ok span, .ah .ok span, .ah .fine span, .ru .runm small,
  .tp5 em, .pc2 span, .fd dl dt, .sc-ha, .sc-a, .sc-a span,
  .jb-q small, .bafl button em, .fq-ts button em, .cf-priv,
  .cx-sec .cx-mm em, .cx-sec .cx-note, .tos-note, .legal-hero .eyebrow,
  .wqin2 span, .wqm small, .wqm.wqout small {color:#515360 !important}
  .cls .tr4 span[style*="#6DB33F"], .cls .tr4 span[style*="#6db33f"] {color:#38621e !important}
  .tour .ey, .sec.light .ey, .sec .hd .ey, .ah .fine b,
  .pewb .rscap small, .p2 .mny small, .p2 .flw h4,
  .ab0 .wrap > div > p, .mf small, .qt b, .ti .cd small,
  .fq-ey, .fq-more a, .jb-m em, .sx-k, .cq-k, .cq-get em,
  .tos-toc p, .tos-s h2 span, .wqtag, .wqnum, .wqnum b, .wqtx h3 em,
  .cxbt.ol, .sxig .c1 div > span, .smhb, .sxbig b {color:#80380d !important}
  .pen h2 s {color:#545664 !important}
  .jb-sec .bxh em {
    background-image:linear-gradient(92deg,#9d440c,#a02d3d 34%,#9a275c 62%,#60368d) !important;
    -webkit-background-clip:text !important;background-clip:text !important;-webkit-text-fill-color:transparent !important;
  }
  .wqbtns span {color:#00549b !important}
  .wqkp em {color:#176d50 !important}
  .card .za-cal small {color:#5c534c !important}
  .card .zb-up {color:#9df5be !important}
  .pvx .pvx-b, .tos-back, .nb-s li > b, .pewb-cta .btn.pri,
  .cf-form .cf-btn, .cf-steps li > span, .cx-sec .cx-cta,
  .cxme, .cxme small, .fxgo, .wqimg {color:#130f17 !important}
  .pvx .pvx-b:hover, .pewb-cta .btn.pri:hover, .cf-form .cf-btn:hover,
  .cx-sec .cx-cta:hover, .fxgo:hover {color:#130f17 !important}
  .wqend .wqk, .wqend p, .wqend .wqbt.wqo,
  .sxend p, .sxend .sxbt.g, .sxil div, .sxil b {color:#090811 !important}
  .sxend .sxbt.xf, .sxend .sxbt.xf:hover {color:#fff !important;background:#1d2029 !important}
  .ab0 .mosaic .tx3 {color:#fff !important;background:#873407 !important}
  .cq > footer {background:#f7f3ee !important;color:#2b2b3c !important}
  .cq-foot, .cq-foot span {color:#55525a !important}
  .cq-foot a, .cq-policy {color:#813a12 !important}
  .cxfl .cxt[style*="#6C1D8C"], .cxfl .cxt[style*="#7F54B3"], .cxfl .cxt[style*="#0F6CBD"] {color:#fff !important}
  .cxfl .cxt[style*="#F58529"] {background:linear-gradient(135deg,#943500,#932452,#632c87) !important;color:#fff !important}
  .cxfl .cxt[style*="#1877F2"] {color:#070b10 !important}
  .pvp [style*="#8A8478"], .pvp [style*="#8a8478"] {color:#55515a !important}
  .pvp span[style*="linear-gradient"], .pvp a[style*="linear-gradient"],
  .pvp-ann [style*="linear-gradient"] > span {color:#12101b !important}
  .cx-r .cx-big span {
    color:#ffcfaf !important;background-image:linear-gradient(100deg,#fff 40%,#ffc7a8) !important;
    -webkit-background-clip:text !important;background-clip:text !important;-webkit-text-fill-color:transparent !important;
  }
  .sv .hd5 .num {color:transparent !important;-webkit-text-stroke:2px #83441c !important}
  .p2 .vid h3, .p2 .vid p {color:#fff !important;background:#312438 !important;padding:.18em .4em;border-radius:.25em}
}

@layer pv-componentes {
  /* These elements are generated in all six CRM views. The same theme tokens
     drive the desktop switch and the mobile dropdown. */
  #recorrido-crm .app .topb em, #recorrido-crm .app .topb .wsname,
  #recorrido-crm .app .k3 b, #recorrido-crm .app .rl2 .v,
  #recorrido-crm .app .rl2 b, #recorrido-crm .app .donut dd,
  #recorrido-crm .app .rw span, #recorrido-crm .app .wsc dd {
    color:var(--primary) !important;
  }
  #recorrido-crm .app .me > span, #recorrido-crm .app .k3 small,
  #recorrido-crm .app .lg2 span, #recorrido-crm .app .pnl small,
  #recorrido-crm .app dt, #recorrido-crm .app .wsc > div > p {
    color:var(--muted) !important;
  }
  #recorrido-crm .app .av, #recorrido-crm .app .tp3 > i,
  #recorrido-crm .app .wsp > i, #recorrido-crm .app .me > i {
    color:#0b1221 !important;
  }
  #recorrido-crm .app .sb button[data-v].on,
  #recorrido-crm .app .sb button[data-v].on:hover {
    background:var(--selected) !important;color:#21180f !important;
  }
  #recorrido-crm .app .sb button[data-v]:not(.on):hover,
  #recorrido-crm .app .sb button[data-v]:not(.on):focus-visible {
    background:var(--raised) !important;color:var(--primary) !important;
  }
  #recorrido-crm .app .perm th, #recorrido-crm .app .perm td,
  #recorrido-crm .app .tb th, #recorrido-crm .app .tb td {
    color:var(--muted) !important;
  }
}
@layer pv-legibilidad {
  .ti.now .cd small, .mny .gn small, .cq-live .cq-k {color:#ffd0a8 !important}
  .card .za-cal .za-d small {color:#20170e !important}
  .ixru > span, .legal-meta > span {color:#555766 !important}
  .wqimg, .sxil div, .sxil b {color:#040409 !important}
  .jb-fl button[aria-pressed="true"] em, .jb-fl button.on em,
  .bafl button.on em, .fq-ts button.on em, .fq-ts button[aria-selected="true"] em,
  .fq-ts button[aria-pressed="true"] em {color:#fff !important}
  .sxpers p b {color:#82390d !important}
}

@layer pv-legibilidad {
  .kq-perucrm-7.tour .ey {color:#ffc990 !important}
  #wq-flujo .sxsw {color:#196145 !important}
  .cf-form .cf-ok small, .cf-f input::placeholder, .cf-f textarea::placeholder,
  .cq-card .cq-step, .cq-card .cq-sub, .cq-fld input::placeholder {color:#61594f !important;opacity:1}
  .cq-card .cq-opt .cq-n {color:#7c3209 !important}
  .cq-card .cq-opt.on .cq-n, .cf-c input:checked + span i, .cf-ok i {color:#211722 !important}
  .cq-card .cq-chip.on {background:#1d1c30 !important;color:#fff !important}
  .cq-card .cq-opt:hover, .cq-card .cq-opt:focus-visible {color:#272336 !important}
  .cq-card .cq-cta:focus-visible, .cf-form .cf-btn:focus-visible {outline:3px solid #37284e;outline-offset:3px}
  .cf-form .cf-err {color:#992534 !important}
  .wqvid .wqvt > span:first-child {
    background:rgba(16,19,34,.94) !important;color:#fff !important;
    border-radius:8px;padding:7px 10px;
  }
  .wqvid .wqvt b, .wqvid .wqvt small, .wqvid .wqdur,
  .wqvid .wqmsg {color:#fff !important}
  .wqvid .wqdur, .wqvid .wqmsg {background:rgba(16,19,34,.94) !important}
  .wqtabs button.wqon {color:#171325 !important}
  /* Linked Blanco Ingenieros example, including its project-filter states. */
  header.hero .hero-copy .lbl.acc, .section .shead .lbl.acc, #nosotros .lbl.acc,
  #nosotros .tl .y, .section .mv .lbl.acc {color:#922e11 !important}
  .section.night .shead .lbl.acc, .section.night .lbl.acc {color:#ffbd94 !important}
  .section.night .lead, .section.night .filters .fb, .section.night .cats6 span,
  .section.night .sectors .lbl, .section.night .cl .mono {color:#e4e8e9 !important}
  .section.night .filters .fb.on, .section.night .filters .fb:hover {background:#f1f1ed !important;color:#252b30 !important}
}

@layer pv-legibilidad {
  #proyectos .filters .fb[aria-pressed="true"] {background:#f1f1ed !important;color:#252b30 !important}
  .inc3 summary em {color:#535965 !important}
  .sxl .sxsw {color:#87390e !important}
}


@layer pv-legibilidad {
  .tos-toc a:hover, .tos-toc a:focus-visible {color:#833b0f !important}
  .tos-toc a.tos-back:hover, .tos-toc a.tos-back:focus-visible {color:#15101c !important}
  a.rsw:hover .rsb span, a.rsw:focus-visible .rsb span {color:#933e0a !important}
  nav.nav .menu a.opt:hover, nav.nav .menu a.opt:focus-visible {color:#92320f !important}
  nav.nav .menu a.btn-p:hover, nav.nav .menu a.btn-p:focus-visible {color:#fff !important;background:#23262a !important}
  ::selection {background-color:#ff5c7a !important;color:#1a1025 !important;-webkit-text-fill-color:#1a1025 !important;text-shadow:none !important}
}
