/* Rediseño: aislar el documento completo de los estilos del contenido heredado. */
html:has(body.congd-site){background:var(--paper);overflow-x:clip}
html body.congd-site{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:var(--paper)!important;color:var(--ink)!important;font-family:var(--body)!important}
body.congd-site main,body.congd-site .congd-article{width:100%;min-width:0;max-width:none}
body.congd-site .nav-action{background:var(--lilac)!important;color:var(--ink)!important}
body.congd-site .nav-action:hover,body.congd-site .nav-action:focus-visible{background:var(--ink)!important;color:var(--lilac)!important}
body.congd-participa-page{--lime:#EDF59E;--paper:#EDF59E;--participa-yellow:#EDF59E}
body.congd-participa-page .congd-participa-hero{background:var(--paper)!important}
body.congd-participa-page .participa-hero-art{width:100%;aspect-ratio:1.1;margin:0;background:transparent;min-height:0}
body.congd-participa-page .islands-composition{display:block;width:100%;height:100%;min-height:300px}
body.congd-participa-page .island{transform-box:fill-box;transform-origin:center;animation:congd-islands-breathe 6s ease-in-out infinite;animation-delay:calc(var(--order)*-.6s)}
@keyframes congd-islands-breathe{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-7px) rotate(2deg)}}
body.congd-site .congd-article-content .elementor *{color:var(--ink)!important;font-family:var(--body)!important;box-sizing:border-box}
body.congd-site .congd-article-content .elementor-section,body.congd-site .congd-article-content .e-con{left:auto!important;width:100%!important;max-width:100%!important;margin-inline:0!important;background:transparent!important;min-height:0!important;transform:none!important}
body.congd-site .congd-article-content .elementor-container{width:100%!important;max-width:100%!important;min-height:0!important}
body.congd-site .congd-article-content .elementor-column{min-width:0}
body.congd-site .congd-article-content .elementor-widget-wrap,body.congd-site .congd-article-content .elementor-widget-container{background:transparent!important;max-width:100%;min-width:0}
body.congd-site .congd-article-content .elementor-widget-heading .elementor-heading-title{font-size:clamp(24px,3vw,36px)!important;line-height:1.3!important}
body.congd-site .congd-article-content .elementor-widget-spacer{display:none}
body.congd-site .congd-article-content .elementor-button{background:var(--ink)!important;color:var(--white)!important;border:1px solid var(--ink)!important;border-radius:100px!important;padding:14px 23px!important;text-decoration:none!important;white-space:normal}
body.congd-site .congd-article-content .elementor-button *{color:inherit!important}
body.congd-site .congd-article-content img{object-fit:contain;max-width:100%!important;height:auto!important}
body.congd-site .congd-article-content a{color:var(--ink)!important}
body.congd-site .congd-article-content a:hover{color:var(--orange)!important}
body.congd-site .congd-article-body{width:100%}
body.congd-site .split>*{min-width:0}
body.congd-site h1,body.congd-site h2{overflow-wrap:anywhere}
body.congd-site .congd-video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:var(--ink);border:1px solid var(--line)}
body.congd-site .home-video{padding-bottom:80px}
.photo-rotation{position:relative}.photo-rotation .editorial-gallery{transition:opacity 1s ease;opacity:1}.photo-rotation.is-changing .editorial-gallery{opacity:0}
.rotation-controls{display:flex;justify-content:flex-end;margin:18px 0}.rotation-toggle{background:transparent;border:1px solid var(--ink);border-radius:100px;padding:8px 18px;min-height:44px;color:var(--ink);cursor:pointer;font:inherit;font-size:12px}
body.congd-site .funders-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.funder-card{padding:28px;background:var(--white);border:1px solid var(--line);min-width:0}
body.congd-site .funder-card img{width:100%;height:130px;object-fit:contain;margin-bottom:24px}
body.congd-site .funder-card h2{font-size:20px!important;letter-spacing:-.025em}
.entity-detail-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:60px;align-items:start}.entity-detail-layout>*{min-width:0}.entity-detail-copy p{margin-bottom:20px}.entity-detail-copy h2{font-size:30px!important;margin-bottom:22px}.entity-detail-copy h3{font-size:22px!important;margin-block:30px 15px}
.entity-detail-logo{background:var(--white);padding:25px;margin-bottom:25px}.congd-site .entity-detail-logo img{width:100%;height:120px;object-fit:contain}.congd-site .entity-detail-photo img{width:100%;height:auto;object-fit:contain}.entity-detail-contact{background:var(--lilac);padding:28px;overflow-wrap:anywhere}.entity-detail-contact p{font-size:15px}.entity-detail-contact .button{margin-top:25px}.entity-socials{display:flex;gap:15px;flex-wrap:wrap;margin-top:25px}
body.congd-site .entity-panel .entity-description{margin-top:18px;font-size:15px}
@media(max-width:900px){body.congd-site .funders-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.entity-detail-layout{grid-template-columns:1fr;gap:30px}.congd-article-content .elementor-container{flex-wrap:wrap!important}.congd-article-content .elementor-column{width:100%!important}}
@media(max-width:640px){body.congd-site .funders-grid{grid-template-columns:1fr}body.congd-site .congd-article-content .elementor-widget-wrap{padding-inline:0!important}.congd-site .home-video{padding-bottom:55px}body.congd-participa-page .participa-hero-art{aspect-ratio:1.3}.entity-detail-contact{padding:22px}}
@media(max-width:640px){body.congd-site .participate-band h2{font-size:clamp(38px,11vw,58px)!important}}
@media(max-width:380px){body.congd-site .site-head{gap:12px}body.congd-site .wordmark .brand-logo{width:160px}body.congd-site .menu-toggle{white-space:nowrap;padding-inline:12px}body.congd-site .hero h1{font-size:clamp(42px,13vw,50px)!important}}
@media(prefers-reduced-motion:reduce){body.congd-site .island{animation:none!important}.photo-rotation .editorial-gallery{transition:none}}

