/* Scoped additions: preserves approved HerniaPuebla identity. */
:root{--hc-navy:#123454;--hc-blue:#124672;--hc-accent:#25d366;--hc-ink:#1E293B;--hc-soft:#f4f8fb;--hc-border:#E2E8F0;--hc-green:#15803D}
.hc-section{padding:clamp(36px,6vw,76px) 0;background:var(--hc-soft);color:var(--hc-ink);scroll-margin-top:100px;overflow:clip}.hc-section.hc-comparison{background:#fff}.hc-wrap{width:min(1120px,calc(100% - 40px));margin:auto;min-width:0}.hc-section h2,.hc-robot-gallery h3{font-family:inherit!important;font-size:clamp(26px,3.2vw,42px)!important;line-height:1.15!important;letter-spacing:-.035em;color:var(--hc-navy)!important;margin:8px 0 14px!important}.hc-kicker{color:var(--hc-blue)!important;font-size:12px!important;letter-spacing:.13em;font-weight:750;margin:0 0 12px}.hc-intro{max-width:76ch;color:#475569!important;line-height:1.65;margin-bottom:24px}.hc-anatomy-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center}.hc-image{border-radius:20px;border:1px solid var(--hc-border);padding:20px;background:#fff;display:flex;justify-content:center;min-width:0}.hc-image-inner{position:relative;display:block;width:fit-content;max-width:100%;line-height:0}.hc-image-inner img{width:auto;height:auto;max-width:100%;max-height:490px;display:block;border-radius:10px}.hc-pin{position:absolute;top:var(--y);left:var(--x);transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;background:var(--hc-navy);color:#fff;font:700 15px/1 system-ui;box-shadow:0 2px 8px #12345466;cursor:pointer;z-index:2;transition:background .2s,box-shadow .2s,scale .2s}.hc-pin[aria-pressed=true]{background:#166534;box-shadow:0 0 0 5px #25d36655,0 3px 14px #12345444}.hc-pin:hover{scale:1.08}.hc-point{border:1px solid var(--hc-border);border-radius:14px;background:#fff;margin:0 0 10px;overflow:hidden;color:var(--hc-ink)!important}.hc-point summary{list-style:none;display:flex;align-items:center;gap:10px;padding:15px 18px;cursor:pointer;color:var(--hc-navy)!important;font-weight:700;line-height:1.35;min-height:46px}.hc-point summary::-webkit-details-marker{display:none}.hc-point summary::after{content:'+';margin-left:auto;font-size:20px;color:var(--hc-blue);flex:none}.hc-point[open] summary::after{content:'−'}.hc-point[open] summary{background:#edf4fa}.hc-point summary span{color:#166534;font-size:13px}.hc-point p{margin:0;padding:16px 18px;line-height:1.65;color:#334155!important}.hc-point[open]>:not(summary){animation:hc-open .25s ease-out}.hc-link{display:inline-block;color:var(--hc-blue)!important;font-weight:700;padding:10px 0;overflow-wrap:anywhere}.hc-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:#E9EFF5;border-radius:16px;margin:20px 0}.hc-tabs button{padding:11px 16px;border:1px solid #CBD5E1;border-radius:10px;background:white;color:var(--hc-navy);font:600 14px/1.35 inherit;cursor:pointer;min-height:44px;transition:background .2s,border-color .2s,transform .2s}.hc-tabs button[aria-pressed=true]{color:white;background:var(--hc-navy);border-color:var(--hc-navy);box-shadow:inset 0 -3px 0 var(--hc-accent)}.hc-tabs button:hover:not([aria-pressed=true]){background:#DFEBF6;border-color:var(--hc-blue)}.hc-compare-body{display:grid;grid-template-columns:1fr 1fr;padding:20px;gap:20px}.hc-compare-body>div{background:var(--hc-soft);border-radius:12px;padding:16px}.hc-compare-body small{color:var(--hc-blue);font-weight:700;letter-spacing:.07em}.hc-compare-body p{padding:8px 0 0}.hc-source{font-size:13px;color:#475569!important}.hc-source a{color:var(--hc-blue)!important;text-decoration:underline}.hc-region-body{display:grid;grid-template-columns:minmax(0,250px) 1fr;gap:24px;align-items:center;padding:20px}.hc-region-body img{width:100%;height:210px;object-fit:contain;border-radius:12px;background:var(--hc-soft)}.hc-region-body h3{color:var(--hc-navy)!important;font-size:24px!important;margin:0}.hc-region-body p{padding:8px 0}.hc-robot-gallery{padding:26px;background:#fff;color:var(--hc-ink);border:1px solid var(--hc-border);border-radius:20px;margin:24px 0;scroll-margin-top:100px}.hc-robot-gallery p{color:#334155!important}.hc-robot-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;margin-top:16px}.hc-robot-grid figure{min-width:0;margin:0;background:var(--hc-soft);border-radius:14px;overflow:hidden;border:1px solid var(--hc-border)}.hc-robot-grid a{display:block;overflow:hidden}.hc-robot-grid img{display:block;width:100%;height:clamp(230px,32vw,420px);object-fit:contain;background:#edf2f7;transition:transform .3s ease}.hc-robot-grid a:hover img{transform:scale(1.025)}.hc-robot-grid figcaption{font-size:14px;line-height:1.5;padding:13px;color:var(--hc-ink)}.hc-dialog{border:0;border-radius:18px;padding:20px;max-width:min(90vw,940px);max-height:90vh;background:white;color:var(--hc-navy);overflow:auto}.hc-dialog::backdrop{background:#102b43d9}.hc-dialog img{display:block;max-width:100%;max-height:72vh;width:auto;height:auto;margin:auto}.hc-dialog button{display:block;margin:0 0 12px auto;padding:10px 15px;color:white;background:var(--hc-navy);border:0;border-radius:8px;cursor:pointer}.hc-valuation{background:#15803D!important;color:white!important;border-color:#15803D!important;transition:background .22s,transform .22s,box-shadow .22s!important}.hc-valuation:hover{background:#166534!important;color:white!important;transform:translateY(-2px);box-shadow:0 6px 16px #0f513333}.hc-valuation:active{transform:translateY(0)}.hc-valuation svg{color:white!important}.hc-section :is(button,a,summary):focus-visible,.hc-robot-gallery a:focus-visible{outline:3px solid #124672;outline-offset:3px}.cx-guide a.hc-current{box-shadow:inset 0 -2px 0 #25d366;color:var(--hc-blue)!important}.hc-section,.hc-robot-gallery{font-family:inherit}.hc-section .hc-wrap>*{min-width:0}.hc-entrance{animation:hc-enter .42s cubic-bezier(.2,.65,.3,1) both}.hc-section [hidden]{display:none!important}@keyframes hc-enter{from{opacity:.65;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes hc-open{from{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:700px){.hc-wrap{width:calc(100% - 28px)}.hc-anatomy-grid,.hc-compare-body,.hc-region-body,.hc-robot-grid{grid-template-columns:1fr;gap:12px}.hc-image{padding:12px}.hc-image-inner img{max-height:400px}.hc-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:9px}.hc-tabs button{padding:10px 6px;white-space:normal;overflow-wrap:normal}.hc-compare-body{padding:12px}.hc-robot-gallery{padding:14px}.hc-robot-grid img{height:auto;max-height:410px}.hc-region-body img{height:180px}.hc-pin{width:36px;height:36px}.hc-point summary{padding:13px}.hc-point p{padding:12px 13px}.hc-compare-body p,.hc-region-body p{padding:8px 0}.hc-section{scroll-margin-top:90px}.hc-section .hc-link{max-width:100%}}
@media(prefers-reduced-motion:reduce){.hc-section *, .hc-robot-gallery *, .hc-valuation,.hc-entrance{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.hc-tabs button{font-family:inherit;font-size:14px;font-weight:600;line-height:1.35}.hc-dual{margin-top:28px;padding:clamp(16px,3vw,26px);border-radius:18px;background:var(--hc-soft);border:1px solid var(--hc-border);color:var(--hc-ink)}.hc-dual h3{font-size:clamp(20px,2.2vw,26px)!important;color:var(--hc-navy)!important;margin:0 0 20px!important}.hc-dual-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hc-dual-selects label{font-size:13px;font-weight:700;color:#334155}.hc-dual-selects select{font-family:inherit;color:#123454;background:white;border:1px solid #94A3B8;border-radius:10px;width:100%;min-height:44px;display:block;padding:10px;margin-top:6px}.hc-dual-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#cbd5e1;border:1px solid #cbd5e1;border-radius:12px;overflow:hidden;margin-top:16px}.hc-dual-results>*{background:white;min-width:0;padding:14px;color:#334155!important;overflow-wrap:break-word;font-size:14px;line-height:1.5}.hc-dual-results strong{color:#123454!important}.hc-dual-results .hc-criterion{grid-column:1/-1;font-size:12px;font-weight:700;letter-spacing:.06em;background:#e9eff5;color:#124672!important;padding:9px 14px}.hc-dual-results .hc-dual-title{font-size:16px;font-weight:750;color:#123454!important}.hc-dual select:focus-visible{outline:3px solid #124672;outline-offset:2px}.hc-controls-in-view .wa-float{transition:opacity .18s ease}@media(max-width:700px){.hc-controls-in-view .wa-float{opacity:0!important;visibility:hidden!important;pointer-events:none!important}.hc-dual-results>*{padding:10px;font-size:13px}.hc-dual-selects{gap:8px}.hc-dual-selects select{padding:8px 4px;font-size:13px}.hc-dual{padding:12px}.hc-dual-results .hc-dual-title{font-size:14px}.hc-dual-results .hc-criterion{padding:8px 10px}}

/* Validación de contraste, accesibilidad y movimiento. */
html body.cx-site :is(.wa-float,.btn--wa,.hc-valuation),html body.cx-site .hp-pay-body .btn[href*="wa.me"]{background:#15803D!important;border-color:#15803D!important;color:#fff!important}
html body.cx-site :is(.wa-float,.btn--wa,.hc-valuation):hover,html body.cx-site .hp-pay-body .btn[href*="wa.me"]:hover{background:#166534!important;border-color:#166534!important;color:#fff!important}
html body.cx-site :is(.wa-float,.btn--wa,.hc-valuation) :is(span,svg){color:#fff!important}
.hc-pin[aria-pressed=true]{background:#166534;color:#fff}
.hc-pin:focus-visible{outline:3px solid #fff!important;box-shadow:0 0 0 6px #123454!important}
.hc-section :is(button,summary,select):focus-visible{scroll-margin-block:100px}
.hpm-map summary:focus-visible{outline:3px solid #124672;outline-offset:3px}
.hpm-map iframe{display:block;width:100%;height:320px;border:0;border-radius:12px;background:#f4f8fb}
@media(max-width:700px){.hpm-map iframe{height:270px}.hc-pin{width:38px;height:38px}.hc-pin::before{content:"";position:absolute;inset:-3px;border-radius:50%}}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Small-phone layout: explicit single-column process and wrapping academic headings. */
@media(max-width:420px){html body.cx-site .e-process{grid-template-columns:minmax(0,1fr)!important;min-width:0!important}html body.cx-site .e-process>div{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere}html body.cx-site .prose ul.ticks{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}html body.cx-site .prose ul.ticks li{max-width:100%!important;min-width:0!important;overflow-wrap:anywhere;white-space:normal!important}html body.cx-site .ac-group summary>div{min-width:0!important;max-width:100%!important;flex:1 1 0!important;overflow-wrap:anywhere}html body.cx-site .ac-group summary :is(h2,small,.ac-label){white-space:normal!important;overflow-wrap:anywhere;max-width:100%!important}html body.cx-site .ac-group summary{min-width:0!important;max-width:100%!important;gap:8px!important}}
@media(max-width:420px){html body.cx-site .ac-nav{grid-template-columns:minmax(0,1fr)!important;min-width:0!important}html body.cx-site .ac-nav a,html body.cx-site .ac-nav strong,html body.cx-site .ac-nav a>span{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere;white-space:normal!important}}

.hc-point summary span{color:#166534}.hc-pin[aria-pressed=true]{background:#166534;color:white}
