:root{--blue:#4d62c6;--pink:#c95e8a;--green:#82cf1c;--dark:#1f1f1f;--lilac:#f0f1ff}.search-story{background:#fbfaf7;color:#1d1d1d}.search-header{border-bottom:1px solid #ddd;background:#fff}.search-header nav a[aria-current=page]{color:var(--blue);font-weight:700;text-decoration:underline;text-underline-offset:6px}.search-loading{padding:2rem 6%}.search-hero{position:relative;min-height:390px;padding:95px 8% 80px;text-align:center;overflow:hidden;background:radial-gradient(circle at 17% 70%,#fff 0 9%,transparent 9.5%),radial-gradient(circle at 88% 8%,#e8eaff 0 22%,transparent 22.5%),linear-gradient(135deg,#fff 0 65%,#f0f1ff 65%)}.search-hero:after{content:'✳';position:absolute;right:10%;top:38%;font-size:100px;color:var(--green)}.breadcrumb{font-size:.78rem;color:#666}.search-hero h1{max-width:950px;margin:25px auto 40px;font-size:clamp(2.6rem,5vw,4.8rem);letter-spacing:-.055em}.search-hero>p:last-child{max-width:780px;margin:auto;font-size:1.15rem;line-height:1.55}.section-heading{max-width:900px;margin:0 auto 2.7rem;text-align:center}.section-heading h2{font-size:clamp(2rem,3.2vw,3.2rem);margin:.5rem 0 1rem}.section-heading>p:last-child{font-size:1.02rem;line-height:1.55}.kicker{font-size:.68rem;letter-spacing:.19em;font-weight:800;color:var(--blue);margin:0}.map-section,.compare-section,.chapters-section{padding:5rem 5%}.map-section{background:linear-gradient(180deg,#fff,#faf9f5)}.search-filters{display:grid;grid-template-columns:.7fr 1.3fr 1.1fr;gap:1rem;max-width:1000px;margin:0 auto 1.5rem}.search-filters label,.compare-controls>label{font-size:.75rem;font-weight:700}.search-filters select,.compare-controls select{display:block;width:100%;margin-top:.4rem;padding:.8rem;border:1px solid #bbb;background:white}.map-layout{max-width:1160px;margin:auto;display:grid;grid-template-columns:320px minmax(0,1fr);gap:2.5rem;align-items:center}.state-card{background:#fff;padding:1.5rem;border:1px solid #d8d8d8;box-shadow:0 7px 18px #0001;min-height:390px}.state-card .card-label{font-size:.65rem;letter-spacing:.08em;font-weight:800}.state-card h3{font-size:1.8rem;margin:1rem 0}.state-card .primary-value{display:block;color:var(--blue);font-size:clamp(2.5rem,4vw,4rem);line-height:1;font-weight:800;overflow-wrap:anywhere}.state-card .value-unit{font-size:.72rem;color:#666}.state-card dl{margin:1.5rem 0}.state-card dl>div{border-top:1px solid #ddd;padding:.65rem 0}.state-card dt{font-size:.7rem;color:#666}.state-card dd{margin:.2rem 0 0;font-size:.9rem;overflow-wrap:anywhere}.state-card .status{padding:.65rem;background:#f1f2ff;font-size:.75rem;line-height:1.5}.state-card a{font-size:.75rem;text-decoration:underline}.search-map{aspect-ratio:870/640;max-height:650px}.search-map svg{width:100%;height:100%;overflow:visible}.search-map path{fill:var(--pink);stroke:#fff;stroke-width:1.2;vector-effect:non-scaling-stroke;cursor:pointer}.search-map path:hover,.search-map path:focus{fill:#a9446c;outline:none}.search-map path.no-data{fill:url(#missing-hatch)}.search-map path.selected{fill:var(--blue);stroke:#171717;stroke-width:2.4}.map-legend{display:flex;gap:1.2rem;flex-wrap:wrap;font-size:.7rem}.map-legend span{display:flex;align-items:center;gap:.35rem}.map-legend i{width:16px;height:16px;margin:0;border-radius:0}.available{background:var(--pink)}.map-legend .missing{background:repeating-linear-gradient(45deg,#ddd,#ddd 3px,#fff 3px,#fff 6px)}.map-legend .selected{background:var(--blue)}.source-note{font-size:.75rem;color:#666;line-height:1.5}.institutions-section{padding:5.5rem 7%;background:var(--lilac)}.institution-grid{display:grid;grid-template-columns:repeat(3,1fr);max-width:980px;margin:auto;gap:4rem}.institution-dot{display:block;width:34px;height:34px;border-radius:50%;margin-bottom:1.2rem}.institution-dot.blue{background:var(--blue)}.institution-dot.pink{background:var(--pink)}.institution-dot.green{background:var(--green)}.institution-grid h3{font-size:1.5rem}.institution-grid p{font-size:.9rem;line-height:1.55;min-height:105px}.institution-grid a{font-size:.8rem;font-weight:700}.dark-section{background:var(--dark);color:#fff;padding:5.5rem 5%}.dark-section .kicker{color:#d7dcff}.dark-section .section-heading>p:last-child{color:#d0d0d0}.method-reminder{max-width:1050px;margin:0 auto 3rem;padding:1rem 1.2rem;border:1px dashed #777;display:grid;grid-template-columns:260px 1fr;gap:1.5rem;font-size:.82rem}.method-reminder strong{color:#d7dcff}.evolution-chart{max-width:1050px;height:350px;margin:auto;display:grid;grid-template-columns:repeat(8,1fr);gap:1rem;border-bottom:1px solid #777;padding-top:2rem}.evolution-column{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0}.evolution-column strong{font-size:.7rem;margin-bottom:.6rem;white-space:nowrap}.evolution-bar-space{height:240px;width:100%;display:flex;align-items:end;justify-content:center;border-bottom:1px solid #4b4b4b}.evolution-bar{display:block;width:55%;min-height:2px;background:var(--pink)}.evolution-column:nth-child(3n+2) .evolution-bar{background:var(--blue)}.evolution-column:nth-child(3n) .evolution-bar{background:var(--green)}.evolution-column small{margin-top:.7rem}.evolution-column.missing strong{color:#aaa}.evolution-column.missing .evolution-bar{height:0!important;border-top:2px dashed #777;background:none}.evolution-reading{max-width:1050px;margin:2.5rem auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.evolution-reading div{border-top:1px solid #666;padding-top:1rem}.evolution-reading strong{display:block;font-size:1.35rem}.evolution-reading span{font-size:.74rem;color:#bbb}.compare-controls{max-width:1050px;margin:auto}.compare-controls>label{display:block;max-width:260px}.compare-controls fieldset{border:0;padding:0;margin:1.7rem 0}.compare-controls legend{font-weight:700;margin-bottom:.8rem}.compare-state-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem}.compare-state-picker label{padding:.65rem;border:1px solid #ccc;background:#fff;font-size:.75rem}.compare-state-picker input{margin-right:.4rem}.compare-chart{max-width:1050px;margin:2.5rem auto;display:flex;gap:1.2rem;align-items:flex-end;min-height:300px;border-bottom:1px solid #aaa}.compare-item{flex:1;display:flex;flex-direction:column;align-items:center;min-width:0}.compare-item strong{font-size:.8rem}.compare-bar-space{height:210px;width:100%;display:flex;align-items:end;justify-content:center}.compare-bar{width:55%;background:var(--blue);min-height:2px}.compare-item:nth-child(2) .compare-bar{background:var(--pink)}.compare-item:nth-child(3) .compare-bar{background:var(--green)}.compare-item:nth-child(4) .compare-bar{background:#8464aa}.compare-item span:last-child{font-weight:700;font-size:.8rem;margin:.8rem 0;text-align:center}.chapters-section{background:#fff}.chapters-chart{max-width:1050px;margin:auto}.chapter-row{display:grid;grid-template-columns:220px 1fr 170px;gap:1.2rem;align-items:center;margin:1.2rem 0}.chapter-row h3{font-size:1rem;margin:0}.chapter-row h3 small{display:block;font-size:.68rem;font-weight:400;color:#666;margin-top:.3rem}.chapter-track{height:25px;background:#eee}.chapter-fill{height:100%;background:var(--green)}.chapter-row:nth-child(3n+2) .chapter-fill{background:var(--pink)}.chapter-row:nth-child(3n) .chapter-fill{background:var(--blue)}.chapter-value{font-size:1.15rem;font-weight:800;text-align:right}.chapter-row.missing .chapter-track{background:repeating-linear-gradient(45deg,#eee,#eee 4px,#fff 4px,#fff 8px)}.chapter-row.missing .chapter-value{font-size:.8rem;color:#666}.chapters-check{max-width:1050px;margin:2.5rem auto 0;padding:1rem 1.2rem;background:#f4f4f4;font-size:.8rem}.voice-section{padding:7rem 7%;text-align:center;background:var(--dark);color:#fff}.voice-section blockquote{max-width:970px;margin:2.5rem auto;font-family:Georgia,serif;font-size:clamp(2.2rem,4vw,4.3rem);line-height:1.2}.voice-section>p span{font-size:.7rem;color:#aaa}.voice-links{display:flex;justify-content:center;gap:5rem;margin-top:5rem}.search-story footer{background:#090909;color:#fff}
@media(max-width:900px){.map-layout{grid-template-columns:280px 1fr}.institution-grid{gap:2rem}.compare-state-picker{grid-template-columns:repeat(3,1fr)}.chapter-row{grid-template-columns:180px 1fr 130px}.method-reminder{grid-template-columns:1fr}.search-header nav{flex-wrap:wrap}}
@media(max-width:650px){.search-header{display:block}.search-header nav{margin-top:1.2rem;gap:.8rem}.search-hero{padding:75px 6% 60px;text-align:left}.search-hero:after{font-size:60px;right:5%;top:55%}.search-hero h1{font-size:2.7rem}.map-section,.compare-section,.chapters-section,.dark-section,.institutions-section{padding:3.7rem 5%}.search-filters,.institution-grid,.evolution-reading{grid-template-columns:1fr}.map-layout{display:flex;flex-direction:column-reverse}.state-card{width:100%;min-height:0}.search-map{width:100%}.institution-grid{gap:2.5rem}.institution-grid p{min-height:0}.evolution-chart{gap:.35rem;overflow-x:auto}.evolution-column{min-width:48px}.compare-state-picker{grid-template-columns:repeat(2,1fr)}.compare-chart{overflow-x:auto}.compare-item{min-width:100px}.chapter-row{grid-template-columns:1fr 100px}.chapter-track{grid-column:1/-1;grid-row:2}.chapter-value{grid-column:2;grid-row:1}.voice-links{flex-direction:column;gap:1.2rem}.voice-section blockquote{font-size:2.4rem}}
.institution-grid>article{display:flex;flex-direction:column}.institution-grid>article>p{min-height:0}.institution-grid>article>a{margin-top:auto}.institution-scope{font-size:.68rem!important;letter-spacing:.08em;font-weight:700;color:#666;margin-bottom:.55rem}.institution-grid dl{margin:1rem 0 1.2rem}.institution-grid dl>div{border-top:1px solid #d4d5df;padding:.65rem 0}.institution-grid dt{font-size:.7rem;color:#666}.institution-grid dd{font-size:1.05rem;font-weight:700;margin:.2rem 0 0;overflow-wrap:anywhere}.institution-source{font-size:.72rem!important;color:#666}
.search-story{width:100%;max-width:none!important;margin:0!important}
.map-layout{max-width:1280px;grid-template-columns:minmax(380px,420px) minmax(0,1fr)}
.state-card .primary-value{font-size:clamp(28px,3vw,46px);white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums;letter-spacing:-.035em}
@media(max-width:900px) and (min-width:651px){.map-layout{grid-template-columns:340px minmax(0,1fr);gap:1.5rem}.state-card .primary-value{font-size:30px}}
@media(max-width:650px){.state-card .primary-value{font-size:clamp(27px,9vw,42px)}}

/* Textura de papel (diseño Figma): hero + parte superior del mapa */
body.search-story .search-hero{display:flex;flex-direction:column;align-items:center;min-height:0;padding:90px 8% 70px;background:#f3f1ec url("assets/busqueda-hero.svg?v=3") top center/max(100%,1280px) auto no-repeat}
body.search-story .search-hero h1{order:1;margin:0;font-size:clamp(32px,3.5vw,46px);letter-spacing:-.02em;line-height:1.15;position:relative;z-index:1}
body.search-story .search-hero .breadcrumb{order:2;margin:8px 0 0;font-size:14px;color:#777}
body.search-story .search-hero>p:last-child{order:3;margin:70px auto 0;max-width:700px;font-size:19px;line-height:1.5;text-align:center}
body.search-story .search-hero>p:last-child:after{content:"";display:block;width:240px;height:3px;margin:30px auto 0;background:#4d62c6}
body.search-story .search-hero:after{content:"";width:110px;height:110px;top:118px;right:calc(50% - 575px);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 110' fill='none' stroke='%2382cf1c' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M55 55 70 6M55 55l50-18M55 55l48 22M55 55l12 48M55 55 38 106M55 55 4 72M55 55 6 33M55 55 30 8'/%3E%3C/svg%3E") center/contain no-repeat;font-size:0}
body.search-story .map-section{background:url("assets/busqueda-borde.svg?v=1") bottom center/100% 70px no-repeat,url("assets/busqueda-mapa.svg?v=3") top center/max(100%,1280px) auto no-repeat,#fff;padding-bottom:6rem}
@media(max-width:1180px){body.search-story .search-hero:after{right:3%;top:150px;width:80px;height:80px}}
@media(max-width:700px){body.search-story .search-hero{align-items:flex-start;padding:60px 6% 50px}body.search-story .search-hero>p:last-child{text-align:left;margin-top:40px}body.search-story .search-hero>p:last-child:after{margin-left:0}body.search-story .search-hero:after{top:20px;width:60px;height:60px}}
/* Mapa: despegarlo del fondo rasgado (contorno blanco + sombra suave) */
body.search-story .search-map svg{filter:drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 10px 18px rgba(40,32,24,.22))}
body.search-story #missing-hatch rect{fill:#d9d6cf}
body.search-story #missing-hatch line{stroke:#8e8a81}
body.search-story .map-legend .missing{background:repeating-linear-gradient(45deg,#8e8a81,#8e8a81 2px,#d9d6cf 2px,#d9d6cf 6px)}
/* Ficha del estado: estructura ordenada */
body.search-story .state-card{display:flex;flex-direction:column;gap:18px}
body.search-story .state-card h3{margin:-6px 0 0;line-height:1.1}
body.search-story .state-card .card-kicker{display:block;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#6b6b6b;margin-bottom:6px}
body.search-story .state-card .card-main .primary-value{margin:0 0 6px}
body.search-story .state-card .card-main .value-unit{display:block;font-size:12px;color:#777}
body.search-story .state-card .card-compare{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2}
body.search-story .state-card .card-compare>div{padding:14px 0;min-width:0}
body.search-story .state-card .card-compare>div+div{border-left:1px solid #e2e2e2;padding-left:14px}
body.search-story .state-card .card-compare strong{display:block;font-size:15px;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.01em}
body.search-story .state-card .card-pill{display:inline-block;margin-top:6px;padding:2px 8px;border-radius:999px;background:#eceefd;color:#3d4fa8;font-size:12px;font-weight:700}
body.search-story .state-card .card-compare small{display:block;margin-top:6px;font-size:11px;color:#888}
body.search-story .state-card .card-source dl{margin:0}
body.search-story .state-card .card-source dl>div{display:grid;grid-template-columns:78px 1fr;gap:10px;margin:0;padding:8px 0;border-top:1px solid #eee}
body.search-story .state-card .card-source dl>div:first-child{border-top:0;padding-top:2px}
body.search-story .state-card .card-source dt{min-width:0;font-size:12px;color:#777}
body.search-story .state-card .card-source dd{margin:0;font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
body.search-story .state-card .status{margin:0}
