/* 41 · HOSTING DETALLE (/hosting/) · prefijo .hsd- */
.hsd { padding-block: var(--space-l) var(--space-xl); }
.hsd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.hsd-rail { display: none; }
.hsd-main { min-width: 0; display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
@media (min-width: 900px) {
  .hsd-layout { grid-template-columns: minmax(0, 1fr) clamp(200px, 24%, 340px); }
  .hsd-rail { display: block; align-self: stretch; }
}

/* cabecera */
.hsd-head { display: grid; gap: clamp(.9rem, 1.6vw, 1.4rem); position: relative; }
.hsd-title { font-size: clamp(2.6rem, 1.3rem + 4.8vw, 6.4rem); max-width: 10ch; text-wrap: balance; }
.hsd-lead { max-width: 44ch; }
.hsd-fig-inline { display: none; }
@media (max-width: 899px) { .hsd-fig-inline { display: block; position: absolute; right: 0; top: 0; width: 96px; height: 96px; } .hsd-fig-inline svg { width: 100%; height: 100%; } }

.hsd-h3 { margin: 0; }
.hsd-h3.mono { color: var(--paper-2); font-weight: 500; display: inline-flex; align-items: center; gap: .7em; }
.hsd-h3.mono::before { content: ''; width: .6em; height: .6em; background: var(--accent); box-shadow: .55em .55em 0 -.1em var(--cobalt); margin-right: .4em; }
.hsd-h3--big { font-size: clamp(2rem, 1.2rem + 3vw, 4rem); margin-bottom: clamp(1.4rem, 3vw, 2.4rem); max-width: 14ch; text-wrap: balance; }
.hsd-block { min-width: 0; }

/* ---------- tabla ---------- */
.hsd-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.hsd-switch { display: inline-flex; align-items: center; gap: .8em; min-height: 44px; font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .05em; color: var(--paper-2); transition: color .4s; }
.hsd-switch:hover { color: var(--paper); }
.hsd-switch__box { position: relative; width: 38px; height: 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--ink-2); transition: background .5s var(--ease-out), box-shadow .4s; flex: none; }
.hsd-switch__box i { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; background: var(--paper); border-radius: 50%; transition: transform .6s var(--ease-out), background .4s; }
.hsd-switch[aria-pressed="true"] .hsd-switch__box { background: var(--accent); box-shadow: none; }
.hsd-switch[aria-pressed="true"] .hsd-switch__box i { transform: translateX(16px); background: var(--ink); }
.hsd-switch[aria-pressed="true"] { color: var(--paper); }

.hsd-tablewrap { border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--line); background: rgba(21, 21, 26, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.hsd-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 0; table-layout: fixed; }
.hsd-table th, .hsd-table td { padding: clamp(.85rem, 1.5vw, 1.25rem) clamp(.6rem, 1.4vw, 1.2rem); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); transition: background .4s var(--ease-out); }
.hsd-table tbody th { font-weight: 450; color: var(--paper); font-size: var(--step-0); }
.hsd-table thead td, .hsd-table thead th { border-bottom: 1px solid var(--line-strong); }
.hsd-table tr:last-child > * { border-bottom: 0; }
.hsd-table tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.hsd-table tbody tr:hover > * { background: rgba(241, 238, 230, .035); }
.hsd-table thead .hsd-corner { width: 34%; }
.hsd-plan { position: relative; padding-top: 1.4rem !important; }
.hsd-plan::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--plan); transform-origin: left; transform: scaleX(.18); transition: transform .8s var(--ease-out); }
.hsd-plan.is-col::before, .hsd-plan--feat::before { transform: scaleX(1); }
.hsd-plan__tag { display: block; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.hsd-plan__name { display: block; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.6rem); line-height: .95; letter-spacing: -.04em; }
.hsd-plan--feat .hsd-plan__tag { color: var(--accent); }
.hsd-table td.is-col, .hsd-table th.is-col { background: rgba(241, 238, 230, .05); }
.hsd-table td[data-col="2"] { background: rgba(255, 79, 31, .045); }
.hsd-table td[data-col="2"].is-col { background: rgba(255, 79, 31, .12); }

