/* Validacion mientras se escribe (js/validacion-viva.js): campo bien / con error, regla antes del error, lista de la
   contrasena, sugerencia de correo, aviso de mayusculas y "que falta para continuar" antes del boton. */
input.vv-campo-ok, select.vv-campo-ok, textarea.vv-campo-ok {
    border-color: #6fae8a !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%232f6b45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
    padding-right: 32px !important;
}
select.vv-campo-ok { background-position: right 28px center; }
input[type="date"].vv-campo-ok, input[type="file"].vv-campo-ok { background-image: none; padding-right: 11px !important; }
input.vv-campo-error, select.vv-campo-error, textarea.vv-campo-error {
    border-color: #c0304a !important;
    box-shadow: 0 0 0 3px rgba(192, 48, 74, .12) !important;
}
.vv-msg { display: block; font-size: .76rem; line-height: 1.35; margin: 4px 0 8px; }
.vv-msg:empty { margin: 0; }
.vv-msg.is-error { color: #b4233d; }
.vv-msg.is-error::before { content: "! "; font-weight: 700; }
.vv-msg.is-ayuda { color: #6f5861; }
.vv-reglas { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 3px; font-size: .76rem; color: #6f5861; }
.vv-reglas li { display: flex; gap: 6px; align-items: baseline; }
.vv-reglas li::before { content: "○"; width: 1em; text-align: center; flex: 0 0 1em; }
.vv-reglas li[data-estado="ok"] { color: #2f6b45; }
.vv-reglas li[data-estado="ok"]::before { content: "✓"; font-weight: 700; }
.vv-reglas li[data-estado="mal"] { color: #b4233d; }
.vv-reglas li[data-estado="mal"]::before { content: "✕"; font-weight: 700; }
.vv-sugerencia { font-size: .76rem; color: #6f5861; margin: 2px 0 8px; }
.vv-sugerencia button {
    display: inline !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
    background: none !important; color: #8d4359 !important; font: inherit !important; font-weight: 600 !important;
    text-decoration: underline; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important;
}
.vv-mayus { font-size: .74rem; color: #9a5b20; margin: 2px 0 8px; }
.vv-falta {
    font-size: .78rem; line-height: 1.4; margin: 14px 0 0; padding: 9px 12px; border-radius: 6px;
    background: #fcf5f7; color: #6f5861; border: 1px solid #f0e1e5;
}
.vv-falta.is-listo { background: #eef8f1; color: #2f6b45; border-color: #cfe7d8; }
.vv-falta.is-listo::before { content: "✓ "; font-weight: 700; }
/* el formulario de admin (labels en grilla) deja el mensaje dentro de la etiqueta */
.admin-form label .vv-msg, .admin-inline-form label .vv-msg { margin-bottom: 0; }
