/* Estilos compartidos de las herramientas gratuitas.
   Usan los colores del tema BDEL (--navy, --gold); con otro tema caen en
   valores neutros. */
.herr .hidden{display:none!important}
.herr .spinner{width:18px;height:18px;border:3px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;display:inline-block;animation:herr-giro .7s linear infinite;vertical-align:-3px}
.herr .spinner-oscuro{border-color:rgba(31,58,95,.2);border-top-color:var(--navy,#0b1d3a);width:34px;height:34px}
@keyframes herr-giro{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.herr .spinner{animation:none}}

/* Campo de dirección del encabezado */
.herr-campo{flex:1;min-width:0;padding:.875rem 1.25rem;border-radius:9999px;border:2px solid transparent;background:#fff;color:var(--navy,#0b1d3a);font:inherit;font-size:1rem;outline:none}
.herr-campo:focus{border-color:var(--gold,#c9a84c)}
.herr-campo-error{border-color:#dc2626!important}

/* Bloque de compartir */
.herr-compartir{text-align:center}
.herr-compartir-titulo{color:#6b7280;font-size:.875rem;margin:0 0 .75rem}
.herr-compartir-botones{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center}
.herr-compartir-boton{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;text-decoration:none;font-size:14px;font-weight:600;color:var(--navy,#0b1d3a);cursor:pointer;font-family:inherit;transition:border-color .15s,box-shadow .15s}
.herr-compartir-boton:hover,.herr-compartir-boton:focus-visible{border-color:var(--gold,#c9a84c);box-shadow:0 2px 8px rgba(0,0,0,.06)}
.herr-compartir-boton i{font-size:18px}
.herr-compartir-nota{color:#9ca3af;font-size:.75rem;margin:.75rem 0 0}
.herr-aviso-compartido{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:1rem;border-radius:.75rem;background:rgba(201,168,76,.08);border:1px solid rgba(201,168,76,.3)}
.herr-aviso-compartido p{margin:0;font-size:.875rem;color:var(--navy,#0b1d3a)}
.herr-aviso-compartido i{color:var(--gold,#c9a84c)}
.herr-aviso-compartido a{font-weight:600;font-size:.875rem;color:var(--gold,#c9a84c);text-decoration:none}

/* Tarjetas de resultado (¿Es WordPress?) */
.herr .res{border-radius:1rem;padding:1.5rem;border:1px solid}
.herr .res .icono{font-size:1.5rem}
.herr .res.wordpress{background:#EAF3EE;border-color:#BCE0CC}
.herr .res.wordpress h2{color:#2E7D5B}
.herr .res.protegido{background:#FBF3E6;border-color:#EAD3A6}
.herr .res.protegido h2{color:#C9852B}
.herr .res.no_detectado{background:#F0F2F5;border-color:#E4E8EE}
.herr .res.no_detectado h2{color:#1F3A5F}
.herr .res.error{background:#FBEAEA;border-color:#E6BCBC}
.herr .res.error h2{color:#B23B3B}
.herr .senales{margin-top:1rem;padding-top:1rem;border-top:1px dashed rgba(0,0,0,.12)}

/* Catálogo */
.herr-tarjeta{display:block;border-radius:1rem;border:1px solid #e5e7eb;padding:1.75rem;background:#fff;text-decoration:none;transition:border-color .2s,box-shadow .2s}
.herr-tarjeta:hover,.herr-tarjeta:focus-visible{border-color:var(--gold,#c9a84c);box-shadow:0 10px 25px rgba(0,0,0,.08)}
.herr-tarjeta:hover .herr-flecha{transform:translateX(4px)}
.herr-flecha{display:inline-block;transition:transform .2s}

/* Código generado */
.herr-codigo{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.75rem;line-height:1.6;background:var(--navy,#0b1d3a);color:rgba(255,255,255,.9);border-radius:.75rem;padding:1rem;overflow:auto;white-space:pre-wrap;word-break:break-word}
.herr-control{width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;font-family:inherit;background:#fff;color:#111827}
.herr-control:focus{outline:2px solid var(--gold,#c9a84c);outline-offset:1px;border-color:transparent}