.hsd-price { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(1.15rem, .9rem + 1.1vw, 1.9rem); font-variant-numeric: tabular-nums; }
.hsd-yes { display: inline-block; width: 20px; height: 15px; background: var(--lime); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6' shape-rendering='crispEdges'%3E%3Crect x='0' y='3' width='1.5' height='1.5'/%3E%3Crect x='1' y='4' width='1.5' height='1.5'/%3E%3Crect x='2' y='3.5' width='1.5' height='1.5'/%3E%3Crect x='3' y='2.5' width='1.5' height='1.5'/%3E%3Crect x='4' y='1.5' width='1.5' height='1.5'/%3E%3Crect x='5' y='.5' width='1.5' height='1.5'/%3E%3Crect x='6' y='0' width='1.5' height='1.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6' shape-rendering='crispEdges'%3E%3Crect x='0' y='3' width='1.5' height='1.5'/%3E%3Crect x='1' y='4' width='1.5' height='1.5'/%3E%3Crect x='2' y='3.5' width='1.5' height='1.5'/%3E%3Crect x='3' y='2.5' width='1.5' height='1.5'/%3E%3Crect x='4' y='1.5' width='1.5' height='1.5'/%3E%3Crect x='5' y='.5' width='1.5' height='1.5'/%3E%3Crect x='6' y='0' width='1.5' height='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.hsd-meter { display: inline-flex; gap: 4px; margin-right: .8em; vertical-align: middle; }
.hsd-meter i { width: 9px; height: 9px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.hsd-meter i.on { background: var(--accent); box-shadow: none; }
td[data-col="3"] .hsd-meter i.on { background: var(--cobalt); }
td[data-col="1"] .hsd-meter i.on { background: var(--paper); }
.hsd-lvl, .hsd-for { font-size: var(--step--1); color: var(--paper-2); }
.hsd-short { display: none; }
.hsd-corner { padding: 0 !important; }
.hsd-buy { display: inline-flex; align-items: center; gap: .5em; padding: .75em 1.1em; min-height: 44px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; transition: background .4s var(--ease-out), color .4s, box-shadow .4s, transform .5s var(--ease-out); }
.hsd-buy:hover { background: var(--paper); color: var(--ink); box-shadow: none; transform: translateY(-2px); }
.hsd-buy--feat { background: var(--accent); color: var(--ink); box-shadow: none; }
.hsd-buy--feat:hover { background: var(--paper); }
.hsd-fine { margin-top: .9rem; color: var(--muted); font-size: var(--step--1); }

/* solo diferencias */
.hsd-table.is-diff [data-same] { display: none; }

/* ---------- incluido siempre ---------- */
.hsd-inc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.hsd-inc__item { position: relative; display: grid; gap: .7rem; align-content: start; padding: clamp(1.1rem, 2vw, 1.7rem); border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--line); background: rgba(21, 21, 26, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow: hidden; isolation: isolate; transition: transform .7s var(--ease-out), box-shadow .5s var(--ease-out); }
.hsd-inc__item::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(140deg, color-mix(in srgb, var(--tone) 20%, transparent), transparent 65%); opacity: 0; transition: opacity .6s var(--ease-out); }
.hsd-inc__item:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--tone); }
.hsd-inc__item:hover::before { opacity: 1; }
.hsd-ico { width: 56px; height: 48px; display: block; margin-bottom: .6rem; }
.hsd-ico svg { width: 100%; height: 100%; overflow: visible; }
.hsd-ico .i-a { fill: var(--paper); } .hsd-ico .i-b { fill: var(--tone); } .hsd-ico .i-c { fill: var(--ink); }
.hsd-inc__item:hover .hsd-ico svg { animation: hsd-hop .6s steps(4); }
@keyframes hsd-hop { 30% { transform: translateY(-5px); } 60% { transform: translateY(2px); } }
.hsd-inc__t { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -.03em; line-height: 1; }
.hsd-inc p { color: var(--paper-2); font-size: var(--step-0); max-width: 34ch; }