body.congd-site .hero-video{min-width:0;width:100%;align-self:center;background:var(--ink)}
body.congd-site .hero-video .congd-video{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;border:0}

/* Revisión final de Participa: amarillo corporativo, tarjetas y cierre blanco roto, hover naranja. */
html:has(body.congd-participa-page){background:#EDF59E!important}
body.congd-site.congd-participa-page .site-head,
body.congd-site.congd-participa-page #main-nav,
body.congd-site.congd-participa-page .nav-submenu,
body.congd-site.congd-participa-page .participation-picker,
body.congd-site.congd-participa-page .participa-journeys,
body.congd-site.congd-participa-page .participa-final{background:#EDF59E;color:var(--ink)}
body.congd-site.congd-participa-page .participa-ribbon{background:var(--ink);color:#EDF59E}
body.congd-site.congd-participa-page .participa-final-inner{background:#F7F4F1!important;color:var(--ink)}
body.congd-site.congd-participa-page h1 em,
body.congd-site.congd-participa-page h2 em{color:var(--ink)!important;text-decoration:underline;text-decoration-color:var(--ink);text-decoration-thickness:.06em;text-underline-offset:.12em;text-decoration-skip-ink:none}
body.congd-site.congd-participa-page .text-link,
body.congd-site.congd-participa-page .jump-links a{border-bottom-color:var(--ink)!important}
body.congd-site.congd-participa-page .participation-options>a{background:#F7F4F1;color:var(--ink);border-color:var(--ink);transition:background .2s}
body.congd-site.congd-participa-page .participation-options>a:hover,
body.congd-site.congd-participa-page .participation-options>a:focus-visible{background:#D8563A;color:#21140E}
body.congd-site.congd-participa-page .participation-options p{color:var(--ink)}
body.congd-site .axis-card:hover{box-shadow:none}
.footer-phones{display:grid;gap:10px;margin:18px 0}
.footer-phones span{display:block;font-size:11px;line-height:1.5}
.foot-socials{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
body.congd-site .foot-socials a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid currentColor;border-radius:50%;transition:background .2s,color .2s}
body.congd-site .foot-socials a:hover{background:var(--lilac);color:var(--ink)}
.foot-socials svg{width:20px;height:20px;fill:currentColor}

/* Pie común en todas las páginas: sin heredar el amarillo de Participa. */
body.congd-site.congd-participa-page .site-foot{--paper:#f7f4f1;background:var(--dark);color:var(--paper)}
body.congd-site.congd-participa-page .site-foot h2 em{color:inherit!important;text-decoration:none}
body.congd-site.congd-participa-page .site-foot .button.light{background:var(--paper);border-color:var(--paper);color:var(--ink)!important}

/* Unificar las cinco opciones frente a los antiguos colores por posición. */
body.congd-site.congd-participa-page .participation-options>a:nth-child(n){background:#F7F4F1!important}
body.congd-site.congd-participa-page .participation-options>a:nth-child(n):hover,
body.congd-site.congd-participa-page .participation-options>a:nth-child(n):focus-visible,
body.congd-site.congd-participa-page .participation-options>a:nth-child(n):active{background:#D8563A!important;color:#21140E!important}
