/* HerniaPuebla: anatomical explorer, academic hierarchy and accessible navigation. */
html body.cx-site.pm-site #explorador-hernia{position:relative;scroll-margin-top:96px;padding-block:clamp(40px,5vw,72px)!important;background:radial-gradient(ellipse at 95% 0%,#e6f3f8 0%,transparent 52%),#f7f9fc!important}
.hp-old-anchor{position:absolute;top:0;scroll-margin-top:96px;pointer-events:none}
html body.cx-site.pm-site #explorador-hernia .hc-wrap{min-width:0;max-width:1180px;margin-inline:auto}
html body.cx-site.pm-site #explorador-hernia h2{font-size:clamp(27px,3.5vw,42px)!important;line-height:1.16!important;max-width:100%;text-wrap:balance;overflow-wrap:break-word}
.hp-explore-control{background:#fff;border:1px solid #d5e2eb;border-radius:22px;padding:clamp(12px,2vw,22px);box-shadow:0 5px 13px #1234540b,0 19px 32px -18px #12345430;margin:24px 0 10px;min-width:0}
.hp-explore-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}
html body.cx-site.pm-site .hp-explore-categories button{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid #c7d9e8;background:#e6f3f8;color:#123454;min-height:58px;border-radius:14px;padding:12px 16px;text-align:left;font:700 clamp(14px,1.5vw,17px)/1.3 inherit;font-family:inherit;font-weight:750;font-size:clamp(14px,1.5vw,17px);cursor:pointer;transition:background .2s,box-shadow .2s;min-width:0}
html body.cx-site.pm-site .hp-explore-categories button[aria-pressed=true]{background:#123454!important;color:white!important;box-shadow:inset 0 -3px #25D366,0 8px 18px #12345420!important;border-color:#123454}
.hp-category-count{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;font-size:12px;background:#fff;color:#123454}
html body.cx-site.pm-site #explorador-hernia .hp-explore-options{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;gap:9px!important}
html body.cx-site.pm-site #explorador-hernia .hp-explore-options[hidden]{display:none!important}
html body.cx-site.pm-site #explorador-hernia .hp-explore-options button{min-height:50px!important;padding:10px!important;white-space:normal!important;overflow-wrap:break-word;line-height:1.3!important;color:#123454;background:#f4f8fb;border:1px solid #d5e2eb;border-radius:12px!important}
html body.cx-site.pm-site #explorador-hernia .hp-explore-options button[aria-pressed=true]{background:#124672!important;color:white!important;box-shadow:inset 0 -3px #25D366!important}
.hp-explore-note{font-size:13px!important;line-height:1.5;color:#34465C!important;margin:14px 0 0!important}
html body.cx-site.pm-site #explorador-hernia .hp-region-panel{background:#fff!important;border:1px solid #d5e2eb!important;box-shadow:0 6px 13px #1234540e,0 19px 35px -14px #12345435!important;overflow:visible!important}
html body.cx-site.pm-site #explorador-hernia .hp-region-panel .hc-region-body{min-width:0;grid-template-columns:minmax(0,.9fr) minmax(0,1fr);gap:clamp(20px,3vw,40px)!important;padding:clamp(18px,3vw,32px)!important}
html body.cx-site.pm-site #explorador-hernia .hc-region-body>div{min-width:0}
html body.cx-site.pm-site #explorador-hernia .hc-region-body img{object-fit:contain!important;max-width:100%!important;width:100%!important;height:clamp(210px,27vw,340px)!important;border-radius:16px!important;background:#f4f8fb!important}
html body.cx-site.pm-site #explorador-hernia .hc-region-body h3{color:#123454!important;font-size:clamp(24px,3vw,34px)!important;line-height:1.2!important;overflow-wrap:break-word}
html body.cx-site.pm-site #explorador-hernia .hc-region-body p{color:#34465c!important;line-height:1.65!important}
html body.cx-site.pm-site #explorador-hernia .hc-link{white-space:normal!important;max-width:100%;line-height:1.35!important;text-align:center;background:#124672!important;color:white!important;border-radius:12px!important}
/* A wide feature with three independently readable cards below. */
html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;gap:20px!important}
html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-case{display:grid!important;grid-template-columns:minmax(0,.43fr) minmax(0,.57fr)!important;min-height:0!important;max-width:100%;gap:clamp(18px,3vw,38px)!important;padding:clamp(18px,3vw,32px)!important;align-items:center!important;background:radial-gradient(ellipse at 95% 0%,#e6f3f8,transparent 60%),#fff!important}
html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-case .hp-clinical-media{width:100%;max-width:100%;min-width:0;max-height:none!important}
html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-case .hp-clinical-media img{width:100%!important;height:auto!important;max-height:300px!important;object-fit:contain!important}
html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-stack{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important;align-items:stretch!important;width:100%;min-width:0}
html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-stack>a{display:flex!important;flex-direction:column;align-items:flex-start;min-width:0!important;min-height:0!important;height:auto!important;padding:clamp(18px,2.5vw,26px)!important;overflow:visible!important;gap:4px}
html body.cx-site.pm-site main .hp-portfolio-reflow :is(.ed-port-stack a,.ed-port-case)>*{min-width:0;max-width:100%}
html body.cx-site.pm-site main .hp-portfolio-reflow :is(.ed-port-stack h3,.ed-port-case h3){font-size:clamp(20px,2.2vw,29px)!important;line-height:1.22!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;text-wrap:balance;overflow:visible!important;color:#123454!important}
html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-stack h3{font-size:clamp(20px,1.85vw,25px)!important}
html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-stack p{margin-bottom:14px!important;line-height:1.6!important;color:#34465c!important}
html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-stack b{margin-top:auto!important;white-space:normal!important;padding-top:8px;line-height:1.4!important}
.hp-academic-index{display:grid;place-items:center;min-width:36px;height:36px;padding-inline:6px;background:#e6f3f8;color:#124672;font-weight:800;border-radius:10px;font-size:13px;margin-bottom:10px}
/* Menu groups: readable, touchable, scrollable. Keep original dialog controls. */
html body.cx-site.pm-site .hp-nav-groups{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
.hp-nav-group,.hp-nav-group-links{min-width:0}
html body.cx-site.pm-site .hp-nav-group-label{font-size:11px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.06em;color:#124672!important;margin:0 0 7px!important;padding:7px 8px;border-bottom:1px solid #d5e2eb}
html body.cx-site.pm-site .hp-nav-group-links{display:grid;gap:5px;grid-template-columns:minmax(0,1fr)}
html body.cx-site.pm-site .hp-mobile-content .hp-nav-group-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html body.cx-site.pm-site .hp-mobile-content .hp-nav-group-links a{min-height:50px!important;white-space:normal!important;word-break:normal;overflow-wrap:break-word;text-align:left}
html body.cx-site.pm-site .hp-mobile-dialog[open]{overflow-y:auto!important;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
html body.cx-site.pm-site .hp-mobile-dialog[open] .hp-mobile-head{padding-top:max(16px,env(safe-area-inset-top))}
html body.cx-site.pm-site .hp-mobile-dialog .hp-mobile-close{min-width:80px;min-height:44px}
html body.cx-site.pm-site .hp-nav-group-links a[aria-current=page]{background:#e6f3f8!important;border-left:3px solid #15803d!important;color:#123454!important}
@media(min-width:1251px){html body.cx-site.pm-site .nav__drop.hp-nav-groups{width:min(620px,calc(100vw - 40px))!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:calc(100dvh - 100px)!important;overflow-y:auto!important;padding:14px!important}html body.cx-site.pm-site .nav__drop.hp-nav-groups .hp-nav-group:last-child{grid-column:1/-1}html body.cx-site.pm-site .nav__drop.hp-nav-groups .hp-nav-group:last-child .hp-nav-group-links{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){html body.cx-site.pm-site #explorador-hernia .hp-explore-options{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-stack{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-stack>a:last-child{grid-column:1/-1}}
@media(max-width:600px){html body.cx-site.pm-site #explorador-hernia .hp-region-panel .hc-region-body{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}html body.cx-site.pm-site #explorador-hernia .hc-region-body img{height:230px!important}html body.cx-site.pm-site .hp-explore-categories button{padding:10px 8px;min-height:56px;font-size:13px;gap:4px}.hp-category-count{width:23px;height:23px;font-size:10px}html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-case,html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-stack{grid-template-columns:minmax(0,1fr)!important}html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-head{display:block!important}html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-case img{max-height:230px!important}html body.cx-site.pm-site main .hp-portfolio-reflow .ed-port-case>div{padding:0!important}html body.cx-site.pm-site .hp-mobile-content .hp-nav-group-links{grid-template-columns:minmax(0,1fr)}html body.cx-site.pm-site .hp-mobile-content .hp-nav-group-links a{min-height:46px!important}}
@media(prefers-reduced-motion:reduce){.hp-explore-control *,.hp-portfolio-reflow *{animation:none!important;transition:none!important;transform:none!important}}
/* Prevent the persistent contact pill from covering clinical and academic cards on common laptop widths. */
@media(min-width:721px) and (max-width:1550px){html body.cx-site.pm-site .wa-float{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;right:14px!important;border-radius:50%!important}html body.cx-site.pm-site .wa-float span{display:none!important}html body.cx-site.pm-site .wa-float svg{width:25px!important;height:25px!important}html body.cx-site.pm-site .pm-local:not([open]){max-width:120px;left:10px}.pm-local:not([open]) summary{font-size:11px;padding:10px 11px}}


/* 2026-12-02 – Corrección de menú y galería de reconstrucción avanzada */
html body.cx-site.pm-site .nav__drop.hp-nav-groups .hp-nav-group-links a{white-space:normal!important;line-height:1.35!important;align-items:flex-start!important;min-height:54px!important}
html body.cx-site.pm-site .nav__drop.hp-nav-groups .hp-nav-group-links a svg{margin-left:auto!important;margin-top:2px!important;flex:0 0 auto}
@media(min-width:1251px){
  html body.cx-site.pm-site .nav__drop.hp-nav-groups{width:min(760px,calc(100vw - 40px))!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
  html body.cx-site.pm-site .nav__drop.hp-nav-groups .hp-nav-group:last-child{grid-column:1/-1!important}
  html body.cx-site.pm-site .nav__drop.hp-nav-groups .hp-nav-group:last-child .hp-nav-group-links{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  html body.cx-site.pm-site .nav__drop.hp-nav-groups .hp-nav-group:last-child .hp-nav-group-links a:last-child{grid-column:1/-1!important}
}
.hp-recon-head{max-width:920px;margin:0 0 26px}
.hp-recon-gallery{display:grid;grid-template-columns:1.24fr .76fr;gap:20px;align-items:start}
.hp-recon-card{background:#fff;border:1px solid #dbe5ee;border-radius:24px;overflow:hidden;box-shadow:0 18px 48px rgba(18,52,84,.10),0 3px 12px rgba(18,52,84,.06)}
.hp-recon-card figure{margin:0;display:block}
.hp-recon-card img{display:block;width:100%;height:auto;background:#f7fafc}
.hp-recon-card figcaption{padding:16px 18px 18px;color:#36506a;font-size:14px;line-height:1.55}
.hp-recon-card figcaption strong{display:block;color:#123454;font-size:14px;margin-bottom:4px}
.hp-recon-card--feature{grid-row:span 2}
.hp-recon-card--feature img{aspect-ratio:1212/806;object-fit:cover}
.hp-recon-gallery .hp-recon-card:not(.hp-recon-card--feature) img{max-height:420px;object-fit:cover}
@media(max-width:980px){.hp-recon-gallery{grid-template-columns:1fr 1fr}.hp-recon-card--feature{grid-column:1/-1;grid-row:auto}}
@media(max-width:640px){.hp-recon-gallery{grid-template-columns:1fr;gap:14px}.hp-recon-card{border-radius:18px}.hp-recon-card figcaption{padding:14px 14px 16px;font-size:13px}}
