.hahg-card{max-width:560px;margin:0 auto 1.5rem;padding:1.25rem;border:1px solid var(--line,#D9D3F2);border-radius:12px;background:#fff}
.hahg-card label{display:block;margin:.5rem 0;font-weight:600;font-size:.9rem}
.hahg-card input{display:block;width:100%;padding:.6rem;margin-top:.25rem;border:1px solid var(--line,#D9D3F2);border-radius:8px;font:inherit}
.hahg-row{display:flex;gap:.75rem}.hahg-row label{flex:1}
.hahg-card button{width:100%;margin-top:.75rem;padding:.8rem;border:0;border-radius:8px;background:var(--brand-strong,var(--ink,#17184F));color:#fff;font-weight:700;cursor:pointer;min-height:48px}
.hahg-card output{display:block;margin-top:1rem}
.hahg-card input{min-height:44px;box-sizing:border-box}
.hahg-card summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.hahg-table{width:100%;border-collapse:collapse}.hahg-table td,.hahg-table th{padding:.35rem 0;border-bottom:1px solid var(--blush,#FEF2F2);text-align:left}.hahg-table td+td,.hahg-table th+th{text-align:right}
.hahg-total{font-size:1.6rem;font-weight:800;margin:.75rem 0 0}.hahg-total small{display:block;font-size:.8rem;font-weight:400;color:var(--muted,#4A4B78)}
.hahg-badge{display:inline-block;padding:.1rem .5rem;border-radius:99px;background:#e0f2fe;color:#075985;font-size:.8rem}
.hahg-timeline{list-style:none;padding:0;border-left:2px solid var(--ink,#17184F);margin-left:.4rem}.hahg-timeline li{position:relative;padding:0 0 .9rem 1rem}.hahg-timeline li::before{content:"";position:absolute;left:-7px;top:.35rem;width:12px;height:12px;border-radius:50%;background:var(--ink,#17184F)}
.hahg-list{list-style:none;padding:0}.hahg-list li{padding:.5rem 0;border-bottom:1px solid var(--blush,#FEF2F2)}
.hahg-pay{float:right;font-weight:700}
.hahg-address{white-space:pre-wrap;background:var(--blush,#FEF2F2);padding:.75rem;border-radius:8px}
@media (max-width:480px){.hahg-row{flex-direction:column;gap:0}}
.hahg-title{font-size:1.25rem;margin:0 0 .5rem}
/* Movimiento: esqueleto, filas en cascada, línea de tiempo viva */
.hahg-skel{display:block;height:14px;margin:10px 0;border-radius:8px;background:linear-gradient(90deg,#E7DFFE 25%,#FEF2F2 50%,#E7DFFE 75%);background-size:200% 100%;animation:hahg-sh 1.1s infinite}
.hahg-skel:nth-child(odd){width:85%}.hahg-skel:last-child{height:28px;width:60%}
@keyframes hahg-sh{to{background-position:-200% 0}}
.hahg-in{animation:hahg-up .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0)*60ms)}
@keyframes hahg-up{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.hahg-card{position:relative;border-radius:22px!important;transition:box-shadow .3s}
.hahg-card:focus-within{box-shadow:0 0 0 4px rgba(150,163,232,.45),0 18px 40px rgba(45,46,131,.16)}
.hahg-card input:focus{border-color:var(--brand-strong,#2D2E83)!important;outline:none;box-shadow:0 0 0 3px rgba(45,46,131,.25)}
.hahg-total{color:var(--brand-deep,#23246B)}
.hahg-timeline{border-left:2px solid var(--line,#D9D3F2)!important}
.hahg-timeline li::before{background:var(--periwinkle,#96A3E8)!important}
.hahg-timeline li.is-now::before{background:var(--accent,#D60B52)!important;box-shadow:0 0 0 0 rgba(45,46,131,.5);animation:hahg-pulse 1.8s infinite}
@keyframes hahg-pulse{70%{box-shadow:0 0 0 10px rgba(45,46,131,0)}100%{box-shadow:0 0 0 0 rgba(45,46,131,0)}}
.hahg-badge{background:var(--lavender,#E7DFFE)!important;color:var(--ink,#17184F)!important}
@media (prefers-reduced-motion:reduce){.hahg-skel,.hahg-in,.hahg-timeline li.is-now::before{animation:none}}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Primer uso: presets de peso, siguiente paso, pasos, estados vacíos */
.hahg-presets{border:0;margin:.25rem 0 .5rem;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.hahg-presets legend{padding:0;margin-bottom:6px;font-size:.85rem;font-weight:600}
.hahg-card .hahg-presets button{width:auto;min-height:44px;margin:0;padding:0 14px;border:1px solid var(--line,#D9D3F2);border-radius:999px;background:#fff;color:var(--ink,#17184F);font:600 14px var(--font-body,inherit)}
.hahg-card .hahg-presets button:hover{background:var(--lavender,#E7DFFE)}
.hahg-card .hahg-presets button[aria-pressed=true]{background:var(--ink,#17184F);border-color:var(--ink,#17184F);color:#fff}
.hahg-card button.hahg-link{width:auto;display:inline-flex;align-items:center;min-height:44px;margin:4px 0 0;padding:0;border:0;background:none;color:var(--brand-strong,#2D2E83);font:600 14px var(--font-body,inherit);text-decoration:underline;text-underline-offset:3px}
.hahg-next{margin-top:14px;display:grid;gap:10px}
.hahg-next[hidden]{display:none}
.hahg-next label{margin:0}
.hahg-card .hahg-cta{width:100%;margin:0}
.hahg-alt{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-weight:600;color:var(--brand-strong,#2D2E83);text-decoration:underline;text-underline-offset:3px}
.hahg-help{margin:.35rem 0 0;font-size:.875rem;color:var(--muted,#4A4B78)}
.hahg-help a,.hahg-empty a{text-decoration:underline}
.hahg-err{margin:0;color:#9B1C31;font-weight:600}
.hahg-done{padding:14px 16px;border-radius:14px;background:var(--lavender,#E7DFFE);color:var(--ink,#17184F)}
.hahg-done b{display:block}
.hahg-steps{counter-reset:s;list-style:none;margin:1rem 0 0;padding:0;display:grid;gap:12px}
.hahg-steps li{counter-increment:s;position:relative;padding-left:40px;min-height:28px}
.hahg-steps li::before{content:counter(s);position:absolute;left:0;top:0;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--lavender,#E7DFFE);color:var(--ink,#17184F);font-weight:600;font-size:14px}
.hahg-steps li.is-done::before{content:"";background:var(--brand-strong,#2D2E83) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center no-repeat}
.hahg-checks{margin:.75rem 0 1rem;padding-left:1.2em}
.hahg-checks li{margin:.25rem 0}
.hahg-empty{padding:4px 0;color:var(--muted,#4A4B78)}
.hahg-empty b{color:var(--ink,#17184F)}
.hahg-empty p{margin:0 0 .5rem}
.hahg-account{margin-bottom:24px}
.hahg-account .hahg-cta{width:auto}
/* Resultado: pesos primero */
.hahg-total{margin:0 0 .5rem;font-size:2rem;line-height:1.1}
.hahg-total small{margin-bottom:4px}
.hahg-table td+td{font-variant-numeric:tabular-nums}
.hahg-money{display:flex;gap:6px;margin-top:.25rem}
.hahg-money input{margin-top:0;min-width:0}
.hahg-money select{width:84px;flex:none;padding:0 8px}
.hahg-hp{position:absolute!important;left:-9999px;width:1px;height:1px}
.hahg-card label.hahg-consent{display:flex;gap:10px;align-items:flex-start;font-weight:400}
.hahg-card label.hahg-consent input{width:24px;height:24px;min-height:0;margin:0;flex:none}
.hahg-consent a{text-decoration:underline}
.hahg-help .hahg-link{min-height:44px;margin:0}
#hahg-quote{scroll-margin-top:80px}
/* Cotizador: formulario a la izquierda, resultado a la derecha */
.hahg-idle{text-align:center;color:var(--muted,#4A4B78)}
.hahg-idle p{max-width:26ch;margin:12px auto 0}
.hahg-q__out:has(output:not(:empty)) .hahg-idle{display:none}
@media (max-width:859px){.hahg-idle{display:none}}
@media (min-width:860px){
  .hahg-q{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:0!important;max-width:none;overflow:hidden}
  .hahg-q__form,.hahg-q__out{padding:32px}
  .hahg-q__out{border-left:1px solid var(--line,#E3DEF5);display:flex;flex-direction:column;justify-content:center}
  .hahg-q__out output{margin-top:0}
}
/* Asistente del casillero */
.hahg-wiz{padding:clamp(20px,4vw,36px)!important}
.hahg-wiz fieldset{border:0;margin:0;padding:0;min-width:0}
.hahg-wiz fieldset:not([hidden]){animation:hahg-up .25s cubic-bezier(.2,.7,.2,1) both}
.hahg-wiz legend{padding:0;margin-bottom:12px;font:700 1.125rem/1.25 var(--font-head,inherit)}
.hahg-wiz textarea,.hahg-wiz select{display:block;width:100%;margin-top:.25rem;padding:.6rem;font:inherit;box-sizing:border-box;min-height:44px}
.hahg-stepper{display:grid;grid-template-columns:repeat(3,1fr);margin:0 0 28px;padding:0;list-style:none;text-align:center;font-size:.875rem;color:var(--muted,#4A4B78)}
.hahg-stepper li{position:relative;padding-bottom:22px}
.hahg-stepper li::before{content:"";position:absolute;left:0;right:0;bottom:6px;height:2px;background:var(--line,#E3DEF5)}
.hahg-stepper li::after{content:"";position:absolute;left:50%;bottom:0;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:#C9C5E0}
.hahg-stepper li[aria-current]{color:var(--ink,#17184F);font-weight:600}
.hahg-stepper li[aria-current]::after{background:var(--accent,#D60B52)}
.hahg-stepper li.is-done::after,.hahg-stepper li.is-done::before{background:var(--brand-strong,#2D2E83)}
.hahg-types{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hahg-card .hahg-types label{position:relative;margin:0;padding:16px;border:1px solid #8C89AD;border-radius:14px;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
.hahg-types input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0}
.hahg-types b,.hahg-types small{display:block}
.hahg-types small{font-weight:400;color:var(--muted,#4A4B78)}
.hahg-types label:has(:checked){border-color:var(--brand-strong,#2D2E83);box-shadow:inset 0 0 0 1px var(--brand-strong,#2D2E83);background:var(--mist,#F6F4FE)}
.hahg-types label:has(:focus-visible){outline:2px solid var(--brand-strong,#2D2E83);outline-offset:2px}
@media (max-width:480px){.hahg-types{grid-template-columns:1fr}}
.hahg-wiz__nav{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:20px}
.hahg-wiz__nav [hidden]{display:none!important}
.hahg-card .hahg-wiz__nav button:not(.hahg-link){width:auto;margin:0;padding-inline:28px}
.hahg-wiz__nav [data-back]{margin:0 auto 0 0!important}
.hahg-wiz>.hahg-help{margin-top:16px;text-align:center}
.hahg-consent{display:flex!important;gap:8px;align-items:flex-start;font-weight:400!important}
.hahg-consent input{width:20px!important;min-height:20px!important;height:20px;margin:2px 0 0!important;flex:none}
.hahg-welcome{width:min(440px,calc(100vw - 32px));padding:28px;border:0;border-radius:var(--r-l,24px);text-align:center;color:var(--ink,#17184F);box-shadow:var(--shadow)}
.hahg-welcome[open]{animation:hahg-up .25s cubic-bezier(.2,.7,.2,1) both}
.hahg-welcome::backdrop{background:rgba(23,24,79,.6)}
.hahg-welcome h2{font-size:1.375rem;margin:10px 0 6px}
.hahg-welcome .hahg-address{text-align:left;font:inherit;background:var(--mist,#F6F4FE)}
.hahg-welcome .button{display:flex;justify-content:center;margin-top:12px}
.hahg-copy{min-height:44px;border:0;background:none;color:var(--brand-strong,#2D2E83);font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media (prefers-reduced-motion:reduce){.hahg-wiz fieldset:not([hidden]),.hahg-welcome[open]{animation:none}}
.hahg-card .hahg-table,.hahg-card .hahg-table td{border:0;background:none!important}
.hahg-card .hahg-table td{padding:.45rem 0;border-bottom:1px solid var(--line,#E3DEF5)}
.hahg-courier{padding:10px 14px;border-radius:12px;background:var(--mist,#F6F4FE)}
.hahg-courier a{text-decoration:underline}