/* ---------- estado ---------- */
.hsd-status { padding: clamp(1.2rem, 2.4vw, 2rem); border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--line-strong); background: rgba(21, 21, 26, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); display: grid; gap: 1.2rem; }
.hsd-status__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hsd-status__now { display: inline-flex; align-items: center; gap: .9em; margin: 0; }
.hsd-dot { position: relative; width: .7rem; height: .7rem; background: var(--mint); flex: none; }
.hsd-dot::after { content: ''; position: absolute; inset: 0; background: var(--mint); animation: hsd-ping 2.4s steps(6) infinite; }
@keyframes hsd-ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }
.hsd-status__lbl { color: var(--paper); }
.hsd-status__up { display: inline-flex; align-items: baseline; gap: .8em; margin: 0; }
.hsd-status__big { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); color: var(--lime); line-height: 1; }
.hsd-status__small { color: var(--muted); }
.hsd-bars { display: flex; gap: clamp(2px, .35vw, 4px); height: clamp(56px, 8vw, 84px); align-items: stretch; }
.hsd-bars i { flex: 1 1 0; min-width: 0; background: var(--mint); transform-origin: bottom; transform: scaleY(.06); opacity: .25; transition: transform .6s var(--ease-out) calc(var(--i) * 14ms), opacity .6s var(--ease-out) calc(var(--i) * 14ms), background .2s; }
.hsd-bars.is-in i { transform: none; opacity: .92; }
.hsd-bars.is-in i:last-child { animation: hsd-blink 1.6s steps(1) 1.8s infinite; }
@keyframes hsd-blink { 50% { opacity: .35; } }
.hsd-bars i:hover { background: var(--paper); opacity: 1; }
.hsd-status__axis { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .68rem; }
.hsd-status__hover { color: var(--paper); }
.hsd-status__note { color: var(--muted); font-size: var(--step--1); margin: 0; }

/* ---------- migración ---------- */
.hsd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); counter-reset: s; }
.hsd-step { position: relative; display: grid; gap: .7rem; align-content: start; padding: clamp(1.1rem, 2vw, 1.6rem); border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--line); background: rgba(21, 21, 26, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: box-shadow .5s var(--ease-out), transform .7s var(--ease-out); }
.hsd-step:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--tone); }
.hsd-step__n { font-size: .8rem; color: var(--tone); letter-spacing: .06em; }
.hsd-diag { display: block; aspect-ratio: 28 / 16; border-radius: 12px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); padding: 10px; }
.hsd-diag svg { width: 100%; height: 100%; }
.d-box { fill: var(--ink-3); } .d-bar { fill: var(--tone); } .d-line { fill: var(--muted); }
.d-dot { fill: var(--tone); animation: hsd-dot 1.6s steps(1) infinite; animation-delay: calc(var(--i) * .2s); opacity: .2; }
@keyframes hsd-dot { 0%, 100% { opacity: .2; } 25% { opacity: 1; } }
.d-q { fill: var(--tone); animation: hsd-blink 1.4s steps(1) infinite; } .d-pin { fill: var(--paper); }
.d-arrow { fill: var(--tone); } .d-cut { fill: var(--accent); animation: hsd-blink 1s steps(1) infinite; }
.d-ok { fill: var(--mint); }
.hsd-step__t { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -.025em; line-height: 1.05; }
.hsd-step p { color: var(--paper-2); font-size: var(--step-0); }
.hsd-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: clamp(1.4rem, 3vw, 2.4rem); }
.hsd-portal { display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .05em; color: var(--paper-2); padding-block: .8em; }
.hsd-portal:hover { color: var(--paper); }
.hsd-portal__sq { width: .6em; height: .6em; background: var(--accent); box-shadow: .5em .5em 0 -.1em var(--cobalt); margin-right: .4em; }

