/* ===== Centro de herramientas online (/herramientas/) — usa los colores de la marca (sin verde: “correcto” en azul) ===== */
.herr-hero .eyebrow{display:inline-block;margin-bottom:8px}
.herr-buscar{margin-top:22px}
.herr-buscar input[type=search]{-webkit-appearance:none;appearance:none}
.herr-pop{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;font-size:.88rem;color:#c9d6e6}
.herr-pop a{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:99px;padding:5px 12px;text-decoration:none}
.herr-pop a:hover{background:rgba(255,255,255,.2)}
.herr-wrap{padding:36px 0 56px;background:var(--soft)}
.herr-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin-bottom:38px}
.herr-cat{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;color:var(--ink);text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.herr-cat:hover{border-color:var(--blue);box-shadow:0 10px 26px rgba(11,31,58,.08);transform:translateY(-2px)}
.herr-cat-i,.herr-card-i,.herr-t-i{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:var(--blue-soft);color:var(--blue-dk);flex:none}
.herr-cat-i{width:44px;height:44px}
.herr-cat strong{color:var(--heading);font-size:1.02rem}
.herr-cat small{color:var(--muted);font-size:.86rem;line-height:1.45;flex:1}
.herr-cat em{font-style:normal;font-size:.8rem;font-weight:700;color:var(--blue-dk)}
.herr-lista-h{display:flex;flex-direction:column;gap:12px;margin-bottom:16px;scroll-margin-top:90px}
.herr-lista-h h2{margin:0}.herr-lista-h h2 small{font-size:.9rem;color:var(--muted);font-weight:600;margin-left:6px}
.herr-filtros{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.herr-filtros button{flex:none;border:1px solid var(--line);background:#fff;color:var(--heading);border-radius:99px;padding:7px 14px;font:inherit;font-size:.86rem;font-weight:600;cursor:pointer;white-space:nowrap}
.herr-filtros button[aria-pressed=true]{background:var(--blue-dk);border-color:var(--blue-dk);color:#fff}
.herr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}
.herr-card{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;color:var(--ink);text-decoration:none;position:relative;transition:border-color .15s,box-shadow .15s}
.herr-card:hover{border-color:var(--blue);box-shadow:0 8px 22px rgba(11,31,58,.07)}
.herr-card[hidden]{display:none}
.herr-card-i{width:42px;height:42px}
.herr-card-b{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.herr-card-b strong{color:var(--heading);font-size:.98rem}
.herr-card-b small{color:var(--muted);font-size:.85rem;line-height:1.45}
.herr-card-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
.herr-card-tags em,.herr-card-tags b,.herr-card-tags i{font-style:normal;font-size:.72rem;font-weight:600;border-radius:6px;padding:2px 7px;background:var(--soft);color:var(--muted);border:1px solid var(--line)}
.herr-card-tags b{background:var(--blue-soft);color:var(--blue-dk);border-color:transparent}
.herr-card-go{font-size:.8rem;font-weight:700;color:var(--blue-dk);white-space:nowrap;align-self:center}
.herr-vacio{background:#fff;border:1px dashed var(--line);border-radius:12px;padding:22px;text-align:center;color:var(--muted)}
.herr-sobre{display:grid;grid-template-columns:1.6fr 1fr;gap:24px;margin-top:40px;align-items:start}
.herr-sobre p{color:var(--ink)}
.herr-otras{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}
.herr-otras a{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 12px;color:var(--heading);text-decoration:none;font-size:.9rem;font-weight:600}
.herr-otras small{color:var(--muted);font-weight:500}

/* Página de herramienta */
.herr-t-h{display:flex;gap:16px;align-items:flex-start}
.herr-t-i{width:58px;height:58px;background:rgba(255,255,255,.12);color:#fff}
.herr-hero-t h1{margin-bottom:.35em;font-size:clamp(1.55rem,3.4vw,2.3rem)}
.herr-t-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.herr-t-tags span,.herr-t-tags a{font-size:.8rem;font-weight:600;color:#e6eef8;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:99px;padding:3px 11px;text-decoration:none}
.herr-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.herr-main{min-width:0}
.herr-box{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 10px 30px rgba(11,31,58,.05)}
.herr-campos{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.herr-campo{display:flex;flex-direction:column;gap:5px;flex:1 1 220px;min-width:0;font-size:.85rem;font-weight:600;color:var(--heading)}
.herr-campo input[type=text],.herr-campo input[type=number],.herr-campo input[type=datetime-local],.herr-campo select{width:100%;padding:11px 12px;border:1px solid #cfd6e4;border-radius:10px;font:inherit;font-weight:400;font-size:1rem;color:var(--ink);background:#fff;min-width:0}
.herr-campo input:focus,.herr-campo select:focus,.herr-ta:focus{outline:2px solid var(--blue-soft);border-color:var(--blue)}
.herr-campo-sel{flex:0 1 200px}
.herr-campo input[type=range]{width:100%;accent-color:var(--blue-dk)}
.herr-form{display:flex;flex-direction:column;gap:14px}
.herr-btn{align-self:flex-start;min-width:150px;justify-content:center}
.herr-btn[disabled]{opacity:.7;cursor:progress}
.herr-btn .herr-spin{width:16px;height:16px;border:2px solid rgba(255,255,255,.5);border-top-color:#fff;border-radius:50%;animation:herrgira .8s linear infinite}
@keyframes herrgira{to{transform:rotate(360deg)}}
.herr-check{display:inline-flex;align-items:center;gap:6px;font-size:.88rem;color:var(--ink);font-weight:500;cursor:pointer}
.herr-check input{width:16px;height:16px;accent-color:var(--blue-dk)}
.herr-puertos{border:1px solid var(--line);border-radius:12px;padding:10px 14px;flex-basis:100%}
.herr-puertos legend{font-weight:600;padding:0 6px}
.herr-puertos div{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px 12px}
.herr-puertos label{display:flex;align-items:center;gap:6px;font-weight:400;font-size:.85rem;color:var(--ink)}
.herr-puertos input{accent-color:var(--blue-dk)}
.herr-err{margin-top:14px;padding:12px 14px;border-radius:10px;background:#fdeceb;color:#9b1c1c;border:1px solid #f5c2bf;font-size:.92rem}
.herr-ta{width:100%;padding:12px;border:1px solid #cfd6e4;border-radius:10px;font:13.5px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--ink);background:#fff;resize:vertical;min-height:80px}
.herr-out{background:var(--soft)}
.herr-out-w{margin-top:10px}
.herr-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.herr-mini{display:inline-flex;align-items:center;gap:6px;font-size:.86rem;color:var(--muted)}
.herr-mini select{padding:6px 8px;border:1px solid #cfd6e4;border-radius:8px;font:inherit}
.herr-mini-p{font-size:.86rem;color:var(--muted);margin:.6em 0 0}
.herr-file{display:block;margin-top:8px;font-size:.86rem;color:var(--muted)}
.herr-estado{margin-top:10px;font-size:.9rem}
.herr-estado:empty{display:none}
.herr-estado.ok{color:var(--blue-dk)}.herr-estado.error{color:#b42318}.herr-estado.aviso{color:#a15c07}
.herr-h3{font-size:1.02rem;margin:22px 0 10px}
.herr-2col{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* Resultados */
.herr-res:empty{display:none}
.herr-res{margin-top:18px}
.herr-r-head{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:12px;border:1px solid var(--line);background:var(--soft)}
.herr-r-head.ok{background:#eef6fc;border-color:#c6e0f2}
.herr-r-head.aviso{background:#fff7e8;border-color:#f3d79b}
.herr-r-head.error{background:#fdeceb;border-color:#f5c2bf}
.herr-r-head.info{background:#f2f4f8;border-color:#dfe4ee}
.herr-r-est{flex:none;font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;border-radius:6px;padding:4px 8px;color:#fff;background:var(--blue-dk)}
.herr-r-head.aviso .herr-r-est{background:#b26a00}.herr-r-head.error .herr-r-est{background:#b42318}.herr-r-head.info .herr-r-est{background:#5b6675}
.herr-r-head p{margin:0;color:var(--heading);font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.herr-r-meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.8rem;color:var(--muted);margin:8px 2px 0}
.herr-r-acc{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.herr-r-sec{margin-top:16px}
.herr-r-sec h3{font-size:.98rem;margin:0 0 8px}
.herr-tbl-w{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:#fff}
.herr-tbl{width:100%;border-collapse:collapse;font-size:.86rem}
.herr-tbl th{text-align:left;background:var(--soft);color:var(--heading);font-weight:700;padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.herr-tbl td{padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere;white-space:pre-line}
.herr-tbl tr:last-child td{border-bottom:0}
.herr-kv{display:grid;grid-template-columns:minmax(140px,240px) 1fr;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;font-size:.88rem}
.herr-kv dt{padding:8px 12px;background:var(--soft);color:var(--muted);font-weight:600;border-bottom:1px solid var(--line)}
.herr-kv dd{margin:0;padding:8px 12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;white-space:pre-line;color:var(--ink)}
.herr-kv dt:last-of-type,.herr-kv dd:last-of-type{border-bottom:0}
.herr-checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.herr-checks li{display:flex;gap:10px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 12px;font-size:.9rem}
.herr-checks li b{flex:none;width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;color:#fff;background:var(--blue-dk)}
.herr-checks li.aviso b{background:#b26a00}.herr-checks li.error b{background:#b42318}.herr-checks li.info b{background:#8792a2}
.herr-checks li div{min-width:0}.herr-checks li strong{display:block;color:var(--heading);font-weight:600;overflow-wrap:anywhere}
.herr-checks li small{display:block;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.herr-pre{background:#0f1d30;color:#e6eef8;border-radius:10px;padding:12px 14px;font:12.5px/1.55 ui-monospace,Menlo,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;margin:0}
.herr-nota{font-size:.84rem;color:var(--muted);background:#fff;border-left:3px solid var(--blue);padding:8px 12px;border-radius:0 8px 8px 0;margin-top:12px}
.herr-imgs{display:flex;flex-wrap:wrap;gap:12px}.herr-imgs figure{margin:0;text-align:center;font-size:.75rem;color:var(--muted)}.herr-imgs img{width:64px;height:64px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:8px;padding:6px;display:block;margin:0 auto 4px}

/* Herramientas del navegador */
.herr-cmd{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px;background:#0f1d30;border-radius:12px;padding:12px 14px}
.herr-cmd code{color:#e6eef8;font-size:1rem;flex:1;min-width:0;overflow-wrap:anywhere}
.herr-myip{text-align:center;padding:10px 0}
.herr-myip small{display:block;color:var(--muted);font-weight:600}
.herr-myip strong{display:block;font-size:clamp(1.6rem,6vw,2.6rem);color:var(--heading);letter-spacing:-.02em;overflow-wrap:anywhere;margin:6px 0}
.herr-myip .herr-bar{justify-content:center}
.herr-tag{display:inline-block;font-size:.78rem;font-weight:700;background:var(--blue-soft);color:var(--blue-dk);border-radius:6px;padding:2px 8px}
.herr-qr{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:16px}
.herr-qr-img{width:min(280px,100%);aspect-ratio:1;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;display:flex;align-items:center;justify-content:center}
.herr-qr-img svg,.herr-qr-img img{width:100%;height:auto;display:block}
.herr-qr-f{margin-top:12px}
.herr-ahora{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px;font-size:.92rem}
.herr-ahora strong{font-family:ui-monospace,Menlo,Consolas,monospace;color:var(--heading)}
.herr-diff{margin-top:12px;border:1px solid var(--line);border-radius:10px;overflow:auto;max-height:560px;background:#fff;font:12.5px/1.5 ui-monospace,Menlo,Consolas,monospace}
.herr-diff:empty{display:none}
.herr-diff div{display:flex;white-space:pre-wrap;overflow-wrap:anywhere}
.herr-diff span{flex:none;width:44px;text-align:right;padding-right:8px;color:#98a2b3;user-select:none;border-right:1px solid var(--line);margin-right:8px}
.herr-diff .add{background:#e7f1fb}.herr-diff .add::before{content:"+";color:var(--blue-dk);width:12px;flex:none}
.herr-diff .del{background:#fdeceb}.herr-diff .del::before{content:"−";color:#b42318;width:12px;flex:none}
.herr-diff .eq::before{content:" ";width:12px;flex:none}
.herr-hl{margin-top:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font:13px/1.6 ui-monospace,Menlo,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto}
.herr-hl:empty{display:none}
.herr-hl mark{background:#cfe4f6;color:var(--heading);border-radius:3px;padding:0 1px}
.herr-flags{display:flex;gap:10px;flex-wrap:wrap;padding:8px 0}
.herr-pcts{display:flex;flex-direction:column;gap:10px}
.herr-pct{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:.92rem}
.herr-pct input,.herr-pct select{width:120px;padding:8px 10px;border:1px solid #cfd6e4;border-radius:8px;font:inherit}
.herr-pct output{font-weight:700;color:var(--heading)}

/* Contenido SEO y barra lateral */
.herr-sec{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 24px;margin-top:18px}
.herr-sec h2{font-size:1.2rem;margin-bottom:.6em}
.herr-sec p,.herr-sec li{color:var(--ink);line-height:1.65}
.herr-sec code{background:var(--soft);border:1px solid var(--line);border-radius:5px;padding:1px 5px;font-size:.88em;overflow-wrap:anywhere}
.herr-pasos{padding-left:20px;margin:0}.herr-pasos li{margin-bottom:6px}
.herr-lista{padding-left:20px;margin:0}.herr-lista li{margin-bottom:6px}
.herr-faq details{border-bottom:1px solid var(--line);padding:10px 0}
.herr-faq details:last-child{border-bottom:0}
.herr-faq summary{cursor:pointer;font-weight:600;color:var(--heading)}
.herr-faq p{margin:.5em 0 0}
.herr-cta{background:linear-gradient(135deg,#0b1f3a,#123660);color:#c9d6e6;border-radius:16px;padding:20px 22px;margin-top:18px}
.herr-cta strong{display:block;color:#fff;font-size:1.02rem;margin-bottom:4px}
.herr-cta p{margin:0 0 12px;font-size:.9rem;line-height:1.5}
.herr-cta .btn-ghost{color:#fff;border-color:rgba(255,255,255,.35)}
.herr-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:90px}
.herr-side .herr-cta{margin-top:0}
.herr-side-box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
.herr-side-box strong{display:block;color:var(--heading);margin-bottom:8px;font-size:.95rem}
.herr-side-box ul{list-style:none;margin:0;padding:0}
.herr-side-box li a{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:8px;color:var(--ink);text-decoration:none;font-size:.88rem}
.herr-side-box li a:hover,.herr-side-box li a[aria-current]{background:var(--blue-soft);color:var(--blue-dk)}
.herr-side-box li a svg{color:var(--blue-dk);flex:none}
.herr-side-box li small{margin-left:auto;color:var(--muted)}
.herr-ad{margin:16px auto;text-align:center;max-width:100%;overflow:hidden}
.herr-ad small{display:block;font-size:.68rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}

@media (max-width:980px){.herr-layout{grid-template-columns:minmax(0,1fr)}.herr-side{position:static}.herr-sobre{grid-template-columns:1fr}}
@media (max-width:640px){
  .herr-box{padding:16px;border-radius:14px}.herr-sec{padding:18px 16px}
  .herr-grid{grid-template-columns:minmax(0,1fr)}.herr-cats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .herr-cat{padding:14px}.herr-cat small{display:none}
  .herr-card-go{display:none}.herr-btn{align-self:stretch}.herr-campo-sel{flex:1 1 100%}
  .herr-kv{grid-template-columns:1fr}.herr-kv dt{border-bottom:0;padding-bottom:2px}.herr-2col{grid-template-columns:1fr}
  .herr-t-i{width:46px;height:46px}.herr-t-i svg{width:24px;height:24px}
  .herr-buscar{flex-direction:column}.herr-buscar .btn{width:100%;justify-content:center}
}

/* Mapa mundial (propagación DNS y traceroute visual) */
.herr-mapa{height:430px;border:1px solid var(--line);border-radius:12px;background:#f3f8fc;z-index:0}
.herr-mapa .leaflet-container,.herr-mapa.leaflet-container{background:#f3f8fc;font:inherit}
.herr-leyenda{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:8px;padding:6px 10px;font-size:.78rem;color:var(--ink);display:flex;flex-direction:column;gap:3px;max-width:260px}
.herr-leyenda span{display:flex;align-items:center;gap:6px}.herr-leyenda i{width:11px;height:11px;border-radius:50%;flex:none;border:1px solid #fff;box-shadow:0 0 0 1px #c3cfdd}
.herr-mapa-btn{background:#fff;border:1px solid var(--line);border-radius:8px;padding:6px 10px;font:inherit;font-size:.8rem;font-weight:600;color:var(--blue-dk);cursor:pointer;box-shadow:0 2px 6px rgba(11,31,58,.12)}
.herr-paises div{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
@media (max-width:640px){.herr-mapa{height:320px}}
