.mensaje-error {
    display: block;
    color: #B83C3C;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
}

.mensaje-error:empty {
    display: none;
}

.registro-formulario .campo .campo-valido {
    border: 1px solid #687D61;
    background-color: #F5FAF2;
}

.registro-formulario .campo .campo-invalido {
    border: 1px solid #C95151;
    background-color: #FFF5F5;
}

.campo-telefono {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prefijo-telefono {
    padding: 14px;
    border: 1px solid #DCD8D2;
    border-radius: 12px;
    background-color: #F2F0EA;
    font-size: 15px;
    font-weight: 600;
}

.campo-telefono input {
    flex: 1;
    min-width: 0;
}

.password-contenedor {
    position: relative;
    width: 100%;
}

.registro-formulario .campo
.password-contenedor input {
    padding-right: 48px;
}

.mostrar-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    color: #687D61;
    display: flex;
    align-items: center;
}

.mostrar-password svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.seguridad-password {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.seguridad-barras {
    display: flex;
    gap: 6px;
}

.seguridad-barra {
    flex: 1;
    height: 6px;
    border-radius: 10px;
    background-color: #E5E2DD;
}

.seguridad-texto {
    font-size: 13px;
    font-weight: 600;
}

.requisitos-password {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding: 15px;
    background-color: #F7F7F3;
    border-radius: 12px;
    font-size: 13px;
}

.requisito {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #777777;
}

.requisito-icono {
    width: 18px;
    height: 18px;
    border: 1px solid #AAAAAA;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.requisito-cumplido {
    color: #526A49;
}

.requisito-cumplido .requisito-icono {
    background-color: #687D61;
    border-color: #687D61;
    color: white;
}

.password-coincide {
    font-size: 13px;
    color: #526A49;
}

.password-coincide:empty {
    display: none;
}

#btn-registro:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#btn-registro:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

.estado-api {
    font-size: 13px;
    color: #526A49;
    padding: 12px;
    border-radius: 10px;
    background-color: #F1F5EC;
}

.estado-api.error {
    color: #B83C3C;
    background-color: #FFF5F5;
}

#resultado-registro {
    padding: 16px;
    margin-top: 15px;
    border-radius: 12px;
    background: #FFF0F0;
    color: #B83C3C;
}
#resultado-registro[hidden] { display: none; }