/* ---------- rail ---------- */
.hsd-sticky { position: sticky; top: 100px; }
.hsd-stage { position: relative; height: min(52vh, 460px); }
.hsd-stage__c { position: absolute; width: 16px; height: 16px; border: 0 solid var(--line-strong); }
.hsd-stage__c--tl { top: 0; left: 0; border-width: 1px 0 0 1px; } .hsd-stage__c--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hsd-stage__c--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; } .hsd-stage__c--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hsd-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; margin: 0; display: flex; gap: .6em; align-items: center; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.hsd-cap__sq { width: .6em; height: .6em; background: var(--accent); box-shadow: .55em .55em 0 -.1em var(--cobalt); margin-right: .5em; }
.hsd-cap__sep { color: var(--muted); }
.hsd-nav { display: grid; gap: .1rem; margin-top: 22px; }
.hsd-nav a { display: flex; gap: 1em; align-items: center; padding: .65em 0; color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); transition: color .4s var(--ease-out), padding .6s var(--ease-out); }
.hsd-nav a span { color: var(--muted); font-family: var(--font-pixel); transition: color .4s; }
.hsd-nav a:hover, .hsd-nav a.is-on { color: var(--paper); padding-left: .6em; }
.hsd-nav a.is-on span { color: var(--accent); }

/* ---------- mobile ---------- */
@media (max-width: 899px) {
  .hsd-steps { grid-template-columns: minmax(0, 1fr); }
  .hsd-head { padding-right: 96px; }
  .hsd-head .hsd-title { max-width: none; }
}
@media (max-width: 640px) {
  .hsd-inc { grid-template-columns: minmax(0, 1fr); }
  .hsd-tablewrap { margin-inline: calc(var(--gutter) * -1); border-radius: 0; box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
  .hsd-table th, .hsd-table td { padding: .8rem .45rem; }
  .hsd-table tbody th { font-size: .82rem; line-height: 1.25; padding-left: var(--gutter); }
  .hsd-table thead .hsd-corner { width: 38%; }
  .hsd-plan__tag { display: none; }
  .hsd-plan__name { font-size: 1.1rem; }
  .hsd-long, .hsd-meter { display: none; }
  .hsd-short { display: inline; }
  .hsd-lvl { font-size: .7rem; }
  .hsd-for { font-size: .7rem; }
  .hsd-price { font-size: .86rem; }
  .hsd-buy { padding: .6em .7em; letter-spacing: 0; font-size: .64rem; }
  .hsd-buy__n { display: none; }
  .hsd-yes { width: 16px; height: 12px; }
  .hsd-head { padding-right: 84px; }
  .hsd-title { font-size: clamp(2.3rem, 1.4rem + 4vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) { .hsd-bars i { transform: none; opacity: .92; } }
@media (max-width: 640px) { .hsd-diag { max-width: 320px; } }
/* ronda 2: 3 tarjetas (solo claims publicados); la tercera es el dato 99,9% */
.hsd-inc__item--stat { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; gap: .4rem clamp(1rem, 3vw, 2.4rem); }
.hsd-inc__item--stat .hsd-inc__big { grid-row: 1 / span 2; font-size: clamp(3rem, 2rem + 5vw, 6rem); line-height: .9; color: var(--tone); margin: 0; }
.hsd-inc__item--stat .hsd-inc__t { align-self: end; }
.hsd-inc__item--stat p:last-child { align-self: start; }
@media (max-width: 640px) { .hsd-inc__item--stat { grid-template-columns: minmax(0, 1fr); } .hsd-inc__item--stat .hsd-inc__big { grid-row: auto; } }

.hsd.is-ovl .hsd-fig-inline svg { opacity: 0; }
/* ronda 4: specs desde assets/data/hosting.js */
.hsd-val { font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); letter-spacing: -.01em; color: var(--paper); }
.hsd-inc__item:nth-last-child(2):nth-child(odd) { grid-column: 1 / -1; }
.hsd-inc__item .hsd-inc__t { font-size: var(--step-1); }
@media (max-width: 640px) { .hsd-val { font-size: .8rem; } .hsd-table th[scope="row"] { font-size: .8rem; } }
.hsd-inc__item--stat .hsd-inc__big { grid-row: auto; }
.hsd-inc__item--stat .hsd-inc__t { align-self: center; font-size: var(--step-2); }
@media (max-width: 640px) { .hsd-val { font-size: .74rem; white-space: nowrap; } }
